/* =============================================================================
   BizGrow Academy — design system (2027)
   Inter + Inter Tight, ink & emerald with an electric-lime accent.
   Light app surfaces, dark "stage" sections, soft depth, purposeful motion.
   ============================================================================= */

:root {
  /* palette */
  --ink: #0b0f0c;
  --ink-2: #131a15;
  --ink-3: #1d2620;
  --canvas: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #f3f5f0;
  --line: #e4e7e1;
  --line-strong: #cfd4cc;
  --text: #0b0f0c;
  --muted: #5b635d;
  --subtle: #8a918b;

  --brand: #15a05a;
  --brand-strong: #0c7a42;
  --brand-soft: #e3f6ea;
  --lime: #c9f24d;
  --lime-strong: #b4e02a;
  --lime-soft: #f3fbd8;
  --violet: #6e56ff;
  --violet-soft: #eeebff;
  --amber: #e8960c;
  --amber-soft: #fff3dd;
  --red: #e5484d;
  --red-soft: #fdecec;
  --blue: #2f6feb;
  --blue-soft: #e7effe;

  /* aliases kept for older markup */
  --estate: var(--brand-strong);
  --estate-deep: #095c33;
  --leaf: var(--brand);
  --marigold: var(--lime);
  --marigold-soft: var(--amber-soft);
  --paper: var(--canvas);
  --danger: var(--red);
  --danger-soft: var(--red-soft);
  --ok-soft: var(--brand-soft);

  --font-head: "Inter Tight", "Inter", "Noto Sans Sinhala", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans Sinhala", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 68px;

  --shadow-xs: 0 1px 2px rgba(11, 15, 12, .05);
  --shadow-sm: 0 1px 2px rgba(11, 15, 12, .05), 0 2px 8px -2px rgba(11, 15, 12, .06);
  --shadow-md: 0 2px 4px rgba(11, 15, 12, .04), 0 12px 28px -10px rgba(11, 15, 12, .16);
  --shadow-lg: 0 4px 10px rgba(11, 15, 12, .05), 0 28px 60px -18px rgba(11, 15, 12, .28);
  --focus: 0 0 0 3px rgba(21, 160, 90, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- base ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.025em; font-weight: 700; color: inherit; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; z-index: 300; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--font-body); letter-spacing: -0.005em;
  padding: .82em 1.25em; border-radius: 12px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--b-fg); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn-primary { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
.btn-primary:hover { --b-bg: var(--ink-3); }
.btn-dark { --b-bg: var(--brand-strong); --b-fg: #fff; --b-bd: var(--brand-strong); }
.btn-dark:hover { --b-bg: var(--brand); --b-bd: var(--brand); }
.btn-lime { --b-bg: var(--lime); --b-fg: var(--ink); --b-bd: var(--lime); }
.btn-lime:hover { --b-bg: #d6f86b; }
.btn-ghost { --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--line-strong); }
.btn-ghost:hover { --b-bd: var(--ink); }
.btn-glass { --b-bg: rgba(255, 255, 255, .08); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); box-shadow: none; }
.btn-glass:hover { --b-bg: rgba(255, 255, 255, .14); }
.btn-danger { --b-bg: var(--red); --b-fg: #fff; --b-bd: var(--red); }
.btn-block { width: 100%; }
.btn-sm { padding: .6em .95em; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 1em 1.5em; font-size: 1rem; border-radius: 14px; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; transform: none; }
.btn .ic { width: 1.05em; height: 1.05em; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { background: none; border: 0; padding: 7px; border-radius: 9px; color: var(--muted); cursor: pointer; display: inline-flex; transition: background .15s, color .15s; }
.icon-btn:hover { background: rgba(11, 15, 12, .06); color: var(--text); }
.icon-btn.danger:hover { color: var(--red); background: var(--red-soft); }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .9rem; }
.field .hint, .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=search], .field input[type=url],
.field input[type=number], .field input[type=date], .field input[type=datetime-local], .field input[type=file], .field select, .field textarea {
  width: 100%; font: 400 .95rem/1.45 var(--font-body); color: var(--text);
  padding: .72em .9em; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--subtle); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.field input:disabled { background: var(--canvas); color: var(--muted); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field .error { color: var(--red); font-size: .84rem; margin-top: 6px; }
.check { display: flex; gap: .65em; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { margin-top: .22em; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--brand-strong); font: 600 .82rem var(--font-body); cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 28px; text-align: center; background: var(--surface-2); cursor: pointer; position: relative; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic { width: 30px; height: 30px; color: var(--brand); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- feedback ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; border: 1px solid; background: var(--surface); font-size: .93rem; }
.alert-success { border-color: #bfe6cf; background: var(--brand-soft); color: #0b5a33; }
.alert-error { border-color: #f5c6c7; background: var(--red-soft); color: #9e1c22; }
.alert-info { border-color: #f3dfb3; background: var(--amber-soft); color: #6b4a07; }
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 120; width: min(560px, calc(100% - 32px)); padding: 0; display: grid; gap: 8px; pointer-events: none; }
.flash-stack .alert { margin: 0; box-shadow: var(--shadow-lg); pointer-events: auto; animation: flashIn .45s var(--spring) both, flashOut .4s var(--ease) 6s forwards; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes flashOut { to { opacity: 0; transform: translateY(-10px); visibility: hidden; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 300; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--spring); box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* ---------- tags & pills ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--canvas); color: var(--muted); border: 1px solid var(--line); line-height: 1.5; }
.tag .ic { width: 1em; height: 1em; }
.tag-gold { background: var(--amber-soft); border-color: #f3dfb3; color: #7a5208; }
.tag-ok { background: var(--brand-soft); border-color: #bfe6cf; color: #0b5a33; }
.tag-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.tag-violet { background: var(--violet-soft); border-color: #d9d2ff; color: #4a35d6; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--canvas); color: var(--muted); border: 1px solid var(--line); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-awaiting_slip, .st-a-needs_work { background: var(--amber-soft); color: #7a5208; border-color: #f3dfb3; }
.st-pending_review, .st-a-submitted, .st-processing, .st-uploading, .st-created { background: var(--blue-soft); color: #1d4fb8; border-color: #cddcfb; }
.st-approved, .st-a-passed, .st-ready, .st-active, .st-published { background: var(--brand-soft); color: #0b5a33; border-color: #bfe6cf; }
.st-rejected, .st-cancelled, .st-failed, .st-blocked, .st-revoked, .st-archived, .st-live { background: var(--red-soft); color: #9e1c22; border-color: #f5c6c7; }
.st-draft { background: var(--canvas); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .87rem; font-weight: 500; background: var(--surface); transition: all .18s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--text); transform: translateY(-1px); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .72rem; font-weight: 700; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-xs); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.empty { text-align: center; padding: 52px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty h3 { font-size: 1.2rem; }
.empty p { color: var(--muted); max-width: 44ch; margin-left: auto; margin-right: auto; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
table.simple { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.simple th, table.simple td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.simple th { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
table.simple tr:last-child td { border-bottom: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.avatar.sm { width: 26px; height: 26px; font-size: .7rem; }
.avatar.lg { width: 44px; height: 44px; font-size: 1rem; }
.progress { height: 8px; background: #edf0eb; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--lime-strong)); border-radius: 999px; transform-origin: left; animation: growX 1s var(--ease) both; }
@keyframes growX { from { transform: scaleX(0); } }
.progress-label { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .9rem; color: var(--text); }
.pagination a:hover { border-color: var(--ink); }
.pagination .on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- motion helpers ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.12rem/1 var(--font-head); letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; flex: none; transition: transform .4s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand small { font-weight: 500; color: var(--muted); font-size: 1em; }

/* ---------- public header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(245, 246, 242, .72); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; view-transition-name: site-header; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .8); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.main-nav { display: flex; gap: 2px; }
.main-nav a { position: relative; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .93rem; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--text); background: rgba(11, 15, 12, .04); }
.main-nav a.on { color: var(--text); }
.main-nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-menu { position: relative; }
.user-menu > button { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; font: 600 .88rem var(--font-body); color: var(--text); cursor: pointer; transition: box-shadow .15s; }
.user-menu > button:hover { box-shadow: var(--shadow-sm); }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 230px; padding: 6px; display: none; box-shadow: var(--shadow-lg); transform-origin: top right; }
.user-menu.open .menu { display: block; animation: pop .22s var(--spring); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.user-menu .menu a, .user-menu .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--text); background: none; border: 0; font: 500 .9rem var(--font-body); cursor: pointer; text-align: left; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--canvas); }
.user-menu .menu .ic { color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--text); cursor: pointer; border-radius: 10px; }
.nav-toggle .ic { width: 24px; height: 24px; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); flex-direction: column; padding: 8px; display: none; }
  .site-header.nav-open .main-nav { display: flex; animation: pop .22s var(--spring); }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.on::after { display: none; }
  .main-nav a.on { background: var(--canvas); }
  .header-actions .hide-sm { display: none; }
  .user-menu > button .name { display: none; }
  .user-menu > button { padding: 3px; }
}

/* ---------- dark stage sections ---------- */
.stage { position: relative; background: var(--ink); color: #e9ede8; overflow: hidden; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(600px 380px at 15% 15%, rgba(21, 160, 90, .38), transparent 70%),
              radial-gradient(520px 360px at 85% 10%, rgba(110, 86, 255, .28), transparent 70%),
              radial-gradient(500px 300px at 60% 95%, rgba(201, 242, 77, .14), transparent 70%); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.stage h1, .stage h2, .stage h3 { color: #fff; }
.stage .muted { color: #a8b2ab; }
.stage a:not(.btn) { color: var(--lime); }
.stage .eyebrow { color: var(--lime); }
.text-gradient { background: linear-gradient(100deg, var(--lime) 10%, #6ee7a8 50%, #a99bff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 8s ease-in-out infinite alternate; }
@keyframes shine { to { background-position: 100% 0; } }

/* ---------- home ---------- */
.hero { padding: 72px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1; letter-spacing: -0.045em; margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #b9c3bc; max-width: 46ch; margin-bottom: 30px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: #d6ded8; margin-bottom: 26px; }
.hero-badge b { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 3px 9px; font-size: .74rem; letter-spacing: .02em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-search { margin-top: 30px; display: flex; align-items: center; max-width: 470px; padding: 6px 6px 6px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); transition: border-color .2s, background .2s; }
.hero-search:focus-within { border-color: var(--lime); background: rgba(255, 255, 255, .1); }
.hero-search .ic { color: #8f9a93; }
.hero-search input { flex: 1; border: 0; padding: .7em .8em; font: .95rem var(--font-body); background: transparent; min-width: 0; color: #fff; }
.hero-search input::placeholder { color: #8f9a93; }
.hero-search input:focus { outline: none; }
.hero-search button { border: 0; background: var(--lime); color: var(--ink); padding: .7em 1.1em; border-radius: 11px; font: 600 .88rem var(--font-body); cursor: pointer; }

/* floating UI collage */
.collage { position: relative; height: 530px; }
.glass { position: absolute; background: rgba(22, 30, 25, .72); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); color: #e9ede8; padding: 18px; text-decoration: none; }
a.glass:hover { color: #fff; border-color: rgba(201, 242, 77, .5); }
.glass small { color: #9aa59e; display: block; font-size: .78rem; }
.glass strong { color: #fff; font-family: var(--font-head); letter-spacing: -0.01em; }
.collage .g-course { left: 0; top: 46px; width: 70%; padding: 0; overflow: hidden; animation: float 9s ease-in-out infinite; }
.collage .g-course .thumb { aspect-ratio: 16 / 8.5; background: linear-gradient(135deg, var(--brand-strong), var(--ink-3)); position: relative; overflow: hidden; }
.collage .g-course .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.collage .g-course .thumb .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .15); }
.collage .g-course .thumb .play .ic { fill: currentColor; stroke: none; width: 22px; height: 22px; margin-left: 3px; }
.collage .g-course .meta { padding: 14px 18px 18px; }
.collage .g-course .bar { height: 6px; background: rgba(255, 255, 255, .12); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.collage .g-course .bar span { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--brand), var(--lime)); border-radius: 999px; }
.collage .g-live { right: 0; top: 0; width: 42%; animation: float 7s ease-in-out -2s infinite; }
.collage .g-live .row { display: flex; align-items: center; gap: 10px; }
.collage .g-live .dot { width: 38px; height: 38px; border-radius: 12px; background: rgba(229, 72, 77, .18); color: #ff8a8e; display: grid; place-items: center; }
.collage .g-cert { left: 6%; top: 380px; width: 38%; animation: float 8s ease-in-out -4s infinite; }
.collage .g-cert .seal { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; margin-bottom: 10px; }
.collage .g-chat { right: 0; top: 300px; width: 50%; animation: float 10s ease-in-out -6s infinite; }
.collage .g-chat .bubble { background: rgba(255, 255, 255, .08); border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: .84rem; margin-top: 8px; color: #dfe6e1; }
.collage .g-chat .bubble.me { background: var(--lime); color: var(--ink); border-radius: 14px 14px 4px 14px; margin-left: 24px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.marquee { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee a, .marquee .chip-static { color: #cdd6d0 !important; text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; transition: background .2s, color .2s; }
.marquee a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 8px; max-width: 20ch; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.bento .tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-xs); transition: transform .35s var(--ease), box-shadow .35s var(--ease); isolation: isolate; }
.bento .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento .tile h3 { font-size: 1.3rem; margin-bottom: 8px; }
.bento .tile p { color: var(--muted); margin: 0; max-width: 40ch; }
.bento .tile .t-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-soft); color: var(--brand-strong); }
.bento .tile .t-ic .ic { width: 22px; height: 22px; }
.bento .t-a { grid-column: span 4; grid-row: span 2; background: var(--ink); color: #dfe6e1; border-color: var(--ink); }
.bento .t-a h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 16ch; }
.bento .t-a p { color: #a8b2ab; }
.bento .t-a .t-ic { background: rgba(201, 242, 77, .14); color: var(--lime); }
.bento .t-a::before { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(21, 160, 90, .55), transparent 65%); z-index: -1; }
.bento .t-b, .bento .t-c { grid-column: span 2; }
.bento .t-d, .bento .t-e, .bento .t-f { grid-column: span 2; }
.bento .t-b .t-ic { background: var(--red-soft); color: var(--red); }
.bento .t-c .t-ic { background: var(--violet-soft); color: var(--violet); }
.bento .t-d .t-ic { background: var(--amber-soft); color: var(--amber); }
.bento .t-e .t-ic { background: var(--blue-soft); color: var(--blue); }
.bento .t-f { background: var(--lime); border-color: var(--lime); }
.bento .t-f p { color: #3b4a10; }
.bento .t-f .t-ic { background: rgba(11, 15, 12, .08); color: var(--ink); }
.mini-player { margin-top: 26px; border-radius: 18px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); padding: 14px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; max-width: 460px; }
.mini-player .scr { aspect-ratio: 16 / 10; border-radius: 10px; background: linear-gradient(135deg, var(--brand-strong), #10241a); display: grid; place-items: center; color: #fff; }
.mini-player .scr .ic { fill: currentColor; stroke: none; }
.mini-player .lines span { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin: 8px 0; }
.mini-player .lines span:nth-child(1) { width: 80%; background: rgba(255, 255, 255, .22); }
.mini-player .lines span:nth-child(2) { width: 55%; }
.mini-player .lines span:nth-child(3) { width: 65%; background: linear-gradient(90deg, var(--brand), var(--lime)); }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .t-a { grid-column: span 2; grid-row: auto; }
  .bento .t-b, .bento .t-c, .bento .t-d, .bento .t-e, .bento .t-f { grid-column: span 1; }
}
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento .tile { grid-column: auto !important; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; }
.steps li::before { counter-increment: step; content: "0" counter(step); font: 700 .85rem/1 var(--font-head); color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px; padding: 6px 10px; display: inline-block; margin-bottom: 18px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 37px; right: -17px; width: 18px; height: 2px; background: var(--line-strong); }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--spring); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(90deg); }
.faq details p { color: var(--muted); padding: 0 22px 18px; margin: 0; }

.cta-band { margin: 0 var(--gutter) 64px; border-radius: var(--r-xl); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 64px 48px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 18ch; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
@media (max-width: 640px) { .cta-band .wrap { padding: 44px 24px; } }

/* ---------- course & bundle cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; isolation: isolate; }
.course-card, .bundle-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); box-shadow: var(--shadow-xs); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; position: relative; }
.course-card:hover, .bundle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); color: var(--text); }
.course-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-strong), var(--ink-2)); position: relative; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .course-thumb img, .bundle-card:hover .course-thumb img { transform: scale(1.05); }
.course-thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--lime); font: 800 2.6rem var(--font-head); }
.course-thumb .placeholder .ic { width: 48px; height: 48px; }
.course-card .body, .bundle-card .body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card .cat-on-img { position: absolute; left: 12px; top: 12px; }
.course-card h3, .bundle-card h3 { font-size: 1.04rem; margin: 0; line-height: 1.35; letter-spacing: -0.01em; }
.course-card .by { font-size: .84rem; color: var(--muted); }
.course-card .meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); }
.course-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card .price-row, .bundle-card .price-row { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.course-card .price-row .go, .bundle-card .price-row .go { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); transition: background .25s, color .25s, transform .3s var(--spring); }
.course-card:hover .price-row .go, .bundle-card:hover .price-row .go { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.price { font: 700 1.1rem var(--font-head); letter-spacing: -0.02em; }
.price-was { text-decoration: line-through; color: var(--subtle); font-size: .86rem; }
.price-free { color: var(--brand-strong); }
.bundle-card { border-color: #d7ead9; }
.bundle-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--lime), transparent 40%, var(--brand)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2; }
.bundle-card .course-thumb { background: radial-gradient(circle at 30% 20%, var(--brand), var(--ink) 70%); }
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.stars .star { width: 14px; height: 14px; }
.stars .star.s-on { fill: #f5b10b; stroke: #e09d00; stroke-width: 1; }
.stars .star.s-off { fill: #e8ebe6; stroke: #d3d8d1; stroke-width: 1; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; }
.rating-line strong { color: var(--text); }

/* ---------- catalogue ---------- */
.page-head { padding: 52px 0 36px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.page-head.stage { padding: 64px 0 48px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.filters .search { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); flex: 1 1 280px; max-width: 420px; padding-left: 12px; transition: border-color .15s, box-shadow .15s; }
.filters .search:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.filters .search input { border: 0; flex: 1; padding: .72em .6em; font: .95rem var(--font-body); min-width: 0; background: transparent; }
.filters .search input:focus { outline: none; }
.filters .search button { border: 0; background: none; padding: 0 12px; color: var(--muted); cursor: pointer; }
.stage .filters .search { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.stage .filters .search input { color: #fff; }
.stage .chip { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: #d6ded8; }
.stage .chip:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.stage .chip.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ---------- course page ---------- */
.course-hero .wrap { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.course-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.course-hero .sub { font-size: 1.1rem; color: #b9c3bc; max-width: 60ch; }
.course-hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.course-hero .facts > span, .course-hero .facts > a { display: inline-flex; gap: 7px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: #d6ded8; text-decoration: none; }
.course-hero .crumbs { font-size: .86rem; margin-bottom: 16px; color: #8f9a93; }
.course-body { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding: 0 var(--gutter) 72px; }
.course-body .main { min-width: 0; padding-top: 40px; }
.course-body .side { margin-top: -260px; position: relative; z-index: 5; }
.buy-card { background: var(--surface); color: var(--text); border-radius: var(--r-xl); overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow-lg); border: 1px solid var(--line) !important; }
.buy-card .media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-strong), var(--ink)); position: relative; }
.buy-card .media iframe, .buy-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.buy-card .inner { padding: 22px; }
.buy-card .price { font-size: 2rem; }
.buy-card ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; }
.buy-card li { display: flex; gap: 10px; padding: 5px 0; color: var(--muted); }
.buy-card li .ic { color: var(--brand); }
.learn-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.learn-list li { display: flex; gap: 10px; }
.learn-list .ic { color: var(--brand); margin-top: .2em; }
@media (max-width: 640px) { .learn-list { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose blockquote { border-left: 3px solid var(--lime-strong); margin: 0; padding: 4px 16px; color: var(--muted); }
.prose code { background: var(--canvas); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose img { border-radius: 12px; }
.curriculum { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.curriculum details + details { border-top: 1px solid var(--line); }
.curriculum summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; transition: background .15s; }
.curriculum summary:hover { background: var(--surface-2); }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary .count { font-weight: 400; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.curriculum ul { list-style: none; margin: 0; padding: 0 0 8px; }
.curriculum li { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: .93rem; }
.curriculum li .t { flex: 1; min-width: 0; }
.curriculum li .d { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.curriculum li .ic { color: var(--subtle); }
.curriculum li a.preview { font-size: .82rem; font-weight: 600; text-decoration: none; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }
.instructor { display: flex; gap: 18px; align-items: flex-start; }
.instructor img, .instructor .ph { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; flex: none; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; display: grid; place-items: center; font: 700 1.5rem var(--font-head); }
.h-sec { font-size: 1.35rem; margin: 40px 0 14px; }
@media (max-width: 980px) {
  .course-hero .wrap, .course-body { grid-template-columns: minmax(0, 1fr); }
  .course-body .side { margin-top: 24px; order: -1; }
  .buy-card { position: static; }
}

/* ---------- reviews ---------- */
.hero-rating { gap: 6px; }
.hero-rating strong { color: #fff; }
.reviews { margin-top: 12px; }
.rating-summary { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; }
.rating-summary .big { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rating-summary .big strong { font: 800 3.2rem/1 var(--font-head); letter-spacing: -0.04em; }
.rating-summary .big .star { width: 18px; height: 18px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; font-size: .84rem; margin: 4px 0; }
.bar-row .progress > span { background: #f5b10b; }
@media (max-width: 520px) { .rating-summary { grid-template-columns: minmax(0, 1fr); } }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.review .when { margin-left: auto; color: var(--subtle); font-size: .8rem; }
.review-form textarea { width: 100%; font: .95rem/1.5 var(--font-body); padding: .7em .9em; border: 1px solid var(--line-strong); border-radius: 12px; }
.star-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; color: #d3d8d1; transition: transform .2s var(--spring); }
.star-input label:hover { transform: scale(1.15); }
.star-input label .ic { width: 30px; height: 30px; fill: #eef1ec; stroke: currentColor; stroke-width: 1.3; }
.star-input input:checked ~ label .ic, .star-input label:hover .ic, .star-input label:hover ~ label .ic { fill: #f5b10b; color: #e09d00; }
.star-input input:focus-visible + label { box-shadow: var(--focus); border-radius: 6px; }

/* ---------- bundles ---------- */
.bundle-badge { display: inline-flex; gap: 6px; align-items: center; background: var(--lime); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 999px; margin: 0 0 14px; }
.bundle-ph { width: 64px !important; height: 64px !important; }
.save-note { color: var(--brand-strong); font-weight: 600; font-size: .9rem; margin: 0 0 14px; }
.bundle-nudge { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; background: var(--lime-soft); border: 1px solid #e2f2a8; border-radius: var(--r-md); color: var(--text); text-decoration: none; font-size: .9rem; transition: transform .25s var(--ease); }
.bundle-nudge:hover { transform: translateY(-2px); color: var(--text); }
.bundle-nudge > .ic:first-child { width: 24px; height: 24px; color: var(--brand-strong); }
.bundle-nudge span { flex: 1; }
.bundle-nudge strong { display: block; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 14ch; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; color: #cdd6d0; }
.auth-side li .ic { color: var(--lime); margin-top: 3px; }
.auth-main { display: grid; place-items: center; padding: 48px var(--gutter); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card .alt { text-align: center; margin-top: 22px; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 36px var(--gutter) 72px; align-items: start; }
.checkout aside .panel { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .93rem; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font: 700 1.3rem var(--font-head); letter-spacing: -0.02em; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.bank-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.bank-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.bank-box dt { color: var(--muted); font-size: .86rem; }
.bank-box dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy { background: var(--brand-soft); border: 0; color: var(--brand-strong); cursor: pointer; font: 600 .74rem var(--font-body); padding: 3px 8px; border-radius: 999px; margin-left: 6px; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .8rem var(--font-head); margin-right: 8px; vertical-align: 2px; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } .checkout aside .panel { position: static; } }

/* ---------- learning page ---------- */
.learn-top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.learn-top .wrap { display: flex; align-items: center; gap: 14px; height: 58px; max-width: none; }
.learn-top a { color: #fff; text-decoration: none; }
.learn-top .back { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); transition: background .15s; }
.learn-top .back:hover { background: rgba(255, 255, 255, .14); }
.learn-top .ttl { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.learn-top .overall { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #b9c3bc; }
.learn-top .overall .progress { width: 130px; background: rgba(255, 255, 255, .12); height: 6px; }
.learn-layout { display: grid; grid-template-columns: 1fr 370px; min-height: calc(100vh - 58px); }
.learn-main { min-width: 0; }
.player-shell { background: #000; }
.player-box { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); margin: 0 auto; }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watermark { position: absolute; pointer-events: none; user-select: none; z-index: 3; color: rgba(255, 255, 255, .42); font: 600 13px/1.3 var(--font-body); text-shadow: 0 0 3px rgba(0, 0, 0, .5); white-space: nowrap; transition: top 1.2s ease, left 1.2s ease; }
.player-box:fullscreen { max-height: none; width: 100%; height: 100%; aspect-ratio: auto; background: #000; }
.player-box:-webkit-full-screen { max-height: none; width: 100%; height: 100%; background: #000; }
.player-box.pseudo-full { position: fixed; inset: 0; z-index: 200; max-height: none; aspect-ratio: auto; background: #000; }
.player-tools { display: flex; justify-content: flex-end; gap: 8px; padding: 8px var(--gutter); background: #000; }
.player-tools button { background: rgba(255, 255, 255, .08); color: #fff; border: 0; border-radius: 10px; padding: 7px 12px; font: 600 .82rem var(--font-body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.player-tools button:hover { background: rgba(255, 255, 255, .16); }
.player-box.pseudo-full .fs-exit { display: inline-flex; }
.fs-exit { display: none; position: absolute; right: 12px; top: 12px; z-index: 4; background: rgba(0, 0, 0, .6); color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; font: 600 .84rem var(--font-body); }
.player-missing { position: absolute; inset: 0; display: grid; place-items: center; color: #b9c3bc; text-align: center; padding: 20px; }
.lesson-content { padding: 28px clamp(20px, 4vw, 48px) 72px; max-width: 940px; }
.lesson-bar { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.lesson-bar h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.lesson-kind { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-strong); }
.lesson-nav { display: flex; gap: 8px; }
.done-badge { display: inline-flex; gap: 6px; align-items: center; color: var(--brand-strong); font-weight: 600; margin-top: 6px; }
.h-sub { font-size: 1.15rem; margin: 32px 0 14px; display: flex; align-items: center; gap: 8px; }
.resources { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.resources li a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--surface); color: var(--text); transition: border-color .15s, transform .2s var(--ease); }
.resources li a:hover { border-color: var(--brand); transform: translateX(2px); }
.resources li a > .ic:first-child { color: var(--brand); }
.resources .size { margin-left: auto; color: var(--muted); font-size: .82rem; }
.learn-side { background: var(--surface); border-left: 1px solid var(--line); max-height: calc(100vh - 58px); overflow-y: auto; position: sticky; top: 58px; }
.learn-side h2 { font-size: .95rem; padding: 16px 18px; margin: 0; border-bottom: 1px solid var(--line); }
.side-section { border-bottom: 1px solid var(--line); }
.side-section > p { margin: 0; padding: 14px 18px 6px; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.side-lessons { list-style: none; margin: 0; padding: 0 8px 10px; }
.side-lessons a { display: flex; gap: 10px; padding: 9px 10px; text-decoration: none; color: var(--text); font-size: .9rem; align-items: flex-start; border-radius: 10px; transition: background .15s; }
.side-lessons a:hover { background: var(--canvas); }
.side-lessons a.current { background: var(--brand-soft); color: #0b5a33; font-weight: 600; }
.side-lessons .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; margin-top: 1px; background: var(--surface); }
.side-lessons .tick.done { background: var(--brand); border-color: var(--brand); color: #fff; animation: tickPop .4s var(--spring); }
@keyframes tickPop { from { transform: scale(.4); } }
.side-lessons .tick .ic { width: 12px; height: 12px; stroke-width: 3; }
.side-lessons .d { margin-left: auto; color: var(--subtle); font-size: .78rem; white-space: nowrap; padding-left: 8px; }
.side-lessons .d .ic { width: 14px; height: 14px; }
.side-lessons a.is-locked { color: var(--subtle); }
.side-lessons a.is-locked .tick { border-style: dashed; }
.side-drip { margin: 0; padding: 0 18px 6px; font-size: .78rem; color: #7a5208; display: flex; gap: 6px; align-items: center; }
.side-live { display: flex; align-items: center; gap: 12px; margin: 12px; padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.side-live::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 242, 77, .35), transparent 70%); }
.side-live:hover { color: #fff; }
.side-live > .ic:first-child { width: 24px; height: 24px; color: var(--lime); }
.side-live span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.side-live small { color: #b9c3bc; }
.side-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--text); border-radius: 10px; }
.side-link:hover { background: var(--canvas); color: var(--text); }
.locked-hero { background: var(--ink); color: #b9c3bc; text-align: center; padding: 80px 24px; position: relative; overflow: hidden; }
.locked-hero .ic { width: 44px; height: 44px; color: var(--lime); }
.locked-hero h1 { color: #fff; font-size: 1.8rem; margin: 16px 0 8px; }
.locked-hero p { max-width: 46ch; margin: 0 auto 20px; }
.locked-hero .btn-ghost { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255, 255, 255, .3); }
@media (max-width: 1000px) {
  .learn-layout { grid-template-columns: minmax(0, 1fr); }
  .learn-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .learn-top .overall .progress { width: 70px; }
}

/* quiz */
.quiz { margin: 8px 0 10px; }
.quiz-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 22px; }
.quiz-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.quiz-summary .k { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.quiz-summary .v { font: 700 1.4rem var(--font-head); letter-spacing: -0.02em; }
.quiz-form ol { padding-left: 0; margin: 0 0 22px; list-style: none; counter-reset: q; }
.quiz-form > ol > li { counter-increment: q; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.quiz-form fieldset { border: 0; padding: 0; margin: 0; }
.quiz-form legend { font-weight: 600; margin-bottom: 12px; padding: 0; font-size: 1.02rem; }
.quiz-form legend::before { content: counter(q) ". "; color: var(--brand-strong); }
.quiz-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.quiz-opt:hover { border-color: var(--brand); }
.quiz-opt:active { transform: scale(.99); }
.quiz-opt input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.quiz-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.quiz-result { display: flex; gap: 20px; align-items: center; border-radius: 20px; padding: 20px 24px; margin-bottom: 22px; border: 1px solid; animation: pop .45s var(--spring); }
.quiz-result.pass { background: var(--brand-soft); border-color: #bfe6cf; }
.quiz-result.fail { background: var(--red-soft); border-color: #f5c6c7; }
.quiz-result .score { font: 800 2.6rem/1 var(--font-head); min-width: 100px; text-align: center; letter-spacing: -0.04em; }
.quiz-result.pass .score { color: var(--brand-strong); }
.quiz-result.fail .score { color: var(--red); }
.quiz-result p { margin: 4px 0 0; }
.quiz-review { padding-left: 1.3em; }
.quiz-review > li { margin-bottom: 20px; }
.quiz-review .q { font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.quiz-review .mark .ic { width: 20px; height: 20px; }
.quiz-review li.ok .mark { color: var(--brand); }
.quiz-review li.bad .mark { color: var(--red); }
.quiz-review ul { list-style: none; padding: 0; margin: 0; }
.quiz-review ul li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; background: var(--surface); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quiz-review ul li.right { border-color: #bfe6cf; background: var(--brand-soft); }
.quiz-review ul li.picked:not(.right) { border-color: #f5c6c7; background: var(--red-soft); }
.quiz-review .explain { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--lime-strong); padding: 4px 12px; margin: 8px 0 0; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-history { margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }

/* assignment */
.assignment { margin: 10px 0 8px; }
.assign-status { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 18px; }
.assign-status .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.assign-status .feedback { margin-top: 14px; border-left: 3px solid var(--lime-strong); padding: 8px 14px; background: var(--lime-soft); border-radius: 0 12px 12px 0; }
.sub-body { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; word-break: break-word; }
.file-link { display: inline-flex; gap: 6px; align-items: center; }

/* lesson discussion */
.comments { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 6px; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.comment-form textarea { flex: 1; min-width: 0; font: .95rem/1.5 var(--font-body); padding: .75em .9em; border: 1px solid var(--line-strong); border-radius: 14px; resize: vertical; background: var(--surface); }
.comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; }
.comment header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: .92rem; }
.comment .when { color: var(--subtle); font-size: .8rem; margin-left: auto; }
.comment .body { word-break: break-word; }
.comment.reply { background: var(--surface-2); margin: 12px 0 0 24px; padding: 12px 14px; border-radius: 14px; }
.comment footer { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; flex-wrap: wrap; }
.comment footer details { flex: 1; }
.comment footer summary { list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.comment footer summary::-webkit-details-marker { display: none; }
.comment footer details .comment-form { margin: 8px 0 0; }
@media (max-width: 560px) { .comment-form { flex-direction: column; align-items: stretch; } .comment.reply { margin-left: 8px; } }

/* live */
.live-page { padding: 32px var(--gutter) 72px; max-width: 920px; }
.live-page h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); display: flex; gap: 12px; align-items: center; }
.live-page h1 .ic { color: var(--red); }
.live-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-bottom: 12px; transition: box-shadow .2s, transform .25s var(--ease); }
.live-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.live-card.is-open { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.live-card.is-cancelled { opacity: .6; }
.live-card .when { background: var(--ink); color: #fff; border-radius: 16px; text-align: center; padding: 10px 0; }
.live-card .when .d { display: block; font: 800 1.7rem/1 var(--font-head); }
.live-card .when .m { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lime); margin-top: 3px; }
.live-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.live-card .act { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; text-align: right; }
.live-card .countdown { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); } 70% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@media (max-width: 640px) {
  .live-card { grid-template-columns: 62px 1fr; }
  .live-card .act { grid-column: 1 / -1; align-items: stretch; text-align: left; }
  table.live-past tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.live-past td { padding: 0; border: 0; }
  table.live-past td:last-child { grid-column: 1 / -1; text-align: left !important; }
}

/* certificate & verify */
.cert-verify { max-width: 620px; margin: 56px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px 32px; text-align: center; box-shadow: var(--shadow-md); }
.cert-verify .seal { width: 72px; height: 72px; border-radius: 22px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .5s var(--spring); }
.cert-verify .seal .ic { width: 34px; height: 34px; }
.cert-verify .seal.bad { background: var(--red-soft); color: var(--red); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #a8b2ab; margin-top: auto; position: relative; overflow: hidden; }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 64px; padding-bottom: 28px; }
.site-footer a { color: #e3e9e4; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8f9a93; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); grid-column: 1 / -1; padding-top: 22px; font-size: .84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-word { font: 800 clamp(4rem, 15vw, 13rem)/.8 var(--font-head); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); text-align: center; margin: 0 0 -.12em; user-select: none; white-space: nowrap; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }

body.layout-app { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

.install-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 460px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 18px; padding: 14px 16px; display: none; align-items: center; gap: 12px; z-index: 80; box-shadow: var(--shadow-lg); }
.install-banner.show { display: flex; animation: flashIn .5s var(--spring); }
.install-banner p { margin: 0; flex: 1; font-size: .9rem; }
.install-banner button.x { background: none; border: 0; color: #b9c3bc; cursor: pointer; padding: 4px; }

/* ---------- student app shell ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--surface) 259px, var(--line) 259px 260px, transparent 260px); }
.app-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; view-transition-name: app-side; }
.app-side .brand { padding: 6px 10px 20px; }
.app-nav { display: grid; gap: 2px; }
.app-nav .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--subtle); font-weight: 600; padding: 16px 12px 6px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; transition: background .15s, color .15s; position: relative; }
.app-nav a:hover { background: var(--canvas); color: var(--text); }
.app-nav a.on { background: var(--ink); color: #fff; }
.app-nav a.on .ic { color: var(--lime); }
.app-nav a .badge { margin-left: auto; }
.app-side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--canvas); }
.app-side .me .who { flex: 1; min-width: 0; line-height: 1.25; }
.app-side .me .who strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side .me .who span { font-size: .76rem; color: var(--muted); }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(245, 246, 242, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-top .search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--subtle); transition: border-color .15s, box-shadow .15s; }
.app-top .search:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.app-top .search input { border: 0; background: transparent; padding: .62em 0; font: .92rem var(--font-body); flex: 1; min-width: 0; color: var(--text); }
.app-top .search input:focus { outline: none; }
.app-top .menu-btn { display: none; }
.app-content { padding: 32px 28px 72px; width: 100%; max-width: 1180px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-title h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 4px; }
.page-title p { margin: 0; color: var(--muted); }
.app-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.app-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.app-tabs a.on { color: var(--text); border-color: var(--ink); }
.bottom-bar { display: none; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .app-side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  body.side-open .app-side { transform: none; }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(11, 15, 12, .4); z-index: 80; }
  .app-top { padding: 0 12px; gap: 8px; }
  .app-top .menu-btn { display: inline-flex; flex: none; }
  .app-top .search { min-width: 0; }
  .app-top .grow { display: none; }
  .app-top .btn { flex: none; padding: .6em; }
  .app-top .hide-sm { display: none; }
  .app-top .btn .ic { margin: 0; }
  .app-content { padding: 22px 16px 96px; }
  .bottom-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70; background: rgba(11, 15, 12, .92); backdrop-filter: blur(14px); border-radius: 20px; padding: 6px; box-shadow: var(--shadow-lg); padding-bottom: calc(6px + env(safe-area-inset-bottom) / 2); }
  .bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 14px; color: #a8b2ab; text-decoration: none; font-size: .68rem; font-weight: 600; }
  .bottom-bar a .ic { width: 20px; height: 20px; }
  .bottom-bar a.on { background: rgba(255, 255, 255, .08); color: #fff; }
  .bottom-bar a.on .ic { color: var(--lime); }
}

/* dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden; }
.dash-card h2 { font-size: 1.05rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.dash-card .ic-dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.dash-hero { grid-column: span 8; background: var(--ink); color: #dfe6e1; border-color: var(--ink); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.dash-hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(21, 160, 90, .5), transparent 65%); }
.dash-hero::after { content: ""; position: absolute; left: 30%; bottom: -120px; width: 300px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(110, 86, 255, .3), transparent 65%); }
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero h2 { color: #fff; font-size: 1.5rem; max-width: 22ch; }
.dash-hero .muted { color: #a8b2ab; }
.dash-hero .progress { background: rgba(255, 255, 255, .12); max-width: 380px; }
.dash-stat { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.dash-stat .n { font: 700 2.3rem/1 var(--font-head); letter-spacing: -0.04em; }
.dash-stat .l { color: var(--muted); font-size: .84rem; }
.dash-wide { grid-column: span 12; }
.dash-half { grid-column: span 6; }
@media (max-width: 1100px) { .dash-hero { grid-column: span 12; } .dash-stat { grid-column: span 4; } .dash-half { grid-column: span 12; } }
@media (max-width: 560px) { .dash-stat { grid-column: span 6; } }
.my-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.my-course { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.my-course:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.my-course .course-thumb { border-radius: 0; }
.my-course .mc-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.my-course h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.my-course .mc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.my-course .mc-actions .btn { flex: 1; }
.dash-live ul { list-style: none; padding: 0; margin: 0; }
.dash-live li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dash-live li:first-child { border-top: 0; }
.dash-live .when { font-weight: 700; font-size: .82rem; background: var(--canvas); border-radius: 10px; padding: 6px 10px; white-space: nowrap; }
.dash-live .what { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
@media (max-width: 640px) { .dash-live li { grid-template-columns: 1fr auto; } .dash-live .when { grid-column: 1 / -1; justify-self: start; } }
.order-alert { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* community */
.community { max-width: 1180px; }
.composer { padding: 18px 20px; }
.composer .who-row { display: flex; gap: 12px; align-items: flex-start; }
.composer textarea { width: 100%; border: 0; resize: vertical; font: 1rem/1.55 var(--font-body); padding: 6px 0; min-height: 64px; background: transparent; }
.composer textarea:focus { outline: none; }
.composer-bar { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.composer .attach { position: relative; overflow: hidden; max-width: 60%; }
.composer .attach span { overflow: hidden; text-overflow: ellipsis; }
.composer .attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.channels { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.channels::-webkit-scrollbar { display: none; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 12px; margin-bottom: 14px; box-shadow: var(--shadow-xs); animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.post.is-pinned { border-color: #e2f2a8; box-shadow: inset 0 3px 0 var(--lime), var(--shadow-xs); }
.post.is-hidden, tr.is-hidden td, .qa.is-hidden { opacity: .55; }
.post header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post .who { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.post .who .when { font-size: .78rem; color: var(--subtle); text-decoration: none; }
.post .pin { display: inline-flex; gap: 4px; align-items: center; font-size: .74rem; font-weight: 700; color: #3b4a10; background: var(--lime); padding: 3px 9px; border-radius: 999px; }
.post .body { word-break: break-word; font-size: .98rem; }
.post-img { display: block; margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.post-img img { width: 100%; max-height: 520px; object-fit: cover; }
.post-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-actions .grow { flex: 1; }
.post-actions a { text-decoration: none; display: inline-flex; gap: 5px; align-items: center; color: var(--muted); }
.post-actions a:hover { color: var(--text); }
.like-btn { display: inline-flex; gap: 6px; align-items: center; background: var(--canvas); border: 1px solid transparent; border-radius: 999px; padding: 5px 12px; cursor: pointer; font: 600 .84rem var(--font-body); color: var(--muted); transition: all .2s; }
.like-btn:hover { color: #d6264f; background: #fdeef2; }
.like-btn.on { color: #d6264f; background: #fdeef2; border-color: #f7c6d3; }
.like-btn.on .ic { fill: currentColor; animation: heart .5s var(--spring); }
@keyframes heart { 30% { transform: scale(1.35); } }
.post-comments { margin-top: 8px; }
.pc { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 8px 0; font-size: .92rem; }
.pc > div { background: var(--canvas); border-radius: 4px 14px 14px 14px; padding: 8px 12px; }
.pc .when { color: var(--subtle); font-size: .76rem; margin-left: 6px; }
.pc-form { display: flex; gap: 8px; margin-top: 8px; }
.pc-form .input { flex: 1; min-width: 0; padding: .55em .9em; border: 1px solid var(--line-strong); border-radius: 999px; font: .9rem var(--font-body); background: var(--surface); }
.big-ic { width: 48px; height: 48px; color: var(--brand); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
.course-grid > [data-reveal] > a { flex: 1; min-width: 0; }

/* comment actions: quiet pill buttons instead of underlined links */
.comment .link-btn, .post .link-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .82rem; transition: background .15s, color .15s; }
.comment .link-btn:hover, .post .link-btn:hover { background: var(--surface-2); color: var(--text); }
.comment .link-btn .ic { width: 15px; height: 15px; }
.comment form[data-confirm] .link-btn:hover, .post form[data-confirm] .link-btn:hover { color: var(--red); background: rgba(229, 72, 77, .08); }
.comment details > summary { list-style: none; }
.comment details > summary::-webkit-details-marker { display: none; }

/* community: feed + right rail (Skool / Circle style) */
.community-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.community-feed { min-width: 0; }
.community-rail { position: sticky; top: 84px; display: grid; gap: 14px; }
.rail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.rail-card h4 { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin: 0 0 12px; }
.rail-card h4 .ic { width: 17px; height: 17px; color: var(--brand); }
.rail-about { background: radial-gradient(120% 90% at 100% 0, rgba(201, 242, 77, .22), transparent 60%), var(--ink); color: #dfe6e1; border-color: transparent; }
.rail-about h3 { color: #fff; font-size: 1.15rem; margin: 12px 0 6px; }
.rail-about p { font-size: .88rem; color: #aab5ae; margin: 0; }
.rail-mark { width: 42px; height: 42px; border-radius: 14px; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.rail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.rail-stats div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 10px 12px; }
.rail-stats strong { display: block; color: #fff; font: 700 1.3rem/1.1 var(--font-head); }
.rail-stats span { font-size: .76rem; color: #9aa59e; }
.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.leaders li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.leaders .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.leaders b { font-size: .82rem; color: var(--brand-strong); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.leaders .rank { width: 20px; text-align: center; font-weight: 700; font-size: .8rem; color: var(--subtle); }
.leaders .rank.r1 { color: #c48a00; } .leaders .rank.r2 { color: #8a94a0; } .leaders .rank.r3 { color: #b0683a; }
.rail-live { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 14px; text-decoration: none; color: var(--text); transition: background .15s; }
.rail-live:hover { background: var(--surface-2); }
.rail-live .d { width: 46px; flex: none; text-align: center; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 6px 0; line-height: 1.1; }
.rail-live .d b { display: block; font: 700 1.15rem/1 var(--font-head); }
.rail-live strong { display: block; font-size: .9rem; }
.rail-live small { color: var(--muted); font-size: .78rem; }
@media (max-width: 1100px) { .community-cols { grid-template-columns: minmax(0, 1fr); } .community-rail { position: static; grid-row: 1; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .community-rail .rail-card:not(.rail-about) { display: none; } }
.tiny { font-size: .76rem; }
.post .who-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

input[type=file]::file-selector-button { font: 600 .84rem var(--font-body); border: 0; border-radius: 9px; padding: 8px 12px; margin-right: 12px; background: var(--ink); color: #fff; cursor: pointer; transition: background .15s; }
input[type=file]::file-selector-button:hover { background: var(--brand-strong); }

/* error pages */
.err-stage { padding: clamp(72px, 12vw, 140px) 0; text-align: center; }
.err-stage .wrap { max-width: 720px; }
.err-code { margin: 0; font: 800 clamp(6rem, 20vw, 11rem)/.9 var(--font-head); letter-spacing: -0.06em; background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, .08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-stage h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 8px 0 10px; }
.err-stage .lead { color: #aab5ae; margin: 0 auto; }
.err-stage .hero-actions { justify-content: center; margin-top: 28px; }
.flash-stack .alert { cursor: pointer; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; backdrop-filter: blur(12px); }
.flash-stack .alert::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-top: .5em; }
.flash-stack .alert-error { animation: flashIn .45s var(--spring) both, flashOut .4s var(--ease) 14s forwards; }
.flash-stack .alert:hover { animation-play-state: paused; }

/* certificate verification */
.verify-stage { padding: clamp(56px, 9vw, 104px) 0; min-height: calc(100vh - var(--header-h) - 120px); }
.verify-head { max-width: 640px; margin: 0 auto; text-align: center; }
.verify-head .eyebrow { justify-content: center; }
.verify-head h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.045em; margin: 10px 0 12px; }
.verify-head .lead { color: #aab5ae; margin: 0 auto 26px; }
.verify-form { margin: 0 auto; max-width: 480px; }
.verify-stage .cert-verify { margin: 36px auto 0; background: rgba(255, 255, 255, .96); border: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); position: relative; overflow: hidden; }
.verify-stage .cert-verify.ok::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--brand), var(--lime)); }
.verify-stage .cert-verify.bad::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--red); }
.cert-verify h2 { font-size: 1.6rem; margin: 6px 0 8px; }
.cert-verify .who { font-size: 1.02rem; color: var(--muted); margin: 0 auto; max-width: 46ch; }
.cert-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 0; text-align: left; }
.cert-facts div { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.cert-facts dt { font-size: .74rem; color: var(--subtle); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cert-facts dd { margin: 4px 0 0; font-weight: 700; font-size: .92rem; word-break: break-word; }
@media (max-width: 560px) { .cert-facts { grid-template-columns: minmax(0, 1fr); } }
.dash-hero .hero-thumb { position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: min(38%, 300px); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); rotate: 2deg; transition: rotate .4s var(--spring), scale .4s var(--spring); }
.dash-hero .hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dash-hero .hero-thumb .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; }
.dash-hero .hero-thumb .play .ic { fill: currentColor; stroke: none; margin-left: 3px; }
.dash-hero:hover .hero-thumb { rotate: 0deg; scale: 1.03; }
.dash-hero > div { position: relative; z-index: 1; max-width: 56%; }
@media (max-width: 760px) { .dash-hero .hero-thumb { display: none; } .dash-hero > div { max-width: none; } }
