/* ─────────────────────────────────────────────────────────
   Ebnlsooq platform — calm dark dashboard.
   Slate panels, one gold accent, lots of air.
   ───────────────────────────────────────────────────────── */
:root {
  --bg: #0b0e12;
  --bg-2: #0f1318;
  --panel: #12171d;
  --panel-2: #171d24;
  --panel-3: #1d242c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink: #eef0f2;
  --ink-2: #b9c0c8;
  --muted: #7d8791;
  --gold: #f8b400;
  --gold-2: #ffd36b;
  --gold-dim: rgba(248, 180, 0, 0.12);
  --red: #e5534b;
  --amber: #e7a33e;
  --green: #4fc58a;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 18px;
  --r-s: 12px;
  --w: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(64, 92, 120, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(248, 180, 0, 0.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink); line-height: 1.7; min-height: 100vh;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* ── Announcement bar ──────────────────────────────────── */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 10px 48px; font-size: 14px; font-weight: 600;
  background: linear-gradient(90deg, #1a1508, #2a2008 50%, #1a1508);
  border-bottom: 1px solid rgba(248, 180, 0, 0.18); position: relative;
}
.live { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px; border-radius: 6px;
  background: rgba(229, 83, 75, 0.14); color: #ff8a83; font: 600 12px/1.6 var(--mono); letter-spacing: .08em; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.announce .btn { padding: 5px 16px; font-size: 13px; }
.announce .x { position: absolute; left: 16px; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }

/* ── Top bar ───────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 14, 18, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--w); margin: 0 auto; padding: 0 28px; height: 68px; display: flex; align-items: center; gap: 36px; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; gap: 4px; height: 100%; }
.nav a { white-space: nowrap; display: flex; align-items: center; padding: 0 14px; font-size: 15px; color: var(--muted); position: relative; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 700; }
.nav a.on::after { content: ""; position: absolute; inset: auto 14px -1px; height: 2px; background: var(--gold); border-radius: 2px; }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 0 14px; height: 40px; width: 220px; }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { background: none; border: 0; outline: 0; width: 100%; font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.me { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3);
  border: 1px solid var(--line-2); font: 500 13px var(--mono); color: var(--gold); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ── Buttons, chips, labels ────────────────────────────── */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: #17120a; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: #000; color: #fff; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.label .en { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-inline-start: 8px; opacity: .7; }
.link { color: var(--gold); font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { color: var(--gold-2); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--gold-dim); color: var(--gold); }
.tag.muted { background: rgba(255,255,255,.06); color: var(--ink-2); }
.demo { font: 500 10px var(--mono); letter-spacing: .12em; color: var(--muted); border: 1px dashed var(--line-2); padding: 1px 8px; border-radius: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.high { background: var(--red); box-shadow: 0 0 0 3px rgba(229,83,75,.15); }
.dot.med { background: var(--amber); }
.dot.low { background: #5b6672; }

/* ── Panels & grid ─────────────────────────────────────── */
#view { padding-top: 32px; padding-bottom: 56px; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 0; }
.p-body { padding: 20px 24px 24px; }
.grid { display: grid; gap: 20px; }
.g-top { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
.g-mid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); margin-top: 20px; }
.g-low { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); margin-top: 20px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.35; }
.page-head p { color: var(--ink-2); margin-top: 6px; max-width: 640px; }
.welcome { margin-bottom: 24px; }
.welcome h1 { font-size: 24px; font-weight: 800; }
.welcome p { color: var(--muted); font-size: 15px; }

/* ── Slider ────────────────────────────────────────────── */
.slider { position: relative; min-height: 420px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s; }
.slide.on { opacity: 1; visibility: visible; }
.slide-copy { padding: 48px 48px 72px; display: flex; flex-direction: column; justify-content: center; gap: 16px; position: relative; z-index: 2; }
.slide-copy h2 { font-size: clamp(26px, 2.5vw, 36px); font-weight: 800; line-height: 1.35; }
.slide-copy p { color: var(--ink-2); font-size: 16px; max-width: 440px; }
.slide-copy .tag { align-self: flex-start; }
.slide-copy .btn { align-self: flex-start; margin-top: 10px; }
.slide-img { position: relative; overflow: hidden; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: scale(1.04); transition: transform 7s ease; }
.slide.on .slide-img img { transform: scale(1); }
.slide-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, var(--panel-2) 0%, rgba(23,29,36,.55) 30%, transparent 70%); }
.slider-ctrl { position: absolute; z-index: 3; bottom: 26px; inset-inline-start: 48px; display: flex; align-items: center; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 6px; border: 0; background: rgba(255,255,255,.22); cursor: pointer; transition: width .3s, background .3s; }
.dots button.on { width: 28px; background: var(--ink); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); cursor: pointer; display: grid; place-items: center; }
.arrows svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 2; }

/* ── Today (calendar mini) ─────────────────────────────── */
.today-list { display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .t { font: 500 14px var(--mono); color: var(--ink-2); }
.ev .ttl { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.ev .cur { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .08em; }
.ev.past { opacity: .45; }
.countdown { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.countdown .what { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.countdown .what b { color: var(--ink); font-weight: 700; }
.cd { display: flex; justify-content: space-between; direction: ltr; }
.cd div { text-align: center; }
.cd b { display: block; font: 500 30px/1.2 var(--mono); }
.cd span { font: 500 10px var(--mono); letter-spacing: .14em; color: var(--muted); }
.cd i { font: 500 22px var(--mono); color: var(--muted); font-style: normal; padding-top: 2px; }
.bar { height: 4px; background: rgba(255,255,255,.07); border-radius: 4px; margin-top: 16px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }

/* ── Course cards ──────────────────────────────────────── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.cc { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4.1; border: 1px solid var(--line); background: var(--panel-3); display: block; }
.cc img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s; }
.cc:hover img { transform: scale(1.04); }
.cc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,10,13,.92) 85%); }
.cc .cc-txt { position: absolute; inset: auto 0 0; padding: 16px; z-index: 2; }
.cc .en { font: 500 10px var(--mono); letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.cc h4 { font-size: 16px; font-weight: 800; line-height: 1.4; margin: 2px 0 6px; }
.cc .meta { font-size: 12px; color: var(--ink-2); }
.cc .new { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; background: var(--gold); color: #17120a; font-size: 11px; font-weight: 800; padding: 1px 10px; border-radius: 5px; }
.cc .lock { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.cc .lock svg, .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cc .prog { height: 3px; background: rgba(255,255,255,.15); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.cc .prog span { display: block; height: 100%; background: var(--gold); }

/* ── AI quick + channels ───────────────────────────────── */
.drop { margin-top: 4px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 26px 18px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; display: block; }
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-dim); }
.drop .ic { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold); }
.drop .ic svg { width: 22px; height: 22px; }
.drop b { display: block; font-size: 15px; }
.drop span { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.ch { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.ch + .ch { margin-top: 12px; }
.ch .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.05); }
.ch .ic.gold { background: var(--gold-dim); color: var(--gold); }
.ch .ic svg { width: 20px; height: 20px; }
.ch h5 { font-size: 15px; font-weight: 700; }
.ch p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.ch .go { margin-inline-start: auto; }

/* ── News ──────────────────────────────────────────────── */
.news-item { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item .dot { margin-top: 10px; }
.news-item h4 { font-size: 15.5px; font-weight: 700; line-height: 1.55; }
.news-item p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.news-item .when { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.news-item .tag { margin-inline-end: 8px; }
.news-item h4 a:hover { color: var(--gold-2); }
.news-item .src { display: inline-block; margin-top: 6px; font: 500 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.cont { display: block; }
.cont-img { height: 170px; border-radius: 12px; overflow: hidden; position: relative; }
.cont-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cont-img .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); }
.cont-img .play svg { width: 18px; height: 18px; fill: #fff; margin-inline-end: -3px; transform: scaleX(-1); }
.cont h4 { font-size: 17px; font-weight: 800; margin-top: 16px; }
.cont p { font-size: 14px; color: var(--muted); }

/* ── Filters / tabs ────────────────────────────────────── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: fit-content; }
.tabs button { background: none; border: 0; padding: 7px 16px; border-radius: 9px; font-size: 14px; color: var(--muted); cursor: pointer; font-weight: 600; }
.tabs button.on { background: var(--panel-3); color: var(--ink); }
.tabs.sm { padding: 3px; }
.tabs.sm button { padding: 4px 12px; font-size: 13px; }

/* ── Courses page ──────────────────────────────────────── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.course-grid .cc { aspect-ratio: 3 / 3.9; }

/* ── Channels page ─────────────────────────────────────── */
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ch-card { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.ch-card.vip { border-color: rgba(248,180,0,.28); background: linear-gradient(180deg, rgba(248,180,0,.07), var(--panel) 45%); }
.ch-card h2 { font-size: 24px; font-weight: 800; }
.ch-card > p { color: var(--ink-2); }
.perks { list-style: none; display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.perks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--gold-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f8b400' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.feed { display: grid; gap: 10px; }
.post { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 16px; }
.post .mono { color: var(--muted); font-size: 12px; white-space: nowrap; }
.vip .post { filter: blur(0); position: relative; }
.ch-card .btn { align-self: flex-start; margin-top: auto; }

/* ── AI chat page ──────────────────────────────────────── */
.ai-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 560px; }
.msgs { flex: 1; overflow-y: auto; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.msg { max-width: 78%; padding: 14px 18px; border-radius: 16px; font-size: 15px; line-height: 1.8; white-space: pre-wrap; }
.msg.bot { background: var(--panel-3); border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 4px; }
.msg.me { display: block; gap: 0; font-size: 15px; color: var(--ink); /* .me is also the header user box (flex) */ background: var(--gold-dim); border: 1px solid rgba(248,180,0,.2); align-self: flex-end; border-start-end-radius: 4px; }
.msg:has(> img) { width: min(78%, 640px); }
.msg > img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; border-radius: 10px; background: #000; }
.msg-text { margin-top: 10px; }
@media (max-width: 640px) { .msg:has(> img) { width: 92%; } }
.msg.typing { color: var(--muted); }
.ai-warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(229,83,75,.08); border: 1px solid rgba(229,83,75,.22); font-size: 14px; white-space: normal; }
.ai-x { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); white-space: normal; font-size: 13px; }
.ai-x > .mono { color: var(--muted); font-size: 12px; margin-inline-end: 4px; }
.bias { padding: 2px 10px; border-radius: 6px; font-weight: 700; }
.bias.up { background: rgba(79,197,138,.12); color: var(--green); }
.bias.down { background: rgba(229,83,75,.12); color: #ff8a83; }
.bias.flat { background: rgba(255,255,255,.07); color: var(--ink-2); }
.lv { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink-2); }
.lv b { color: var(--ink); font-weight: 500; }
.lv.sup { border-color: rgba(79,197,138,.3); }
.lv.res { border-color: rgba(229,83,75,.3); }
.ai-chart { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.18); white-space: normal; }
.ai-chart-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ai-chart-c { height: 260px; direction: ltr; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.msg.bot:has(.ai-chart) { width: 78%; }
@media (max-width: 640px) { .msg.bot:has(.ai-chart) { width: 92%; } .ai-chart-c { height: 220px; } }
.msg b { color: var(--gold); font-weight: 700; }
.composer { border-top: 1px solid var(--line); padding: 16px; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; font-size: 15px; outline: 0; max-height: 140px; min-height: 46px; }
.composer textarea:focus { border-color: rgba(248,180,0,.45); }
.icon-btn { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.send { background: var(--gold); color: #17120a; border: 0; }
.attach-prev { display: flex; align-items: center; gap: 10px; padding: 10px 16px 0; }
.attach-prev img { height: 54px; border-radius: 8px; border: 1px solid var(--line-2); }
.attach-prev button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.side-card + .side-card { margin-top: 20px; }
.side-card ol { padding-inline-start: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 8px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ── TradingView panel (AI page) ────────────────────── */
.tv-panel { margin-bottom: 20px; }
.tv-panel .p-head { flex-wrap: wrap; padding-bottom: 14px; }
.tv-head-l, .tv-head-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tv-box { height: 460px; border-top: 1px solid var(--line); direction: ltr; }
.tv-panel.closed .tv-box { display: none; }
.tv-snap { padding: 6px 14px; font-size: 13px; }
.tv-snap:disabled { opacity: .6; cursor: wait; }
.tv-toggle { width: 34px; height: 34px; border-radius: 9px; transition: transform .2s; }
.tv-panel.closed .tv-toggle { transform: rotate(180deg); }
@media (max-width: 640px) { .tv-box { height: 360px; } .tv-head-r { width: 100%; justify-content: space-between; } .tv-head-r .tabs { overflow-x: auto; flex-wrap: nowrap; max-width: calc(100% - 48px); } }

/* ── Calendar page ─────────────────────────────────────── */
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.day { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; text-align: center; }
.day.on { border-color: rgba(248,180,0,.45); background: var(--gold-dim); }
.day b { display: block; font-size: 15px; }
.day span { font-size: 12px; color: var(--muted); }
.day .n { font: 600 12px "Cairo", sans-serif; color: var(--gold); }
table.cal { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cal th { text-align: start; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cal td { padding: 16px; border-bottom: 1px solid var(--line); }
.cal tr:last-child td { border-bottom: 0; }
.cal .num { font-family: var(--mono); color: var(--ink-2); }
.cal .num.act { color: var(--ink); font-weight: 500; }
.act-v { font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.act-v i { font-style: normal; font-size: 10px; color: var(--gold); }
.act-v.down i { color: var(--ink-2); }
.cal .pending { font-family: "Cairo", sans-serif; font-size: 12px; color: var(--muted); }
.cal tr.past { opacity: .55; }
.cal tr.next td { background: rgba(248,180,0,.05); }
.imp { display: inline-flex; gap: 3px; }
.imp i { width: 6px; height: 14px; border-radius: 2px; background: rgba(255,255,255,.1); }
.imp.high i { background: var(--red); }
.imp.med i:nth-child(-n+2) { background: var(--amber); }
.imp.low i:first-child { background: #8994a0; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; gap: 8px; align-items: center; }

/* ── Footer ────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; display: flex; gap: 28px; align-items: center; }
.foot img { height: 16px; opacity: .6; }
.foot p { font-size: 12.5px; color: var(--muted); max-width: 720px; }


/* ── Header states, menu, demo switcher, toast ─────────── */
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.me { gap: 10px; position: relative; }
.me-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.menu { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; width: 240px; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.45); display: grid; z-index: 50; }
.menu-head { padding: 10px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 4px; }
.menu-head span:not(.tag) { font-size: 12.5px; color: var(--muted); }
.menu-head .tag { justify-self: start; margin-top: 4px; }
.menu a, .menu button { text-align: start; padding: 10px 12px; border-radius: 9px; font-size: 14px; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.05); }
.menu button { color: var(--muted); }
.s-only { display: none; }
.nav-sub { display: none !important; }
.demo-switch { position: fixed; bottom: 18px; left: 18px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(18,23,29,.92); backdrop-filter: blur(10px); border: 1px dashed var(--line-2); border-radius: 12px; font-size: 12.5px; opacity: .55; transition: opacity .2s; }
.demo-switch:hover { opacity: 1; }
.demo-switch span { color: var(--muted); padding: 0 8px; font: 500 10px var(--mono); letter-spacing: .12em; }
.demo-switch button { white-space: nowrap; background: none; border: 0; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.demo-switch button.on { background: var(--gold-dim); color: var(--gold); }
.toast { position: fixed; bottom: 80px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70;
  background: var(--panel-3); border: 1px solid var(--line-2); padding: 12px 22px; border-radius: 12px; font-size: 14px; transition: .3s; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Locks ─────────────────────────────────────────────── */
.lock-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold); flex: none; }
.lock-ic .ico { width: 22px; height: 22px; }
.lock-ic.sm { width: 42px; height: 42px; }
.lock-ic.sm .ico { width: 18px; height: 18px; }
.locked { position: relative; min-height: 520px; display: grid; place-items: center; }
.locked-bg { position: absolute; inset: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; filter: blur(6px); opacity: .45; pointer-events: none; }
.lock-card { position: relative; text-align: center; max-width: 420px; padding: 36px 28px; display: grid; justify-items: center; gap: 14px;
  background: rgba(18,23,29,.9); border: 1px solid var(--line-2); border-radius: var(--r); backdrop-filter: blur(8px); margin: 24px; }
.lock-card h3 { font-size: 22px; font-weight: 800; }
.lock-card p { color: var(--ink-2); font-size: 15px; }
.lock-actions { display: grid; gap: 14px; justify-items: center; margin-top: 8px; }
.banner { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 24px; border-radius: var(--r);
  background: linear-gradient(90deg, rgba(248,180,0,.08), rgba(248,180,0,.02)); border: 1px solid rgba(248,180,0,.2); }
.banner b { font-size: 16px; }
.banner p { font-size: 14px; color: var(--ink-2); }
.banner .btn { margin-inline-start: auto; flex: none; }
.feed.blurred .post span:first-child { filter: blur(5px); user-select: none; }
.promo .perks { margin: 18px 0 24px; }
.promo-price b, .plan-price b { font-size: 40px; font-weight: 500; line-height: 1.1; }
.promo-price span, .plan-price span { color: var(--muted); margin-inline-start: 8px; font-size: 14px; }

/* ── Pricing ───────────────────────────────────────────── */
.page-head.center { justify-content: center; text-align: center; }
.page-head.center p { margin-inline: auto; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.plan.pro { border-color: rgba(248,180,0,.3); background: linear-gradient(180deg, rgba(248,180,0,.07), var(--panel) 50%); }
.plan .btn { margin-top: auto; }
.plan .note { text-align: center; margin-top: -10px; }
.faq { max-width: 880px; margin: 56px auto 0; display: grid; gap: 12px; }
.faq h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.faq details { padding: 0 24px; }
.faq summary { padding: 18px 0; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font: 500 20px var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--ink-2); }

/* ── Auth & account ────────────────────────────────────── */
.auth { max-width: 440px; margin: 24px auto; padding: 40px 36px; display: grid; gap: 16px; text-align: center; }
.auth-logo { height: 20px; margin: 0 auto 10px; }
.auth h1 { font-size: 24px; font-weight: 800; }
.auth > p { color: var(--ink-2); font-size: 15px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form { display: grid; gap: 16px; text-align: start; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.form input { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: 0; }
.form input:focus { border-color: rgba(248,180,0,.45); }
.form .btn { margin-top: 6px; }
.switch { font-size: 14px; color: var(--muted); }
.code-in { text-align: center; font: 500 22px var(--mono) !important; letter-spacing: .4em; }
.spin { width: 22px; height: 22px; border: 2.5px solid var(--gold-dim); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.acc { display: grid; gap: 20px; max-width: 760px; }
.acc-card { display: flex; align-items: center; gap: 20px; }
.acc-card h3 { font-size: 18px; font-weight: 800; margin-top: 2px; }
.acc-card p { color: var(--muted); font-size: 14px; }
.avatar.lg { width: 60px; height: 60px; font-size: 18px; border-radius: 16px; }

/* ── Search & legal ────────────────────────────────────── */
.search.big { width: 100%; max-width: 640px; height: 54px; border-radius: 14px; }
.search.big input { font-size: 16px; }
.res-h { font-size: 16px; font-weight: 800; color: var(--ink-2); margin: 32px 0 14px; }
.legal { max-width: 760px; display: grid; gap: 16px; padding: 36px; }
.legal h1 { font-size: 26px; font-weight: 800; }
.legal p { color: var(--ink-2); }
.foot { flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 980px) { .nav-sub { display: flex !important; } }
@media (max-width: 640px) {
  .hide-s { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan, .auth, .legal { padding: 26px 20px; }
  .banner { flex-wrap: wrap; }
  .banner .btn { margin-inline-start: 0; width: 100%; }
  .acc-card { flex-wrap: wrap; }
  .foot-links { margin-inline-start: 0; flex-wrap: wrap; }
  .course-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .course-grid .cc h4 { font-size: 14px; }
  .demo-switch button { padding: 6px 9px; }
  .demo-switch { left: 50%; transform: translateX(-50%); bottom: 12px; }
  body { padding-bottom: 56px; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1400px) { #searchForm { display: none; } .s-only { display: grid; width: 40px; height: 40px; } }
@media (max-width: 1180px) {
  .nav a { padding: 0 10px; font-size: 14px; }
  .g-mid { grid-template-columns: 1fr 1fr; }
  .g-mid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .burger { display: flex; }
  .me-name { display: none; }
  .nav { position: fixed; top: 68px; inset-inline: 0; height: auto; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.on::after { display: none; }
  .nav a.on { color: var(--gold); }
  .g-top, .g-low, .ai-wrap, .ch-grid { grid-template-columns: 1fr; }
  .chat { height: 70vh; }
}
@media (max-width: 640px) {
  .wrap, .top-in { padding: 0 16px; }
  .announce { padding: 10px 40px 10px 16px; gap: 10px; font-size: 12.5px; justify-content: flex-start; }
  .announce .txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .g-mid { grid-template-columns: 1fr; }
  .slider { min-height: 540px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; }
  .slide-img { order: -1; }
  .slide-img::after { background: linear-gradient(0deg, var(--panel-2) 0%, transparent 60%); }
  .slide-copy { padding: 8px 22px 76px; gap: 10px; }
  .slider-ctrl { inset-inline-start: 22px; }
  .p-head { padding: 18px 18px 0; }
  .p-body { padding: 16px 18px 20px; }
  .days { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
  .day { padding: 10px 4px; }
  .day span { display: none; }
  .cal thead { display: none; }
  .cal tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cal td { padding: 0; border: 0; }
  .cal td.c-title { grid-column: 1 / -1; order: -1; font-weight: 600; }
  .cal td.c-hide { display: none; }
  .ch-card { padding: 22px; }
  .msg { max-width: 92%; }
  .msgs { padding: 18px; }
  .page-head { flex-direction: column; align-items: start; }
  .foot { flex-direction: column; align-items: start; gap: 14px; }
  .news-item { grid-template-columns: auto 1fr; }
  .news-item .when { grid-column: 2; }
}
