/* ==========================================================================
   Rickey's Spiritual Journey — Learning Platform design system
   Midnight Black #08070A · Deep Burgundy #171018 · Antique Gold #D4AF37 · Warm Ivory #F4EFE5
   Headings: Cormorant Garamond · Body: Inter · Icons: Lucide
   ========================================================================== */

:root {
  --bg: #08070A;
  --bg-2: #171018;
  --surface: #110c13;
  --surface-2: #1c1420;
  --gold: #D4AF37;
  --gold-hi: #e8c964;
  --gold-lo: #a8871f;
  --ivory: #F4EFE5;
  --muted: rgba(244, 239, 229, .66);
  --faint: rgba(244, 239, 229, .42);
  --line: rgba(212, 175, 55, .18);
  --line-soft: rgba(244, 239, 229, .09);
  --ok: #5fbf8a;
  --warn: #e0a84a;
  --bad: #e5736b;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px var(--line), 0 12px 40px rgba(212, 175, 55, .08);
  --font-head: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4, .price .now, .price .was, .step .n { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; color: var(--ivory); letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.ic { display: inline-block; flex: none; stroke-width: 1.6; vertical-align: -0.22em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(48px, 7vw, 88px) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker::before, .kicker.both::after { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
.rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .92rem/1 var(--font-body); letter-spacing: .02em; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #120d04; box-shadow: 0 6px 22px rgba(212, 175, 55, .22); }
.btn-gold:hover { color: #120d04; box-shadow: 0 10px 30px rgba(212, 175, 55, .38); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line); }
.btn-ghost:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(212, 175, 55, .06); }
.btn-sm { height: 38px; padding: 0 18px; font-size: .84rem; }
.btn-lg { height: 54px; padding: 0 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow .ic { transition: transform .2s; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900; height: var(--header-h);
  background: rgba(8, 7, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); flex: none; }
.brand:hover { color: var(--ivory); }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav a { position: relative; padding: 9px 16px; font-size: .9rem; font-weight: 500; color: var(--muted); border-radius: 999px; }
.nav a:hover { color: var(--ivory); }
.nav a.active { color: var(--gold); }
.nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 1px; background: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.cart-link { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ivory); border: 1px solid var(--line-soft); }
.cart-link:hover { color: var(--gold); border-color: var(--line); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #120d04; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--surface); color: var(--ivory); border: 1px solid var(--line); cursor: pointer; font: 500 .88rem var(--font-body); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); color: #120d04; font-weight: 700; font-size: .85rem; flex: none; }
.user-btn span.nm { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 236px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: none; }
.user-pop.open { display: block; }
.user-pop .who { padding: 12px 12px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.user-pop .who b { display: block; font-size: .9rem; }
.user-pop .who small { color: var(--faint); font-size: .76rem; word-break: break-all; }
.user-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ivory); font-size: .88rem; }
.user-pop a:hover { background: rgba(212, 175, 55, .09); color: var(--gold-hi); }
.user-pop a.danger { color: var(--bad); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ivory); cursor: pointer; place-items: center; }

.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(3px); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--bg-2); border-left: 1px solid var(--line); z-index: 1001; transform: translateX(100%); transition: transform .3s cubic-bezier(.16, 1, .3, 1); padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer a.dl { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; color: var(--ivory); font-weight: 500; }
.drawer a.dl:hover, .drawer a.dl.active { background: rgba(212, 175, 55, .09); color: var(--gold-hi); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 110px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(212, 175, 55, .16), rgba(212, 175, 55, 0) 70%); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(96, 28, 52, .45), rgba(96, 28, 52, 0) 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); display: block; }
.hero .lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .88rem; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--gold); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.hero-art .ring.r2 { inset: 11%; border-style: dashed; opacity: .6; animation: spin 80s linear infinite; }
.hero-art .ring.r3 { inset: 24%; background: radial-gradient(closest-side, rgba(212, 175, 55, .12), transparent 72%); border-color: rgba(212, 175, 55, .1); }
.hero-art img { position: relative; width: 52%; filter: drop-shadow(0 0 38px rgba(212, 175, 55, .28)); animation: float 7s ease-in-out infinite; }
.hero-art .chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: rgba(17, 12, 19, .88); border: 1px solid var(--line); font-size: .78rem; font-weight: 500; backdrop-filter: blur(6px); }
.hero-art .chip .ic { color: var(--gold); }
/* Founder portrait (transparent cut-out) on a golden aura, fading into the page at the bottom */
.hero-art.has-portrait { max-width: 520px; aspect-ratio: 1 / 1.08; }
.hero-art.has-portrait .ring { inset: 4% 6% 0; }
.hero-art.has-portrait .ring.r2 { inset: 12% 14% 8%; }
.hero-art.has-portrait .ring.r3 { inset: 20% 22% 16%; }
.hero-art .glow { position: absolute; left: 50%; bottom: 0; width: 86%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 201, 100, .34), rgba(212, 175, 55, .12) 55%, transparent 72%); filter: blur(6px); }
.hero-art img.portrait { position: absolute; left: 50%; bottom: 0; width: 98%; height: auto; transform: translateX(-50%); animation: none; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 28px rgba(212, 175, 55, .22)); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.hero-art .nameplate { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 9px 22px; border-radius: 14px; background: rgba(17, 12, 19, .82); border: 1px solid rgba(212, 175, 55, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: center; white-space: nowrap; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.hero-art .nameplate strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--gold-hi); line-height: 1.1; }
.hero-art .nameplate small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.hero-art.has-portrait .c1 { top: 14%; left: -4%; } .hero-art.has-portrait .c2 { top: 40%; right: -6%; } .hero-art.has-portrait .c3 { bottom: 24%; left: -2%; }
.hero-art .c1 { top: 12%; left: -2%; } .hero-art .c2 { top: 46%; right: -4%; } .hero-art .c3 { bottom: 10%; left: 6%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── Course card ─────────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.course-card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.course-card:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: var(--glow); }
.course-thumb { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 40%, #2a1b2d, var(--bg-2) 70%); overflow: hidden; display: grid; place-items: center; }
.course-thumb > img.cover { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.course-card:hover .course-thumb > img.cover { transform: scale(1.05); }
.course-thumb .ph { width: 38%; opacity: .55; filter: grayscale(.2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(8, 7, 10, .78); color: var(--gold); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.course-thumb .badge { position: absolute; top: 14px; left: 14px; }
.course-thumb .badge.off { left: auto; right: 14px; background: var(--gold); color: #120d04; border-color: transparent; }
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-cat { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.course-title { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin: 0; }
.course-title a { color: var(--ivory); }
.course-title a:hover { color: var(--gold-hi); }
.course-desc { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--gold-hi); line-height: 1; }
.price .was { font-size: .86rem; color: var(--faint); text-decoration: line-through; }
.price .tba { font-size: .85rem; color: var(--muted); font-style: italic; }

/* ── Categories ──────────────────────────────────────────────────────────── */
.cat-tile { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); color: var(--ivory); transition: .3s; }
.cat-tile:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--ivory); box-shadow: var(--glow); }
.cat-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(212, 175, 55, .1); color: var(--gold); border: 1px solid var(--line); flex: none; }
.cat-tile h3 { margin: 0 0 2px; font-size: 1.35rem; }
.cat-tile small { color: var(--muted); font-size: .82rem; }
.cat-tile .go { margin-left: auto; color: var(--gold); opacity: .6; }

/* ── Features / steps ────────────────────────────────────────────────────── */
.feature { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); transition: .3s; }
.feature:hover { border-color: var(--line); background: var(--surface-2); }
.feature .cat-ico { margin-bottom: 18px; }
.feature h3 { font-size: 1.35rem; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 33px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo), transparent); opacity: .7; }
.step { text-align: center; padding: 0 16px; position: relative; }
.step .n { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--gold); color: var(--gold); box-shadow: 0 0 0 7px var(--bg), 0 0 30px rgba(212, 175, 55, .15); }
.step h3 { font-size: 1.3rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

.cta-band { position: relative; text-align: center; padding: clamp(40px, 6vw, 72px) var(--gut); border-radius: 28px; overflow: hidden; background: radial-gradient(120% 140% at 50% 0%, #2b1a2f, var(--bg-2) 60%); border: 1px solid var(--line); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 0, rgba(212, 175, 55, .2), transparent 70%); z-index: -1; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

/* ── Page header / breadcrumbs / filters ─────────────────────────────────── */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); background: radial-gradient(80% 140% at 50% -20%, rgba(212, 175, 55, .1), transparent 70%); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: .2em; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: var(--faint); margin-bottom: 16px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--gold); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); font-size: .84rem; font-weight: 500; background: var(--surface); }
.pill:hover { color: var(--ivory); border-color: var(--line); }
.pill.active { color: #120d04; background: var(--gold); border-color: var(--gold); font-weight: 600; }
.pill small { opacity: .7; }
.search { position: relative; min-width: min(100%, 280px); }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 42px; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty .ic { color: var(--gold); margin-bottom: 14px; }
.empty h3 { margin-bottom: .3em; }

/* ── Course detail ───────────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.detail-banner { aspect-ratio: 16 / 8.5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #2a1b2d, var(--bg-2) 70%); display: grid; place-items: center; margin-bottom: 28px; }
.detail-banner img.cover { width: 100%; height: 100%; object-fit: cover; }
.detail-banner img.ph { width: 24%; opacity: .6; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row .ic { color: var(--gold); }
.buy-card { position: -webkit-sticky; position: sticky; align-self: start; top: calc(var(--header-h) + 22px); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.buy-card .price .now { font-size: 2.4rem; }
.buy-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; color: var(--muted); font-size: .88rem; }
.buy-list li { display: flex; gap: 10px; align-items: flex-start; }
.buy-list .ic { color: var(--gold); margin-top: 2px; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(212, 175, 55, .07); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.notice .ic { color: var(--gold); flex: none; margin-top: 2px; }
.prose { color: rgba(244, 239, 229, .84); } .prose h2, .prose h3 { margin-top: 1.4em; } .prose a { text-decoration: underline; text-underline-offset: 3px; } .prose ul, .prose ol { padding-left: 1.3em; } .prose img { border-radius: var(--r); height: auto; }
.block { margin-top: clamp(30px, 4vw, 48px); }
.block > h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.block > h2 .ic { color: var(--gold); }
.acc { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 600; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .chev { margin-left: auto; color: var(--gold); transition: transform .25s; }
.acc[open] > summary .chev { transform: rotate(180deg); }
.acc[open] > summary { border-bottom: 1px solid var(--line-soft); background: rgba(212, 175, 55, .04); }
.acc .count { font-weight: 400; font-size: .8rem; color: var(--faint); }
.lec { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.lec:first-child { border-top: 0; }
.lec .ic { color: var(--gold); opacity: .85; }
.lec .t { flex: 1; min-width: 0; }
.lec .dur { color: var(--faint); font-size: .8rem; }
.lec .tag { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); background: none; cursor: pointer; font-family: var(--font-body); }
.lec .lock { color: var(--faint); }
.instructor { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.instructor img { width: 84px; height: 84px; object-fit: contain; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); padding: 10px; flex: none; }
.instructor h3 { margin: 0 0 4px; }
.instructor p { margin: 0; color: var(--muted); font-size: .92rem; }

.modal-bg { position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 440px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; animation: pop .3s cubic-bezier(.16, 1, .3, 1); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal.wide { max-width: 880px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; font-size: 1.3rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); border: 1px solid var(--line-soft); cursor: pointer; }
.icon-btn:hover { color: var(--gold); border-color: var(--line); }
.video-box { aspect-ratio: 16 / 9; background: #000; }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ── Forms ───────────────────────────────────────────────────────────────── */
label, .form-label { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], input[type=file], select, textarea, .form-control, .form-select {
  width: 100%; height: 48px; padding: 0 16px; background: var(--surface); color: var(--ivory); border: 1px solid var(--line-soft);
  border-radius: 12px; font: 400 .95rem var(--font-body); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
textarea, textarea.form-control { height: auto; min-height: 100px; padding: 12px 16px; resize: vertical; }
select, .form-select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
select option { background: var(--bg-2); color: var(--ivory); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .12); background: var(--surface-2); }
input[type=file] { padding: 10px 14px; height: auto; }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: 16px; height: 16px; }
.field { margin-bottom: 16px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: .88rem; margin-bottom: 16px; border: 1px solid; }
.alert.err { background: rgba(229, 115, 107, .1); border-color: rgba(229, 115, 107, .4); color: #f3b1ac; }
.alert.ok { background: rgba(95, 191, 138, .1); border-color: rgba(95, 191, 138, .4); color: #a6e0c0; }
.alert.info { background: rgba(212, 175, 55, .08); border-color: var(--line); color: var(--muted); }
/* Bootstrap-class compatibility for server-rendered dynamic fields */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; } .row > * { padding: 0 8px; width: 100%; }
.col-12 { width: 100%; } @media (min-width: 640px) { .col-md-6 { width: 50%; } }
.form-group.mb-3 { margin-bottom: 14px; } .form-label.fw-semibold, .text-dark { color: var(--muted) !important; font-weight: 500; }
.text-danger { color: var(--bad); } .text-secondary { color: var(--muted); } .d-flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-2 { gap: 10px; } .pt-1 { padding-top: 4px; } .me-2 { margin-right: 8px; } .mb-1 { margin-bottom: 4px; }
.form-check { display: inline-flex; align-items: center; gap: 8px; }

/* ── Auth page ───────────────────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px var(--gut); background: radial-gradient(70% 60% at 50% 0%, rgba(212, 175, 55, .1), transparent 70%); }
.auth-card { width: 100%; max-width: 480px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.auth-card .logo { width: 64px; margin: 0 auto 14px; }
.auth-card h1 { font-size: 2.1rem; text-align: center; margin-bottom: .15em; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 999px; margin-bottom: 24px; }
.tabs button { height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 500 .88rem var(--font-body); cursor: pointer; }
.tabs button.on { background: var(--gold); color: #120d04; font-weight: 600; }
.otp-input { text-align: center; letter-spacing: .5em; font-size: 1.6rem !important; font-weight: 600; height: 60px !important; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: .78rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* ── Checkout / receipts / tables ────────────────────────────────────────── */
.panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.panel h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.panel h3 .ic { color: var(--gold); }
.line-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.line-item:last-child { border-bottom: 0; }
.line-item .th { width: 96px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--bg-2); flex: none; display: grid; place-items: center; border: 1px solid var(--line-soft); }
.line-item .th img.cover { width: 100%; height: 100%; object-fit: cover; }
.line-item .th img.ph { width: 40%; opacity: .5; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.sum-row.total { color: var(--ivory); font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.sum-row.total b { font-family: var(--font-head); font-size: 1.8rem; color: var(--gold-hi); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.t th { text-align: left; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 600; }
table.t td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ivory); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border: 1px solid; }
.status.paid { color: var(--ok); border-color: rgba(95, 191, 138, .4); background: rgba(95, 191, 138, .08); }
.status.pending { color: var(--warn); border-color: rgba(224, 168, 74, .4); background: rgba(224, 168, 74, .08); }
.status.failed, .status.refunded { color: var(--bad); border-color: rgba(229, 115, 107, .4); background: rgba(229, 115, 107, .08); }
.receipt { max-width: 640px; margin: 0 auto; }
.receipt-head { text-align: center; padding: 38px 28px; border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--line); border-bottom: 0; background: radial-gradient(100% 120% at 50% 0, rgba(212, 175, 55, .14), var(--bg-2)); }
.receipt-head .big { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid; }
.receipt-head.ok .big { color: var(--ok); border-color: var(--ok); background: rgba(95, 191, 138, .1); }
.receipt-head.bad .big { color: var(--bad); border-color: var(--bad); background: rgba(229, 115, 107, .1); }
.receipt-head.wait .big { color: var(--warn); border-color: var(--warn); background: rgba(224, 168, 74, .1); }
.receipt-body { border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 28px; background: var(--surface); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-soft); margin-bottom: 22px; }
.kv dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 2px; } .kv dd { margin: 0; font-weight: 500; word-break: break-all; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 0; background: linear-gradient(180deg, var(--bg), #050406); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); padding-bottom: 40px; }
.foot-grid h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); font-size: .9rem; } .foot-grid a:hover { color: var(--gold-hi); }
.foot-about p { color: var(--muted); font-size: .9rem; max-width: 340px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ivory); }
.social a:hover { background: var(--gold); color: #120d04; border-color: var(--gold); }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .9rem; } .foot-contact .ic { color: var(--gold); margin-top: 3px; }
.foot-bar { border-top: 1px solid var(--line-soft); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--faint); }
.foot-bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; } .foot-bar a { color: var(--faint); } .foot-bar a:hover { color: var(--gold); }

/* ── Toasts / misc ───────────────────────────────────────────────────────── */
.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 1400; display: grid; gap: 10px; }
.toast { padding: 13px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .88rem; animation: pop .3s; }
.spin { animation: spin 1s linear infinite; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .buy-card { display: none; } /* replaced by .mobile-buy-bar */
  .buy-card { position: static; order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-actions .hide-m { display: none; }
  .burger { display: grid; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; } .hero-cta, .hero-points { justify-content: center; }
  .hero-art { max-width: 280px; order: -1; }
  .hero-art.has-portrait { max-width: 360px; }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } .steps::before { display: none; }
}
@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .grid.c3, .grid.c4, .grid.c2 { grid-template-columns: 1fr; }
  .brand-sub { display: none; } .brand img { width: 40px; height: 40px; }
  .foot-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .instructor { flex-direction: column; text-align: center; }
  .hero-art { max-width: 230px; }
  .hero-art.has-portrait { max-width: 300px; }
  .hero-art .nameplate { padding: 7px 16px; } .hero-art .nameplate strong { font-size: 1rem; }
  .hero-art.has-portrait .c1 { left: 0; } .hero-art.has-portrait .c2 { right: 0; } .hero-art.has-portrait .c3 { left: 0; bottom: 26%; }
  .hero-art .chip { font-size: .66rem; padding: 6px 10px; }
  .line-item { flex-wrap: wrap; }
}

/* ── Quick-buy drawer (side panel on desktop, bottom sheet on mobile) ───── */
#cartDrawerOverlay { position: fixed; inset: 0; z-index: 1300; background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.cart-drawer-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px; background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.cart-drawer-panel.is-active { transform: none; }
.drawer-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
@media (max-width: 767px) {
  .cart-drawer-panel { top: auto; left: 0; max-width: none; max-height: 92vh; border-radius: 24px 24px 0 0; border-left: 0; border-top: 1px solid var(--line); transform: translateY(100%); }
  .cart-drawer-panel.is-active { transform: none; }
}

.foot-contact a { overflow-wrap: anywhere; }
.acc > summary > span:first-of-type { flex: 1; min-width: 0; }
.acc .count { white-space: nowrap; }

/* ── Mobile sticky buy bar (course detail) ─────────────────────────────── */
.mobile-buy-bar { display: none; }
@media (max-width: 1040px) {
  .mobile-buy-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; padding: 10px var(--gut); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: #110c13; background: rgba(17, 12, 19, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
  .mbb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; line-height: 1.15; }
  .mbb-price strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--gold-hi); }
  .mbb-was { color: var(--faint); font-size: .76rem; text-decoration: line-through; }
  .mbb-off { color: var(--gold); font-size: .72rem; font-weight: 700; }
  .mbb-btn { flex: 1 1 auto; max-width: 240px; justify-content: center; white-space: nowrap; }
  body:has(.mobile-buy-bar) .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body:has(.mobile-buy-bar) #enqFab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Checkout ───────────────────────────────────────────────────────────── */
.chk-grid .buy-card { top: calc(var(--header-h) + 22px); }
.mobile-sticky-chk { display: none; }
@media (max-width: 1040px) {
  .chk-grid .buy-card { position: static !important; order: 2; }
  .mobile-sticky-chk { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; align-items: center; justify-content: space-between; gap: 14px; padding: 12px var(--gut); background: rgba(17, 12, 19, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-sticky-chk small { display: block; color: var(--muted); font-size: .72rem; line-height: 1; }
  .mobile-sticky-chk strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-hi); line-height: 1.1; }
  body:has(.mobile-sticky-chk) .site-footer { padding-bottom: 80px; }
}

/* CMS pages: stack the two-column photo layout on small screens */
@media (max-width: 760px) { .grid.c2[style*="5fr"] { grid-template-columns: 1fr !important; } }
.prose h2 { font-size: 1.9rem; } .prose h3 { font-size: 1.4rem; }

/* Small-screen header + floating widgets */
@media (max-width: 620px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-name { font-size: 1.05rem; white-space: nowrap; }
  .brand img { width: 36px; height: 36px; }
  .cart-link, .burger { width: 38px; height: 38px; flex: none; }
  .header-actions { gap: 6px; margin-left: auto; }
  .burger { margin-left: 0; }
}
@media (max-width: 1040px) { body:has(.mobile-sticky-chk) #enqFab { bottom: 86px; } }
/* Horizontal-overflow guard WITHOUT breaking position:sticky.
   `overflow-x:hidden` on <body> turns it into a scroll container and kills sticky in all browsers,
   so only <html> (propagated to the viewport) is hidden; body uses `clip` where supported. */
html { overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }

/* ══ Login / sign-up page (split layout) ═════════════════════════════════ */
.al-page { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.al-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding: clamp(32px, 5vw, 72px); background: radial-gradient(120% 90% at 20% 0%, #2b1a2f 0%, var(--bg-2) 45%, var(--bg) 100%); border-right: 1px solid var(--line); isolation: isolate; }
.al-aside::before { content: ""; position: absolute; inset: auto -20% -25% auto; width: 80%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(212, 175, 55, .2), transparent 70%); z-index: -1; }
.al-art { position: relative; width: min(300px, 56%); aspect-ratio: 1; display: grid; place-items: center; }
.al-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.al-art .ring.r2 { inset: 11%; border-style: dashed; opacity: .6; animation: spin 90s linear infinite; }
.al-art .ring.r3 { inset: 24%; background: radial-gradient(closest-side, rgba(212, 175, 55, .14), transparent 72%); border-color: rgba(212, 175, 55, .1); }
.al-art img { position: relative; width: 52%; filter: drop-shadow(0 0 34px rgba(212, 175, 55, .3)); animation: float 7s ease-in-out infinite; }
.al-copy h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: .25em; }
.al-copy h2 em { color: var(--gold); font-style: italic; font-weight: 500; }
.al-copy p { color: var(--muted); font-size: 1.05rem; max-width: 440px; }
.al-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.al-copy li { display: flex; align-items: center; gap: 14px; color: var(--ivory); font-size: .95rem; }
.al-copy li .ic { color: var(--gold); padding: 9px; box-sizing: content-box; border-radius: 12px; background: rgba(212, 175, 55, .1); border: 1px solid var(--line); }
.al-main { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px) var(--gut); background: radial-gradient(70% 60% at 50% 0%, rgba(212, 175, 55, .07), transparent 70%); }
.al-card { width: 100%; max-width: 440px; }
.al-logo { width: 54px; margin: 0 0 18px; display: none; }
.al-card h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: .15em; }
.al-sub { color: var(--muted); margin-bottom: 24px; }
.al-input { position: relative; display: flex; align-items: center; }
.al-input > .ic { position: absolute; left: 16px; color: var(--faint); pointer-events: none; }
.al-input input { padding-left: 46px; height: 52px; }
.al-input:focus-within > .ic { color: var(--gold); }
.al-eye { position: absolute; right: 8px; background: none; border: 0; color: var(--gold); font: 600 .78rem var(--font-body); cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.al-eye:hover { background: rgba(212, 175, 55, .1); }
.al-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.al-chip .ic { color: var(--gold); } .al-chip .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-chip a { font-size: .8rem; font-weight: 600; } .al-chip em { font-style: normal; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.al-chip.ok { border-color: rgba(95, 191, 138, .4); } .al-chip.ok .ic { color: var(--ok); }
.al-check { display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.al-check input { width: 17px; height: 17px; }
.al-switch { text-align: center; font-size: .88rem; color: var(--muted); margin: 20px 0 0; }
.al-foot { text-align: center; font-size: .82rem; color: var(--faint); margin: 30px 0 0; }
.al-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; }
.al-steps[hidden] { display: none; }
.al-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding-top: 10px; border-top: 2px solid var(--line-soft); }
.al-steps li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; border: 1px solid var(--line-soft); }
.al-steps li.on { color: var(--gold); border-top-color: var(--gold); } .al-steps li.on b { background: var(--gold); color: #120d04; border-color: var(--gold); }
.al-steps li.done { color: var(--ok); border-top-color: var(--ok); } .al-steps li.done b { border-color: var(--ok); color: var(--ok); }
.al-panel .row { margin: 0 -8px 6px; } .al-panel .form-group.mb-3 { margin-bottom: 14px; }
@media (max-width: 900px) {
  .al-page { grid-template-columns: 1fr; }
  .al-aside { display: none; }
  .al-logo { display: block; }
}

/* Mobile drawer scrollbar (same brand-gold style) */
.drawer { scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, .45) transparent; overscroll-behavior: contain; }
.drawer::-webkit-scrollbar { width: 8px; }
.drawer::-webkit-scrollbar-track { background: transparent; }
.drawer::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #e8c964, #a8871f); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; opacity: .7; }

/* Chrome/Edge/Safari: use the custom gradient thumb (standard props are for Firefox only) and hide the arrow buttons */
@supports not (-moz-appearance: none) {
  .drawer { scrollbar-width: auto; scrollbar-color: auto; }
}
.drawer::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
