/* =========================================================
   THEME  (The Arabic Guide brand)
   maroon #992035 · green #005229 · cream #E9DFD8 · black #131313 · Poppins
   ========================================================= */
:root {
  --bg: #131313; --panel: #1a1a1a; --card: #1c1c1c; --card-2: #262423;
  --text: #E9DFD8; --muted: #9a918b; --line: #2e2b29; --hover: rgba(233,223,216,.06);
  --sb: #0d0d0d; --sb-text: #E9DFD8; --sb-label: #8a817b; --sb-active: rgba(153,32,53,.18);
  --accent: #992035; --accent-2: #b8324a; --green: #005229; --cream: #f3ece6; --input: #1f1d1c;
}
:root[data-theme="light"] {
  --bg: #f6f1ec; --panel: #ffffff; --card: #ffffff; --card-2: #f1e9e3;
  --text: #212327; --muted: #6b625d; --line: #e4dad3; --hover: rgba(0,0,0,.05); --input: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: "Poppins", system-ui, sans-serif; background: var(--bg); color: var(--text); }
h1, h2, h3, .page-title { font-family: "Poppins", sans-serif; }
.btn.primary:hover { background: var(--accent-2); }
.logo img { height: 34px; width: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
.ar { font-family: "Noto Naskh Arabic", serif; direction: rtl; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* =========================================================
   APP SHELL
   ========================================================= */
.app { display: flex; min-height: 100vh; }
.sb {
  width: 258px; flex-shrink: 0; background: var(--sb); color: var(--sb-text);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 0 6px 24px;
  transition: margin-left .25s ease; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent;
}
.app.collapsed .sb { margin-left: -258px; }
.sb-head { display: flex; align-items: center; gap: 30px; padding: 22px 16px 18px; position: sticky; top: 0; background: var(--sb); z-index: 2; }
.logo { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.logo svg { width: 34px; height: 22px; }
.logo .w { line-height: .85; }
.logo .w b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.logo .w small { font-size: 10px; letter-spacing: .12em; }
.sb-label { display: flex; align-items: center; gap: 10px; padding: 18px 12px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--sb-label); }
.sb-label::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.07); }
.nav { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 12px;
  font-size: 14px; font-weight: 500; position: relative; transition: background .15s, color .15s;
}
/* Each icon sits in its own small tile; the tile turns maroon on the open page. */
.nav a > svg.i:not(.chev), .nav a > .glyph { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.05); transition: background .15s, color .15s; }
.nav .glyph { display: grid; place-items: center; padding: 0; font-family: "Noto Naskh Arabic", serif; font-size: 18px; line-height: 1; flex-shrink: 0; }
.nav a:hover { background: rgba(255,255,255,.04); }
.nav a:hover > svg.i:not(.chev), .nav a:hover > .glyph { background: rgba(255,255,255,.1); }
.nav a.active { background: linear-gradient(90deg, rgba(153,32,53,.24), rgba(153,32,53,.03)); color: #fff; }
.nav a.active > svg.i:not(.chev), .nav a.active > .glyph { background: var(--accent); color: #fff; }
.nav a.active::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; }
.nav .dot { width: 9px; height: 9px; border-radius: 50%; background: #ef3b3b; margin: -20px 0 0 -18px; border: 2px solid var(--sb); flex-shrink: 0; }
.nav .chev { width: 14px; height: 14px; margin-left: auto; opacity: .6; transition: transform .2s; }
.nav a.active .chev { margin-left: 0; }
.nav .open > a .chev { transform: rotate(180deg); }
.sub { list-style: none; display: none; position: relative; margin: 2px 0 6px; padding-left: 36px; }
.sub::before { content: ""; position: absolute; left: 23px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,.1); }
.nav .open > .sub { display: block; }
.sub a { gap: 10px; padding: 6px 10px; font-size: 13.5px; font-weight: 500; color: #bdb2aa; border-radius: 10px; }
.sb-num { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; border: 1px solid rgba(255,255,255,.16); font-size: 11.5px; font-weight: 600; color: var(--sb-text); flex-shrink: 0; }
.sub a.active { background: none; color: #fff; }
.sub a.active::after { display: none; }
.sub a.active .sb-num { background: var(--accent); border-color: var(--accent); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 74px; display: flex; align-items: center; gap: 18px;
  padding: 0 0 0 0; background: var(--sb); color: #f1f5f6;
}
.burger { display: none; padding: 8px; color: #fff; margin-left: 10px; }
.tb-search {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07);
  border-radius: 999px; padding: 9px 16px; width: 300px; margin-left: 0;
}
.tb-search input { background: none; border: none; outline: none; color: #fff; width: 100%; font-size: 14px; }
.tb-search input::placeholder { color: #8a817b; }
.tb-links { display: flex; gap: 22px; white-space: nowrap; font-size: 13.5px; font-weight: 600; margin-left: auto; }
.tb-links a:hover { color: var(--accent); }
.tb-right { display: flex; align-items: center; gap: 14px; padding-right: 16px; border-left: 1px solid rgba(255,255,255,.08); padding-left: 14px; height: 100%; }
.theme-toggle { display: flex; gap: 4px; background: rgba(0,0,0,.25); border-radius: 999px; padding: 4px; }
.theme-toggle button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #8a817b; }
.theme-toggle button.on { background: rgba(255,255,255,.1); color: #f5b301; }
.theme-toggle svg.i { width: 16px; height: 16px; }
.bell { width: 48px; height: 48px; border-radius: 6px; background: #111; display: grid; place-items: center; position: relative; color: #fff; }
.bell .bdg { position: absolute; right: 12px; bottom: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #111; }
.notif-panel {
  position: absolute; top: 68px; right: 140px; width: 320px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35); padding: 8px; display: none; z-index: 40;
}
.notif-panel.show { display: block; }
.notif-panel h4 { font-size: 13px; padding: 8px 10px; color: var(--muted); }
.notif { display: flex; gap: 10px; padding: 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; }
.notif:hover { background: var(--hover); }
.notif i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.notif small { color: var(--muted); display: block; }
.user { text-align: right; line-height: 1.3; }
.user b { font-size: 14.5px; display: block; white-space: nowrap; }
.user button { font-size: 11px; color: #8a817b; }

#view { flex: 1; min-width: 0; }
.page { padding: 34px 36px 60px; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 26px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { border: 1px solid var(--line); }
.btn.light { background: #fff; color: #111; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--input); border: 1px solid var(--line); color: var(--text); border-radius: 8px;
  padding: 11px 12px; font-size: 14.5px; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0;
  background: #fff; color: #111; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: .25s; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.scrim { display: none; }

/* =========================================================
   HOME ROWS + THUMBNAILS
   ========================================================= */
.row { margin-bottom: 44px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.row-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.row-head a { font-size: 14px; font-weight: 600; color: var(--muted); }
.row-head a:hover { color: var(--accent); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 265px; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tile { scroll-snap-align: start; cursor: pointer; }
.tile .t-title { font-size: 13.5px; font-weight: 600; margin-top: 10px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile:hover .thumb { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.35); }

.thumb {
  aspect-ratio: 265 / 148; border-radius: 3px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s; background: #e9e6dc; color: #1b2326;
}
.thumb .dur {
  position: absolute; right: 8px; bottom: 10px; background: rgba(30,30,30,.82); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 4px 8px; border-radius: 4px; display: flex; gap: 5px; align-items: center;
}
.thumb .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.35); }
.thumb .pbar i { display: block; height: 100%; background: #8a8580; }
.th-top { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; justify-content: space-between; font-size: 7px; font-weight: 700; letter-spacing: .05em; }
.th-top .chip { border: 1px solid currentColor; padding: 1px 4px; border-radius: 2px; }

/* brand (red / green / teal) */
.t-brand { color: #fff; }
.t-brand.red { background: radial-gradient(circle at 70% 30%, #b8324a, #992035 60%); }
.t-brand.green { background: radial-gradient(circle at 70% 30%, #0a7a43, #005229 65%); }
.t-brand.teal { background: radial-gradient(circle at 70% 30%, #1f6b45, #00381c 65%); }
.t-brand.gold { background: radial-gradient(circle at 70% 30%, #d6a23a, #a8711b 65%); }
.t-brand .big-ar { position: absolute; inset: 22px 10px 36px; display: grid; place-items: center; font-family: "Reem Kufi", "Noto Naskh Arabic", serif; font-size: 36px; font-weight: 700; direction: rtl; line-height: 1.2; text-align: center; }
.t-brand .tag { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 8px; letter-spacing: .5em; font-weight: 700; opacity: .9; }
.t-brand .watermark { position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 14px 14px; }

/* sketch style */
.t-sketch { background: #efece4; display: grid; place-items: center; text-align: center; font-family: "Caveat Brush", cursive; }
.t-sketch .s1 { font-size: 30px; color: #005229; line-height: 1; border: 2px solid #005229; border-radius: 30px; padding: 4px 16px; transform: rotate(-2deg); display: inline-block; }
.t-sketch .s2 { font-family: "Inter", sans-serif; font-weight: 800; color: var(--accent); font-size: 21px; letter-spacing: -.02em; margin-top: 4px; }
.t-sketch .s3 { font-size: 28px; color: #005229; }

/* signpost */
.t-sign { background: #efece4; display: grid; place-items: center; }
.t-sign svg { width: 92px; height: 120px; }

/* soft */
.t-soft { background: linear-gradient(120deg, #c9cdd0, #e7d9d6 60%, #f1c2b4); color: #fff; display: grid; place-items: center; text-align: center; }
.t-soft small { display: block; font-size: 8px; opacity: .8; }
.t-soft b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.t-soft b span { font-weight: 400; }

/* live */
.t-live { background: #f4f2ec; }
.t-live .banner { position: absolute; top: 0; left: 0; right: 0; height: 58%; padding: 40px 14px 0; text-align: right; color: #fff; }
.t-live .banner small { display: block; font-size: 9px; font-weight: 700; }
.t-live .banner b { font-size: 17px; font-weight: 500; }
.t-live .g1 { background: radial-gradient(ellipse at 20% 20%, #b8324a, transparent 55%), linear-gradient(110deg, #c94a2a, #d47e4d 40%, #2b4a2f 75%, #1a3021); }
.t-live .g2 { background: radial-gradient(ellipse at 40% 10%, #f2a07a, transparent 60%), linear-gradient(110deg, #c7462a, #e4744e 45%, #7c3e2b 70%, #2a1d17); }
.t-live .g3 { background: radial-gradient(ellipse at 30% 30%, #2aa58f, transparent 60%), linear-gradient(110deg, #164f45, #1d6d5c 45%, #0f2c28); }
.t-live .badge-ic {
  position: absolute; left: 18px; top: 42%; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
}
.t-live .badge-ic.green { background: #005229; } .t-live .badge-ic.red { background: #992035; }
.t-live .pill { position: absolute; right: 14px; top: 58%; margin-top: 4px; background: #212327; color: #fff; font-size: 8px; font-weight: 700; padding: 4px 26px; border-radius: 99px; }
.t-live .when { position: absolute; left: 8px; bottom: 8px; background: rgba(40,40,40,.88); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 4px; display: flex; gap: 6px; align-items: center; }
.t-live .when i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* numbered semester */
.t-num { background: radial-gradient(circle at 50% 100%, #2a2a2a, #0e0e0e 70%); color: #fff; }
.t-num .n { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-size: 120px; font-weight: 800; line-height: 1; color: transparent; background: linear-gradient(180deg, #992035, rgba(153,32,53,.1)); -webkit-background-clip: text; background-clip: text; letter-spacing: -.05em; }
.t-num .lbl { position: absolute; left: 12px; top: 26px; font-size: 13px; font-weight: 700; max-width: 60%; line-height: 1.25; }

/* =========================================================
   PROGRAM HERO + WATCH
   ========================================================= */
.prog-hero { border-radius: 16px; padding: 40px 34px; margin-bottom: 40px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(120deg, #0e0e0e, #005229 55%, #992035); }
.prog-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.prog-hero p { max-width: 520px; margin-top: 8px; opacity: .85; line-height: 1.55; }
.prog-hero .ar-bg { position: absolute; right: 30px; bottom: -14px; font-family: "Reem Kufi", serif; font-size: 110px; opacity: .12; direction: rtl; }
.prog-hero .meta { display: flex; gap: 22px; margin-top: 18px; font-size: 13px; opacity: .9; }

.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
.player { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; position: relative; background: #000; }
.player .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; transform: none !important; }
.player .shade { position: absolute; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; }
.player .play { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.player .play svg { width: 30px; height: 30px; fill: #fff; stroke: none; }
.player .controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.player .seek { flex: 1; height: 5px; background: rgba(255,255,255,.3); border-radius: 9px; cursor: pointer; }
.player .seek i { display: block; height: 100%; background: var(--accent); border-radius: 9px; width: 0; }
.watch h1 { font-size: 22px; margin: 18px 0 6px; }
.watch .w-meta { color: var(--muted); font-size: 14px; }
.w-actions { display: flex; gap: 10px; margin: 16px 0 26px; flex-wrap: wrap; }
.w-actions .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.notes-box textarea { width: 100%; min-height: 90px; resize: vertical; }
.note { padding: 12px 14px; background: var(--card-2); border-radius: 10px; margin-top: 10px; font-size: 14px; line-height: 1.5; display: flex; gap: 12px; }
.note .ts { color: var(--accent); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.note .del { margin-left: auto; color: var(--muted); font-size: 12px; }
.upnext { position: sticky; top: 84px; align-self: start; }
.upnext h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; }
.upnext h3 small { font-size: 12px; font-weight: 500; color: var(--muted); }
/* the rest of the course scrolls inside the panel */
.upnext-list { max-height: calc(100vh - 150px); overflow-y: auto; padding-right: 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.upnext-list::-webkit-scrollbar { width: 6px; } .upnext-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.upnext .item { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-bottom: 14px; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.4; }
.upnext .item:hover { color: var(--accent); }
.upnext .item.on { background: var(--card); border-radius: 10px; padding: 6px; margin: 0 -6px 14px; box-shadow: inset 3px 0 0 var(--accent); }
.upnext .item .now { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.w-step { display: inline-flex; gap: 10px; margin-left: auto; }

/* playlists */
.pl-card { padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pl-card h3 { font-size: 16px; display: flex; justify-content: space-between; }
.pl-card .count { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.pl-items { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.pl-items a:hover { color: var(--accent); }

/* =========================================================
   COMMUNITY
   ========================================================= */
.v-com { display: grid; grid-template-columns: 280px minmax(0, 600px); gap: 18px; padding: 16px 20px 60px; }
.v-com.solo { grid-template-columns: minmax(0, 680px); justify-content: center; }
.com-empty { text-align: center; padding: 34px 20px; } .com-empty b { font-size: 16px; } .com-empty p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.v-com .post .avatar { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; }
.player.soon .shade span { padding: 10px 18px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; font-weight: 600; font-size: 14px; }
.cal-empty { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.notif-empty { padding: 14px 16px; color: var(--muted); font-size: 13.5px; }
.v-com .left { position: sticky; top: 90px; align-self: start; }
.v-com .search { display: flex; align-items: center; gap: 10px; background: #fff; color: #444; border-radius: 999px; padding: 9px 14px; margin-bottom: 14px; }
.v-com .search input { border: none; outline: none; background: none; width: 100%; font-size: 14px; color: #222; }
.v-com .cnav { list-style: none; }
.v-com .cnav a { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 6px; font-size: 14px; }
.v-com .cnav a:hover { background: var(--hover); }
.v-com .cnav a.active { background: var(--card-2); }
.v-com .cnav a.unread { font-weight: 700; }
.v-com .cdot { width: 7px; height: 7px; border-radius: 50%; background: #f04a2c; }
.v-com .cdot.ring { width: 10px; height: 10px; border: 2px solid #fff; background: #f97316; }
.v-com .emoji { width: 18px; text-align: center; }
.v-com .gt { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; padding: 12px 14px 4px; }
.v-com .gt svg { width: 12px; height: 12px; transition: transform .15s; }
.v-com .gt.collapsed svg { transform: rotate(-90deg); }
.v-com .feed { display: flex; flex-direction: column; gap: 12px; }
.v-com .card { background: var(--card); border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.v-com .composer input { width: 100%; padding: 11px 12px; border-radius: 4px; border: 1px solid #ddd; background: #fff; color: #222; font-size: 15px; outline: none; }
.v-com .cactions { display: flex; gap: 4px; margin-top: 18px; }
.v-com .chip { display: inline-flex; align-items: center; gap: 6px; background: #f2f2f2; color: #222; border-radius: 6px; padding: 7px 10px; font-size: 14px; font-weight: 500; }
.v-com .chip svg.i { width: 15px; height: 15px; }
.v-com .post-btn { margin-left: auto; background: var(--accent); color: #fff; display: none; }
.v-com .pinned-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; margin-bottom: 6px; }
.v-com .pinned-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-com .pinned-list a { background: #fff; color: #222; font-size: 14px; padding: 5px 8px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-com .sort { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 14px; padding: 22px 4px 4px; }
.v-com .sort select { background: transparent; color: var(--text); border: none; font-size: 14px; }
.v-com .sort option { color: #222; }
.v-com .post-head { display: flex; align-items: center; gap: 8px; }
.v-com .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #2c6e9e, #9fd3e8); flex-shrink: 0; }
.v-com .meta-date { font-size: 12px; color: var(--muted); }
.v-com .post-body { padding: 18px 8px 0; font-size: 16px; line-height: 1.55; max-height: 300px; overflow: hidden; }
.v-com .post-body.expanded { max-height: none; }
.v-com .post-body p { margin-bottom: 18px; }
.v-com .post-body .ar { font-size: 23px; text-align: right; line-height: 2; }
.v-com .post-body .ref { color: var(--muted); }
.v-com .show-more { color: var(--accent); font-size: 15px; padding: 4px 8px; }
.v-com .likes { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 14px 8px 0; }
.v-com .stack { display: flex; }
.v-com .stack span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--card); background: #d9c9a8; }
.v-com .stack span + span { margin-left: -8px; background: #8fa3a8; }
.v-com .post-actions { display: flex; justify-content: space-between; margin: 14px 8px 0; }
.v-com .round { width: 40px; height: 40px; border-radius: 50%; background: #f2f2f2; color: #222; display: grid; place-items: center; }
.v-com .round.liked { color: var(--accent); }
.v-com .round.liked svg { fill: var(--accent); }

/* Cards on the Mentorship page */
.exam-card { padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.exam-card .status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; align-self: flex-start; }
.status.open { background: rgba(34,197,94,.15); color: #22c55e; }
.status.done { background: rgba(154,154,154,.15); color: var(--muted); }
.status.locked { background: rgba(153,32,53,.12); color: var(--accent); }
.exam-card h3 { font-size: 17px; }
.exam-card p { font-size: 13.5px; color: var(--muted); }
.exam-card .btn { align-self: flex-start; margin-top: auto; }

/* =========================================================
   LEADERBOARD
   ========================================================= */
.v-lb { min-height: calc(100vh - 74px); color: #212327;
  background: linear-gradient(90deg, #992035 0 4%, transparent 4% 96%, #992035 96%), linear-gradient(180deg, #212327 0%, #6b6563 45%, #efe9e4 100%); }
.v-lb .lpage { max-width: 680px; margin: 0 auto; background: #efeee6; min-height: calc(100vh - 74px); padding: 0 40px 60px; }
.v-lb .tick { width: 1px; height: 46px; background: #212327; margin: 0 auto; position: relative; }
.v-lb .tick::after { content: ""; position: absolute; bottom: 0; left: -30px; width: 60px; height: 1px; background: #212327; }
.v-lb .tick.b { margin-top: 18px; }
.v-lb header { text-align: center; padding-top: 12px; }
.v-lb .month { background: none; border: none; font-weight: 700; font-size: 20px; color: #212327; appearance: none; padding-left: 18px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23212327'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 10px; background-position: left center; }
.v-lb h1 { color: #992035; font-size: 36px; font-weight: 800; margin: 2px 0 8px; }
.v-lb .toggle { display: inline-flex; border: 2px solid #212327; border-radius: 999px; padding: 2px; }
.v-lb .toggle button { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; color: #212327; }
.v-lb .toggle button.on { background: #212327; color: #fff; }
.v-lb .podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin-top: 40px; }
.v-lb .spot { text-align: center; display: flex; flex-direction: column; align-items: center; }
.v-lb .medal { width: 84px; height: 116px; margin-bottom: 10px; }
.v-lb .who { font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.v-lb .bar { width: 100%; border-radius: 8px 8px 0 0; color: #fff; padding-top: 22px; background: linear-gradient(180deg, #212327, #6b6563 55%, #efeee6); }
.v-lb .first .bar { background: linear-gradient(180deg, #992035, #d98a98 60%, #efeee6); height: 300px; }
.v-lb .second .bar { height: 260px; } .v-lb .third .bar { height: 220px; }
.v-lb .val { font-size: 36px; font-weight: 800; line-height: 1; }
.v-lb .unit { font-size: 15px; font-weight: 600; margin-top: 4px; }
.v-lb table { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 18px; }
.v-lb th { font-weight: 700; color: #8a8580; text-align: left; padding: 10px 0; }
.v-lb th.n { color: #d98a98; }
.v-lb th:last-child, .v-lb td:last-child { text-align: right; }
.v-lb th:first-child, .v-lb td:first-child { width: 70px; text-align: center; }
.v-lb td { padding: 11px 0; font-weight: 600; }
.v-lb td.n { color: #992035; }
.v-lb .flag { margin-left: 6px; }

/* =========================================================
   CALENDAR
   ========================================================= */
.v-cal { padding: 24px 28px 50px; }
.v-cal .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.v-cal .seg { display: inline-flex; background: #fff; padding: 3px; border-radius: 4px; gap: 3px; }
.v-cal .seg button { border: 1px solid transparent; background: #e9e9e9; color: #222; font-size: 15px; padding: 7px 14px; border-radius: 3px; }
.v-cal .seg button.on { background: #fff; border-color: #222; }
.v-cal .mnav { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 600; }
.v-cal .mnav span { border-bottom: 1px solid var(--muted); }
.v-cal .right { display: flex; align-items: center; gap: 12px; }
.v-cal .streak { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.v-cal .bolt { width: 36px; height: 36px; border-radius: 50%; background: #bbf7d0; display: grid; place-items: center; }
.v-cal .bolt svg { width: 20px; height: 20px; stroke: #22c55e; fill: none; stroke-width: 2; stroke-linejoin: round; }
.v-cal .streak b { display: block; font-size: 14px; }
.v-cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.v-cal .dow { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .05em; padding: 9px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.v-cal .day { min-height: 150px; padding: 12px 7px 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.v-cal .day.past { background: rgba(0,0,0,.12); }
.v-cal .day.other .num { opacity: .4; }
.v-cal .num { font-size: 14px; color: var(--muted); padding-left: 6px; margin-bottom: 10px; height: 26px; display: flex; align-items: center; }
.v-cal .today-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; margin-left: -6px; }
.v-cal .sline { height: 2px; width: 22px; background: #22c55e; }
.v-cal .stag { display: flex; align-items: center; gap: 3px; color: #22c55e; font-size: 12px; margin-left: 3px; white-space: nowrap; }
.v-cal .stag svg { width: 13px; height: 13px; stroke: #22c55e; fill: none; stroke-width: 2; }
.v-cal .ev { display: block; width: 100%; text-align: left; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; font-size: 11.5px; font-weight: 600; padding: 7px 8px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-cal .future .ev, .v-cal .is-today .ev { color: var(--text); border-color: var(--muted); background: var(--card-2); }
.v-cal .bottom { display: flex; justify-content: space-between; margin-top: 22px; }
.v-cal .list { display: none; }
.v-cal .list.show { display: block; }
.v-cal .lday { border-bottom: 1px solid var(--line); padding: 14px 4px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.v-cal .lday.past { opacity: .55; }
.v-cal .lday .d { color: var(--muted); font-size: 14px; }
.v-cal .litem { display: flex; gap: 14px; padding: 4px 0; font-size: 15px; }
.v-cal .litem .t { font-weight: 600; min-width: 90px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; place-items: center; padding: 16px; z-index: 60; }
.modal.show { display: grid; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; max-width: 400px; width: 100%; }
.modal-card h3 { margin-bottom: 6px; }
.modal-card p { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.modal-card .actions { display: flex; gap: 8px; margin-top: 18px; }

/* =========================================================
   GIFTS / MISC
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.plan { text-align: left; padding: 20px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); }
.plan.on { border-color: var(--accent); }
.plan b { font-size: 16px; display: block; }
.plan .price { font-size: 28px; font-weight: 800; margin: 8px 0 4px; }
.plan small { color: var(--muted); }
.gift-code { font-family: ui-monospace, monospace; font-size: 26px; letter-spacing: .15em; background: var(--card-2); padding: 16px; border-radius: 10px; text-align: center; margin: 14px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin-top: 10px; line-height: 1.6; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple th, table.simple td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
table.simple th { color: var(--muted); font-weight: 600; }
.req { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--card); }
.vote { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.vote.on { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   ACCOUNT
   ========================================================= */
.acc { max-width: 820px; }
.acc-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.acc-tabs a { padding: 6px 0 14px; font-size: 15px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.acc-tabs a:hover { color: var(--accent-2); }
.acc-tabs a.on { border-bottom-color: var(--accent); }
.acc-card { border: 1px solid var(--line); border-radius: 6px; padding: 18px 18px 22px; margin-bottom: 20px; background: var(--panel); }
.acc-card h3 { font-size: 17px; font-weight: 600; }
.acc-sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 18px; }
.acc-avatar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.acc-avatar .av { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pref b { font-size: 14.5px; font-weight: 600; display: block; }
.pref small { color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: 99px; transition: .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + i { background: var(--green); border-color: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); background: #fff; }
.buy, .device { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.buy > div, .device > div { flex: 1; min-width: 0; }
.buy b, .device b { display: block; font-size: 14.5px; font-weight: 600; }
.buy small, .device small { color: var(--muted); font-size: 13px; }
.mini-bar { height: 5px; background: var(--card-2); border-radius: 9px; margin-top: 8px; max-width: 320px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--accent); }
.device .dv { font-size: 24px; }
.bdgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bdg { text-align: center; padding: 18px 12px; border-radius: 10px; background: var(--card-2); position: relative; }
.bdg .bi { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle at 35% 30%, #c8485f, #992035); color: #fff; box-shadow: 0 0 0 4px rgba(153,32,53,.25); }
.bdg b { display: block; font-size: 13.5px; }
.bdg small { color: var(--muted); font-size: 12px; }
.bdg.locked { opacity: .45; }
.bdg.locked .bi { background: #3a3634; box-shadow: none; filter: grayscale(1); }
.bdg em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.ref-stats div { background: var(--card-2); border-radius: 10px; padding: 14px; text-align: center; }
.ref-stats b { font-size: 24px; color: var(--accent-2); display: block; }
.ref-stats small { color: var(--muted); font-size: 12.5px; }

/* =========================================================
   COURSES / TEACHER / BOOKS
   ========================================================= */
.pnum { width: 20px; height: 20px; border-radius: 5px; border: 1.6px solid currentColor; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.pnum.big { width: 46px; height: 46px; border-radius: 10px; font-size: 20px; border: none; background: var(--accent); color: #fff; }
.sb-tag { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--sb-label); }
.c-hero, .t-hero { display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: center; margin-bottom: 30px; }
.t-hero { grid-template-columns: 240px 1fr; }
.c-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: var(--card-2); }
.c-img img, .t-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-img-fb { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle at 30% 20%, #b8324a, #5e1120); color: #fff; }
.c-img-fb span { letter-spacing: .4em; font-size: 13px; } .c-img-fb b { font-size: 96px; line-height: 1; }
.t-photo { width: 240px; height: 240px; border-radius: 50%; overflow: hidden; border: 4px solid var(--accent); background: var(--card-2); }
.t-photo-fb { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; font-weight: 800; color: var(--accent-2); }
.c-level { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--green); padding: 4px 10px; border-radius: 99px; }
.c-info h1, .t-hero h1 { font-size: 32px; font-weight: 700; margin: 12px 0 4px; letter-spacing: -.01em; }
.c-sub { color: var(--muted); font-size: 16px; }
.c-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; max-width: 520px; }
.c-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.c-stats b { display: block; font-size: 18px; } .c-stats small { color: var(--muted); font-size: 12px; }
.c-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.c-price b { font-size: 30px; color: var(--accent-2); } .c-price s { color: var(--muted); } .c-price small { color: var(--muted); width: 100%; font-size: 13px; }
.c-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.c-note { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.c-grid h3 { font-size: 17px; margin-bottom: 14px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; font-size: 14.5px; line-height: 1.45; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; display: grid; place-items: center; }
.c-book { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.c-book a, .muted a { color: var(--accent-2); font-weight: 600; }
.muted { color: var(--muted); font-size: 14px; padding: 8px 0; }
.sections details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.sections summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.sections summary::after { content: "+"; color: var(--accent-2); } .sections details[open] summary::after { content: "−"; }
.lesson { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 14px; border-radius: 6px; }
.lesson:hover { background: var(--hover); color: var(--accent-2); }
.lesson span svg { width: 15px; height: 15px; } .lesson em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12.5px; }
.c-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.c-other { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s; }
.c-other:hover { border-color: var(--accent); }
.c-other b { display: block; font-size: 14.5px; } .c-other small { color: var(--muted); font-size: 12.5px; }
.bio p { line-height: 1.7; margin-bottom: 12px; font-size: 14.5px; }
.timeline { list-style: none; border-left: 2px solid var(--accent); padding-left: 18px; }
.timeline li { position: relative; padding-bottom: 16px; display: flex; flex-direction: column; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline b { color: var(--accent-2); }
.pk-banner { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(0,82,41,.15); border: 1px solid rgba(0,82,41,.5); margin-bottom: 24px; }
.pk-banner > span { font-size: 28px; } .pk-banner b { display: block; } .pk-banner small { color: var(--muted); font-size: 13px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-bottom: 26px; }
.book { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.b-cover { aspect-ratio: 3/4; background: var(--card-2); }
.b-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-fb { width: 100%; height: 100%; display: grid; place-items: center; padding: 14px; text-align: center; background: linear-gradient(160deg, #005229, #00381c); color: #fff; font-size: 22px; line-height: 1.6; }
.b-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.b-body b { font-size: 14.5px; } .b-ar { color: var(--muted); font-size: 15px; text-align: left; direction: rtl; }
.b-price { font-weight: 700; color: var(--accent-2); font-size: 16px; margin-bottom: 6px; }
.b-body .btn { margin-top: auto; justify-content: center; }
.qty { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 40px; height: 36px; font-size: 18px; background: var(--card-2); } .qty button:hover { background: var(--accent); color: #fff; }
.qty span { font-weight: 700; }
.order h3 { font-size: 17px; margin-bottom: 12px; }
.o-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.o-line.total { border-bottom: none; margin-bottom: 16px; color: var(--muted); } .o-line.total b { color: var(--text); font-size: 18px; }
@media (max-width: 1000px) { .c-hero, .t-hero, .c-grid { grid-template-columns: 1fr; } .t-photo { width: 160px; height: 160px; } }
@media (max-width: 760px) { .c-stats { grid-template-columns: repeat(2, 1fr); } .c-info h1, .t-hero h1 { font-size: 25px; } }

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.announce { display: block; background: var(--accent); color: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 26px; font-weight: 600; font-size: 14.5px; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.adm-nav { border-right: 1px solid var(--line); padding: 20px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 74px; height: calc(100vh - 74px); overflow-y: auto; background: var(--panel); }
.adm-nav > button { text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.adm-nav > button:hover { background: var(--hover); }
.adm-nav > button.on { background: var(--sb-active); color: var(--accent-2); font-weight: 600; }
.adm-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.adm-foot .btn { justify-content: center; }
.btn.pulse { box-shadow: 0 0 0 3px rgba(153,32,53,.35); }
.adm-body { padding: 26px 30px 60px; min-width: 0; }
.adm-title { font-size: 24px; margin-bottom: 16px; }
.adm-h { font-size: 16px; margin: 26px 0 10px; }
.adm-body .muted code, .adm-steps code { background: var(--card-2); padding: 1px 6px; border-radius: 4px; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.adm-card { text-align: left; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.adm-card:hover { border-color: var(--accent); }
.adm-card b { font-size: 26px; display: block; color: var(--accent-2); } .adm-card span { color: var(--muted); font-size: 13px; }
.adm-steps { padding-left: 20px; line-height: 1.9; font-size: 14.5px; margin: 10px 0; }
.ed-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.ed { border-collapse: collapse; width: 100%; font-size: 13px; }
.ed th { text-align: left; padding: 9px 8px; background: var(--card-2); color: var(--muted); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
.ed td { padding: 6px; border-top: 1px solid var(--line); vertical-align: top; }
.ed td.wide { min-width: 240px; }
.ed input:not([type=checkbox]), .ed select, .ed textarea, .adm-in { width: 100%; min-width: 90px; background: var(--input); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 13px; outline: none; }
.ed input:focus, .ed textarea:focus, .ed select:focus { border-color: var(--accent); }
.ed input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 8px; }
.ed-act { white-space: nowrap; }
.ed-act button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); margin-left: 4px; color: var(--muted); }
.ed-act button.armed { width: auto; padding: 0 8px; color: #fff; background: var(--accent); border-color: var(--accent); }
.ed-act button:hover { border-color: var(--accent); color: var(--accent-2); }
.field input[type=color] { height: 44px; padding: 4px; }
@media (max-width: 1000px) { .adm { grid-template-columns: 1fr; } .adm-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); } .adm-foot { flex-direction: row; margin: 8px 0 0; width: 100%; } .adm-body { padding: 20px 16px 50px; } }

/* =========================================================
   PUBLIC SITE  (homepage, course, teacher, books, log in)
   Serif headlines, warm charcoal, brand maroon accents.
   ========================================================= */
:root {
  --serif: "Fraunces", Georgia, serif; --fp-red: #d63d55; --fp-deep: #0f0d0d;
  --fp-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23992035' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M60 12l13 35 35 13-35 13-13 35-13-35-35-13 35-13z'/%3E%3Crect x='34' y='34' width='52' height='52' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='11'/%3E%3Cpath d='M0 0l20 20M120 0l-20 20M0 120l20-20M120 120l-20-20'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="light"] { --fp-deep: #ffffff; --fp-red: #a8253c; }
/* Visitors always get the dark look. */
body.public {
  --bg: #1b1717; --panel: #221d1d; --card: #231e1e; --card-2: #2c2525; --line: #372e2e;
  --text: #f3ebe5; --muted: #ab9f99; --hover: rgba(243,235,229,.06); --input: #211c1c;
  --fp-deep: #0f0d0d; --fp-red: #d63d55;
  background: var(--bg); color: var(--text);
}
.pub-nav { display: none; }
body.public .sb, body.public .topbar { display: none; }
body.public .pub-nav { display: flex; align-items: center; gap: 30px; padding: 14px clamp(16px, 4vw, 48px); position: sticky; top: 0; z-index: 30; background: rgba(27,23,23,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.pub-logo img { height: 40px; }
.pub-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.pub-links > a:hover { color: var(--text); }
.pub-mcta { display: none; }
.pub-cta { margin-left: auto; display: flex; gap: 10px; }
.pub-burger { display: none; margin-left: auto; padding: 8px; color: var(--text); }
.pub-burger svg { width: 24px; height: 24px; }

/* ---------- shared pieces ---------- */
.btn.fp-btn, .btn.fp-out { border-radius: 10px; padding: 12px 20px; font-size: 14.5px; }
.btn.primary.fp-btn { background: linear-gradient(180deg, #b32a42, var(--accent)); color: #fff; box-shadow: 0 10px 26px -12px rgba(153,32,53,.9), inset 0 1px 0 rgba(255,255,255,.16); }
.btn.primary.fp-btn:hover { background: linear-gradient(180deg, #c13550, #a8253c); }
.btn.fp-out { border: 1.5px solid rgba(184,50,74,.85); color: var(--text); background: rgba(153,32,53,.06); }
.btn.fp-out:hover { background: rgba(153,32,53,.18); }
.btn.fp-out svg, .btn.fp-btn svg { width: 16px; height: 16px; }
.btn.wide { width: 100%; justify-content: center; }
.btn.fp-btn.sm, .btn.fp-out.sm { padding: 8px 14px; font-size: 13px; }
.fp-pill { display: inline-flex; align-items: center; padding: 7px 16px; border: 1px solid rgba(184,50,74,.75); border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--text); background: rgba(153,32,53,.08); }
.fp-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 78px); line-height: 1.03; letter-spacing: -.02em; margin: 22px 0 20px; }
.fp-h1.sm { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
.fp-h1 em, .fp-h2 em { font-style: normal; color: var(--fp-red); }
.fp-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.01em; margin: 18px 0 14px; }
.fp-h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; margin-bottom: 18px; }
.fp-lead { color: var(--muted); font-size: 17px; line-height: 1.65; }
.fp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fp-cta.center { justify-content: center; }
.fp-link { color: var(--fp-red); font-weight: 600; font-size: 14.5px; }
.fp-link:hover { text-decoration: underline; }
.fp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.fp-narrow { max-width: 860px; }
.fp-sec { padding-top: 104px; scroll-margin-top: 60px; }
.fp-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.fp-head p { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.fp-head .btn { margin-top: 20px; }
.fp-mini { width: calc(265px * var(--k)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(10px * var(--k) + 2px); flex-shrink: 0; }
.fp-mini > .thumb { width: 265px; transform: scale(var(--k)); transform-origin: 0 0; border-radius: 0; }
.fp-check { width: 20px; height: 20px; color: var(--fp-red); stroke-width: 2.4; }
.fp-ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 10px 0 24px; }
.fp-ticks li { position: relative; padding-left: 30px; line-height: 1.55; font-size: 15px; }
.fp-ticks li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--fp-red); border-bottom: 2px solid var(--fp-red); transform: rotate(-45deg); }
.fp-ticks.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }

/* ---------- hero + device mockups ---------- */
.fp-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 48% 70% at 78% 52%, rgba(153,32,53,.30), transparent 70%), linear-gradient(180deg, #221c1c, var(--bg)); }
.fp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 76px clamp(16px, 4vw, 48px) 90px; }
.fp-hero-copy p { color: var(--muted); font-size: 17.5px; line-height: 1.7; max-width: 520px; margin-bottom: 32px; }
.fp-devices { position: relative; height: 420px; --ls: .5; --ps: .36; }
.fp-laptop { position: absolute; right: 54px; top: 18px; width: calc(1040px * var(--ls) + 20px); }
.fp-screen { height: calc(628px * var(--ls) + 24px); overflow: hidden; background: #0c0a0a; border: 10px solid #2b2b2e; border-bottom-width: 14px; border-radius: 16px 16px 4px 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85); }
.fp-base { position: relative; height: 16px; margin: 0 -40px; background: linear-gradient(#d4d4d8, #8d8d93); border-radius: 0 0 18px 18px; }
.fp-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 90px; height: 6px; transform: translateX(-50%); background: #9c9ca2; border-radius: 0 0 8px 8px; }
.fp-ui { width: 1040px; height: 628px; transform: scale(var(--ls)); transform-origin: 0 0; background: #131111; color: #eee; overflow: hidden; }
.fp-ui-top { display: flex; align-items: center; gap: 24px; height: 66px; padding: 0 28px; border-bottom: 1px solid #2a2424; }
.fp-ui-top b { font-size: 24px; font-weight: 700; color: #fff; } .fp-ui-top b span { color: var(--accent-2); }
.fp-ui-search { width: 340px; height: 38px; border-radius: 99px; background: #221d1d; }
.fp-ui-top i { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); }
.fp-ui-body { display: grid; grid-template-columns: 663px 1fr; gap: 26px; padding: 24px 28px; }
.fp-ui-player { position: relative; }
.fp-ui-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: rgba(153,32,53,.94); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.fp-ui-play svg { width: 32px; height: 32px; fill: #fff; stroke: none; margin-left: 4px; }
.fp-ui-title { font-size: 21px; font-weight: 600; margin-top: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-ui-bar { height: 6px; background: #2d2626; border-radius: 9px; margin-top: 14px; overflow: hidden; }
.fp-ui-bar i { display: block; height: 100%; background: var(--accent-2); }
.fp-ui-side small { display: block; font-size: 15px; color: #9b918b; margin-bottom: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.fp-ui-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; font-size: 15px; line-height: 1.35; }
.fp-ui-row span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fp-phone { position: absolute; right: 0; bottom: 0; width: calc(383px * var(--ps) + 12px); height: calc(800px * var(--ps) + 12px); overflow: hidden; background: #0c0a0a; border: 6px solid #2b2b2e; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.fp-phone .fp-ui { width: 383px; height: 800px; transform: scale(var(--ps)); padding: 54px 22px; }
.fp-ui-ph small { display: block; font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.fp-ui-card { margin-bottom: 26px; font-size: 19px; }
.fp-ui-card span { display: block; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-float { position: absolute; left: 0; top: 84%; display: flex; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(38,32,32,.92); border: 1px solid #443838; box-shadow: 0 20px 40px -16px rgba(0,0,0,.8); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fp-float span { padding: 7px 12px; border-radius: 8px; }
.fp-float span.on { background: var(--accent); color: #fff; }

/* ---------- proof band ---------- */
.fp-proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(rgba(24,20,20,.9), rgba(24,20,20,.9)), var(--fp-pattern) center / 120px; }
.fp-proof-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.fp-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.fp-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; white-space: nowrap; }
.fp-stats span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 130px; line-height: 1.4; }
.fp-rated { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.fp-quotes { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fp-quotes::-webkit-scrollbar { display: none; }
.fp-quote { flex: 0 0 min(100%, 440px); scroll-snap-align: start; background: var(--fp-deep); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.fp-quote p { line-height: 1.7; font-size: 15px; }
.fp-quote b { display: block; margin-top: 16px; font-size: 14.5px; } .fp-quote small { color: var(--muted); font-size: 13px; }
.fp-ayah { background: var(--fp-deep); border: 1px solid var(--line); border-radius: 18px; padding: 28px; text-align: center; }
.fp-ayah .ar { font-size: 30px; line-height: 2; }
.fp-ayah figcaption { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 6px; }
.fp-ayah figcaption span { display: block; color: var(--fp-red); font-weight: 600; font-size: 13px; margin-top: 6px; }

/* ---------- course cards ---------- */
.fp-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fp-cards3.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fp-ccard { position: relative; display: block; aspect-ratio: 4 / 4.4; border-radius: 20px; overflow: hidden; background: var(--card-2); isolation: isolate; }
.fp-ccard > img, .fp-ccard > .c-img-fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.fp-ccard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,8,12,0) 28%, rgba(70,10,24,.78) 64%, rgba(74,8,24,.97)); }
.fp-ccard:hover > img { transform: scale(1.05); }
.fp-ccard-ic { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.fp-ccard-ic svg { width: 16px; height: 16px; }
.fp-ccard-in { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: #fff; }
.fp-ccard-in small { font-size: 13px; font-weight: 600; color: #f3d9de; }
.fp-ccard-in b { display: block; font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.15; margin: 6px 0 10px; }
.fp-ccard-in span { font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------- why us ---------- */
.fp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fp-wcard { text-align: center; }
.fp-wcard h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; margin-bottom: 10px; }
.fp-wcard p { color: var(--muted); line-height: 1.65; font-size: 15px; max-width: 330px; margin: 0 auto; }
.fp-vis { position: relative; height: 220px; margin-bottom: 24px; padding: 20px; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, rgba(153,32,53,.28), transparent 60%), var(--fp-deep); border: 1px solid var(--line); display: grid; place-items: center; }
.fp-vis-path { align-content: center; text-align: left; place-items: stretch; }
.fp-vis-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 14px; } .fp-vis-top span { color: var(--muted); }
.fp-vis-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fp-vis-step { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #1a1616; font-size: 11px; color: #ddd; }
.fp-vis-step .fp-mini { width: 100%; border-radius: 0; }
.fp-vis-step span { display: block; padding: 7px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-vis-step.on { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(153,32,53,.3); }
.fp-vis-step.done::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; display: grid; place-items: center; }
.fp-vis-teacher { align-content: center; gap: 16px; }
.fp-vis-photo { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--fp-deep), 0 0 0 6px var(--accent); }
.fp-vis-photo img, .fp-duo-photo img, .fp-tphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-vis-chips { display: flex; gap: 8px; }
.fp-vis-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; border: 1px solid var(--line); background: #1a1616; color: #ddd; }
.fp-vis-chips span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fp-vis-chips svg { width: 12px; height: 12px; }
.fp-vis-stack { align-content: center; gap: 12px; }
.fp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; color: #eee; background: #1f1a1a; border: 1px solid rgba(184,50,74,.8); box-shadow: 0 12px 24px -12px rgba(0,0,0,.7); }
.fp-chip:nth-child(2) { transform: translateX(22px); } .fp-chip:nth-child(3) { transform: translateX(-14px); }
.fp-chip svg { width: 16px; height: 16px; color: var(--fp-red); }

/* ---------- programs band ---------- */
.fp-band { position: relative; overflow: hidden; margin-top: 104px; padding: 84px 0; scroll-margin-top: 60px; background: radial-gradient(ellipse 55% 60% at 85% 0%, rgba(153,32,53,.28), transparent 70%), linear-gradient(180deg, #120f13, #1f1416); }
.fp-band::before { content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background-image: radial-gradient(1px 1px at 8% 18%, #fff, transparent), radial-gradient(1px 1px at 22% 62%, #fff, transparent), radial-gradient(1.5px 1.5px at 38% 12%, #fff, transparent), radial-gradient(1px 1px at 55% 40%, #fff, transparent), radial-gradient(1px 1px at 68% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 81% 30%, #fff, transparent), radial-gradient(1px 1px at 92% 55%, #fff, transparent), radial-gradient(1px 1px at 47% 78%, #fff, transparent), radial-gradient(1px 1px at 14% 88%, #fff, transparent); }
.fp-band .fp-wrap { position: relative; }
.fp-tabs { display: flex; gap: 10px 34px; flex-wrap: wrap; margin-bottom: 20px; }
.fp-tab { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; font-family: var(--serif); font-size: clamp(22px, 2.5vw, 32px); color: rgba(243,235,229,.32); transition: color .2s; }
.fp-tab:hover, .fp-tab.on { color: #f3ebe5; }
.fp-tab.on .fp-ic { color: var(--fp-red); }
.fp-ic svg { width: 28px; height: 28px; } .fp-ic .ar { font-size: 30px; line-height: 1; }
.fp-prog-desc { color: #b4a8a2; max-width: 540px; line-height: 1.65; margin-bottom: 38px; }
.fp-rail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #f3ebe5; }
.fp-rail-head h3 { font-size: 20px; font-weight: 600; }
.fp-arrows { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.fp-arrows button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #f3ebe5; font-size: 22px; line-height: 1; }
.fp-arrows button:hover { border-color: #fff; }
.fp-band .btn.fp-out { color: #f3ebe5; }
.fp-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.fp-rail::-webkit-scrollbar { display: none; }
.fp-lcard { scroll-snap-align: start; display: flex; flex-direction: column; text-align: left; border-radius: 16px; overflow: hidden; color: #fff; transition: transform .2s; }
.fp-lcard:hover { transform: translateY(-4px); }
.fp-lcard .thumb { border-radius: 0; }
.fp-lcard-in { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: linear-gradient(180deg, #5c1324, #3d0b17); }
.fp-lcard-in b { font-size: 15px; line-height: 1.4; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-lmeta { display: flex; gap: 14px; font-size: 13px; color: rgba(255,255,255,.8); }
.fp-lmeta span { display: inline-flex; align-items: center; gap: 6px; } .fp-lmeta svg { width: 13px; height: 13px; }
.fp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.fp-tags span { font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); }

/* ---------- pricing ---------- */
.fp-price-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: 52px; align-items: start; }
.fp-plans { overflow-x: auto; }
.fp-plan-tbl { min-width: 600px; background: var(--fp-deep); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.fp-plan-row { display: grid; grid-template-columns: 1.3fr repeat(var(--n), 1fr); border-bottom: 1px solid var(--line); }
.fp-plan-row > * { padding: 16px 18px; font-size: 14.5px; display: flex; align-items: center; }
.fp-plan-row > div { justify-content: center; text-align: center; }
.fp-plan-row > div:nth-child(2) { background: rgba(153,32,53,.12); }
.fp-plan-head > div { flex-direction: column; gap: 3px; padding: 24px 12px; }
.fp-plan-head small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.fp-plan-head b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.fp-plan-head strong { font-size: 22px; margin-top: 8px; }
.fp-plan-head s { color: var(--muted); font-size: 13px; }
.fp-plan-head em { font-style: normal; color: var(--muted); font-size: 12px; line-height: 1.4; }
.fp-plan-head .fp-badge { font-size: 11px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 99px; padding: 3px 10px; margin-bottom: 6px; }
.fp-plan-foot { border-bottom: none; }

/* ---------- teacher + books, faq, final call ---------- */
.fp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fp-duo-card { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; padding: 28px; border-radius: 20px; background: var(--fp-deep); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.fp-duo-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.fp-duo-card .fp-h3 { margin: 14px 0 10px; }
.fp-duo-card p { color: var(--muted); line-height: 1.6; font-size: 14.5px; margin-bottom: 14px; }
.fp-duo-photo { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--fp-deep), 0 0 0 6px var(--accent); }
.fp-duo-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fp-duo-books .b-cover { border-radius: 6px; overflow: hidden; }
.fp-faq { display: flex; flex-direction: column; gap: 12px; }
.fp-faq details { background: var(--fp-deep); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.fp-faq details[open] { border-color: rgba(184,50,74,.55); }
.fp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 15.5px; }
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary svg { width: 20px; height: 20px; color: var(--fp-red); transition: transform .2s; }
.fp-faq details[open] summary svg { transform: rotate(180deg); }
.fp-faq details > p { color: var(--muted); line-height: 1.7; padding-bottom: 20px; margin-top: -4px; }
.fp-lessons { padding-bottom: 14px; margin-top: -6px; }
.fp-faq summary .fp-sec-n { margin-left: auto; margin-right: 12px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.fp-final { margin-top: 110px; padding: 100px 0 84px; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(153,32,53,.38), transparent 70%), linear-gradient(rgba(27,23,23,.86), rgba(27,23,23,.86)), var(--fp-pattern) center / 120px; }
.fp-final p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; line-height: 1.65; font-size: 16.5px; }
.fp-final-stats { display: flex; justify-content: center; gap: clamp(28px, 6vw, 84px); flex-wrap: wrap; margin-top: 64px; }
.fp-final-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 42px; }
.fp-final-stats span { color: var(--muted); font-size: 14px; }
.fp-foot { border-top: 1px solid var(--line); background: #141111; }
.fp-page + .fp-foot { margin-top: 30px; }
.fp-foot-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 40px) 40px; }
.fp-foot-brand img { height: 40px; }
.fp-foot-brand p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 16px 0 18px; max-width: 280px; }
.fp-foot h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.fp-foot-col a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; }
.fp-foot-col a:hover { color: var(--text); }
.fp-foot-bar { border-top: 1px solid var(--line); padding: 20px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- course, teacher, books pages ---------- */
.fp-page { width: 100%; max-width: 1240px; margin: 0 auto; }
.fp-course { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "hero buy" "body buy"; gap: 0 48px; margin-bottom: 24px; }
.fp-chero { grid-area: hero; padding: 6px 0 46px; }
.fp-cbody { grid-area: body; }
.fp-crumb { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.fp-crumb:hover { color: var(--text); }
.fp-cstats { display: flex; gap: 36px; flex-wrap: wrap; margin: 30px 0; }
.fp-cstats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.fp-cstats span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.fp-buy { grid-area: buy; align-self: start; position: sticky; top: 90px; overflow: hidden; background: var(--fp-deep); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.fp-buy-img { aspect-ratio: 16 / 10; background: var(--card-2); }
.fp-buy-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-buy-in { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.fp-buy-price { display: flex; align-items: baseline; gap: 10px; }
.fp-buy-price b { font-family: var(--serif); font-weight: 500; font-size: 38px; }
.fp-buy-price s { color: var(--muted); }
.fp-buy-in > small { color: var(--muted); margin-top: -8px; }
.fp-buy-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.fp-buy-list li::before { content: "•"; color: var(--fp-red); margin-right: 8px; }
.fp-block { margin-bottom: 52px; }
.fp-thero { display: grid; grid-template-columns: 260px 1fr; gap: 52px; align-items: center; padding: 10px 0 60px; }
.fp-tphoto { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--accent), 0 30px 70px -20px rgba(153,32,53,.6); }
.fp-tgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; }
.fp-bio p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; font-size: 15.5px; }
.fp-timeline { list-style: none; position: relative; padding-left: 26px; border-left: 1px solid var(--line); margin-left: 6px; }
.fp-timeline li { position: relative; padding-bottom: 22px; }
.fp-timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fp-red); }
.fp-timeline b { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--fp-red); }
.fp-timeline span { color: var(--muted); font-size: 14.5px; }
.fp-phead { max-width: 720px; padding: 6px 0 30px; }
.books .book { border-radius: 16px; transition: transform .2s, border-color .2s; }
.books .book:hover { transform: translateY(-4px); border-color: var(--accent); }

/* ---------- log in / sign up ---------- */
.auth { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 16px; }
.fp-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); place-items: stretch; padding: 0; }
.fp-auth-art { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 64px clamp(24px, 5vw, 80px); border-right: 1px solid var(--line); background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(153,32,53,.32), transparent 70%), linear-gradient(rgba(22,18,18,.88), rgba(22,18,18,.88)), var(--fp-pattern) center / 120px; }
.fp-auth-art .fp-h2 { max-width: 540px; }
.fp-auth-art .fp-ayah { max-width: 540px; margin: 8px 0 28px; text-align: left; }
.fp-auth-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 540px; }
.fp-auth-courses div { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.fp-auth-courses img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-auth-courses span { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.6); font-size: 12px; font-weight: 600; color: #fff; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.fp-auth .auth-card { align-self: center; justify-self: center; margin: 40px 24px; background: var(--fp-deep); border-radius: 20px; padding: 34px 30px; }
.auth-back { font-size: 13px; color: var(--muted); } .auth-back:hover { color: var(--fp-red); }
.auth-card h1 { font-size: 26px; margin: 14px 0 4px; } .auth-card .page-sub { margin-bottom: 18px; }
.fp-auth .auth-card h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-2); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.auth-tabs a { text-align: center; padding: 9px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.auth-tabs a.on { background: var(--accent); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.google { width: 100%; justify-content: center; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pw { display: flex; position: relative; } .pw input { flex: 1; padding-right: 60px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 600; color: var(--fp-red); }
.auth-row { display: flex; justify-content: space-between; font-size: 13px; margin: -4px 0 12px; color: var(--muted); }
.auth-row a { color: var(--fp-red); font-weight: 600; } .auth-row input { accent-color: var(--accent); }
.auth-err { color: #ef4b62; font-size: 13.5px; min-height: 18px; margin-bottom: 8px; }
.auth-submit { width: 100%; justify-content: center; padding: 12px; }
.auth-demo { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .fp-hero-in { grid-template-columns: 1fr; padding-top: 56px; }
  .fp-devices { width: 100%; max-width: 640px; margin: 0 auto; }
  .fp-proof-in, .fp-price-grid { grid-template-columns: 1fr; }
  .fp-foot-in { grid-template-columns: repeat(4, 1fr); } .fp-foot-brand { grid-column: 1 / -1; }
  .fp-course { grid-template-columns: 1fr; grid-template-areas: "hero" "buy" "body"; }
  .fp-buy { position: static; max-width: 520px; margin-bottom: 48px; }
  .fp-tgrid, .fp-duo { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .pub-links, .pub-cta { display: none; }
  .pub-burger { display: block; }
  #pubNav.open .pub-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 16px 20px; background: #1b1717; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  #pubNav.open .pub-links > a { padding: 13px 4px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  #pubNav.open .pub-mcta { display: flex; gap: 10px; margin-top: 16px; } .pub-mcta .btn { flex: 1; justify-content: center; }
  .fp-auth { grid-template-columns: 1fr; } .fp-auth-art { display: none; }
}
@media (max-width: 760px) {
  body.public .pub-nav { padding: 12px 16px; } .pub-logo img { height: 32px; }
  .fp-sec { padding-top: 76px; } .fp-band { margin-top: 76px; padding: 60px 0; } .fp-final { margin-top: 80px; padding: 72px 0 60px; }
  .fp-hero-in { padding: 40px 16px 56px; }
  .fp-devices { height: 270px; --ls: .3; --ps: .25; }
  .fp-laptop { right: auto; left: 22px; top: 6px; } .fp-base { margin: 0 -22px; height: 11px; }
  .fp-screen { border-width: 6px; border-bottom-width: 9px; border-radius: 10px 10px 3px 3px; height: calc(628px * var(--ls) + 15px); }
  .fp-laptop { width: calc(1040px * var(--ls) + 12px); }
  .fp-float { top: auto; bottom: 0; left: 0; font-size: 11px; } .fp-float span { padding: 5px 8px; }
  .fp-cards3, .fp-why { grid-template-columns: 1fr; } .fp-ccard { aspect-ratio: 16 / 12; }
  .fp-ticks.two { grid-template-columns: 1fr; }
  .fp-stats { gap: 28px; } .fp-stats b { font-size: 40px; }
  .fp-thero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .fp-thero .fp-cta, .fp-thero .fp-cstats { justify-content: center; }
  .fp-tphoto { width: 190px; height: 190px; }
  .fp-duo-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px; }
  .fp-foot-in { grid-template-columns: 1fr 1fr; }
  .fp-cstats { gap: 24px; } .fp-cstats b { font-size: 28px; }
  .fp-plan-tbl { min-width: 520px; } .fp-plan-row { grid-template-columns: 104px repeat(var(--n), 1fr); }
  .fp-plan-row > * { padding: 12px 8px; font-size: 13px; } .fp-plan-head b, .fp-plan-head strong { font-size: 18px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
.sb-acct { display: none; }
@media (max-width: 1380px) { .sb-acct { display: block; } .tb-links { display: none; } .tb-search { margin-left: 0; } .tb-right { margin-left: auto; } }
@media (max-width: 1000px) {
  .sb { position: fixed; left: 0; top: 0; z-index: 50; margin-left: -258px; }
  .app.mobile-open .sb { margin-left: 0; }
  .app.mobile-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 45; }
  .burger { display: block; }
  .watch { grid-template-columns: 1fr; }
  .upnext { position: static; } .upnext-list { max-height: 460px; }
  .v-com { grid-template-columns: 1fr; }
  .v-com .left { position: static; }
}
@media (max-width: 760px) {
  .page { padding: 24px 16px 50px; }
  .tb-search { width: auto; flex: 1; }
  .user, .theme-toggle { display: none; }
  .tb-right { border: none; padding-left: 0; }
  .notif-panel { right: 12px; left: 12px; width: auto; }
  .rail { grid-auto-columns: 78%; }
  .v-cal { padding: 18px 16px 40px; }
  .v-cal .grid, .v-cal .seg { display: none; }
  .v-cal .list { display: block; }
  .v-lb .lpage { padding: 0 16px 40px; }
  .v-lb .val { font-size: 22px; } .v-lb .medal { width: 58px; height: 80px; }
  .v-lb .who { font-size: 12px; } .v-lb table { font-size: 15px; }
  .v-com .pinned-list, .two-col { grid-template-columns: 1fr; }
  .prog-hero { padding: 28px 20px; }
}
