/* ==========================================================================
   Am Rich — design system
   ========================================================================== */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/static/fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/montserrat-400.woff2") format("woff2");
}

/* Theme tokens --------------------------------------------------------------
   Light is the default. Dark applies when the device prefers dark (unless the
   member picked light) or when the member picks dark with the header toggle.
   Change the palette here; components only use these variables.
   No green and no black blocks (client, Nov 2026): white pages, light-gold bands, gold accents.            */
:root {
  color-scheme: light;
  /* Brand: black & white with the logo's gold as the only accent */
  --forest: #6b4f12;               /* filled buttons, active chips (bronze) */
  --forest-2: #7d5e1a;
  --forest-3: #8f6c22;
  --gold: #c9a14b;
  --gold-deep: #9e7623;
  --gold-soft: #ead6a6;
  /* Text */
  --ink: #0a0a0a;
  --body: #2e2e2e;
  --muted: #6b6b6b;
  --brand-ink: #0a0a0a;            /* prices and accent text */
  --on-dark: #ffffff;              /* text on black surfaces */
  /* Surfaces */
  --cream: #ffffff;                /* page background */
  --cream-2: #f2f2f2;
  --paper: #ffffff;                /* cards and panels */
  --surface: #ffffff;              /* inputs, product images */
  --surface-soft: #f7f7f7;         /* subtle rows */
  --chip-bg: #f2f2f2;
  --highlight-bg: #fbf6ea;
  --field-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, .94);
  --admin-bg: #f5f5f5;
  --admin-topbar-bg: rgba(245, 245, 245, .93);
  --btn-dark-bg: #6b4f12;
  /* Gold bands: hero, page headers, footer, highlighted cards */
  --band-bg: linear-gradient(135deg, #fcf6e6 0%, #f3e4c0 100%);
  --band-card-bg: linear-gradient(145deg, #fdf8eb 0%, #f2e2bb 100%);
  --band-announce-bg: #f3e4c0;
  --band-ink: #1c1710;
  --band-text: #45392a;
  --band-muted: #7a6b4d;
  --band-accent: #8a6418;
  --band-line: rgba(138, 100, 24, .22);
  --band-soft: rgba(255, 255, 255, .6);
  --band-paper: #fffaf0;
  --band-ring: rgba(138, 100, 24, .16);
  --line: #e6e6e6;
  --line-dark: rgba(201, 161, 75, 0.30);
  /* States (no green: success is blue) */
  --danger: #b42318;
  --danger-bg: #fdecea;
  --success: #1e5bb8;
  --success-bg: #eaf1fb;
  --warn: #8a5a00;
  --warn-bg: #fdf4e3;
  --info: #475569;
  --info-bg: #f1f5f9;
  --deal: #c8372d;                 /* discount badges */
  --deal-text: #c8372d;
  --wa-bg: #f1f1f1;
  --wa-fg: #111111;
  --tg-bg: #e8f1fb;
  --tg-fg: #1d5f99;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.18);
  /* Type & layout */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --container: 1180px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --forest: #3a2d15;
  --forest-2: #46361a;
  --forest-3: #52401f;
  --gold: #d6b062;
  --gold-deep: #e4c17a;
  --gold-soft: #ecd9ac;
  --ink: #ffffff;
  --body: #d4d4d4;
  --muted: #8f8f8f;
  --brand-ink: #e8c97f;
  --cream: #000000;
  --cream-2: #0d0d0d;
  --paper: #0b0b0b;
  --surface: #121212;
  --surface-soft: #0f0f0f;
  --chip-bg: #1c1c1c;
  --highlight-bg: rgba(214, 176, 98, .10);
  --field-bg: rgba(255, 255, 255, .05);
  --header-bg: rgba(0, 0, 0, .92);
  --admin-bg: #000000;
  --admin-topbar-bg: rgba(0, 0, 0, .90);
  --btn-dark-bg: #3a2d15;
  --band-bg: linear-gradient(135deg, #1c170d 0%, #100d08 100%);
  --band-card-bg: linear-gradient(145deg, #1f190e 0%, #120f09 100%);
  --band-announce-bg: #17130b;
  --band-ink: #f6eedb;
  --band-text: #d8cdb5;
  --band-muted: #a89a7c;
  --band-accent: #e4c17a;
  --band-line: rgba(214, 176, 98, .22);
  --band-soft: rgba(255, 255, 255, .05);
  --band-paper: #1a150c;
  --band-ring: rgba(214, 176, 98, .14);
  --line: #232323;
  --line-dark: rgba(214, 176, 98, .28);
  --danger: #ff8a80;
  --danger-bg: rgba(255, 138, 128, .13);
  --success: #7fb2ff;
  --success-bg: rgba(127, 178, 255, .13);
  --warn: #f0be6a;
  --warn-bg: rgba(240, 190, 106, .13);
  --info: #b0b8c6;
  --info-bg: rgba(176, 184, 198, .13);
  --deal: #e0533f;
  --deal-text: #ff8a73;
  --wa-bg: rgba(255, 255, 255, .08);
  --wa-fg: #f5f5f5;
  --tg-bg: rgba(42, 139, 210, .16);
  --tg-fg: #8cc6f0;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .50);
  --shadow: 0 14px 40px rgba(0, 0, 0, .60);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .70);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --forest: #3a2d15;
    --forest-2: #46361a;
    --forest-3: #52401f;
    --gold: #d6b062;
    --gold-deep: #e4c17a;
    --gold-soft: #ecd9ac;
    --ink: #ffffff;
    --body: #d4d4d4;
    --muted: #8f8f8f;
    --brand-ink: #e8c97f;
    --cream: #000000;
    --cream-2: #0d0d0d;
    --paper: #0b0b0b;
    --surface: #121212;
    --surface-soft: #0f0f0f;
    --chip-bg: #1c1c1c;
    --highlight-bg: rgba(214, 176, 98, .10);
    --field-bg: rgba(255, 255, 255, .05);
    --header-bg: rgba(0, 0, 0, .92);
    --admin-bg: #000000;
    --admin-topbar-bg: rgba(0, 0, 0, .90);
    --btn-dark-bg: #3a2d15;
    --band-bg: linear-gradient(135deg, #1c170d 0%, #100d08 100%);
    --band-card-bg: linear-gradient(145deg, #1f190e 0%, #120f09 100%);
    --band-announce-bg: #17130b;
    --band-ink: #f6eedb;
    --band-text: #d8cdb5;
    --band-muted: #a89a7c;
    --band-accent: #e4c17a;
    --band-line: rgba(214, 176, 98, .22);
    --band-soft: rgba(255, 255, 255, .05);
    --band-paper: #1a150c;
    --band-ring: rgba(214, 176, 98, .14);
    --line: #232323;
    --line-dark: rgba(214, 176, 98, .28);
    --danger: #ff8a80;
    --danger-bg: rgba(255, 138, 128, .13);
    --success: #7fb2ff;
    --success-bg: rgba(127, 178, 255, .13);
    --warn: #f0be6a;
    --warn-bg: rgba(240, 190, 106, .13);
    --info: #b0b8c6;
    --info-bg: rgba(176, 184, 198, .13);
    --deal: #e0533f;
    --deal-text: #ff8a73;
    --wa-bg: rgba(255, 255, 255, .08);
    --wa-fg: #f5f5f5;
    --tg-bg: rgba(42, 139, 210, .16);
    --tg-fg: #8cc6f0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .50);
    --shadow: 0 14px 40px rgba(0, 0, 0, .60);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .70);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .55em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.55rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; letter-spacing: 0; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--gold-soft); color: var(--brand-ink); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.container--wide { width: min(1360px, calc(100% - 48px)); }
.section { padding: 92px 0; }
.section--tight { padding: 58px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--forest); color: #d0d0d0; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; }
.section--dark .eyebrow { color: var(--gold-soft); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.display { font-family: var(--serif); font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.05; }
.lead { font-size: 16.5px; color: var(--body); line-height: 1.75; }
.section--dark .lead { color: #c0c0c0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.65; }
.tiny { font-size: 11px; letter-spacing: .06em; }
.gold { color: var(--gold-deep); }
.center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200; background: var(--forest);
  color: var(--on-dark); padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Buttons, pills, badges
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 13px 23px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); box-shadow: 0 10px 24px rgba(22, 22, 22, .18); }
.btn:active { transform: translateY(0); }
.btn-gold { --btn-bg: linear-gradient(135deg, #d9b66c, #b98d36); --btn-fg: #232323; border-color: rgba(120, 88, 26, .25); }
.btn-gold:hover { --btn-bg: linear-gradient(135deg, #e4c57f, #c79a42); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--brand-ink); border-color: var(--gold); }
.btn-outline:hover { --btn-bg: var(--forest); --btn-fg: var(--on-dark); border-color: var(--brand-ink); }
.btn-light { --btn-bg: rgba(255,255,255,.1); --btn-fg: var(--on-dark); border-color: rgba(255,255,255,.25); }
.btn-light:hover { --btn-bg: rgba(255,255,255,.18); }
.btn-dark { --btn-bg: var(--btn-dark-bg); }
.btn-danger { --btn-bg: var(--danger); }
.btn-sm { padding: 9px 16px; font-size: 10.5px; }
.btn-lg { padding: 16px 30px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--brand-ink);
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold-deep); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 6px 12px;
  background: rgba(197, 158, 74, .12);
  color: var(--gold-deep);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(197, 158, 74, .25);
}
.pill--dark { background: rgba(255,255,255,.08); color: var(--gold-soft); border-color: rgba(255,255,255,.15); }
.pill--free { background: var(--success-bg); color: var(--success); border-color: rgba(78, 78, 78, .2); }
.pill--muted { background: var(--chip-bg); color: var(--muted); border-color: var(--line); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--chip-bg); color: var(--muted); white-space: nowrap;
}
.badge--paid, .badge--active, .badge--succeeded, .badge--verified { background: var(--success-bg); color: var(--success); }
.badge--pending, .badge--verification { background: var(--warn-bg); color: var(--warn); }
.badge--cancelled, .badge--failed, .badge--rejected, .badge--inactive { background: var(--danger-bg); color: var(--danger); }
.badge--superseded { background: var(--chip-bg); color: var(--muted); }
.badge--course { background: rgba(28, 28, 28, .08); color: var(--brand-ink); }
.badge--product { background: rgba(197, 158, 74, .16); color: var(--gold-deep); }
.badge--gold { background: rgba(197, 158, 74, .15); color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.announcement {
  background: var(--forest);
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(197, 158, 74, .25);
}
.announcement a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.announcement .spark { color: var(--gold); margin-right: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: auto; height: 42px; max-width: 76px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .10em;
  color: var(--brand-ink); text-transform: uppercase;
}
.brand-sub { font-size: 8px; letter-spacing: .30em; color: var(--gold-deep); margin-top: 6px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: 8px; flex-shrink: 0; }
.nav a {
  position: relative; color: var(--ink); font-size: 11px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right .25s ease;
}
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--gold-deep); }
.header-search {
  margin-left: auto;
  display: flex; align-items: center;
  border: 1px solid var(--line);
  background: var(--field-bg);
  border-radius: 999px;
  padding: 4px 5px 4px 14px;
  width: 190px;
  min-width: 145px;
  flex: 0 1 190px;
}
.header-search input {
  border: 0; background: transparent; padding: 6px 0; width: 100%;
  font-size: 11.5px; color: var(--ink); outline: 0; min-width: 0;
}
.header-search button {
  border: 0; background: var(--forest); color: var(--on-dark);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 11px 17px; }
@media (max-width: 1280px) {
  .header-admin-link { display: none; }
}
.account-pill {
  display: flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 5px 13px 5px 5px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--ink);
}
.avatar {
  width: 31px; height: 31px; border-radius: 50%;
  background: var(--forest); color: var(--gold-soft);
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; flex-shrink: 0;
  line-height: 1;
}
.avatar svg { display: block; }
.avatar--lg { width: 52px; height: 52px; font-size: 15px; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--paper);
  width: 42px; height: 42px; border-radius: 50%; color: var(--brand-ink);
}
.mobile-nav { display: none; }
.mobile-nav.is-open { display: block; border-top: 1px solid var(--line); padding: 14px 0 22px; background: var(--cream); }
.mobile-nav a {
  display: block; padding: 12px 0; color: var(--ink); font-size: 12px;
  font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  border-bottom: 1px solid rgba(226, 218, 199, .6);
}
.mobile-nav .header-search { margin: 16px 0 12px; width: 100%; }
.mobile-nav .btn { width: 100%; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(197, 158, 74, .20), transparent 34%),
    radial-gradient(circle at 8% 85%, rgba(75, 75, 75, .35), transparent 36%),
    linear-gradient(135deg, #141414 0%, #1c1c1c 52%, #262626 100%);
  color: #cecece;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(197,158,74,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,158,74,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  border: 1px solid rgba(197, 158, 74, .12);
  top: -280px; right: -180px; pointer-events: none;
  box-shadow: 0 0 0 90px rgba(197,158,74,.035), 0 0 0 180px rgba(197,158,74,.02);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: 50px;
  padding: 82px 0 56px;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #fbf7ec; max-width: 720px; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero-sub { max-width: 610px; color: #c1c1c1; font-size: 16px; line-height: 1.8; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions .btn-ghost { color: var(--gold-soft); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .06em; color: #b3b3b3; text-transform: uppercase; }
.hero-trust svg { color: var(--gold); flex-shrink: 0; }

.hero-art { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.hero-illustration {
  position: relative; z-index: 2;
  width: min(100%, 500px);
  background: var(--surface-soft);
  border: 1px solid rgba(197, 158, 74, .45);
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .36),
    0 0 0 8px rgba(255, 253, 248, .035);
}
.hero-illustration img {
  display: block; width: 100%; height: auto;
  border-radius: 20px;
}
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat { padding: 24px 20px 30px; border-right: 1px solid rgba(255,255,255,.08); }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--on-dark); line-height: 1; margin-bottom: 8px; }
.hero-stat span { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #a2a2a2; }

/* --------------------------------------------------------------------------
   Cards & catalogue
   -------------------------------------------------------------------------- */
.section-head { max-width: 710px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-head p { color: var(--muted); margin-bottom: 0; max-width: 620px; }
.section-head--center p { margin-inline: auto; }
.section--dark .section-head p { color: #b6b6b6; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.item-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.item-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(197, 158, 74, .55); }
.item-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--forest); overflow: hidden; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.item-card:hover .item-thumb img { transform: scale(1.04); }
.item-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, .38), transparent 55%);
  pointer-events: none;
}
.item-thumb .pill { position: absolute; z-index: 2; left: 14px; top: 14px; background: rgba(22, 22, 22, .84); color: var(--gold-soft); border-color: rgba(197,158,74,.35); backdrop-filter: blur(8px); }
.item-thumb .free-flag { position: absolute; z-index: 2; right: 14px; top: 14px; background: rgba(240, 240, 240, .95); color: var(--success); }
.item-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.item-body h3 { font-size: 26px; margin-bottom: 9px; line-height: 1.1; }
.item-body h3 a { color: var(--ink); }
.item-body h3 a:hover { color: var(--gold-deep); }
.item-desc { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.item-price { display: flex; flex-direction: column; gap: 1px; }
.item-price strong { font-family: var(--serif); font-size: 23px; color: var(--brand-ink); line-height: 1; font-weight: 700; }
.item-price del { font-size: 11px; color: #9c9c9c; }
.item-price .free-price { color: var(--success); }
.read-more { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { color: var(--brand-ink); }
.item-meta { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8e8e8e; margin-bottom: 13px; }
.item-meta span { display: inline-flex; align-items: center; gap: 5px; }
.item-meta .dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; }
.item-meta svg { color: var(--gold-deep); }

.empty-state {
  text-align: center; padding: 64px 24px; border: 1px dashed var(--line);
  border-radius: var(--radius); background: var(--paper);
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 480px; margin-inline: auto; }
.empty-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; margin: 0 auto 18px; color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   Landing sections
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 22px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-soft); display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0; line-height: 0; }
.trust-icon svg { display: block; }
.trust-item strong { display: block; color: var(--ink); font-size: 12px; letter-spacing: .03em; }
.trust-item div > span { display: block; color: var(--muted); font-size: 10.5px; }

.business-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 15% 30%, rgba(197,158,74,.12), transparent 40%),
    linear-gradient(120deg, #181818, #252525);
  color: #c1c1c1;
}
.business-band::before {
  content: ""; position: absolute; right: -180px; bottom: -240px; width: 620px; height: 620px;
  border-radius: 50%; border: 1px solid rgba(197,158,74,.15);
  box-shadow: 0 0 0 90px rgba(197,158,74,.03), 0 0 0 180px rgba(197,158,74,.018);
}
.business-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .9fr; gap: 60px; align-items: center; }
.level-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 28px 0 30px; }
.level-mini div {
  border: 1px solid rgba(197,158,74,.28); background: rgba(255,255,255,.035);
  border-radius: 8px; padding: 10px 6px; text-align: center;
}
.level-mini strong { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-soft); line-height: 1; }
.level-mini span { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: #989898; }
.level-mini em { display: block; font-style: normal; font-size: 9px; color: #d5c49d; margin-top: 4px; }

.video-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(197,158,74,.25);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.25);
}
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0e0e0e; }
.video-frame iframe, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; display: block; }
.video-frame .video-poster img { opacity: .72; transition: opacity .3s, transform .6s; }
.video-frame .video-poster:hover img { opacity: .9; transform: scale(1.03); }
.play-btn {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play-btn span {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(247, 243, 233, .95); color: var(--brand-ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  transition: transform .25s ease, background .25s ease;
}
.video-poster:hover .play-btn span { transform: scale(1.06); background: var(--gold-soft); }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 8px 4px; }
.video-meta strong { display: block; color: #f5edde; font-size: 12px; }
.video-meta span { color: #9b9b9b; font-size: 10px; letter-spacing: .05em; }
.video-meta a { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); display: inline-flex; align-items: center; gap: 5px; }
.video-meta a:hover { color: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--paper); padding: 34px 30px 30px; position: relative; }
.step-num { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--gold-soft); margin-bottom: 22px; display: block; }
.step h3 { font-size: 25px; }
.step p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.step-icon { position: absolute; right: 26px; top: 34px; color: var(--gold); opacity: .75; }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature-copy .check-list { margin-top: 24px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--body); }
.check-list li svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }
.check-list strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.wallet-wrap { position: relative; }
.wallet-mock {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(145deg, #1b1b1b, #2e2e2e);
  padding: 30px; color: #dddddd; box-shadow: var(--shadow-lg);
}
.wallet-mock::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  right: -110px; top: -110px; border: 1px solid rgba(197,158,74,.25);
  box-shadow: 0 0 0 40px rgba(197,158,74,.05), 0 0 0 80px rgba(197,158,74,.03);
}
.wallet-mock-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.wallet-mock-label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #a0a0a0; }
.wallet-mock-balance { font-family: var(--serif); font-size: 44px; color: #fff9eb; line-height: 1.1; margin-top: 7px; }
.wallet-mock-chip { background: rgba(197,158,74,.16); border: 1px solid rgba(197,158,74,.3); color: var(--gold-soft); border-radius: 999px; padding: 6px 11px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.wallet-mock-rows { position: relative; z-index: 2; margin-top: 30px; display: grid; gap: 8px; }
.wallet-mock-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
.wallet-mock-row span { font-size: 10.5px; color: #b3b3b3; }
.wallet-mock-row strong { font-size: 11.5px; color: #f1e6cd; }
.wallet-mock-row .pos { color: #b9b9b9; }
.wallet-float {
  position: absolute; right: -24px; bottom: 34px; z-index: 4;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
}
.wallet-float .avatar { width: 34px; height: 34px; }
.wallet-float strong { display: block; font-size: 11px; color: var(--ink); }
.wallet-float div > span { display: block; font-size: 9.5px; color: var(--muted); }

.faq-list { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--serif); color: var(--ink); font-size: 21px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-deep); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 13.5px; max-width: 760px; padding: 0 4px 22px; }

.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(120deg, #c9a354, #b48732 70%, #a67c2c);
  color: #201d14;
}
.cta-band h2 { color: #1e1e1e; }
.cta-band p { color: #3f3827; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 66px 0; position: relative; z-index: 2; }
.cta-inner .btn-dark { background: var(--forest); color: var(--on-dark); }
.cta-inner .btn-dark:hover { color: var(--on-dark); }
.cta-band .btn-outline { --btn-bg: transparent; --btn-fg: #1e1e1e; border-color: rgba(30, 30, 30, .45); }
.cta-band .btn-outline:hover { --btn-bg: #1e1e1e; --btn-fg: var(--on-dark); border-color: #1e1e1e; }

/* --------------------------------------------------------------------------
   Page hero / catalogue / search
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #181818, #262626);
  color: #c0c0c0;
  padding: 68px 0 58px;
}
.page-hero::after {
  content: ""; position: absolute; right: -100px; top: -200px; width: 520px; height: 520px;
  border-radius: 50%; border: 1px solid rgba(197,158,74,.2);
  box-shadow: 0 0 0 70px rgba(197,158,74,.035), 0 0 0 140px rgba(197,158,74,.018);
}
.page-hero h1 { color: var(--on-dark); font-size: clamp(2.4rem, 4vw, 3.8rem); margin-bottom: 14px; }
.page-hero p { color: #bcbcbc; max-width: 660px; margin-bottom: 0; }
.page-kicker { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.page-kicker::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8e8e8e; margin-bottom: 22px; }
.breadcrumb a { color: #c8b98f; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #7c7c7c; }

.catalog-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.catalog-search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 240px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 5px 5px 18px;
}
.catalog-search input { flex: 1; border: 0; background: transparent; padding: 9px 0; outline: 0; color: var(--ink); min-width: 0; }
.catalog-search button { border: 0; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.chip:hover, .chip.is-active { background: var(--forest); color: var(--gold-soft); border-color: var(--brand-ink); }
.result-count { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   Item detail
   -------------------------------------------------------------------------- */
.detail-section { padding: 52px 0 84px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .85fr); gap: 44px; align-items: start; }
.detail-main h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); margin-bottom: 14px; }
.detail-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 14px; }
.detail-sub { color: var(--muted); font-size: 15px; max-width: 720px; }
.detail-hero-img { margin: 28px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8.4; background: var(--forest); }
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-description { font-size: 14px; line-height: 1.85; white-space: pre-line; color: var(--body); }
.detail-description p { margin-bottom: 1.1em; }
.content-block { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 36px; }
.content-block h2 { font-size: 32px; margin-bottom: 18px; }
.buy-card {
  position: sticky; top: 104px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.buy-card-head { padding: 26px 26px 20px; border-bottom: 1px solid var(--line); }
.buy-price { display: flex; align-items: flex-end; gap: 12px; }
.buy-price strong { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--brand-ink); font-weight: 700; }
.buy-price del { color: #a0a0a0; font-size: 14px; margin-bottom: 4px; }
.buy-price .free-price { color: var(--success); }
.buy-card-body { padding: 22px 26px 26px; }
.buy-card-body .btn { margin-top: 12px; }
.buy-note { display: flex; align-items: flex-start; gap: 8px; font-size: 10.5px; color: var(--muted); line-height: 1.6; margin-top: 14px; }
.buy-note svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.buy-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.buy-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--body); }
.buy-list svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.owned-banner { background: var(--success-bg); color: var(--success); padding: 14px 16px; border-radius: 10px; font-size: 12px; display: flex; gap: 9px; align-items: center; margin-top: 12px; }
.pending-banner { background: var(--warn-bg); color: var(--warn); padding: 14px 16px; border-radius: 10px; font-size: 12px; margin-top: 12px; }
.pending-banner a { text-decoration: underline; }

.free-preview-card {
  border: 1px solid rgba(197,158,74,.4);
  background: linear-gradient(145deg, rgba(197,158,74,.08), rgba(255,253,248,.5));
  border-radius: var(--radius); padding: 22px; margin-top: 24px;
}
.free-preview-card h4 { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.resource-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.resource-row:last-child { border-bottom: 0; }
.resource-icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--cream-2);
  display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0;
}
.resource-info { min-width: 0; flex: 1; }
.resource-info strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.resource-info span { display: block; font-size: 10.5px; color: var(--muted); }
.resource-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.resource-actions .btn { padding: 7px 11px; font-size: 9px; }
.locked-row { opacity: .65; }
.locked-row .resource-icon { background: var(--chip-bg); color: #9e9e9e; }
.module { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--paper); }
.module summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink);
}
.module summary::-webkit-details-marker { display: none; }
.module-num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }
.module summary .module-count { margin-left: auto; font-size: 9.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.module summary .chev { color: var(--gold-deep); transition: transform .2s; }
.module[open] summary .chev { transform: rotate(180deg); }
.module-body { border-top: 1px solid var(--line); padding: 4px 20px 12px; }
.module-summary-text { padding: 12px 0 4px; color: var(--muted); font-size: 12px; }

.related-grid { margin-top: 26px; }

/* --------------------------------------------------------------------------
   Business model
   -------------------------------------------------------------------------- */
.business-hero { background: linear-gradient(120deg, #181818, #272727); color: #c0c0c0; padding: 72px 0; position: relative; overflow: hidden; }
.business-hero::after { content: ""; position: absolute; right: -140px; top: -160px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(197,158,74,.2); box-shadow: 0 0 0 80px rgba(197,158,74,.03), 0 0 0 160px rgba(197,158,74,.015); }
.business-hero h1 { color: var(--on-dark); }
.business-hero .lead { color: #c1c1c1; max-width: 720px; }
.levels-table { width: 100%; border-collapse: collapse; }
.levels-table th { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.levels-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.levels-table tr:last-child td { border-bottom: 0; }
.levels-table .level-name { font-family: var(--serif); font-size: 19px; color: var(--brand-ink); }
.levels-table .rate { font-weight: 700; color: var(--gold-deep); }
.levels-table .sample { color: var(--muted); }
.levels-table .company-row td { background: var(--surface-soft); }
.rate-scope { margin: 10px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--muted); max-width: 640px; }
.level-mini + .rate-scope { margin: -18px 0 24px; }
.rate-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rate-card-head { padding: 24px 26px 14px; }
.rate-card-body { padding: 0 26px 26px; }
.calculator { background: var(--cream-2); border-radius: 12px; padding: 20px; margin-top: 20px; }
.calculator label { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.calculator .calc-row { display: flex; gap: 8px; }
.calculator input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: var(--paper); font-size: 13px; min-width: 0; }
.calc-result { margin-top: 16px; display: grid; gap: 7px; }
.calc-line { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--body); padding-bottom: 7px; border-bottom: 1px dashed rgba(197,158,74,.25); }
.calc-line:last-child { border-bottom: 0; padding-top: 5px; font-weight: 600; color: var(--brand-ink); }
.level-graphic { display: grid; gap: 10px; }
.level-node { display: flex; align-items: center; gap: 16px; }
.level-node .node-line { width: 1px; height: 18px; background: var(--gold-soft); margin-left: 20px; }
.level-node .node-badge { width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; flex-shrink: 0; }
.level-node h4 { font-family: var(--sans); font-size: 12px; margin: 0; color: var(--ink); letter-spacing: .02em; }
.level-node p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.info-callout { border-left: 2px solid var(--gold); background: var(--warn-bg); padding: 18px 20px; border-radius: 0 10px 10px 0; font-size: 12px; color: #6b5528; }
.info-callout strong { color: #5c4519; }

/* --------------------------------------------------------------------------
   Forms & auth
   -------------------------------------------------------------------------- */
.auth-page { padding: 64px 0 84px; position: relative; overflow: hidden; }
.auth-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 15%, rgba(197,158,74,.10), transparent 32%),
              radial-gradient(circle at 90% 80%, rgba(37, 37, 37,.06), transparent 30%);
}
.auth-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 50px; align-items: center; max-width: 1060px; margin-inline: auto; }
.auth-aside { padding: 20px 0; }
.auth-aside h2 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); }
.auth-aside p { color: var(--muted); max-width: 430px; }
.auth-points { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 26px; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 12px; color: var(--body); }
.auth-points svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px 36px 30px; }
.auth-card h2 { font-size: 34px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 24px; }
.auth-card--wide { padding: 34px 38px; }
.auth-footer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); text-align: center; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea, .input {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 9px; padding: 12px 13px; font-size: 13px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,158,74,.14);
}
.field .help { display: block; font-size: 10.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 76px; }
.password-toggle {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  min-width: 44px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; z-index: 2;
}
.password-toggle:hover { color: var(--gold-deep); border-color: var(--gold-soft); background: var(--cream); }
.password-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; color: var(--body); line-height: 1.6; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--gold-deep); margin-top: 2px; flex-shrink: 0; }
.checkbox a { text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.auth-card .btn-block { margin-top: 4px; }
.referral-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--success-bg); color: var(--success); border: 1px solid rgba(78, 78, 78,.2); border-radius: 8px; padding: 8px 11px; font-size: 10.5px; margin-bottom: 16px; }

.flash-stack { position: fixed; z-index: 100; right: 22px; top: 96px; width: min(390px, calc(100vw - 44px)); display: grid; gap: 9px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--success); border-radius: 10px; padding: 13px 14px;
  box-shadow: var(--shadow); font-size: 12px; color: var(--body);
}
.flash--error { border-left-color: var(--danger); }
.flash svg { flex-shrink: 0; margin-top: 1px; color: var(--success); }
.flash--error svg { color: var(--danger); }
.flash button { margin-left: auto; border: 0; background: none; color: var(--muted); padding: 0 2px; font-size: 17px; line-height: 1; }

/* --------------------------------------------------------------------------
   Checkout / receipt
   -------------------------------------------------------------------------- */
.checkout-section { padding: 52px 0 86px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 36px; align-items: start; }
.checkout-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.checkout-card h2 { font-size: 30px; }
.checkout-summary { position: sticky; top: 104px; }
.checkout-item { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.checkout-item img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; }
.checkout-item strong { display: block; font-size: 12px; color: var(--ink); }
.checkout-item span { font-size: 10.5px; color: var(--muted); }
.summary-line { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; padding: 9px 0; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-family: var(--serif); font-size: 26px; color: var(--brand-ink); }
.payment-option { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; background: var(--surface); }
.payment-option-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.payment-option-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--cream-2); display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0; }
.payment-option-head strong { display: block; font-size: 12.5px; color: var(--ink); }
.payment-option-head span { display: block; font-size: 10.5px; color: var(--muted); }
.payment-details { background: var(--cream); border-radius: 8px; padding: 14px 16px; font-size: 11.5px; margin: 12px 0; display: grid; gap: 5px; }
.payment-details div { display: flex; justify-content: space-between; gap: 14px; }
.payment-details span:first-child { color: var(--muted); }
.payment-details strong { word-break: break-all; font-size: 11.5px; }
.upi-grid { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 20px; align-items: center; margin: 14px 0 16px; }
.upi-qr { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.upi-qr img { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto 7px; }
.upi-qr span { display: block; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.upi-pay { min-width: 0; }
.upi-amount { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--brand-ink); margin-bottom: 6px; }
.upi-id-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--cream); border-radius: 9px; padding: 12px 14px; margin-bottom: 10px; }
.upi-label { display: block; font-size: 8.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.upi-id { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink); word-break: break-all; }
.upi-safety { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 10.5px; line-height: 1.6; background: rgba(197,158,74,.08); border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0; padding: 11px 13px; margin: 14px 0; }
.upi-safety svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 1px; }
.sandbox-banner { background: var(--warn-bg); border: 1px solid rgba(148,101,29,.2); color: #74531b; border-radius: 10px; padding: 12px 14px; font-size: 11.5px; margin-bottom: 20px; display: flex; gap: 9px; }
.sandbox-banner svg { flex-shrink: 0; margin-top: 2px; }
.status-banner { border-radius: 14px; padding: 26px; text-align: center; margin-bottom: 26px; }
.status-banner--paid { background: var(--success-bg); border: 1px solid rgba(78, 78, 78,.2); }
.status-banner--pending { background: var(--warn-bg); border: 1px solid rgba(148,101,29,.2); }
.status-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; margin: 0 auto 14px; color: var(--success); box-shadow: var(--shadow-sm); }
.status-banner--pending .status-icon { color: var(--warn); }
.status-banner h2 { font-size: 34px; margin-bottom: 6px; }
.status-banner p { color: var(--muted); font-size: 12.5px; margin: 0; }
.receipt { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.receipt-head { background: var(--cream); padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
.receipt-head strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.receipt-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 24px; border-bottom: 1px solid var(--line); font-size: 12px; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row span { color: var(--muted); }
.receipt-row strong { text-align: right; }

/* --------------------------------------------------------------------------
   Account shell & dashboard
   -------------------------------------------------------------------------- */
.dash-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; padding: 40px 0 82px; align-items: start; }
.dash-sidebar {
  position: sticky; top: 104px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.dash-user { padding: 22px; background: linear-gradient(145deg, #1b1b1b, #2e2e2e); color: #dcdcdc; }
.dash-user .avatar { background: rgba(197,158,74,.2); color: var(--gold-soft); border: 1px solid rgba(197,158,74,.35); }
.dash-user h3 { color: #fff8ea; font-family: var(--sans); font-size: 12.5px; margin: 12px 0 2px; }
.dash-user p { font-size: 10px; color: #a8a8a8; margin: 0; }
.dash-wallet { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: flex-end; }
.dash-wallet span { display: block; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: #9e9e9e; }
.dash-wallet strong { display: block; white-space: nowrap; font-family: var(--serif); font-size: 23px; color: var(--gold-soft); line-height: 1; margin-top: 4px; }
.dash-nav { padding: 10px; display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 11px; font-weight: 500; color: var(--body); }
.dash-nav a svg { color: #909090; flex-shrink: 0; }
.dash-nav a:hover { background: var(--cream); color: var(--ink); }
.dash-nav a.is-active { background: var(--forest); color: var(--on-dark); }
.dash-nav a.is-active svg { color: var(--gold-soft); }
.dash-nav .nav-label { padding: 16px 12px 6px; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: #a9a9a9; }
.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dash-head h1 { font-size: 38px; margin-bottom: 4px; }
.dash-head p { color: var(--muted); font-size: 12px; margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.metric {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 18px 16px; position: relative; overflow: hidden;
}
.metric::after { content: ""; position: absolute; right: -20px; top: -20px; width: 70px; height: 70px; border-radius: 50%; background: rgba(197,158,74,.06); }
.metric span { display: block; font-size: 8.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.metric strong { display: block; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--brand-ink); }
.metric small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 6px; }
.metric--gold { background: linear-gradient(145deg, #1b1b1b, #2e2e2e); border-color: transparent; }
.metric--gold span { color: #a6a6a6; }
.metric--gold strong { color: var(--gold-soft); }
.metric--gold small { color: #9a9a9a; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 23px; margin: 0; }
.panel-head .small { margin: 0; }
.panel-body { padding: 22px; }
.panel-body--flush { padding: 0; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-soft); font-size: 11px; }
.referral-box { display: flex; gap: 8px; }
.referral-box input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 11px; color: var(--body); background: var(--cream); min-width: 0; }
.referral-box .btn { padding: 10px 14px; }
.level-bars { display: grid; gap: 10px; }
.level-bar { display: grid; grid-template-columns: 64px 1fr 34px; gap: 12px; align-items: center; font-size: 10px; color: var(--muted); }
.level-bar .bar { height: 7px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.level-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ddbd77); border-radius: 999px; min-width: 2px; }
.level-bar strong { color: var(--ink); font-size: 11px; text-align: right; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.activity-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0; }
.activity-dot svg { display: block; }
.activity-list strong { display: block; font-size: 11.5px; color: var(--ink); }
.activity-list div > span { display: block; font-size: 9.5px; color: var(--muted); }
.activity-amount { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--success); white-space: nowrap; }
.activity-amount.neg { color: var(--danger); }

.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.referrer-card { display: flex; align-items: center; gap: 13px; background: var(--cream); border-radius: 10px; padding: 15px; }
.referrer-card .avatar { background: var(--forest); color: var(--gold-soft); }
.referrer-card strong { display: block; font-size: 12px; color: var(--ink); }
.referrer-card div > span { display: block; font-size: 10px; color: var(--muted); }

.network-stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 24px; }
.network-stat { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 6px; }
.network-stat span { display: block; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.network-stat strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--brand-ink); margin-top: 5px; }
.network-stat.is-filled { border-color: rgba(197,158,74,.5); background: rgba(197,158,74,.06); }
.level-section { margin-bottom: 18px; }
.level-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.level-header h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.level-header .pill { padding: 4px 8px; font-size: 8px; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.person-card { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 11px 13px; }
.person-card .avatar { width: 36px; height: 36px; font-size: 10px; }
.person-info { min-width: 0; }
.person-info strong { display: block; font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-info span { display: block; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-contact { margin-left: auto; display: flex; gap: 6px; }
.person-contact a { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0; }
.person-contact a:hover { background: var(--forest); color: var(--on-dark); border-color: var(--brand-ink); }

.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.library-card { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.library-card img { width: 105px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.library-card h3 { font-size: 19px; margin: 2px 0 4px; }
.library-card p { font-size: 10.5px; color: var(--muted); margin: 0 0 8px; }
.library-card .badge { margin-right: 4px; }

/* Learn */
.learn-section { padding: 30px 0 80px; }
.learn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.learn-head h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); margin-bottom: 4px; }
.learn-head p { color: var(--muted); font-size: 12px; margin: 0; }
.learn-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(290px, .75fr); gap: 26px; align-items: start; }
.learn-player-card { background: var(--forest); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(197,158,74,.2); }
.learn-player-card .video-frame { border-radius: 0; }
.player-title { padding: 18px 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #dcdcdc; }
.player-title h2 { color: #fff8ea; font-size: 23px; margin: 0 0 3px; }
.player-title span { font-size: 10px; color: #9e9e9e; letter-spacing: .06em; text-transform: uppercase; }
.learn-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.learn-side-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.learn-side-head h3 { font-size: 21px; margin: 0; }
.learn-side-body { max-height: 620px; overflow: auto; }
.lesson-group-title { padding: 14px 20px 7px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface-soft); }
.lesson-row {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  display: flex; align-items: center; gap: 11px; padding: 12px 18px; text-align: left; color: var(--body);
}
.lesson-row:hover { background: var(--cream); }
.lesson-row.is-active { background: rgba(197,158,74,.09); }
.lesson-row.is-active .lesson-title { color: var(--gold-deep); }
.lesson-type { width: 30px; height: 30px; border-radius: 7px; background: var(--cream-2); display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0; }
.lesson-title { display: block; font-size: 11px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.lesson-meta { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.lesson-action { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
.lesson-action a { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-deep); }
.lesson-action a:hover { background: var(--forest); color: var(--on-dark); }
.learn-attachments { margin-top: 22px; }
.attachment-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.attachment-row:last-child { border-bottom: 0; }
.attachment-row strong { display: block; font-size: 11.5px; }
.attachment-row span { display: block; font-size: 9.5px; color: var(--muted); }
.attachment-actions { margin-left: auto; display: flex; gap: 7px; }
.attachment-actions a { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); }
.attachment-actions a:hover { border-color: var(--gold); color: var(--gold-deep); }

/* Wallet */
.wallet-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #181818, #2c2c2c);
  padding: 30px 32px; color: #d0d0d0; margin-bottom: 24px;
}
.wallet-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -100px; top: -150px; border: 1px solid rgba(197,158,74,.22); box-shadow: 0 0 0 50px rgba(197,158,74,.04), 0 0 0 100px rgba(197,158,74,.02); }
.wallet-hero .eyebrow { color: var(--gold-soft); margin-bottom: 10px; }
.wallet-hero .eyebrow::before { background: var(--gold); }
.wallet-balance { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.4rem); color: #fff8e8; line-height: 1; margin-bottom: 6px; }
.wallet-sub { font-size: 11px; color: #a8a8a8; margin: 0; }
.wallet-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; position: relative; z-index: 2; }
.wallet-hero-actions { display: flex; gap: 10px; }
.wallet-breakdown { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 2; }
.wallet-breakdown div span { display: block; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #9b9b9b; }
.wallet-breakdown div strong { display: block; font-size: 12.5px; color: var(--gold-soft); margin-top: 3px; }
.tx-amount { font-weight: 600; white-space: nowrap; }
.tx-amount.pos { color: var(--success); }
.tx-amount.neg { color: var(--danger); }
.method-fields { display: none; }
.method-fields.is-visible { display: block; }
.data-list { margin: 0; padding: 0; list-style: none; }
.data-list li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.data-list li:last-child { border-bottom: 0; }
.data-list span { color: var(--muted); }
.data-list strong { text-align: right; color: var(--ink); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.table th {
  text-align: left; padding: 12px 16px; background: var(--surface-soft);
  border-bottom: 1px solid var(--line); font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(197,158,74,.035); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table .strong { color: var(--ink); font-weight: 600; }
.table .sub { display: block; font-size: 9.5px; color: var(--muted); }
tr.is-muted td { opacity: .62; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: #141414; color: #9b9b9b; padding: 60px 0 0; border-top: 1px solid rgba(197,158,74,.18); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 42px; }
.footer-brand .brand-name { color: var(--on-dark); }
.footer-brand .brand-sub { color: var(--gold); }
.footer-brand p { font-size: 11.5px; line-height: 1.8; color: #969696; max-width: 330px; margin-top: 16px; }
.footer-col h4 { font-family: var(--sans); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: #a1a1a1; font-size: 11.5px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact { font-size: 11.5px; }
.footer-contact div { margin-bottom: 10px; display: flex; gap: 9px; align-items: flex-start; }
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 24px; display: flex; justify-content: space-between; gap: 22px; font-size: 9.5px; color: #787878; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: #969696; }
.footer-legal a:hover { color: var(--gold-soft); }
.risk-note { background: rgba(197,158,74,.07); border-left: 2px solid var(--gold); color: #aaaaaa; font-size: 10px; line-height: 1.7; padding: 12px 14px; margin-top: 16px; }

/* --------------------------------------------------------------------------
   Legal & contact
   -------------------------------------------------------------------------- */
.legal-page { padding: 52px 0 84px; }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; }
.legal-nav { position: sticky; top: 104px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.legal-nav a { display: block; padding: 11px 16px; font-size: 11px; color: var(--body); border-bottom: 1px solid var(--line); }
.legal-nav a:last-child { border-bottom: 0; }
.legal-nav a:hover, .legal-nav a.is-active { background: var(--cream); color: var(--gold-deep); }
.legal-body h1 { font-size: 44px; }
.legal-body .updated { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.legal-body h2 { font-size: 26px; margin-top: 32px; }
.legal-body p { font-size: 13.5px; line-height: 1.85; color: var(--body); }
.legal-intro { font-size: 15px; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 34px; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 26px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 12.5px; }
.contact-list svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.contact-list strong { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   Errors
   -------------------------------------------------------------------------- */
.error-page { min-height: 62vh; display: grid; place-items: center; padding: 60px 0; text-align: center; }
.error-code { font-family: var(--serif); font-size: 120px; line-height: 1; color: var(--gold-soft); margin-bottom: 4px; }
.error-page h1 { font-size: 40px; }
.error-page p { color: var(--muted); max-width: 420px; margin: 0 auto 24px; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body { background: var(--admin-bg); color: var(--body); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 258px; flex-shrink: 0; background: linear-gradient(180deg, #181818, #1f1f1f);
  color: #9c9c9c; position: fixed; inset: 0 auto 0 0; z-index: 70;
  display: flex; flex-direction: column; overflow-y: auto;
}
.admin-brand { padding: 24px 22px 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; gap: 11px; align-items: center; }
.admin-brand img { width: 38px; height: 38px; object-fit: contain; }
.admin-brand .brand-name { color: var(--on-dark); font-size: 18px; }
.admin-brand .brand-sub { font-size: 7px; color: var(--gold); }
.admin-side-label { padding: 22px 22px 8px; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: #7c7c7c; }
.admin-nav { padding: 0 12px 16px; display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 7px; color: #adadad; font-size: 11.5px; font-weight: 500; }
.admin-nav a svg { color: #838383; flex-shrink: 0; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #f0e8d6; }
.admin-nav a.is-active { background: rgba(197,158,74,.14); color: var(--gold-soft); }
.admin-nav a.is-active svg { color: var(--gold); }
.admin-nav .count { margin-left: auto; background: rgba(255,255,255,.09); color: #cbbf9d; font-size: 8.5px; border-radius: 999px; padding: 2px 7px; }
.admin-side-bottom { margin-top: auto; padding: 16px 22px 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 9.5px; color: #7e7e7e; }
.admin-side-bottom a { color: #c0c0c0; display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; }
.admin-main { margin-left: 258px; flex: 1; min-width: 0; }
.admin-topbar {
  position: sticky; top: 0; z-index: 50; background: var(--admin-topbar-bg);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 14px 30px;
}
.admin-menu-toggle { display: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--brand-ink); }
.admin-topbar h1 { font-size: 27px; margin: 0; }
.admin-topbar p { margin: 0; font-size: 10px; color: var(--muted); }
.admin-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-content { padding: 26px 30px 60px; max-width: 1500px; }
.admin-flash { margin-bottom: 18px; }
.admin-flash .flash { position: static; width: auto; box-shadow: none; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-page-head h2 { font-size: 32px; margin: 0; }
.admin-page-head p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }

.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.admin-metric { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px; position: relative; overflow: hidden; }
.admin-metric span { display: block; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.admin-metric strong { display: block; font-family: var(--serif); font-size: 27px; line-height: 1; color: var(--brand-ink); }
.admin-metric small { display: block; font-size: 9px; color: var(--muted); margin-top: 6px; }
.admin-metric::after { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%; right: -18px; top: -18px; background: rgba(197,158,74,.08); }
.admin-metric--dark { background: linear-gradient(145deg, #1a1a1a, #2e2e2e); border-color: transparent; }
.admin-metric--dark span, .admin-metric--dark small { color: #9e9e9e; }
.admin-metric--dark strong { color: var(--gold-soft); }

.admin-grid-2 { display: grid; grid-template-columns: 1.4fr .9fr; gap: 18px; align-items: start; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.admin-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.admin-panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-panel-head h3 { font-size: 21px; margin: 0; }
.admin-panel-head a { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.admin-panel-body { padding: 20px; }
.admin-panel-body--flush { padding: 0; }
.admin-form { display: grid; gap: 16px; }
.admin-form .field { margin: 0; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.admin-note { background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; font-size: 10.5px; color: var(--muted); line-height: 1.65; }
.admin-note strong { color: var(--ink); }
.admin-filter { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 18px; }
.admin-filter input, .admin-filter select {
  border: 1px solid var(--line); background: var(--paper); border-radius: 8px;
  padding: 9px 11px; font-size: 11px; min-width: 150px; color: var(--ink);
}
.admin-filter input[type="search"] { flex: 1; min-width: 220px; }
.admin-filter .btn { padding: 9px 14px; }
.admin-tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.admin-tabs a { padding: 11px 16px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a.is-active { color: var(--gold-deep); border-bottom-color: var(--gold); }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 12px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar .bar { width: 100%; max-width: 44px; background: linear-gradient(to top, #b98d36, #e0c17c); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; }
.chart-bar .bar:hover { filter: brightness(1.05); }
.chart-bar span { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chart-bar strong { font-size: 8.5px; color: var(--ink); font-weight: 600; }

.curriculum-admin { display: grid; gap: 14px; }
.curriculum-module { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.curriculum-module-head { background: var(--surface-soft); padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.curriculum-module-head strong { font-size: 12px; color: var(--ink); }
.curriculum-module-body { padding: 14px 16px; }
.curriculum-resource { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--surface); }
.curriculum-resource:last-child { margin-bottom: 0; }
.curriculum-resource summary { list-style: none; cursor: pointer; padding: 10px 13px; display: flex; align-items: center; gap: 9px; font-size: 11px; }
.curriculum-resource summary::-webkit-details-marker { display: none; }
.curriculum-resource summary .badge { margin-left: auto; }
.curriculum-resource .inner { padding: 0 13px 13px; border-top: 1px solid var(--line); }
.resource-form { padding-top: 12px; }
.admin-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.admin-inline-form .field { margin: 0; min-width: 120px; }
.admin-inline-form .field--grow { flex: 1; min-width: 180px; }
.admin-inline-form .field label { font-size: 8.5px; }
.admin-inline-form .field input, .admin-inline-form .field select { padding: 8px 10px; font-size: 11px; }
.admin-inline-form .btn { padding: 8px 12px; font-size: 9px; }
.admin-upload-row { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; font-size: 10px; color: var(--muted); }
.admin-upload-row img { width: 56px; height: 38px; object-fit: cover; border-radius: 5px; }
.admin-upload-row a { font-size: 9.5px; text-decoration: underline; }
.thumb-editor { display: flex; align-items: center; gap: 14px; background: var(--cream); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; }
.thumb-editor img { width: 132px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); flex-shrink: 0; background: var(--forest); }
.thumb-editor-copy { display: grid; gap: 4px; min-width: 0; }
.thumb-editor-copy strong { font-size: 11px; color: var(--ink); }
.thumb-editor-copy > span { font-size: 9.5px; color: var(--muted); line-height: 1.55; }
.thumb-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.thumb-editor-actions .checkbox { margin: 0; }
.thumb-upload { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 8px; background: var(--cream); color: var(--gold-deep); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.thumb-upload:hover { border-color: var(--gold); background: var(--surface-soft); }
.thumb-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.thumb-selected { display: block; margin-top: 6px; font-size: 9.5px; font-weight: 600; color: var(--gold-deep); }
.thumb-selected:empty { display: none; }
.doc-current { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--cream); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; font-size: 10px; color: var(--muted); }
.doc-current a { text-decoration: underline; }
.doc-current .checkbox { margin: 0; }
.admin-danger-zone { border: 1px solid rgba(168,58,58,.25); background: var(--danger-bg); border-radius: 10px; padding: 16px; }
.admin-danger-zone h4 { color: var(--danger); font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.admin-danger-zone p { font-size: 10.5px; color: #7f4b4b; margin-bottom: 12px; }
.admin-search { max-width: 360px; }
.settings-section { max-width: 960px; }
.settings-section h3 { font-size: 22px; margin-bottom: 4px; }
.settings-section .admin-note { margin-bottom: 18px; }
.rate-inputs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.rate-inputs .field { margin: 0; }
.rate-inputs .field label { font-size: 8px; }
.rate-inputs .field input { padding: 9px 8px; text-align: center; font-size: 12px; }
.commission-levels { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.commission-input { position: relative; }
.commission-levels .field input { padding-right: 22px; }
.commission-suffix { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--muted); pointer-events: none; }
.commission-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.commission-summary span { display: block; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.commission-summary strong { display: block; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--brand-ink); }
.commission-form.is-over .commission-summary { border-color: var(--danger); background: var(--danger-bg); }
.commission-form.is-over .commission-summary strong { color: var(--danger); }
.commission-total-row td { background: var(--surface-soft); font-weight: 600; }
.commission-company-row td { background: var(--cream); }
.webhook-box { background: #1e1e1e; color: #bfbfbf; border-radius: 8px; padding: 13px 15px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; word-break: break-all; }

.user-mini { display: flex; align-items: center; gap: 9px; }
.user-mini .avatar { width: 32px; height: 32px; font-size: 9px; }
.user-mini strong { display: block; font-size: 11px; color: var(--ink); }
.user-mini div > span { display: block; font-size: 9px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 14px; font-size: 11px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.admin-split { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.admin-aside-card { position: sticky; top: 86px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Support chat
   -------------------------------------------------------------------------- */
.header-chat { position: relative; }
.icon-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 8px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; border: 2px solid var(--paper);
}
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--brand-ink);
  font-size: 9px; font-weight: 700; display: inline-grid; place-items: center;
}
.dash-nav a.is-active .nav-badge { background: var(--gold-soft); }

.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.support-side .panel { margin-bottom: 16px; }
.support-side .panel-head h3 { font-size: 19px; }
.support-checklist li { font-size: 11.5px; }
.support-checklist strong { font-size: 11.5px; }
.support-contact-line {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px;
}
.support-contact-line:last-of-type { border-bottom: 0; }
.support-contact-line svg { color: var(--gold-deep); flex-shrink: 0; }
.support-contact-line a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

.chat-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  min-height: 600px; height: min(72vh, 760px); box-shadow: var(--shadow-sm);
}
.chat-head {
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e); color: #dcdcdc;
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.chat-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-head h2 { color: #fff8ea; font-family: var(--serif); font-size: 23px; margin: 0; line-height: 1.1; }
.chat-head p { margin: 4px 0 0; font-size: 9.5px; color: #a8a8a8; }
.chat-head .badge { background: rgba(255,255,255,.1); color: var(--gold-soft); }
.chat-head .badge--active { background: rgba(150, 150, 150,.16); color: #c4c4c4; }
.chat-head .badge--cancelled { background: rgba(255,255,255,.08); color: #cecece; }
.chat-head-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center; background: var(--cream-2);
  color: var(--brand-ink); font-size: 10px; font-weight: 700;
}
.chat-head .chat-avatar { background: rgba(197,158,74,.18); color: var(--gold-soft); border: 1px solid rgba(197,158,74,.35); }
.chat-avatar--bot { background: rgba(197,158,74,.16); color: var(--gold-deep); }
.chat-avatar--team { background: var(--forest); color: var(--gold-soft); }
.chat-thread {
  flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, var(--surface-soft), var(--cream)); scroll-behavior: smooth;
}
.chat-day {
  align-self: center; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px;
}
.chat-msg { display: flex; align-items: flex-end; gap: 9px; max-width: 82%; }
.chat-msg.is-mine { margin-left: auto; flex-direction: row-reverse; }
.chat-content { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-msg.is-mine .chat-content { align-items: flex-end; }
.chat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 3px; font-size: 8.5px; color: var(--muted); }
.chat-meta strong { font-size: 9.5px; color: var(--ink); font-weight: 700; }
.chat-meta time { font-size: 8px; color: #929292; }
.chat-role {
  font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-deep); background: rgba(197,158,74,.12);
  border-radius: 999px; padding: 2px 6px;
}
.chat-bubble {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px; padding: 11px 14px;
  font-size: 11.5px; line-height: 1.65; color: var(--body);
  white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 2px 8px rgba(28, 28, 28,.04);
}
.chat-msg.is-mine .chat-bubble { background: var(--forest); border-color: var(--brand-ink); color: #f4f4f4; border-radius: 14px 4px 14px 14px; }
.chat-msg.is-bot .chat-bubble { background: var(--surface-soft); border-color: var(--gold-soft); }
.chat-msg.is-mine.is-bot .chat-bubble { background: var(--forest-2); border-color: rgba(197,158,74,.35); }
.chat-empty { margin: auto; text-align: center; max-width: 360px; padding: 30px 10px; color: var(--muted); }
.chat-empty-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--gold-deep); }
.chat-empty h3 { font-size: 26px; margin-bottom: 6px; }
.chat-empty p { font-size: 11px; line-height: 1.7; margin: 0; }
.chat-quick { padding: 12px 18px 6px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.chat-quick > span { display: block; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.chat-quick-list { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-quick .chip { font-size: 9px; padding: 6px 10px; }
.chat-compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-input-wrap { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); padding: 8px 10px 5px; }
.chat-input-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,158,74,.14); }
.chat-input-wrap textarea { width: 100%; border: 0; background: transparent; resize: none; min-height: 38px; max-height: 140px; padding: 0; font-size: 11.5px; line-height: 1.55; color: var(--ink); outline: 0; }
.chat-input-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 8px; color: var(--muted); }
.chat-input-foot span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.chat-compose > .btn { padding: 12px 16px; flex-shrink: 0; }
.chat-foot { padding: 8px 18px 12px; font-size: 8.5px; color: var(--muted); background: var(--paper); display: flex; align-items: center; gap: 6px; }
.chat-foot svg { color: var(--gold-deep); flex-shrink: 0; }
.chat-paused { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--cream); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.chat-paused span { display: inline-flex; align-items: center; gap: 6px; }
.chat-paused-actions { display: flex; gap: 6px; }

.support-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.support-admin-side .admin-panel { margin-bottom: 16px; }
.support-admin-side .admin-panel-head h3 { font-size: 19px; }
.chat-panel--admin { height: min(76vh, 780px); min-height: 560px; }
.support-member-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.support-member-head .avatar { display: inline-grid; color: var(--gold-soft); font-size: 15px; margin: 0; }
.support-member-head strong { display: block; font-size: 12px; color: var(--ink); }
.support-member-head > div span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.support-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.support-facts span { display: block; font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.support-facts strong { display: block; font-size: 11px; color: var(--ink); overflow-wrap: anywhere; }
.support-orders { display: grid; margin-top: 4px; }
.support-orders a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.support-orders a:last-child { border-bottom: 0; }
.support-orders strong { display: block; font-size: 10px; color: var(--ink); }
.support-orders span { display: block; font-size: 8px; color: var(--muted); margin-top: 2px; }
.support-orders .badge { font-size: 7.5px; padding: 3px 6px; }
.support-control-row { display: grid; gap: 9px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.support-control-row:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.support-control-row strong { display: block; font-size: 10.5px; color: var(--ink); }
.support-control-row span { display: block; font-size: 9px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.support-control-row form { justify-self: start; }

.support-inbox { display: grid; }
.support-row {
  display: flex; gap: 13px; padding: 15px 20px; align-items: center;
  border-bottom: 1px solid var(--line); color: inherit; transition: background .15s ease;
}
.support-row:last-child { border-bottom: 0; }
.support-row:hover { background: var(--surface-soft); }
.support-row.is-unread { background: rgba(197,158,74,.075); box-shadow: inset 3px 0 0 var(--gold); }
.support-row.is-unread:hover { background: rgba(197,158,74,.11); }
.support-row .avatar { width: 38px; height: 38px; }
.support-row-main { min-width: 0; flex: 1; }
.support-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.support-row-top strong { font-size: 12px; color: var(--ink); }
.support-row-top time { font-size: 8.5px; color: var(--muted); white-space: nowrap; }
.support-row-mail { display: block; font-size: 9px; color: var(--muted); margin-top: 1px; }
.support-row-main p { font-size: 10.5px; color: var(--body); margin: 5px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 620px; }
.support-row-main p em { color: var(--muted); font-style: normal; font-weight: 600; }
.support-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.support-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--brand-ink); display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.support-row .lesson-action { color: var(--muted); }

.bot-rules { display: grid; gap: 16px; margin-bottom: 20px; }
.bot-rule .admin-panel-head h3 { font-size: 19px; }
.bot-rule-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; }
.bot-rule-actions .checkbox { margin: 0; }
.bot-rule-delete { display: flex; justify-content: flex-end; padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 12px; }
.checkbox .help { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; font-weight: 400; letter-spacing: 0; text-transform: none; }

@media (max-width: 1180px) {
  .header-search { display: none; }
  .nav { gap: 16px; }
  .hero-inner { gap: 28px; }
  .hero-art { min-height: 420px; }
  .feature-split { gap: 42px; }
  .detail-grid { grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr); gap: 30px; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .header-actions { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 62px; text-align: left; }
  .hero-art { min-height: 380px; order: 2; }
  .hero h1 { max-width: 740px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(3) { padding-left: 0; }
  .business-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .detail-side { order: -1; }
  .buy-card-head, .buy-card-body { padding-inline: 22px; }
  .dash-shell { grid-template-columns: 1fr; padding-top: 26px; }
  .support-layout, .support-admin-grid { grid-template-columns: 1fr; }
  .support-side, .support-admin-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .support-side .panel, .support-admin-side .admin-panel { margin-bottom: 0; }
  .support-admin-side .admin-panel:last-child { grid-column: 1 / -1; }
  .chat-panel { height: 680px; }
  .dash-sidebar { position: static; }
  .dash-nav { grid-template-columns: repeat(3, 1fr); }
  .dash-nav .nav-label { display: none; }
  .dash-nav a { justify-content: center; font-size: 10px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-grid { grid-template-columns: 1fr; }
  .learn-side-body { max-height: 400px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .admin-sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .admin-main { margin-left: 0; }
  .admin-menu-toggle { display: grid; place-items: center; }
  .admin-topbar { padding-inline: 18px; }
  .admin-content { padding: 20px 18px 50px; }
  .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; }
  .admin-split { grid-template-columns: 1fr; }
  .admin-aside-card { position: static; }
  .auth-grid { grid-template-columns: 1fr; gap: 28px; }
  .auth-aside { display: none; }
  .auth-card { max-width: 620px; margin-inline: auto; width: 100%; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
  .legal-nav a { border-bottom: 0; border-right: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .header-inner { min-height: 68px; }
  .brand img { width: auto; height: 36px; max-width: 64px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 6.5px; }
  .hero-inner { padding: 48px 0 32px; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .hero-sub { font-size: 14px; }
  .hero-art { min-height: 310px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(1), .hero-stat:nth-child(2) { padding-top: 0; }
  .hero-stat:nth-child(3), .hero-stat:nth-child(4) { padding-bottom: 22px; }
  .hero-stat:nth-child(3) { padding-left: 0; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .trust-item:last-child { border-bottom: 0; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head { margin-bottom: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 26px; }
  .step-num { font-size: 40px; margin-bottom: 14px; }
  .step-icon { top: 26px; right: 22px; }
  .level-mini { grid-template-columns: repeat(4, 1fr); }
  .level-mini div:nth-child(5) { grid-column: 1; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 46px 0; gap: 24px; }
  .cta-inner .btn { width: 100%; }
  .page-hero { padding: 46px 0 38px; }
  .catalog-toolbar { align-items: stretch; }
  .catalog-search { width: 100%; }
  .detail-section { padding: 34px 0 60px; }
  .detail-side { order: -1; }
  .buy-card-head { padding: 20px 18px 16px; }
  .buy-card-body { padding: 18px; }
  .buy-price strong { font-size: 36px; }
  .content-block h2 { font-size: 27px; }
  .item-body { padding: 18px; }
  .item-body h3 { font-size: 23px; }
  .auth-page { padding: 34px 0 60px; }
  .auth-card { padding: 26px 20px; border-radius: 18px; }
  .auth-card--wide { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .checkout-card { padding: 22px 18px; }
  .upi-grid { grid-template-columns: 1fr; }
  .upi-qr { max-width: 220px; margin-inline: auto; }
  .upi-amount { font-size: 30px; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .dash-head h1 { font-size: 31px; }
  .dash-nav { grid-template-columns: repeat(2, 1fr); }
  .support-side, .support-admin-side { grid-template-columns: 1fr; }
  .support-admin-side .admin-panel:last-child { grid-column: auto; }
  .chat-panel { height: min(76vh, 620px); min-height: 520px; }
  .chat-head { flex-direction: column; align-items: flex-start; }
  .chat-head-actions { justify-content: flex-start; }
  .chat-msg { max-width: 92%; }
  .chat-compose { flex-direction: column; align-items: stretch; }
  .chat-compose > .btn { width: 100%; }
  .support-row { align-items: flex-start; }
  .support-row-top { flex-direction: column; gap: 2px; }
  .support-row-side { flex-direction: column; align-items: flex-end; }
  .support-row-main p { white-space: normal; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 23px; }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .network-stats { grid-template-columns: repeat(4, 1fr); }
  .people-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .learn-head { flex-direction: column; align-items: flex-start; }
  .player-title { flex-direction: column; align-items: flex-start; }
  .wallet-hero { padding: 24px 20px; }
  .wallet-hero-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .wallet-hero-actions { width: 100%; }
  .wallet-hero-actions .btn { flex: 1; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .panel-body { padding: 18px; }
  .table th, .table td { padding: 11px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .legal-nav { display: block; }
  .legal-nav a { border-right: 0; border-bottom: 1px solid var(--line); }
  .legal-body h1 { font-size: 36px; }
  .flash-stack { top: 78px; right: 14px; width: calc(100vw - 28px); }
  .admin-topbar h1 { font-size: 21px; }
  .admin-topbar { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .admin-topbar > div:not(.admin-topbar-actions) { flex: 1 1 200px; min-width: 0; }
  .admin-topbar-actions { flex: 1 1 100%; margin-left: 0; }
  .admin-topbar-actions:empty { display: none; }
  .admin-topbar-actions .btn { width: 100%; justify-content: center; }
  .admin-page-head { flex-direction: column; align-items: flex-start; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-form-grid, .admin-form-grid--3 { grid-template-columns: 1fr; }
  .thumb-editor { flex-direction: column; align-items: flex-start; }
  .thumb-editor img { width: 100%; }
  .rate-inputs { grid-template-columns: repeat(4, 1fr); }
  .chart { gap: 5px; }
  .chart-bar strong { display: none; }
  .curriculum-module-head { gap: 7px; }
  .split-mobile { flex-direction: column; align-items: stretch; }
  .hide-mobile { display: none !important; }
  .dash-sidebar .dash-wallet strong { font-size: 20px; }
}

@media (max-width: 420px) {
  .network-stats { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: 1fr; }
  .commission-levels { grid-template-columns: repeat(2, 1fr); }
  .commission-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .announcement, .site-footer, .flash-stack, .btn, .dash-sidebar, .dash-head .btn { display: none !important; }
  body { background: #ffffff; }
  .container, .dash-shell, .checkout-section { width: 100%; padding: 0; margin: 0; display: block; }
  .receipt, .checkout-card { border: 1px solid #ccc; box-shadow: none; }
}

/* ==========================================================================
   Announcements, notifications and on-site popups
   ========================================================================== */
.header-bell { position: relative; }

.badge--info { background: rgba(61, 95, 120, .12); color: var(--info); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warn-bg); color: var(--warn); }
.badge--important { background: var(--danger-bg); color: var(--danger); }

.admin-note--warn { background: var(--warn-bg); border-color: rgba(201,162,79,.45); color: var(--warn); }
.admin-note code, .admin-panel code { background: rgba(26, 26, 26, .06); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.row-actions form { margin: 0; }

.announcement-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.announcement-side { position: sticky; top: 20px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card {
  display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); cursor: pointer;
}
.choice-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: var(--highlight-bg); }
.choice-card input { margin-top: 3px; }
.choice-card span { display: block; }
.choice-card strong { font-size: 11px; display: block; }
.choice-card small { display: block; font-size: 9.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.placement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.placement-option { font-size: 10.5px; }
.popup-placements.is-disabled { opacity: .5; }
.announcement-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.announcement-stats div { background: var(--cream); border-radius: 8px; padding: 10px 12px; }
.announcement-stats span { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.announcement-stats strong { font-family: var(--serif); font-size: 24px; color: var(--brand-ink); }
.announcement-side-actions { display: grid; gap: 8px; margin-bottom: 12px; }
.announcement-side-actions form { margin: 0; }
.email-status-line { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 10px; color: var(--muted); }
.announcement-preview { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 16px; }
.announcement-preview--important { border-left-color: var(--danger); }
.announcement-preview--warning { border-left-color: var(--warn); }
.announcement-preview--success { border-left-color: var(--success); }
.announcement-preview-kind { font-size: 8px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); font-weight: 700; }
.announcement-preview h4 { font-family: var(--serif); font-size: 24px; margin: 6px 0; color: var(--ink); }
.announcement-preview p { font-size: 11px; color: var(--body); white-space: pre-line; line-height: 1.65; margin: 0 0 8px; }

.update-list { display: grid; gap: 12px; }
.update-card {
  display: flex; gap: 15px; align-items: flex-start; position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.update-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); opacity: .5; }
.update-card--important::before { background: var(--danger); opacity: .8; }
.update-card--warning::before { background: var(--warn); opacity: .75; }
.update-card--success::before { background: var(--success); opacity: .75; }
.update-card:hover { border-color: #d8c79f; box-shadow: 0 8px 24px rgba(26, 26, 26, .07); transform: translateY(-1px); }
.update-card.is-unread { border-color: #d9be82; box-shadow: 0 6px 22px rgba(26, 26, 26, .06); }
.update-card-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0;
}
.update-card-main { flex: 1; min-width: 0; }
.update-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 9.5px; color: var(--muted); }
.update-card h3 { font-family: var(--serif); font-size: 24px; margin: 7px 0 5px; color: var(--ink); }
.update-card p { font-size: 11px; color: var(--body); margin: 0; line-height: 1.65; }
.update-card-arrow { color: var(--gold-deep); margin-top: 10px; transition: transform .2s ease; }
.update-card:hover .update-card-arrow { transform: translateX(3px); }
.unread-chip {
  background: var(--forest); color: var(--gold-soft); font-size: 8px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 999px; font-weight: 700;
}
.feed-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.feed-tabs { display: flex; gap: 4px; overflow-x: auto; }
.feed-tabs a { padding: 10px 14px; font-size: 10.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.feed-tabs a span { background: var(--cream); border-radius: 999px; padding: 1px 6px; font-size: 8.5px; }
.feed-tabs a.is-active { color: var(--gold-deep); border-bottom-color: var(--gold); }
.feed-filter-links { display: flex; gap: 10px; font-size: 9.5px; }
.feed-filter-links a { color: var(--muted); }
.feed-filter-links a.is-active { color: var(--gold-deep); font-weight: 700; }
.update-detail-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.back-link svg { transform: rotate(180deg); }
.back-link:hover { color: var(--gold-deep); }
.update-detail { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; padding: 30px 34px; }
.update-detail--important { border-top-color: var(--danger); }
.update-detail--warning { border-top-color: var(--warn); }
.update-detail--success { border-top-color: var(--success); }
.update-detail-head h1 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 10px 0 0; }
.update-detail-body { white-space: pre-line; font-size: 14px; line-height: 1.9; color: var(--body); margin: 24px 0 28px; }
.update-detail-foot { border-top: 1px solid var(--line); padding-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.read-chip { color: var(--success); display: inline-flex; gap: 4px; align-items: center; font-size: 9.5px; }
.update-dismiss-note { margin-top: 10px; display: flex; align-items: center; gap: 5px; }

.notice-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.notice-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 12, .62); backdrop-filter: blur(3px); border: 0; cursor: pointer; }
.notice-modal-card {
  position: relative; z-index: 1; width: min(530px, 100%); margin: 0;
  background: var(--paper); border-radius: 16px; padding: 26px 28px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); border-top: 5px solid var(--gold);
  max-height: calc(100vh - 40px); overflow: auto;
}
.notice-modal-card--important { border-top-color: var(--danger); }
.notice-modal-card--warning { border-top-color: var(--warn); }
.notice-modal-card--success { border-top-color: var(--success); }
.notice-modal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notice-kicker { display: inline-flex; gap: 6px; align-items: center; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.notice-close { border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 2px; }
.notice-close:hover { color: var(--ink); }
.notice-modal-card h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 12px 0 10px; }
.notice-modal-body { white-space: pre-line; color: var(--body); font-size: 13px; line-height: 1.8; max-height: 38vh; overflow: auto; }
.notice-modal-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.notice-modal-note { font-size: 9px; color: var(--muted); margin: 12px 0 0; }
body.notice-open { overflow: hidden; }

@media (max-width: 900px) {
  .announcement-editor { grid-template-columns: 1fr; }
  .announcement-side { position: static; }
}
@media (max-width: 720px) {
  .choice-row, .placement-grid { grid-template-columns: 1fr; }
  .update-card { padding: 15px; gap: 11px; }
  .update-card-icon { width: 34px; height: 34px; }
  .update-detail { padding: 22px 20px; }
  .notice-modal-card { padding: 22px 20px; }
  .feed-toolbar { align-items: flex-start; }
}

/* ==========================================================================
   Commerce — subscriptions, services, products, cart, providers
   ========================================================================== */
.site-header .header-inner { max-width: 1380px; }
.header-cart, .header-search-link { position: relative; }
.header-search-link { display: none; }
@media (max-width: 1440px) {
  .header-search { display: none; }
  .header-search-link { display: inline-grid; }
  .nav { gap: 17px; }
  .nav a { letter-spacing: .08em; font-size: 10.5px; }
}
@media (max-width: 1240px) {
  .nav { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .header-actions { display: none; }
}

/* Kind and state badges */
.badge--subscription { background: rgba(61, 95, 120, .12); color: var(--info); }
.badge--service { background: rgba(78, 78, 78, .12); color: var(--success); }
.badge--provider-plan { background: rgba(28, 28, 28, .9); color: var(--gold-soft); }
.badge--cod, .badge--placed, .badge--requested, .badge--pending-payment { background: var(--warn-bg); color: var(--warn); }
.badge--confirmed, .badge--packed, .badge--in-progress, .badge--shipped, .badge--out-for-delivery { background: var(--info-bg); color: var(--info); }
.badge--delivered, .badge--completed, .badge--approved { background: var(--success-bg); color: var(--success); }
.badge--returned { background: var(--chip-bg); color: var(--muted); }

/* Prices */
.price-from, .price-per { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.price-off { font-size: 10.5px; font-weight: 700; color: var(--success); }
.item-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; }
.buy-price { flex-wrap: wrap; align-items: baseline; }
.buy-price .price-per, .buy-price .price-from { font-size: 12px; }
.item-extra { font-size: 10.5px; color: var(--muted); margin: -4px 0 8px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.stock-text { font-size: 10.5px; font-weight: 600; }
.stock-text--in { color: var(--success); }
.stock-text--low { color: var(--warn); }
.stock-text--out { color: var(--danger); }

/* Subscription plan cards */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease; }
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan-card--featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan-thumb { position: relative; display: block; aspect-ratio: 16 / 8; background: var(--forest); overflow: hidden; }
.plan-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plan-thumb .pill { position: absolute; left: 14px; top: 14px; background: rgba(22, 22, 22, .86); color: var(--gold-soft); border-color: rgba(197,158,74,.35); }
.plan-thumb .pill--free { background: rgba(240, 240, 240, .96); color: var(--success); }
.plan-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.plan-body h3 { font-size: 24px; margin: 4px 0 6px; }
.plan-body h3 a { color: inherit; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 6px 0 12px; }
.plan-price strong { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--brand-ink); }
.plan-price del { color: #a0a0a0; font-size: 13px; }
.plan-points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 11.5px; }
.plan-points li { display: flex; gap: 8px; align-items: flex-start; }
.plan-points svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.plan-actions { margin-top: auto; }
.plan-more { margin: 0 0 12px; font-size: 11px; }
.plan-more summary { cursor: pointer; color: var(--gold-deep); font-weight: 600; }
.channel-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.channel { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--chip-bg); color: var(--body); }
.channel--whatsapp { background: var(--wa-bg); color: var(--wa-fg); }
.channel--telegram { background: var(--tg-bg); color: var(--tg-fg); }
.channel-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.channel-card { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.channel-card strong { display: block; font-size: 12px; color: var(--ink); }
.channel-card span { font-size: 11px; color: var(--muted); }
.channel-card-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--chip-bg); flex-shrink: 0; }
.channel-card--whatsapp .channel-card-icon { background: var(--wa-bg); color: var(--wa-fg); }
.channel-card--telegram .channel-card-icon { background: var(--tg-bg); color: var(--tg-fg); }
.owned-banner--wide { margin: 0 0 18px; }

/* Services */
.provider-banner { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 22px; border-radius: var(--radius); background: linear-gradient(120deg, var(--forest), var(--forest-3)); color: #dcdcdc; }
.provider-banner-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(197,158,74,.18); color: var(--gold-soft); flex-shrink: 0; }
.provider-banner-copy { flex: 1; min-width: 0; }
.provider-banner-copy strong { display: block; color: var(--on-dark); font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.provider-banner-copy span { font-size: 12px; }
.catalog-toolbar--filters { flex-wrap: wrap; gap: 10px; }
.catalog-toolbar--filters .catalog-search { flex: 1 1 260px; }
.catalog-toolbar select, .shop-filters select { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 14px; font-size: 11px; color: var(--ink); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 22px; }
.fact { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.fact svg { color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.fact span { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact strong { font-size: 12px; color: var(--ink); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 34%; background: var(--surface-soft); color: var(--ink); font-weight: 600; }
.provider-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.provider-card h3 { font-size: 22px; margin: 0 0 2px; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact-chips .chip { display: inline-flex; gap: 6px; align-items: center; }
.booking-fields { margin: 4px 0 2px; }
.booking-fields .field { margin-bottom: 10px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--3 .step, .steps--4 .step { display: flex; gap: 14px; padding: 22px; }
.steps--3 .step-num, .steps--4 .step-num { font-size: 34px; margin: 0; }
.steps--3 h4, .steps--4 h4 { margin: 0 0 4px; }

/* Add-to-cart macro */
.cart-form { margin-top: 10px; }
.cart-form-actions { display: grid; gap: 8px; }
.cart-form-actions .btn { margin-top: 0; }
.qty-field { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qty-field label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qty-field input { width: 80px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

/* Gallery */
.gallery { margin: 0 0 24px; }
.gallery-main { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: var(--surface); width: 70px; height: 56px; flex-shrink: 0; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.deal { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--deal); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 6px; }

/* Product listing */
.page-hero--compact { padding-bottom: 46px; }
.shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
.shop-filters { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-group { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h4 { font-family: var(--sans); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.filter-group .checkbox { margin-bottom: 6px; align-items: center; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { box-shadow: var(--shadow); border-color: rgba(197,158,74,.55); }
.product-thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface); border-bottom: 1px solid var(--line); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb .pill { position: absolute; right: 10px; top: 10px; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-body h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.45; margin: 0; }
.product-body h3 a { color: var(--ink); }
.product-body h3 a:hover { color: var(--gold-deep); }
.product-brand { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.product-body .item-price strong { font-size: 22px; }
.product-quick { margin-top: auto; padding-top: 8px; }
.trust-strip--plain { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-strip--plain .trust-item { padding: 20px; }
.trust-strip--plain .trust-item:first-child { padding-left: 20px; }

/* Product detail */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 300px; gap: 30px; align-items: start; margin-bottom: 30px; }
.product-info h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 8px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 0; margin: 10px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-price strong { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--brand-ink); }
.price-off-lg { font-size: 22px; color: var(--deal-text); font-weight: 300; }
.product-price .mrp { font-size: 11.5px; color: var(--muted); width: 100%; }
.product-price .small { width: 100%; }
.product-highlights h4 { font-family: var(--sans); font-size: 12px; margin-bottom: 6px; }
.product-highlights ul { margin: 0 0 16px; padding-left: 18px; font-size: 12.5px; display: grid; gap: 4px; }
.product-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product-meta-grid div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.product-meta-grid span { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.product-meta-grid strong { font-size: 12px; color: var(--ink); }
.product-buy { position: sticky; top: 96px; }
.stock-line { font-weight: 700; font-size: 13px; margin: 10px 0 4px; }
.stock-line--in { color: var(--success); }
.stock-line--low { color: var(--warn); }
.stock-line--out { color: var(--danger); }
.buy-list--compact { margin-top: 14px; }
.buy-list--compact li { font-size: 11px; }
.product-sections > .content-block:not(.related-grid) { max-width: 900px; }
p.help { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.buy-note a { margin: 0 3px; }

/* Cart */
.cart-card { padding: 0; }
.cart-line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line--problem { background: var(--danger-bg); }
.cart-thumb img { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.cart-info h3 { font-size: 20px; margin: 6px 0 4px; }
.cart-info h3 a { color: var(--ink); }
.cart-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); align-items: center; }
.cart-meta svg { vertical-align: -2px; }
.cart-problem { margin-top: 8px; font-size: 11.5px; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.cart-actions { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.qty-inline { display: flex; gap: 6px; align-items: center; }
.qty-inline select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 11.5px; }
.link-button { border: 0; background: none; padding: 0; color: var(--gold-deep); font-size: 11px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.link-button:hover { color: var(--danger); }
.cart-price { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.cart-price strong { font-family: var(--serif); font-size: 24px; color: var(--brand-ink); line-height: 1; }
.cart-price span, .cart-price del { font-size: 10.5px; color: var(--muted); }
.js .qty-inline [data-autosubmit-fallback] { display: none; }

/* Checkout */
.checkout-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.checkout-steps li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.checkout-steps li.is-done { color: var(--success); border-color: rgba(78, 78, 78,.25); background: var(--success-bg); }
.checkout-steps li.is-current { color: var(--brand-ink); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.checkout-card + .checkout-card { margin-top: 18px; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.booking-block { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.booking-block:last-of-type { border-bottom: 0; }
.booking-block > strong { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 8px; }
.ship-to { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--cream); }
.ship-to strong { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.ship-to span { color: var(--muted); }
.receipt-row--line strong { display: flex; gap: 16px; justify-content: flex-end; align-items: baseline; }
.receipt-row--line em { font-style: normal; color: var(--brand-ink); white-space: nowrap; }
.unlock-list { display: grid; gap: 8px; margin-top: 18px; }
.unlock-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.unlock-item:hover { border-color: var(--gold); color: var(--ink); }
.unlock-item > svg:first-child { color: var(--gold-deep); flex-shrink: 0; }
.unlock-item span { flex: 1; font-size: 11px; color: var(--muted); }
.unlock-item span strong { display: block; font-size: 12.5px; color: var(--ink); }

/* Member orders, tracking & timeline */
.order-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.order-line img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.order-line-info { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.order-line-info strong a { color: var(--ink); font-size: 13px; }
.order-line-amount { font-family: var(--serif); font-size: 20px; color: var(--brand-ink); }
.order-totals { padding: 14px 20px; display: grid; gap: 6px; justify-content: end; font-size: 12px; }
.order-totals div { display: flex; justify-content: space-between; gap: 40px; }
.order-totals .total { font-family: var(--serif); font-size: 22px; color: var(--brand-ink); border-top: 1px solid var(--line); padding-top: 8px; }
.tracker { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.tracker li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 10.5px; color: var(--muted); position: relative; }
.tracker li::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.is-done::before { background: var(--success); }
.tracker-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); position: relative; z-index: 1; color: #fff; }
.tracker li.is-done .tracker-dot { background: var(--success); border-color: var(--success); }
.tracker li.is-current { color: var(--ink); font-weight: 700; }
.tracker li.is-current .tracker-dot { box-shadow: 0 0 0 4px rgba(78, 78, 78,.18); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: flex; gap: 14px; padding: 0 0 16px 0; position: relative; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); margin-top: 4px; flex-shrink: 0; }
.timeline-item--cancelled .timeline-dot { background: var(--danger); }
.timeline-item--delivered .timeline-dot, .timeline-item--paid .timeline-dot, .timeline-item--completed .timeline-dot { background: var(--success); }
.timeline-item strong { font-size: 12px; color: var(--ink); }
.timeline-item p { margin: 2px 0; font-size: 11.5px; }
.timeline-time { font-size: 10px; color: var(--muted); }

/* Member subscriptions */
.sub-list { display: grid; gap: 14px; }
.sub-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 18px; }
.sub-card--expired, .sub-card--cancelled { opacity: .82; }
.sub-card-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.sub-card-head img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; }
.sub-card-head h3 { font-size: 21px; margin: 4px 0 2px; }
.sub-card-head h3 a { color: var(--ink); }
.sub-card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sub-progress { height: 6px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin: 14px 0 0; }
.sub-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--success)); }
.sub-channels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.channel-btn { display: inline-flex; gap: 7px; align-items: center; padding: 8px 13px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.channel-btn--whatsapp { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.channel-btn--telegram { background: #2a8bd2; border-color: #2a8bd2; color: #fff; }
.channel-btn--whatsapp:hover { color: var(--paper); filter: brightness(1.15); }
.channel-btn--telegram:hover { color: #fff; filter: brightness(1.07); }
.channel-btn--pending { color: var(--muted); background: var(--cream); }
.sub-contacts { margin-top: 12px; font-size: 11.5px; }
.sub-contacts summary { cursor: pointer; color: var(--gold-deep); font-weight: 600; margin-bottom: 8px; }

/* Provider bookings */
.booking-list { display: grid; gap: 12px; margin-top: 14px; }
.booking-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 16px 18px; }
.booking-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.booking-card-head strong { display: block; font-size: 14px; color: var(--ink); }
.booking-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.booking-card-grid span { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.booking-card-grid strong { display: block; font-size: 12px; color: var(--ink); }
.booking-card-grid small { font-size: 10.5px; color: var(--muted); }

/* Admin additions */
.todo-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.todo { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--body); font-size: 11px; }
.todo strong { font-size: 18px; font-family: var(--serif); color: var(--ink); margin-right: 3px; }
.todo svg { color: var(--gold-deep); flex-shrink: 0; }
.todo--hot { border-color: var(--gold); background: var(--highlight-bg); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip-count { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.07); font-size: 9.5px; }
.row-menu { position: relative; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu-body { position: absolute; right: 0; z-index: 20; width: 380px; display: grid; gap: 10px; padding: 14px; margin-top: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.gallery-admin { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-admin figure { position: relative; margin: 0; width: 120px; height: 96px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.gallery-admin img { width: 100%; height: 100%; object-fit: cover; }
.gallery-admin form { position: absolute; right: 5px; top: 5px; }
.gallery-admin .btn { padding: 5px 7px; }
[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-buy { grid-column: 1 / -1; position: static; }
  .todo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .plan-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .trust-strip--plain { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .plan-grid, .product-grid, .channel-cards { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .steps--3, .steps--4 { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 76px minmax(0, 1fr); }
  .cart-thumb img { width: 76px; height: 60px; }
  .cart-price { grid-column: 2; text-align: left; }
  .field-row--3, .booking-card-grid { grid-template-columns: 1fr; }
  .tracker { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .tracker li::before { display: none; }
  .provider-banner { flex-direction: column; align-items: flex-start; }
  .todo-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip--plain { grid-template-columns: 1fr; }
  .row-menu-body { width: min(92vw, 380px); }
  .order-line { grid-template-columns: 56px minmax(0, 1fr); }
  .order-line img { width: 56px; height: 44px; }
  .order-line-amount { grid-column: 2; }
}

/* ==========================================================================
   Theme toggle & badge fixes
   ========================================================================== */
.show-dark { display: none !important; }
:root[data-theme="dark"] .show-dark { display: inline-flex !important; }
:root[data-theme="dark"] .show-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .show-dark { display: inline-flex !important; }
  :root:not([data-theme="light"]) .show-light { display: none !important; }
}
.theme-toggle { place-items: center; }
.theme-toggle svg { display: block; }
.mobile-theme-toggle { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 10px 14px; font-size: 12px; font-weight: 600; }
.admin-theme-toggle { color: var(--ink); background: var(--paper); }

/* Flags on card images sit in the corner and fit their text */
.item-thumb .free-flag, .item-thumb .deal-flag { left: auto; right: 14px; width: auto; }
.item-thumb .deal-flag, .plan-thumb .deal-flag {
  background: var(--deal); color: #fff; border-color: transparent;
  backdrop-filter: none; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.price-off { color: var(--deal-text); }

/* Dark-mode polish for elements drawn on light imagery */
:root[data-theme="dark"] .item-thumb, :root[data-theme="dark"] .product-thumb, :root[data-theme="dark"] .gallery-main { background: #141414; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .item-thumb, :root:not([data-theme="light"]) .product-thumb, :root:not([data-theme="light"]) .gallery-main { background: #141414; }
}

/* ==========================================================================
   Gold bands — hero, page headers, business band, footer, highlighted cards
   --------------------------------------------------------------------------
   Light mode: soft light-gold backgrounds with dark text.
   Dark mode:  warm dark-gold backgrounds with light text.
   Inside a band the generic text/surface tokens point at the band tokens,
   so any component placed there stays readable in both modes.
   ========================================================================== */
.section--dark, .hero, .page-hero, .business-band, .business-hero, .site-footer,
.announcement, .dash-user, .metric--gold, .wallet-hero, .wallet-mock,
.admin-sidebar, .admin-metric--dark, .chat-head, .provider-banner, .learn-player-card {
  --ink: var(--band-ink);
  --body: var(--band-text);
  --muted: var(--band-muted);
  --brand-ink: var(--band-ink);
  --gold-deep: var(--band-accent);
  --gold-soft: var(--band-accent);
  --paper: var(--band-paper);
  --surface: var(--band-paper);
  --surface-soft: var(--band-soft);
  --chip-bg: var(--band-soft);
  --line: var(--band-line);
  --highlight-bg: var(--band-soft);
}

/* Backgrounds */
.hero, .page-hero, .business-band, .business-hero, .section--dark {
  background: var(--band-bg); color: var(--band-text); border-bottom: 1px solid var(--band-line);
}
.site-footer { background: var(--band-bg); color: var(--band-text); border-top: 1px solid var(--band-line); }
.admin-sidebar { background: var(--band-bg); color: var(--band-text); border-right: 1px solid var(--band-line); }
.announcement { background: var(--band-announce-bg); color: var(--band-accent); border-bottom: 1px solid var(--band-line); }
.announcement a, .announcement .spark { color: var(--band-accent); }
.dash-user, .metric--gold, .wallet-hero, .wallet-mock, .admin-metric--dark, .chat-head,
.provider-banner, .learn-player-card {
  background: var(--band-card-bg); color: var(--band-text); border: 1px solid var(--band-line);
}

/* Decorative rings: thin lines only */
.hero::after, .page-hero::after, .business-band::before, .business-hero::after,
.wallet-mock::after, .wallet-hero::after, .auth-page::before {
  box-shadow: none; border-color: var(--band-ring);
}

/* Headings and strong text */
.hero h1, .page-hero h1, .business-hero h1, .section--dark h2, .section--dark h3, .section--dark h4,
.business-band h2, .hero-stat strong, .video-meta strong, .wallet-mock-balance, .wallet-mock-row strong,
.dash-user h3, .wallet-balance, .footer-brand .brand-name, .admin-brand .brand-name, .chat-head h2,
.provider-banner-copy strong, .player-title h2,
.section--dark .check-list strong, .business-band .check-list strong { color: var(--band-ink); }

/* Body copy */
.hero-sub, .hero-trust span, .page-hero p, .business-hero .lead, .section--dark .lead,
.section--dark .section-head p, .business-band p, .section--dark p,
.section--dark .check-list li, .business-band .check-list li, .footer-brand p,
.footer-col a, .footer-col span, .admin-nav a, .admin-side-bottom a, .chat-head p, .dash-user p,
.provider-banner, .player-title { color: var(--band-text); }

/* Secondary text */
.hero-stat span, .level-mini span, .video-meta span, .wallet-mock-label, .wallet-mock-row span,
.breadcrumb, .breadcrumb span, .rate-scope, .dash-wallet span, .metric--gold span, .metric--gold small,
.wallet-sub, .wallet-breakdown div span, .footer-bottom, .footer-legal a, .admin-side-label,
.admin-nav a svg, .admin-side-bottom, .admin-metric--dark span, .admin-metric--dark small,
.player-title span { color: var(--band-muted); }

/* Gold accents */
.hero .eyebrow, .section--dark .eyebrow, .page-kicker, .breadcrumb a, .hero h1 .accent,
.level-mini strong, .level-mini em, .wallet-mock-row .pos, .wallet-mock-chip, .footer-col h4,
.section--dark .check-list li svg, .business-band .check-list li svg, .admin-brand .brand-sub,
.dash-user .avatar, .chat-head .chat-avatar { color: var(--band-accent); }

/* Hovers */
.breadcrumb a:hover, .video-meta a:hover, .footer-col a:hover, .footer-legal a:hover,
.admin-nav a:hover, .admin-side-bottom a:hover { color: var(--band-ink); }
.admin-nav a:hover { background: var(--band-soft); }
.admin-nav a.is-active { background: rgba(201, 161, 75, .22); color: var(--band-ink); }
.admin-nav a.is-active svg { color: var(--band-accent); }
.admin-nav .count { background: var(--band-soft); color: var(--band-accent); }

/* Inner boxes on bands */
.level-mini div, .video-card, .wallet-mock-row, .chat-head .badge, .risk-note, .pill--dark {
  background: var(--band-soft); border-color: var(--band-line);
}
.risk-note { color: var(--band-text); }
.pill--dark { color: var(--band-accent); }
.dash-user .avatar, .chat-head .chat-avatar { background: rgba(201, 161, 75, .2); border-color: rgba(138, 100, 24, .3); }

/* Translucent "light" buttons on bands */
.hero .btn-light, .business-band .btn-light, .section--dark .btn-light, .page-hero .btn-light,
.wallet-hero .btn-light, .admin-sidebar .btn-light, .provider-banner .btn-light, .learn-player-card .btn-light {
  --btn-bg: var(--band-soft); --btn-fg: var(--band-ink); border-color: var(--band-line);
}

/* Member sidebar active item: light gold instead of a dark fill */
.dash-nav a.is-active { background: var(--band-card-bg); color: var(--band-ink); box-shadow: inset 3px 0 0 var(--gold); }
.dash-nav a.is-active svg { color: var(--band-accent); }

/* Own chat messages: light gold bubble */
.chat-msg.is-mine .chat-bubble { background: var(--band-card-bg); border-color: var(--band-line); color: var(--band-ink); }
.chat-msg.is-mine.is-bot .chat-bubble { background: var(--band-soft); }

/* WhatsApp button: bronze, not black */
.channel-btn--whatsapp { background: var(--forest); border-color: var(--forest); color: #fff; }
.channel-btn--whatsapp:hover { color: #fff; }
.video-meta a { color: var(--band-accent); }
.hero-stat { border-right-color: var(--band-line); }
.hero-stats, .hero-trust { border-color: var(--band-line); }
.dash-wallet strong, .metric--gold strong, .admin-metric--dark strong, .wallet-breakdown div strong { color: var(--band-ink); }
.chat-head .badge--active, .chat-head .badge--cancelled { background: var(--band-soft); color: var(--band-text); }

/* ==========================================================================
   Explore hub (Android app Explore tab; also available on the web)
   ========================================================================== */
.explore { padding: 34px 0 60px; }
.explore-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 4px 0 16px; }
.explore-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; box-shadow: var(--shadow-sm); color: var(--muted); }
.explore-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 14px; color: var(--ink); outline: 0; }
.explore-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 8px; }
.explore-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 18px; min-height: 140px; border-radius: 20px; border: 1px solid var(--band-line); background: var(--band-card-bg); color: var(--band-text); box-shadow: var(--shadow-sm); }
.explore-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; border: 1px solid var(--band-ring); }
.explore-tile strong { margin-top: auto; font-family: var(--serif); font-size: 22px; color: var(--band-ink); line-height: 1.1; }
.explore-tile span:not(.explore-tile-icon) { font-size: 11px; color: var(--band-muted); }
.explore-tile-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .6); color: var(--band-accent); border: 1px solid var(--band-line); }
.explore-tile--subs .explore-tile-icon { color: #1d5f99; }
.explore-tile--services .explore-tile-icon { color: #9a3b6b; }
.explore-tile--products .explore-tile-icon { color: #b45309; }
.explore-section { margin-top: 28px; }
.explore-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.explore-section-head h2 { font-size: 24px; margin: 0; }
.explore-section-head a { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: 6px; align-items: center; }
.explore-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.explore-rail-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.explore-rail-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface-soft); }
.explore-rail-card strong { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.explore-rail-card .item-price strong { font-size: 18px; }
.explore-list { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.explore-list a { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.explore-list a:last-child { border-bottom: 0; }
.explore-list a > svg:first-child { color: var(--band-accent); flex-shrink: 0; }
.explore-list a > svg:last-child { color: var(--muted); margin-left: auto; flex-shrink: 0; }
.explore-list strong { display: block; font-size: 13px; }
.explore-list small { display: block; font-size: 11px; color: var(--muted); }
@media (max-width: 720px) {
  .explore-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Am Healthy (agent key page) ------------------------------------------------ */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row form { margin: 0; }
.amh-key-box .amh-key { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 15px; letter-spacing: .12em; font-weight: 600; color: var(--ink); text-align: center; }
.amh-steps { margin: 16px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }
.amh-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.amh-benefit { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--band-card-bg); color: var(--band-text); }
.amh-benefit svg { color: var(--band-accent); }
.amh-benefit strong { color: var(--band-ink); font-size: 14px; }
.amh-benefit span { font-size: 12px; }
.amh-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.amh-plan { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.amh-plan img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-soft); }
.amh-plan-body { padding: 16px; display: grid; gap: 8px; }
.amh-plan-body h3 { margin: 0; font-size: 1.05rem; }
.amh-plan-body p { margin: 0; }
.amh-plan-price strong { font-size: 1.3rem; color: var(--brand-ink); }
.amh-plan-price span { color: var(--muted); font-size: 12px; margin-left: 4px; }
.agent-price { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: 999px; background: var(--highlight-bg); color: var(--band-accent); font-size: 12px; font-weight: 600; width: auto; max-width: max-content; }
@media (max-width: 640px) { .amh-benefits { grid-template-columns: 1fr; } }

/* ==== Course progress, certificates, member ID card (2026-11-22) ==== */
.lesson-item { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.lesson-item .lesson-row { border-bottom: 0; flex: 1 1 auto; min-width: 0; }
.lesson-done { flex: 0 0 auto; align-self: center; width: 28px; height: 28px; margin-right: 14px; border-radius: 50%; border: 1.5px solid var(--line-dark, var(--line)); background: var(--surface); color: transparent; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.lesson-done:hover { border-color: var(--gold); color: var(--gold-deep); }
.lesson-done[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.lesson-item.is-done .lesson-title { color: var(--muted); }
.learn-progress { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--band-card-bg); color: var(--band-ink); }
.learn-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.learn-progress-cert { margin-top: 10px; }
.cert-bar { position: relative; height: 8px; border-radius: 99px; background: var(--cream-2); overflow: visible; }
.cert-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transition: width .3s; }
.cert-bar b { position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: var(--gold-deep); border-radius: 1px; }
.cert-list { display: grid; gap: 12px; }
.cert-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.cert-row.is-earned { background: var(--band-card-bg); border-color: var(--band-line); }
.cert-row > img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.cert-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 7px; }
.cert-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.cert-title a { color: inherit; }
.cert-meta { font-size: 12.5px; color: var(--body); }
.cert-act { flex: 0 0 auto; display: grid; gap: 4px; justify-items: end; text-align: right; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-chips span { padding: 6px 11px; border-radius: 99px; background: var(--cream); border: 1px solid var(--line); font-size: 12.5px; }
.grade-chips b { color: var(--gold-deep); }
@media (max-width: 640px) {
  .cert-row { flex-wrap: wrap; }
  .cert-act { width: 100%; justify-items: start; text-align: left; }
}
/* ID card preview (85.6 x 54 mm ratio) */
.idc-wrap { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.idc { position: relative; aspect-ratio: 85.6 / 54; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--gold); box-shadow: 0 10px 30px -14px rgba(60, 45, 10, .35); color: #1c1710; container-type: inline-size; }
.idc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5%; background: var(--gold); }
.idc-top { display: flex; align-items: center; gap: 3cqw; height: 24%; padding: 0 4cqw; background: linear-gradient(135deg, #fcf6e6, #f3e4c0); }
.idc-top img { height: 74%; width: auto; }
.idc-top strong { display: block; font-size: 5.4cqw; line-height: 1.1; }
.idc-top span { display: block; font-size: 3cqw; font-weight: 800; letter-spacing: .08em; color: #9e7623; }
.idc-top--slim { height: 17%; font-size: 4cqw; }
.idc-body { display: flex; gap: 4cqw; padding: 4cqw; height: 76%; box-sizing: border-box; }
.idc-photo { flex: 0 0 26%; aspect-ratio: 4 / 5; align-self: flex-start; border: 1.5px solid var(--gold); background: #fcf6e6; display: grid; place-items: center; overflow: hidden; }
.idc-photo img { width: 100%; height: 100%; object-fit: cover; }
.idc-photo span { font-size: 8cqw; font-weight: 800; color: #9e7623; }
.idc-info { flex: 1 1 auto; min-width: 0; }
.idc-info strong { display: block; font-size: 5cqw; line-height: 1.15; margin-bottom: 1.5cqw; overflow-wrap: anywhere; }
.idc-info dl { display: grid; grid-template-columns: auto 1fr; gap: .6cqw 2.4cqw; margin: 0; font-size: 3.2cqw; }
.idc-info dt { color: #7a6b4d; text-transform: uppercase; font-size: 2.5cqw; letter-spacing: .04em; align-self: center; }
.idc-info dd { margin: 0; font-weight: 700; color: #45392a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc-qr { position: absolute; right: 3.5cqw; bottom: 5cqw; width: 17cqw; height: 17cqw; background: #fff; }
.idc-qr svg { width: 100%; height: 100%; display: block; }
.idc-back-body { padding: 3.5cqw 4cqw; font-size: 3.2cqw; line-height: 1.45; color: #45392a; }
.idc-back-body p { margin: 0 0 1.4cqw; }
.idc-back-body .muted { color: #7a6b4d; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.plain-list li { display: flex; gap: 8px; align-items: flex-start; }
.plain-list .ic, .plain-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--gold-deep); }
/* Public verify page */
.verify-card { max-width: 460px; margin: 40px auto; padding: 28px 24px; border-radius: 20px; text-align: center; background: var(--band-card-bg); border: 1px solid var(--band-line); color: var(--band-ink); }
.verify-logo { width: 56px; height: 56px; margin: 0 auto 12px; display: block; }
.verify-card h1 { font-size: 1.5rem; margin: 12px 0 6px; }
.verify-ok, .verify-bad { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 13px; }
.verify-ok { background: var(--success-bg); color: var(--success); }
.verify-bad { background: var(--danger-bg); color: var(--danger); }
.verify-photo { width: 110px; height: 138px; object-fit: cover; border-radius: 12px; border: 2px solid var(--gold); margin: 14px auto 0; display: block; }
.verify-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; margin: 16px auto 0; max-width: 320px; font-size: 14px; }
.verify-dl dt { color: var(--band-muted); }
.verify-dl dd { margin: 0; font-weight: 700; }

/* Admin item form: BV value and the referral split preview */
.field--bv .req { margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--highlight-bg, var(--cream)); color: var(--gold-deep); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bv-split { margin-top: 10px; }
.bv-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.bv-table th, .bv-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.bv-table th { color: var(--muted); font-weight: 600; font-size: 11px; }
.bv-table td:last-child, .bv-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bv-note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.bv-warn { margin: 0 0 8px; font-size: 12px; color: var(--danger); font-weight: 600; }
.bv-flag { color: var(--danger); font-weight: 600; }

/* --------------------------------------------------------------------------
   Get the Android app (/get-app) and the home-page app band
   -------------------------------------------------------------------------- */
.getapp-hero { position: relative; overflow: hidden; color: #1f1b12;
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .7), transparent 38%), linear-gradient(125deg, #fbf3df, #f1deb0 60%, #e9cf91); }
.getapp-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding: 72px 0 64px; }
.getapp-copy .eyebrow { color: #8a6418; display: inline-flex; align-items: center; gap: 8px; }
.getapp-copy h1 { color: #1a1a1a; margin: 10px 0 14px; }
.getapp-lead { font-size: 1.08rem; color: #4a4232; max-width: 560px; }
.getapp-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-getapp { --btn-bg: #1f1f1f; --btn-fg: #fff; border-color: #1f1f1f; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.btn-getapp:hover { --btn-bg: #000; --btn-fg: #fff; }
.getapp-meta { margin-top: 12px; color: #6b5c3a; font-size: .9rem; }
.getapp-phone { justify-self: center; width: min(250px, 70vw); aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 12px; background: #fff;
  border: 1px solid rgba(158, 118, 35, .35); box-shadow: 0 40px 70px -30px rgba(120, 88, 26, .55), inset 0 0 0 6px #f6ecd4; transform: rotate(4deg); animation: getapp-float 6s ease-in-out infinite; }
@keyframes getapp-float { 50% { transform: rotate(4deg) translateY(-10px); } }
.getapp-screen { height: 100%; border-radius: 28px; background: linear-gradient(180deg, #fffaf0, #fff); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 18px; }
.getapp-screen img { width: 64px; height: 64px; border-radius: 18px; }
.getapp-screen strong { color: #1a1a1a; font-size: 1.05rem; }
.getapp-line { display: block; height: 9px; border-radius: 9px; background: #efe3c4; }
.getapp-line.w80 { width: 80%; } .getapp-line.w60 { width: 60%; } .getapp-line.w70 { width: 70%; margin-top: auto; }
.getapp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 8px; }
.getapp-tiles span { aspect-ratio: 1.2; border-radius: 14px; background: linear-gradient(135deg, #f4e6c3, #e7cd8f); }
.getapp-tiles span:nth-child(2), .getapp-tiles span:nth-child(3) { background: #f7f0de; }
.getapp-body { padding-top: 64px; }
.getapp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; }
.getapp-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .25); }
.getapp-card h2 { font-size: 1.35rem; margin: 0 0 14px; }
.getapp-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 14px; }
.getapp-steps li { counter-increment: st; display: flex; gap: 14px; align-items: flex-start; }
.getapp-steps li::before { content: counter(st); flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #2a220f; background: linear-gradient(135deg, #e4c57f, #c79a42); }
.getapp-qr { text-align: center; }
.getapp-qr p { color: var(--muted); }
.getapp-qrbox { display: inline-block; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.getapp-qrbox svg { display: block; width: 180px; height: 180px; }
.getapp-url { font-size: .82rem; word-break: break-all; }
.getapp-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.getapp-feats > div { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--cream-2); color: var(--muted); }
.getapp-feats .ic, .getapp-feats svg { color: var(--gold-deep); }
.getapp-feats b { color: var(--ink); }
.getapp-notes { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.getapp-notes p { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.getapp-sha code { font-size: .78rem; word-break: break-all; background: var(--cream-2); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 860px) {
  .getapp-inner { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 50px; text-align: center; }
  .getapp-lead { margin-inline: auto; }
  .getapp-actions { justify-content: center; }
  .getapp-phone { width: min(200px, 56vw); }
  .getapp-grid { grid-template-columns: 1fr; }
  .getapp-feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .getapp-feats { grid-template-columns: 1fr; } .getapp-card { padding: 22px; } }

.app-band { padding: 0 0 70px; }
.app-band-inner { display: flex; align-items: center; gap: 26px; padding: 26px 30px; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .7), transparent 40%), linear-gradient(120deg, #fbf3df, #efdcae); border: 1px solid rgba(158, 118, 35, .25); }
.app-band-icon { flex: 0 0 auto; width: 70px; height: 70px; border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -18px rgba(120, 88, 26, .6); }
.app-band-icon img { width: 54px; height: 54px; border-radius: 14px; }
.app-band-copy { flex: 1; min-width: 0; }
.app-band-copy h3 { margin: 0 0 4px; color: #1a1a1a; }
.app-band-copy p { margin: 0; color: #5a4e33; }
@media (max-width: 700px) { .app-band-inner { flex-direction: column; text-align: center; padding: 24px 20px; } }
