/* ======================================================================
   زهرا غریبیان — مولوی‌پژوه و حافظ‌شناس
   Design System  ·  Persian turquoise + saffron (tilework / tazhib)
   Storefront palette — registered in Webcasting as a theme preset.
   ====================================================================== */

:root {
  /* ---- Turquoise (firouzeh) ramp ---- */
  --tq-50:  #e9f7f6;
  --tq-100: #c8ebe9;
  --tq-200: #93d6d3;
  --tq-300: #5cbcb8;
  --tq-400: #2fa19c;
  --tq-500: #138781;
  --tq-600: #0c6f6a;
  --tq-700: #0a5854;
  --tq-800: #084541;
  --tq-900: #06302d;

  /* ---- Saffron (zaferan) / illumination gold ---- */
  --sf-300: #f2c96a;
  --sf-400: #e6ad3c;
  --sf-500: #cf8f1c;
  --sf-600: #a66e12;

  /* ---- Lapis accent (manuscript blue, used sparingly) ---- */
  --lapis: #2a4a8c;

  /* ---- Paper neutrals ---- */
  --ivory:     #fbf6ec;
  --cream:     #f4ead2;
  --parchment: #ece0c2;
  --ink:       #14272c;
  --ink-deep:  #0a1b20;

  /* ---- Semantic — LIGHT theme ---- */
  --bg:          #fbf7ee;
  --bg-soft:     #f5ecd9;
  --bg-elev:     #ffffff;
  --bg-tint:     #f0f6f4;
  --fg:          #182a30;
  --fg-muted:    #566970;
  --fg-soft:     #84939a;
  --accent:      var(--tq-500);
  --accent-deep: var(--tq-700);
  --accent-soft: #d9efed;
  --gold:        var(--sf-500);
  --gold-bright: var(--sf-400);
  --gold-soft:   #f6e2b0;
  --border:      rgba(10, 88, 84, 0.16);
  --border-soft: rgba(10, 88, 84, 0.09);
  --line-pattern: rgba(18, 135, 129, 0.07);

  --shadow-sm: 0 1px 2px rgba(8,69,65,.06), 0 2px 8px rgba(8,69,65,.05);
  --shadow-md: 0 8px 22px rgba(8,69,65,.10), 0 16px 44px rgba(8,69,65,.07);
  --shadow-lg: 0 24px 60px rgba(8,69,65,.20);
  --glow-gold: 0 6px 22px rgba(207,143,28,.26);
  --glow-tq:   0 6px 22px rgba(19,135,129,.28);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --gutter:    clamp(16px, 4vw, 40px);
  --maxw:      1280px;
  --header-h:  72px;

  --font-body:    'Vazirmatn', system-ui, sans-serif;
  --font-display: 'Vazirmatn', system-ui, sans-serif;
  --font-poem:    'Vazirmatn', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:          #061a1d;
  --bg-soft:     #0a2528;
  --bg-elev:     #0e2e31;
  --bg-tint:     #0a2a2c;
  --fg:          #ece3cd;
  --fg-muted:    #a6b4b3;
  --fg-soft:     #738584;
  --accent:      #46c3bd;
  --accent-deep: #79dad4;
  --accent-soft: rgba(70,195,189,.13);
  --gold:        #ecb850;
  --gold-bright: #f3c869;
  --gold-soft:   rgba(236,184,80,.16);
  --border:      rgba(168, 220, 216, 0.14);
  --border-soft: rgba(168, 220, 216, 0.07);
  --line-pattern: rgba(120, 218, 212, 0.06);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.46), 0 18px 48px rgba(0,0,0,.36);
  --shadow-lg: 0 26px 64px rgba(0,0,0,.56);
  --glow-gold: 0 6px 24px rgba(236,184,80,.22);
  --glow-tq:   0 6px 24px rgba(70,195,189,.26);
}

/* ======================================================================
   Base
   ====================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s ease, color .5s ease;
}

/* faint geometric tile wash behind everything */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
  background-image: var(--bg-grad, none);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'><g fill='none' stroke='%23138781' stroke-width='0.6' opacity='0.16'><path d='M42 6 L54 18 L54 34 L42 46 L30 34 L30 18 Z'/><path d='M42 38 L54 50 L54 66 L42 78 L30 66 L30 50 Z'/><circle cx='42' cy='26' r='2'/><circle cx='42' cy='58' r='2'/></g></svg>");
  background-size: 168px 168px;
}
[data-theme="dark"] body::after { opacity: .3; }

::selection { background: var(--accent); color: var(--ivory); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* numeric helper */
.tnum { font-variant-numeric: tabular-nums; }

/* ======================================================================
   Layout helpers
   ====================================================================== */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-sub { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(to left, var(--accent), transparent);
}
.eyebrow::after { background: linear-gradient(to right, var(--accent), transparent); }
.eyebrow .gem { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800; line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--fg);
}
.section-title .hl {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  margin-top: 12px; max-width: 620px;
  color: var(--fg-muted); font-size: clamp(14px, 1.4vw, 17px);
}
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.all-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 700; font-size: 14px;
  border-bottom: 1px dashed var(--accent); padding-bottom: 2px;
  transition: gap .2s, color .2s;
}
.all-link:hover { gap: 11px; color: var(--accent-deep); }
.all-link svg { width: 15px; height: 15px; }

/* ======================================================================
   Buttons
   ====================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: transform .15s, box-shadow .25s, background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn-lg { padding: 14px 30px; font-size: 15.5px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--ivory); box-shadow: var(--glow-tq);
}
[data-theme="dark"] .btn-primary { color: var(--ink-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(19,135,129,.4); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink-deep); box-shadow: var(--glow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(207,143,28,.4); }

.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-soft { background: var(--accent-soft); color: var(--accent-deep); }
[data-theme="dark"] .btn-soft { color: var(--accent-deep); }
.btn-soft:hover { background: var(--accent); color: var(--ivory); }
[data-theme="dark"] .btn-soft:hover { color: var(--ink-deep); }

.btn-ghost { background: transparent; color: var(--fg-muted); }
.btn-ghost:hover { color: var(--accent); background: var(--accent-soft); }

/* small pill badge */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 100px;
  font-size: 11.5px; font-weight: 700; line-height: 1.4;
}
.pill-tq   { background: var(--accent-soft); color: var(--accent-deep); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-free { background: rgba(35,170,90,.14); color: #1f9d56; }
.pill-live { background: rgba(226,75,74,.14); color: #d8453f; }
[data-theme="dark"] .pill-gold { color: var(--gold-bright); }

/* ======================================================================
   Top bar
   ====================================================================== */
.topbar {
  background: linear-gradient(90deg, var(--tq-700), var(--tq-500));
  color: var(--cream); font-size: 12.5px; position: relative; overflow: hidden;
}
[data-theme="dark"] .topbar { background: linear-gradient(90deg, var(--tq-900), var(--tq-700)); }
.topbar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><g fill='none' stroke='%23fbf6ec' stroke-width='0.4' opacity='0.16'><path d='M20 2 L26 8 L26 16 L20 22 L14 16 L14 8 Z'/></g></svg>");
  background-size: 78px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 8px; position: relative; z-index: 1;
}
.topbar-quote {
  font-family: var(--font-poem); font-size: 14px; opacity: .96;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-quote .by { opacity: .68; font-size: 11px; margin-inline-start: 8px; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { display: inline-flex; align-items: center; gap: 5px; opacity: .9; transition: opacity .2s; }
.topbar-links a:hover { opacity: 1; }
.topbar-links svg { width: 13px; height: 13px; }
@media (max-width: 760px){ .topbar-quote{ font-size: 12px; } .topbar-phone{ display: none; } }

/* ======================================================================
   Header / nav
   ====================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .25s, background-color .5s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--ivory); box-shadow: var(--glow-tq); position: relative;
}
.logo-mark svg { width: 27px; height: 27px; }
.logo-mark::after {
  content: ''; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.3);
  border-radius: 11px;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--fg); }
.logo-text small {
  display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500;
  color: var(--fg-muted); letter-spacing: .02em; margin-top: 1px;
}

.nav-links { display: flex; gap: 2px; align-items: center; list-style: none; }
.nav-links a {
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--fg-muted);
  transition: color .2s, background-color .2s; position: relative;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-sm);
  color: var(--fg); transition: background .2s, color .2s; position: relative;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-toggle { width: auto; padding: 0 12px; gap: 6px; font-weight: 700; font-size: 12.5px; }
.lang-toggle svg { width: 17px; height: 17px; }
.cart-badge {
  position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 3px;
  background: var(--gold); color: var(--ink-deep);
  font-size: 10px; font-weight: 800; border-radius: 100px;
  display: grid; place-items: center;
}

.menu-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .nav-hide-sm { display: none; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .scrim { position: absolute; inset: 0; background: rgba(6,20,24,.55); backdrop-filter: blur(4px); }
.mobile-panel {
  position: absolute; top: 0; inset-inline-start: auto; inset-inline-end: 0;
  width: min(320px, 84vw); height: 100%; background: var(--bg-elev);
  padding: 26px 22px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-panel ul { list-style: none; margin: 18px 0; }
.mobile-panel li { border-bottom: 1px solid var(--border-soft); }
.mobile-panel li a { display: block; padding: 13px 4px; font-weight: 600; color: var(--fg); }
.mobile-panel li a:hover { color: var(--accent); }
.mobile-top { display: flex; align-items: center; justify-content: space-between; }

/* ======================================================================
   Hero
   ====================================================================== */
.hero { padding-block: clamp(40px, 6vw, 76px) clamp(48px, 7vw, 92px); position: relative; overflow: hidden; }
.hero-grad {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 52%),
    radial-gradient(circle at 12% 86%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 48%);
}
.hero-inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 940px){ .hero-inner{ grid-template-columns: 1fr; text-align: center; } }

.bismillah {
  font-family: var(--font-poem); font-size: clamp(20px, 2.4vw, 27px);
  color: var(--accent); margin-bottom: 18px;
  animation: fadeUp .7s ease both;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.16; letter-spacing: -.015em;
  color: var(--fg); margin-bottom: 16px;
  animation: fadeUp .7s ease .08s both;
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-role {
  font-size: clamp(15px, 1.6vw, 19px); color: var(--fg-muted); max-width: 560px; margin-bottom: 24px;
  animation: fadeUp .7s ease .16s both;
}
@media (max-width: 940px){ .hero-role{ margin-inline: auto; } }
.hero-role strong { color: var(--fg); font-weight: 700; }

.hero-poem {
  border-inline-start: 3px solid var(--gold); padding-inline-start: 18px; margin-bottom: 30px;
  font-family: var(--font-poem); font-size: clamp(15px, 1.6vw, 19px); line-height: 2.1; color: var(--fg);
  max-width: 520px; animation: fadeUp .7s ease .24s both;
}
@media (max-width: 940px){ .hero-poem{ margin-inline: auto; text-align: right; } }
.hero-poem .poet { display: block; font-family: var(--font-body); font-size: 13px; color: var(--fg-soft); margin-top: 6px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .7s ease .32s both; }
@media (max-width: 940px){ .hero-ctas{ justify-content: center; } }

/* portrait */
.hero-portrait-wrap { position: relative; display: grid; place-items: center; animation: fadeUp .8s ease .22s both; }
.portrait {
  width: min(400px, 100%); aspect-ratio: 4/5; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--tq-500), var(--tq-800));
  box-shadow: var(--shadow-lg); z-index: 2;
}
.portrait::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64'><g fill='none' stroke='%23fbf6ec' stroke-width='0.5' opacity='0.22'><path d='M32 4 L46 18 L46 36 L32 50 L18 36 L18 18 Z'/><path d='M32 34 L46 48 L46 66 L32 80 L18 66 L18 48 Z'/></g></svg>");
}
.portrait .ph-label {
  position: absolute; inset-inline: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: rgba(6,20,24,.4); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  padding: 8px 12px; color: var(--ivory); font-size: 12px; font-weight: 600;
}
.portrait .ph-figure {
  position: absolute; inset: 14% 16% 0 16%; color: rgba(251,246,236,.85);
  display: grid; place-items: end center;
}
.portrait .ph-figure svg { width: 78%; align-self: center; opacity: .9; }

.hero-ring { position: absolute; z-index: 1; }
.hero-ring.r1 { width: 380px; height: 380px; top: -34px; inset-inline-end: -54px; opacity: .4; animation: spin 80s linear infinite; }
.hero-ring.r2 { width: 260px; height: 260px; bottom: -40px; inset-inline-start: -50px; opacity: .3; animation: spin 110s linear infinite reverse; }

.float-badge {
  position: absolute; z-index: 3; background: var(--bg-elev); border: 1px solid var(--border);
  padding: 10px 15px; border-radius: 14px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700;
  animation: float 6s ease-in-out infinite;
}
.float-badge svg { width: 22px; height: 22px; color: var(--accent); }
.float-badge .n { color: var(--accent); font-weight: 800; font-size: 16px; font-family: var(--font-display); }
.fb-1 { top: 9%; inset-inline-end: -12px; animation-delay: -1s; }
.fb-2 { bottom: 13%; inset-inline-end: -22px; animation-delay: -3s; }
.fb-3 { top: 26%; inset-inline-start: -22px; animation-delay: -5s; }
@media (max-width: 940px){ .fb-1{inset-inline-end:4%} .fb-2{inset-inline-end:0} .fb-3{inset-inline-start:4%} }
@media (max-width: 520px){ .float-badge{ transform: scale(.9); } }

@keyframes fadeUp { from { transform: translateY(22px); } to { transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce){
  .hero-ring, .float-badge, .disc { animation: none !important; }
  .bismillah,.hero h1,.hero-role,.hero-poem,.hero-ctas,.hero-portrait-wrap{ animation: none !important; opacity: 1 !important; }
}

/* ======================================================================
   Stats strip
   ====================================================================== */
.stats { background: var(--bg-soft); border-block: 1px solid var(--border-soft); padding-block: 46px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 720px){ .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 30px; } }
.stat-num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1.1;
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 5px; font-size: 14px; font-weight: 600; color: var(--fg-muted); }

/* ======================================================================
   Category cards (course domains)
   ====================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px){ .cat-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .cat-grid{ grid-template-columns: 1fr; } }
.cat-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 30px 22px; text-align: center; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s; cursor: pointer;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: linear-gradient(150deg, transparent, var(--accent-soft));
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.cat-card:hover::before { opacity: 1; }
.cat-ic {
  width: 74px; height: 74px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); position: relative;
}
.cat-ic svg { width: 36px; height: 36px; }
.cat-ic::before { content: ''; position: absolute; inset: -6px; border: 1.5px dashed var(--accent); border-radius: 50%; opacity: .32; }
.cat-card h3 { font-family: var(--font-display); font-size: 22px; color: var(--fg); margin-bottom: 7px; position: relative; }
.cat-card p { font-size: 13.5px; color: var(--fg-muted); position: relative; }
.cat-card .count { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--accent); position: relative; }

/* ======================================================================
   Live class banner + countdown
   ====================================================================== */
.live-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--tq-700), var(--tq-900));
  color: var(--cream); padding: clamp(28px, 5vw, 54px);
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center;
}
.live-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><g fill='none' stroke='%23e6ad3c' stroke-width='0.5' opacity='0.2'><path d='M60 8 L84 32 L84 64 L60 88 L36 64 L36 32 Z'/><path d='M60 32 L84 56 L84 88 L60 112 L36 88 L36 56 Z'/><circle cx='60' cy='48' r='4'/></g></svg>");
  background-size: 200px;
}
.live-banner > * { position: relative; z-index: 1; }
@media (max-width: 880px){ .live-banner{ grid-template-columns: 1fr; text-align: center; } }
.live-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(230,173,60,.18); border: 1px solid var(--gold); color: var(--gold-soft);
  padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
.live-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(230,173,60,.7);} 50%{ box-shadow: 0 0 0 8px rgba(230,173,60,0);} }
.live-banner h2 { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 38px); color: var(--ivory); margin-bottom: 10px; }
.live-banner p { color: rgba(244,234,210,.85); margin-bottom: 22px; font-size: 15px; }
.live-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; font-size: 13.5px; }
@media (max-width: 880px){ .live-meta{ justify-content: center; } }
.live-meta span { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.live-meta svg { width: 16px; height: 16px; color: var(--gold); }

.countdown { display: flex; gap: 12px; justify-content: center; }
.cd-box {
  background: rgba(251,246,236,.08); border: 1px solid rgba(251,246,236,.18); border-radius: 16px;
  padding: 16px 10px; min-width: 78px; text-align: center; backdrop-filter: blur(8px);
}
.cd-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--gold); display: block; line-height: 1; }
.cd-label { font-size: 11px; color: rgba(244,234,210,.7); margin-top: 6px; display: block; }
.live-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ======================================================================
   Course / product card grids
   ====================================================================== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--fg-muted); transition: all .2s;
}
.tab:hover { color: var(--accent); border-color: var(--accent); }
.tab.active { background: var(--accent); color: var(--ivory); border-color: var(--accent); }
[data-theme="dark"] .tab.active { color: var(--ink-deep); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.course-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.course-cover {
  height: 180px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--tq-300), var(--tq-600));
}
.course-cover.alt { background: linear-gradient(140deg, var(--sf-400), var(--sf-600)); }
.course-cover.alt2 { background: linear-gradient(140deg, #6e3c8a, #432258); }
.course-cover::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='%23fbf6ec' stroke-width='0.5' opacity='0.28'><path d='M40 8 L56 24 L56 48 L40 64 L24 48 L24 24 Z'/></g></svg>");
  background-size: 116px;
}
.course-cover .ic { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(251,246,236,.9); }
.course-cover .ic svg { width: 56px; height: 56px; }
.course-cover .tags { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 6px; }
.course-cover .mode {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  background: rgba(6,20,24,.7); color: var(--ivory); border-radius: 8px;
  padding: 3px 9px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
}
.course-cover .mode svg { width: 13px; height: 13px; }
.course-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-kicker { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--accent); margin-bottom: 7px; }
.course-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--fg); margin-bottom: 8px; }
.course-desc { font-size: 13.5px; color: var(--fg-muted); margin-bottom: 14px; flex: 1; }
.course-meta {
  display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--fg-soft);
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--border-soft);
}
.course-meta span { display: inline-flex; align-items: center; gap: 4px; }
.course-meta svg { width: 14px; height: 14px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--accent-deep); }
.price small { font-size: 11px; font-weight: 400; color: var(--fg-muted); margin-inline-start: 3px; font-family: var(--font-body); }
.price.free { color: var(--gold); }

/* ======================================================================
   Books + audiobook
   ====================================================================== */
.books { background: var(--bg-soft); border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 64px); position: relative; overflow: hidden; }
.books-inner { display: grid; grid-template-columns: 1fr 1.18fr; gap: clamp(30px, 5vw, 52px); align-items: center; }
@media (max-width: 920px){ .books-inner{ grid-template-columns: 1fr; } }
.books-text h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; line-height: 1.22; }
.books-text > p { color: var(--fg-muted); margin-bottom: 22px; font-size: 15px; }
.book-feats { list-style: none; margin-bottom: 26px; }
.book-feats li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.book-feats svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }

.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1100px; }
@media (max-width: 560px){ .books-grid{ grid-template-columns: repeat(2, 1fr); } }
.book {
  position: relative; aspect-ratio: 2/3; border-radius: 4px 12px 12px 4px; padding: 16px 13px;
  color: var(--cream); display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-md), inset 4px 0 0 rgba(0,0,0,.22);
  transition: transform .35s ease; cursor: pointer; overflow: hidden;
}
.book::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><g fill='none' stroke='%23fbf6ec' stroke-width='0.4' opacity='0.25'><path d='M30 4 L42 16 L42 32 L30 44 L18 32 L18 16 Z'/></g></svg>");
  background-size: 78px;
}
.book:hover { transform: translateY(-9px) rotateY(-8deg); }
.book.b1 { background: linear-gradient(140deg, var(--tq-600), var(--tq-800)); }
.book.b2 { background: linear-gradient(140deg, var(--sf-500), var(--sf-600)); }
.book.b3 { background: linear-gradient(140deg, #6e3c8a, #422258); }
.book.b4 { background: linear-gradient(140deg, var(--tq-800), #052a27); }
.book.b5 { background: linear-gradient(140deg, #8a3c3c, #5b1f1f); }
.book.b6 { background: linear-gradient(140deg, var(--tq-500), var(--tq-700)); }
.book-ttl { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.32; position: relative; }
.book-by { font-size: 10.5px; opacity: .85; position: relative; }
.book-by::before { content: ''; display: block; width: 22px; height: 1px; background: var(--gold); margin-bottom: 5px; }
.book .audio-chip {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; background: rgba(6,20,24,.5);
  display: grid; place-items: center; color: var(--gold);
}
.book .audio-chip svg { width: 14px; height: 14px; }

/* ======================================================================
   Podcast
   ====================================================================== */
.podcast { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 48px); align-items: center; }
@media (max-width: 920px){ .podcast{ grid-template-columns: 1fr; } }
.disc-wrap { position: relative; aspect-ratio: 1; max-width: 360px; margin-inline: auto; width: 100%; }
.disc {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at center, var(--ink-deep) 30%, var(--tq-900) 32%, var(--tq-700) 80%, var(--tq-900));
  box-shadow: var(--shadow-lg); animation: spin 18s linear infinite; animation-play-state: paused;
}
.disc.playing { animation-play-state: running; }
.disc::before { content: ''; position: absolute; inset: 30%; border: 1px solid rgba(230,173,60,.3); border-radius: 50%; background: radial-gradient(circle, var(--gold), var(--sf-600)); }
.disc::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-deep); z-index: 2; }
.disc-grooves {
  position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(230,173,60,.14);
  box-shadow: inset 0 0 0 9px transparent, inset 0 0 0 10px rgba(230,173,60,.1),
              inset 0 0 0 22px transparent, inset 0 0 0 23px rgba(230,173,60,.1),
              inset 0 0 0 40px transparent, inset 0 0 0 41px rgba(230,173,60,.1);
}
.disc-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; border-radius: 50%; background: var(--gold); color: var(--ink-deep);
  display: grid; place-items: center; z-index: 3; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .2s;
}
.disc-play:hover { transform: translate(-50%,-50%) scale(1.08); }
.disc-play svg { width: 32px; height: 32px; }
.podcast-brand {
  position: absolute; bottom: -8px; inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 16px; font-weight: 700; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 7px;
}
.podcast-brand svg { width: 16px; height: 16px; color: var(--accent); }

.podcast-text h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 10px; }
.podcast-text > p { color: var(--fg-muted); margin-bottom: 24px; font-size: 15px; }
.ep-list { display: flex; flex-direction: column; gap: 10px; }
.ep {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px;
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 13px;
  transition: border-color .2s, transform .2s; cursor: pointer;
}
.ep:hover { border-color: var(--accent); transform: translateX(-4px); }
.ep-num { width: 36px; height: 36px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; font-family: var(--font-display); }
.ep-info { flex: 1; min-width: 0; }
.ep-title { font-weight: 700; font-size: 14.5px; color: var(--fg); margin-bottom: 2px; }
.ep-meta { font-size: 12px; color: var(--fg-soft); }
.ep-play { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: var(--ivory); display: grid; place-items: center; transition: background .2s; }
[data-theme="dark"] .ep-play { color: var(--ink-deep); }
.ep:hover .ep-play { background: var(--accent-deep); }
.ep-play svg { width: 16px; height: 16px; }

/* ======================================================================
   Writings / articles
   ====================================================================== */
.writ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .writ-grid{ grid-template-columns: 1fr; } }
.writ {
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer;
  position: relative; overflow: hidden;
}
.writ:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.writ-cat { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 6px; }
.writ-cat .gem { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.writ h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.45; color: var(--fg); margin-bottom: 10px; }
.writ p { font-size: 13.5px; color: var(--fg-muted); margin-bottom: 16px; }
.writ-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--fg-soft); }
.writ-foot .read { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.writ-foot svg { width: 14px; height: 14px; }

/* ======================================================================
   Social channels (telegram / instagram dedicated module)
   ====================================================================== */
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px){ .social-grid{ grid-template-columns: repeat(2, 1fr); } }
.social-card {
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.social-ic { width: 58px; height: 58px; margin: 0 auto 13px; border-radius: 16px; display: grid; place-items: center; color: var(--ivory); }
.social-ic svg { width: 28px; height: 28px; }
.social-ic.tg { background: linear-gradient(135deg, #2aabee, #229ed9); }
.social-ic.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-ic.yt { background: linear-gradient(135deg, #ff2d2d, #c80000); }
.social-ic.pc { background: linear-gradient(135deg, var(--tq-500), var(--tq-700)); }
.social-card h4 { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.social-card .followers { font-size: 13px; font-weight: 700; color: var(--accent); }
.social-card .handle { font-size: 12px; color: var(--fg-soft); margin-top: 3px; direction: ltr; }

/* featured telegram strip */
.tg-feature {
  margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: linear-gradient(135deg, #2aabee, #1d8ec4); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); position: relative; overflow: hidden;
}
.tg-feature::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><g fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.18'><path d='M45 6 L66 27 L66 54 L45 75 L24 54 L24 27 Z'/></g></svg>");
  background-size: 150px;
}
.tg-feature > * { position: relative; z-index: 1; }
@media (max-width: 760px){ .tg-feature{ grid-template-columns: 1fr; text-align: center; } }
.tg-feature .tg-logo { width: 70px; height: 70px; border-radius: 20px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.tg-feature .tg-logo svg { width: 38px; height: 38px; }
@media (max-width: 760px){ .tg-feature .tg-logo{ margin-inline: auto; } }
.tg-feature h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.tg-feature p { opacity: .92; font-size: 14px; }
.tg-feature .btn { background: #fff; color: #1d8ec4; }
.tg-feature .btn:hover { background: var(--ivory); }

/* ======================================================================
   About
   ====================================================================== */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 56px); align-items: center; }
@media (max-width: 920px){ .about{ grid-template-columns: 1fr; } }
.about-portrait {
  aspect-ratio: 3/4; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--tq-600), var(--tq-900)); box-shadow: var(--shadow-lg);
}
.about-portrait::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='70' height='70'><g fill='none' stroke='%23e6ad3c' stroke-width='0.5' opacity='0.22'><path d='M35 4 L50 19 L50 38 L35 53 L20 38 L20 19 Z'/></g></svg>");
  background-size: 120px;
}
.about-portrait .ph-label {
  position: absolute; inset-inline: 16px; bottom: 16px;
  background: rgba(6,20,24,.4); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 9px 13px; color: var(--ivory); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.about-text h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 16px; line-height: 1.22; }
.about-text p { color: var(--fg-muted); margin-bottom: 16px; font-size: 15px; line-height: 1.95; }
.about-creds { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
@media (max-width: 520px){ .about-creds{ grid-template-columns: 1fr; } }
.about-creds li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.about-creds svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ======================================================================
   Newsletter / contact
   ====================================================================== */
.newsletter {
  background: linear-gradient(140deg, var(--tq-700), var(--tq-900)); color: var(--cream);
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 58px); text-align: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><g fill='none' stroke='%23e6ad3c' stroke-width='0.4' opacity='0.18'><path d='M50 6 L72 28 L72 56 L50 78 L28 56 L28 28 Z'/><path d='M50 28 L72 50 L72 78 L50 100 L28 78 L28 50 Z'/></g></svg>");
  background-size: 178px;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-family: var(--font-display); font-size: clamp(25px, 3.4vw, 38px); color: var(--ivory); margin-bottom: 10px; }
.newsletter p { opacity: .88; margin-bottom: 26px; font-size: 15px; max-width: 540px; margin-inline: auto; }
.nl-form { display: flex; gap: 10px; max-width: 520px; margin-inline: auto; flex-wrap: wrap; }
.nl-form input {
  flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid rgba(251,246,236,.2); background: rgba(251,246,236,.08); color: var(--cream);
  font-size: 14px; outline: none; transition: border-color .2s, background .2s;
}
.nl-form input::placeholder { color: rgba(244,234,210,.55); }
.nl-form input:focus { border-color: var(--gold); background: rgba(251,246,236,.13); }

/* ======================================================================
   Footer
   ====================================================================== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border-soft); padding-block: 56px 28px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; margin-bottom: 38px; }
@media (max-width: 920px){ .footer-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-display); font-size: 18px; color: var(--fg); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: var(--fg-muted); display: inline-flex; align-items: center; gap: 6px; transition: color .2s, padding-inline-end .2s; }
.footer-col a:hover { color: var(--accent); padding-inline-end: 4px; }
.footer-about p { font-size: 14px; color: var(--fg-muted); margin-bottom: 16px; line-height: 1.9; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 10px; display: grid; place-items: center; color: var(--fg-muted); transition: all .2s; }
.footer-socials a:hover { background: var(--accent); color: var(--ivory); border-color: var(--accent); }
[data-theme="dark"] .footer-socials a:hover { color: var(--ink-deep); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-soft); padding-top: 22px; font-size: 13px; color: var(--fg-soft); }
.footer-bottom .heart { color: var(--gold); }
.footer-trust { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.footer-trust .badge-box { width: 58px; height: 64px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); display: grid; place-items: center; color: var(--fg-soft); font-size: 9px; text-align: center; padding: 4px; }
.footer-trust .badge-box svg { width: 22px; height: 22px; margin-bottom: 3px; color: var(--accent); }

/* ======================================================================
   Modals
   ====================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(6,20,24,.62); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex; animation: ovin .25s ease; }
@keyframes ovin { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: 22px;
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; padding: 30px; position: relative;
  box-shadow: var(--shadow-lg); animation: modin .35s cubic-bezier(.34,1.56,.64,1);
}
.modal.wide { max-width: 560px; }
@keyframes modin { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 16px; inset-inline-start: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--fg-muted); transition: background .2s; }
.modal-close:hover { background: var(--accent-soft); color: var(--accent); }
.modal-close svg { width: 18px; height: 18px; }
.modal-ic { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.modal-ic svg { width: 28px; height: 28px; }
.modal h3 { font-family: var(--font-display); font-size: 25px; text-align: center; margin-bottom: 6px; }
.modal-sub { text-align: center; color: var(--fg-muted); font-size: 14px; margin-bottom: 24px; }
.modal-tabs { display: flex; background: var(--bg-soft); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.modal-tab { flex: 1; padding: 9px; font-size: 14px; font-weight: 700; color: var(--fg-muted); border-radius: 9px; transition: all .2s; }
.modal-tab.active { background: var(--accent); color: var(--ivory); }
[data-theme="dark"] .modal-tab.active { color: var(--ink-deep); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--fg); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: 12px; color: var(--fg-soft); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* OTP */
.otp-row { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 8px 0 4px; }
.otp-row input { width: 52px; height: 56px; text-align: center; font-size: 22px; font-weight: 800; font-family: var(--font-display); }

/* course summary card inside enroll modal */
.enroll-card { display: flex; gap: 14px; align-items: center; background: var(--bg-tint); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px; margin-bottom: 18px; }
.enroll-card .ec-cover { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(140deg, var(--tq-400), var(--tq-700)); display: grid; place-items: center; color: var(--ivory); }
.enroll-card .ec-cover svg { width: 26px; height: 26px; }
.enroll-card .ec-info { flex: 1; min-width: 0; }
.enroll-card .ec-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.enroll-card .ec-meta { font-size: 12px; color: var(--fg-muted); }
.enroll-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.mode-opt { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; transition: all .2s; text-align: center; }
.mode-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.mode-opt svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; }
.mode-opt .mo-t { font-weight: 700; font-size: 14px; }
.mode-opt .mo-d { font-size: 11.5px; color: var(--fg-muted); margin-top: 2px; }

/* AI assist note (used in modals/admin reference) */
.ai-note {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--fg-muted);
  background: var(--bg-tint); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 8px;
}
.ai-note svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; color: var(--fg-soft); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-soft); }

/* ======================================================================
   Toast
   ====================================================================== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--accent-deep); color: var(--ivory); padding: 13px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 400; box-shadow: var(--shadow-lg); opacity: 0;
  transition: transform .3s, opacity .3s; display: flex; align-items: center; gap: 10px;
}
[data-theme="dark"] .toast { color: var(--ink-deep); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { width: 19px; height: 19px; }

/* ======================================================================
   Scrollbar
   ====================================================================== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--tq-300); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--tq-700); }

/* small utility */
.reveal { transform: translateY(24px); transition: transform .6s ease; }
.reveal.in { transform: translateY(0); }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1 !important; transform: none !important; } }
