/* ===========================================================================
   VH Affiliates — design system.
   A private money desk: graphite, gold, Space Grotesk numerals, quiet motion.
   =========================================================================== */

/* "Mono" design — one acid-lime accent. Two themes: dark (default) + light.
   --gold/--gold-ink flip per theme so the SAME component CSS reads right:
   dark = lime fill + black text · light = black fill + lime text. */
:root, :root[data-theme="dark"] {
  --bg: #0c0d0f;
  --surface: #141619;
  --surface-2: #1b1e22;
  --line: #24272c;
  --line-2: #343941;
  --text: #f0f1ee;
  --muted: #9a9ea6;
  --faint: #5f646c;
  --pop: #e4ff1a;        /* acid lime */
  --gold: #e4ff1a;       /* accent = lime (on dark) */
  --gold-soft: #d0ea12;
  --gold-ink: #0c0d0f;   /* content on the lime accent = near-black */
  --pos: #4ccb85;
  --neg: #ec6a6a;
}
:root[data-theme="light"] {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f1f1ec;
  --line: #e7e7e1;
  --line-2: #d7d7d0;
  --text: #0b0b0b;
  --muted: #6a6a63;
  --faint: #a2a29a;
  --pop: #e4ff1a;
  --gold: #101010;       /* accent = near-black (on light) */
  --gold-soft: #2a2a2a;
  --gold-ink: #e4ff1a;   /* content on the black accent = lime */
  --pos: #1f9d57;
  --neg: #d93a3a;
}
:root {
  --sans: "Archivo", ui-sans-serif, -apple-system, system-ui, sans-serif;
  --display: "Archivo", var(--sans);
  --mono: "Archivo", ui-monospace, monospace;
  --r: 9px;
  --r-sm: 7px;
  --sidebar: 252px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
code, .mono, code.mono, .adm-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }

* { box-sizing: border-box; }
/* [hidden] must always win over class display rules (nav items, badges, the
   apply success card, the member/admin detail panels all rely on it) */
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
/* no double-tap zoom on phones (pinch-zoom still works for accessibility) */
html { touch-action: manipulation; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; }
::selection { background: color-mix(in srgb, var(--gold) 30%, transparent); }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- brand wordmark ---------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 26px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold), var(--gold-soft));
  color: var(--gold-ink); font-family: var(--display); font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--gold) 28%, transparent);
}
.brand .word { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
/* VH Affiliates wordmark (logo D1): VH. | AFFILIATES */
.brand { color: var(--text); }
.brand-vh { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.05em; line-height: 1; }
.brand-vh i { font-style: normal; color: var(--pop); display: inline-block; }
:root[data-theme="light"] .brand-vh i { color: #a8bf00; }
.brand-rule { width: 1px; height: 18px; background: currentColor; opacity: 0.25; }
.brand-caps { font-size: 10px; font-weight: 500; letter-spacing: 0.32em; margin-right: -0.32em; text-transform: uppercase; color: var(--muted); }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 500; font-size: 13.5px;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease), transform 0.12s var(--ease), opacity 0.16s;
}
.btn:hover:not(:disabled) { border-color: var(--faint); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(145deg, var(--gold), var(--gold-soft));
  border-color: transparent; color: var(--gold-ink); font-weight: 600;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); border-color: transparent; }
.btn-ghost { background: none; border-color: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--surface-2); transform: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---- inputs ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.input {
  height: 44px; padding: 0 14px; width: 100%;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); outline: none;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent); }
.input::placeholder { color: var(--faint); }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}

/* =====================  LOGIN  ========================================== */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.auth-wrap::before { /* ambient gold haze, very faint */
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 680px; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--gold) 12%, transparent), transparent 62%);
}
.auth-card {
  position: relative; width: 100%; max-width: 384px;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r);
  padding: 32px 30px; overflow: hidden;
  animation: rise 0.6s var(--ease) both;
}
.auth-card::before { /* drawn gold hairline across the top */
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  animation: drawline 0.9s 0.25s var(--ease) forwards;
}
.auth-card .brand { margin-bottom: 26px; }
.auth-card h1 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 0 0 5px; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form .btn { margin-top: 4px; height: 46px; }
.auth-msg { font-size: 12.5px; min-height: 16px; margin: 2px 0 0; color: var(--neg); }

/* =====================  GATE (sign-in = front page)  ==================== */
.gate { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.gate-pitch {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 30px clamp(24px, 5vw, 64px); border-right: 1px solid var(--line);
  background: radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--pop) 9%, transparent), transparent 60%), var(--bg);
}
.gate-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gate-copy { max-width: 540px; animation: rise .6s var(--ease) both; }
.gate-copy .eyebrow { display: block; margin-bottom: 16px; }
.gate-copy h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; }
.gate-copy h1 .accent { color: var(--gold); }
.gate-copy .lead { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; max-width: 42ch; }
.gate-points { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.gate-points li { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; }
.gate-points li::before { content: ""; grid-row: span 2; width: 8px; height: 8px; margin-top: 6px; border-radius: 2px; background: var(--gold); }
.gate-points b { font-size: 14.5px; font-weight: 600; }
.gate-points span { font-size: 13.5px; color: var(--muted); }
.gate-gifts { display: flex; gap: 6px; }
.gate-gifts img { width: 62px; height: 62px; object-fit: contain; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); animation: rise .5s var(--ease) both; }
.gate-gifts img:nth-child(2) { animation-delay: .05s; } .gate-gifts img:nth-child(3) { animation-delay: .1s; }
.gate-gifts img:nth-child(4) { animation-delay: .15s; } .gate-gifts img:nth-child(5) { animation-delay: .2s; } .gate-gifts img:nth-child(6) { animation-delay: .25s; }
.gate-legal { margin: 0; }
.gate-side { display: grid; place-items: center; padding: 32px 20px; }
.gate-side .auth-card { max-width: 400px; }
.auth-tabs { display: flex; width: 100%; margin-bottom: 24px; }
.auth-tabs button { flex: 1; height: 34px; }
.auth-form h2 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.auth-form .sub { margin: 0; }
.auth-switch { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-form .check { margin-top: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pending-banner { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); font-size: 13px; color: var(--muted); line-height: 1.5; }
.pending-banner b { color: var(--text); display: block; font-size: 14px; margin-bottom: 2px; }
.pending-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: 0 0 8px; margin-top: 6px; animation: pulse 1.8s infinite; }
@media (max-width: 860px) {
  .gate { grid-template-columns: 1fr; }
  .gate-pitch { border-right: none; border-bottom: 1px solid var(--line); padding: calc(16px + env(safe-area-inset-top)) 18px 26px; gap: 22px; }
  .gate-copy h1 { font-size: 34px; }
  .gate-copy .lead { font-size: 14.5px; margin-bottom: 18px; }
  .gate-points { display: none; }
  .gate-gifts img { width: 48px; height: 48px; padding: 5px; border-radius: 10px; }
  .gate-legal { display: none; }
  .gate-side { padding: 22px 16px calc(32px + env(safe-area-inset-bottom)); }
  .gate-side .auth-card { padding: 24px 18px; }
}

/* sign-in page: just the card */
.auth-stack { position: relative; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.auth-stack .auth-card { max-width: none; }
.auth-brand .brand-vh { font-size: 28px; }
.auth-brand .brand-rule { height: 22px; }
.auth-brand .brand-caps { font-size: 11px; }
.gate-theme { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; z-index: 5; }
.auth-legal { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--faint); }
.auth-legal .b { border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; font-weight: 700; font-size: 11px; color: var(--muted); }
.auth-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.auth-legal a:hover { color: var(--text); }
@media (max-width: 480px) { .auth-wrap { padding: 64px 16px 32px; place-items: start center; } .auth-stack .auth-card { padding: 24px 18px; } }

/* support: direct contact */
.contact-card h3 { margin-bottom: 12px; }
.contact-list { display: flex; flex-direction: column; gap: 8px; }
.contact-item { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); transition: border-color .15s, transform .15s var(--ease); }
.contact-item:hover { border-color: var(--gold); transform: translateY(-1px); }
.contact-item .ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.contact-item .ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item .tx { flex: 1; min-width: 0; }
.contact-item .tx span { display: block; font-size: 11.5px; color: var(--faint); }
.contact-item .tx b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.contact-item .go { color: var(--faint); font-size: 18px; }

/* =====================  APP SHELL  ===================================== */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.side {
  border-right: 1px solid var(--line); padding: 22px 16px;
  display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
  animation: fade 0.5s var(--ease) both;
}
.side .brand { padding: 4px 8px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav button {
  display: flex; align-items: center; gap: 12px; position: relative;
  height: 44px; padding: 0 13px; border: none; background: none; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: 14.5px; text-align: left; width: 100%;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.side nav button svg { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.side nav button:hover { color: var(--text); background: var(--surface); }
.side nav button[aria-current="true"] { color: var(--text); background: var(--surface); }
.side nav { position: relative; }
.nav-ind {
  position: absolute; left: -16px; top: 0; width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: var(--gold); pointer-events: none; opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.3s;
}
.nav-ind.on { opacity: 1; }
.side nav button:focus { outline: none; }
.side nav button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* load sequence: brand pops, nav items slide in one after another */
.side .brand .brand-vh i { animation: pop 0.5s 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.side nav button { animation: slideIn 0.45s var(--ease) both; }
.side nav button:nth-of-type(1) { animation-delay: 0.08s; }
.side nav button:nth-of-type(2) { animation-delay: 0.12s; }
.side nav button:nth-of-type(3) { animation-delay: 0.16s; }
.side nav button:nth-of-type(4) { animation-delay: 0.20s; }
.side nav button:nth-of-type(5) { animation-delay: 0.24s; }
.side nav button:nth-of-type(6) { animation-delay: 0.28s; }
.side nav button:nth-of-type(7) { animation-delay: 0.32s; }
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 700;
  display: inline-grid; place-items: center; font-family: var(--mono);
}
.side .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.foot-row { display: flex; align-items: center; gap: 8px; }
.foot-row #logout { flex: 1; }
.theme-toggle { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .t-moon { display: none; }
:root[data-theme="light"] .theme-toggle .t-sun { display: none; }
:root[data-theme="light"] .theme-toggle .t-moon { display: block; }

/* applications */
.app-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 18px 20px; margin-bottom: 12px; }
.app-card.done { opacity: 0.55; }
.app-card .app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.app-card .who b { font-weight: 600; font-size: 14.5px; }
.app-card .who .mail { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.app-card .when { color: var(--faint); font-size: 12px; white-space: nowrap; }
.app-card .aud { margin: 12px 0 0; font-size: 13px; color: var(--text); }
.app-card .aud span { color: var(--faint); }
.app-card .note { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.app-card .app-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.app-card .tag-done { font-size: 11.5px; color: var(--pos); font-weight: 600; }
.side .acct { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.side .acct .av {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--gold);
}
.side .acct .meta { overflow: hidden; }
.side .acct .meta b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .acct .meta span { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.main { padding: 40px clamp(22px, 4vw, 52px) 72px; max-width: 1200px; margin: 0 auto; width: 100%; }
.nav-sep { height: 1px; background: var(--line); margin: 11px 10px; }
.view { display: none; }
.view[data-active="true"] { display: block; }
.view[data-active="true"] > * { animation: rise 0.55s var(--ease) both; }
.view[data-active="true"] > *:nth-child(2) { animation-delay: 0.04s; }
.view[data-active="true"] > *:nth-child(3) { animation-delay: 0.08s; }
.view[data-active="true"] > *:nth-child(4) { animation-delay: 0.12s; }
.view[data-active="true"] > *:nth-child(5) { animation-delay: 0.16s; }
.view[data-active="true"] > *:nth-child(6) { animation-delay: 0.20s; }
.view[data-active="true"] > *:nth-child(7) { animation-delay: 0.24s; }
.view[data-active="true"] > *:nth-child(n+8) { animation-delay: 0.28s; }
.page-h { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 7px 0 0; }

/* ---- HERO: owed figure + cumulative chart ------------------------------ */
.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 10px; align-items: stretch;
  border: 1px solid var(--line); background:
    radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 46%),
    var(--surface);
  border-radius: var(--r); overflow: hidden; margin: 22px 0 14px;
}
.hero .lede { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.hero .owed {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(42px, 7vw, 60px); margin: 12px 0 0;
}
.hero .owed .cur { color: var(--gold); font-size: 0.5em; vertical-align: 0.14em; margin-left: 6px; font-weight: 500; }
.hero .subline { margin-top: 16px; display: flex; gap: 20px; flex-wrap: wrap; }
.hero .subline .bit { display: flex; flex-direction: column; gap: 3px; }
.hero .subline .bit span { font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
.hero .subline .bit b { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.hero .chart { position: relative; border-left: 1px solid var(--line); min-height: 184px; }
.hero .chart .cap {
  position: absolute; top: 16px; left: 18px; z-index: 1;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.hero .chart .empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--faint); font-size: 12.5px;
}
.hero svg.spark { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spark .area { opacity: 0; animation: fade 0.8s 0.5s var(--ease) forwards; }
.spark .line {
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: draw 1.1s 0.3s var(--ease) forwards;
}
.spark .dot { fill: var(--gold); opacity: 0; animation: pop 0.4s 1.2s var(--ease) forwards; }

/* ---- period toggle + strip header -------------------------------------- */
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 11px; }
.strip-head .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.seg button {
  height: 28px; padding: 0 13px; border: none; background: none; border-radius: 6px;
  color: var(--muted); font-size: 12.5px; font-weight: 500; transition: color 0.14s var(--ease), background 0.14s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.owed-chip { display: inline-flex; align-items: baseline; gap: 7px; }
.owed-chip .k { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.owed-chip .v { font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--pos); }

/* ---- metric strip (one panel, divided) --------------------------------- */
.strip {
  display: flex; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r);
  overflow: hidden; margin-bottom: 26px;
}
.strip .m { flex: 1; padding: 16px 18px; border-left: 1px solid var(--line); }
.strip .m:first-child { border-left: none; }
.strip .m .k { font-size: 11px; color: var(--faint); letter-spacing: 0.05em; text-transform: uppercase; }
.strip .m .v { font-family: var(--mono); font-weight: 500; font-size: 22px; margin-top: 7px; letter-spacing: -0.01em; }
.strip .m .v small { font-size: 13px; color: var(--muted); margin-left: 2px; }

/* ---- period tabs + clean metric grid ----------------------------------- */
.periods {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin: 22px 0 24px;
}
.period-month {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: border-color .15s, color .15s; margin-bottom: 6px;
}
.period-month:hover, .period-month:focus-within { border-color: var(--line-2); color: var(--text); }
.period-month[data-active="true"] { border-color: var(--gold); color: var(--text); }
.period-month svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.period-month { position: relative; }
.period-month select { appearance: none; -webkit-appearance: none; border: none; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 500; outline: none; cursor: pointer; padding-right: 20px; }
.period-month select option { background: var(--surface); color: var(--text); }
.period-month .chev { position: absolute; right: 9px; width: 13px; height: 13px; pointer-events: none; }
.periods button {
  position: relative; border: none; background: none; color: var(--muted);
  font-size: 13px; font-weight: 500; padding: 10px 14px; white-space: nowrap;
  transition: color 0.14s var(--ease);
}
.periods button:hover { color: var(--text); }
.periods button[aria-current="true"] { color: var(--text); }
.periods button[aria-current="true"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--gold); border-radius: 2px 2px 0 0;
}

.mgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-bottom: 26px;
}
.mtile { background: var(--surface); padding: 26px 16px; text-align: center; animation: rise 0.5s var(--ease) both; transition: background 0.25s var(--ease); }
.mtile:not(.gold):hover { background: var(--surface-2); }
.mtile .n { display: inline-block; }
.mtile.bump .n { animation: bump 0.45s var(--ease); }
.mtile .v { font-family: var(--display); font-weight: 600; font-size: clamp(25px, 3.6vw, 33px); letter-spacing: -0.02em; }
.mtile .v .cur { color: var(--muted); font-size: 0.6em; font-weight: 500; margin-left: 1px; }
.mtile .k { font-size: 12px; color: var(--muted); margin-top: 9px; }
.mtile.gold { background: radial-gradient(130% 130% at 50% 0%, color-mix(in srgb, var(--pop) 11%, transparent), transparent 60%), var(--surface); }
.mtile.gold .v { color: var(--gold); }
:root[data-theme="light"] .mtile.gold { background: #101010; }
:root[data-theme="light"] .mtile.gold .v { color: var(--pop); }
:root[data-theme="light"] .mtile.gold .v .cur { color: color-mix(in srgb, var(--pop) 70%, #fff); }
:root[data-theme="light"] .mtile.gold .k { color: rgba(255,255,255,0.6); }

/* ---- cards ------------------------------------------------------------- */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.col2 .col { display: flex; flex-direction: column; gap: 16px; }
.info-card { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r); padding: 20px 22px; }
.info-card h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 12px; }
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.info-list li { display: flex; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.info-list li b { color: var(--text); font-weight: 600; }
.info-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: 0 0 6px; margin-top: 6px; }
@media (max-width: 860px) { .col2 { grid-template-columns: 1fr; } }
@media (max-width: 1280px) { .rewards { grid-template-columns: repeat(4, 1fr); } }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 20px 22px; }
.card h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 4px; }
.card .hint { font-size: 12.5px; color: var(--muted); margin: 0 0 15px; line-height: 1.45; }
.linkbox { display: flex; gap: 8px; }
.linkbox code, .linkbox .input { flex: 1; min-width: 0; }
.linkbox code {
  height: 44px; display: flex; align-items: center; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  font-family: var(--mono); font-size: 13px; color: var(--text);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.msg { font-size: 12.5px; min-height: 16px; margin: 9px 0 0; }
.msg[data-tone="ok"] { color: var(--pos); }
.msg[data-tone="err"] { color: var(--neg); }
.warn-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 13px; font-size: 12px; color: var(--gold); }
.warn-line svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }

/* ---- admin ------------------------------------------------------------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 18px; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
table.board { width: 100%; border-collapse: collapse; font-size: 13px; }
.board th {
  text-align: left; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.board td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board tbody tr:last-child td { border-bottom: none; }
.board tbody tr { transition: background 0.14s var(--ease); }
.board tbody tr:hover { background: var(--surface-2); }
.board .num { text-align: right; font-family: var(--mono); font-weight: 500; }
.board .who b { font-weight: 600; }
.board .who .mail { color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.board code.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; margin-left: 4px; }
.pill.admin { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.pill.new { background: color-mix(in srgb, var(--pos) 16%, transparent); color: var(--pos); }
.pill.pending { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.pill.banned { background: color-mix(in srgb, var(--neg) 16%, transparent); color: var(--neg); }
.owed-amt { color: var(--pos); }
.zero-amt { color: var(--faint); }

/* ---- member detail ----------------------------------------------------- */
.member-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 2px 0 20px; }
.member-id { display: flex; align-items: center; gap: 13px; }
.av { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--display); font-weight: 600; color: var(--gold); }
.av.lg { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; font-size: 18px; }
.member-sub { color: var(--faint); font-size: 12.5px; margin-top: 3px; }
.member-sub code { font-family: var(--mono); color: var(--muted); }
.st { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.st-ftd { background: color-mix(in srgb, var(--pos) 16%, transparent); color: var(--pos); }
.st-dep { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.st-reg { background: var(--surface-2); color: var(--muted); }
#admin-rows tr { cursor: pointer; }
.empty-cell { text-align: center; color: var(--faint); padding: 26px; }

/* ---- deal + progressive tiers ------------------------------------------ */
.sub-h { font-family: var(--display); font-size: 15px; font-weight: 600; margin: 28px 0 12px; }
.m-sub { font-size: 10.5px; color: var(--faint); margin-top: 4px; }

.deal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.deal-meta .dm { background: var(--surface); padding: 16px 18px; }
.deal-meta .dm .k { font-size: 11px; color: var(--faint); letter-spacing: 0.05em; text-transform: uppercase; }
.deal-meta .dm .v { font-size: 14px; margin-top: 6px; font-weight: 500; }
.deal-status { color: var(--pos); font-weight: 600; }

.tier-card { border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(130% 130% at 0% 0%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 50%), var(--surface); padding: 22px; animation: rise 0.45s var(--ease) both; }
.tier-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.tier-name { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.tier-dot { width: 10px; height: 10px; border-radius: 50%; }
.tier-rate { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; margin-top: 7px; }
.tier-rate .per { font-size: 0.5em; color: var(--muted); font-weight: 500; }
.tier-ftd { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.tier-ftd span:first-child { font-family: var(--display); font-weight: 600; font-size: 22px; }
.tier-ftd span:last-child { font-size: 11px; color: var(--faint); }
.tier-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.tier-bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1s var(--ease); }
.tier-foot { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.tier-foot b { color: var(--text); }

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rung { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.16s; }
.rung[data-state="current"] { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 60%), var(--surface); }
.rung[data-state="locked"] { opacity: 0.5; }
.rung-dot { width: 12px; height: 12px; border-radius: 50%; }
.rung-body b { display: block; font-size: 14px; font-weight: 600; }
.rung-body span { font-size: 11.5px; color: var(--faint); }
.rung-rate { font-family: var(--display); font-weight: 600; font-size: 18px; }

/* rewards (prize milestones) */
.reward-next { margin-bottom: 20px; }
.rn-card { border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line)); border-radius: var(--r); background: radial-gradient(130% 130% at 0% 0%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 55%), var(--surface); padding: 20px 22px; animation: rise 0.45s var(--ease) both; }
.rn-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rn-ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: var(--surface-2); border: 1px solid var(--line-2); }
.rn-ic svg { width: 27px; height: 27px; }
.rewards-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.rewards-head .hint { margin: 0; font-size: 12.5px; }
.rn-meta { flex: 1; }
.rn-lab { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.rn-name { font-family: var(--display); font-weight: 600; font-size: 20px; margin-top: 2px; }
.rn-rem { text-align: right; display: flex; flex-direction: column; }
.rn-rem span:first-child { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--gold); }
.rn-rem span:last-child { font-size: 11px; color: var(--faint); }

.rewards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.reward { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 16px; text-align: center; animation: rise 0.45s var(--ease) both; transition: border-color 0.16s, transform 0.16s var(--ease); }
.reward:hover { transform: translateY(-2px); }
.reward-ic { height: 88px; display: flex; align-items: center; justify-content: center; color: var(--faint); transition: color 0.2s; }
.reward-ic svg { width: 38px; height: 38px; }
.reward-ic.has-img { height: 88px; }
.reward-ic img { max-height: 88px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.35)); transition: filter 0.25s, transform 0.35s var(--ease); }
.reward:hover .reward-ic img { transform: translateY(-3px) scale(1.04); }
.reward[data-state="locked"] .reward-ic img { filter: grayscale(1) opacity(0.45); }
.rn-ic.has-img { width: 64px; height: 64px; flex-basis: 64px; padding: 4px; }
.rn-ic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.reward[data-state="done"] .reward-ic { color: var(--text); }
.reward[data-state="next"] .reward-ic { color: var(--gold); }
.reward[data-state="next"] { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.reward[data-state="locked"] { opacity: 0.72; }
.reward-body { margin-top: 10px; }
.reward-body b { display: block; font-size: 13.5px; font-weight: 600; }
.reward-body span { font-size: 11.5px; color: var(--faint); }
.reward-state { margin-top: 10px; font-size: 11px; font-weight: 600; }
.reward[data-state="done"] .reward-state { color: var(--pos); }
.reward[data-state="next"] .reward-state { color: var(--gold); }
.reward[data-state="locked"] .reward-state { color: var(--faint); }

/* account profile */
.kv { margin-top: 4px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: none; }
.kv-k { font-size: 13px; color: var(--muted); }
.kv-v { font-size: 13.5px; font-weight: 500; }

/* ---- modal ------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal[data-open="true"] { display: block; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(6, 7, 10, 0.68); backdrop-filter: blur(4px); animation: fade 0.2s var(--ease); }
.modal .sheet {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 40px); max-width: 460px; max-height: 88vh; overflow: auto;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 24px;
  animation: pop 0.26s var(--ease) both;
}
.modal .sheet h3 { font-family: var(--display); margin: 0 0 18px; font-size: 17px; font-weight: 600; }
.modal .sheet .field { margin-bottom: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 9px; margin-top: 13px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.sheet .actions { display: flex; gap: 8px; margin-top: 20px; }

/* ---- motion keyframes -------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawline { to { transform: scaleX(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: translateY(6px); opacity: 0.35; } 100% { transform: none; opacity: 1; } }

/* micro-interactions */
.card, .info-card, .reward, .rn-card, .table-wrap, .strip { transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card:hover, .info-card:hover { border-color: var(--line-2); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.board tbody tr { transition: background 0.18s var(--ease); }
.periods button { transition: color 0.18s var(--ease); }

/* landing: sections reveal as they scroll into view */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* staggered entrance for strip + cards */
.stagger > * { animation: rise 0.5s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }

/* ---- report: tabs, search, live feeds ---------------------------------- */
.rp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.rp-bar .seg button { display: inline-flex; align-items: center; gap: 7px; height: 30px; }
.live-dot, .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); display: inline-block; box-shadow: 0 0 0 0 color-mix(in srgb, var(--pos) 60%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.search { position: relative; display: flex; align-items: center; min-width: 240px; }
.search svg { position: absolute; left: 12px; width: 15px; height: 15px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { height: 38px; width: 100%; padding: 0 12px 0 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
.search.sm { min-width: 220px; }
.search.sm input { height: 34px; }
.rp-pane { animation: rise .35s var(--ease) both; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.feed-head .hint { font-size: 11.5px; color: var(--faint); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pos); }
.feed { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.feed-row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--line); transition: background .18s; }
.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: var(--surface-2); }
.feed-row.fresh { animation: feedIn .7s var(--ease) both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--pos) 14%, transparent); } to { opacity: 1; transform: none; } }
.fd-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--pos); background: color-mix(in srgb, var(--pos) 12%, transparent); }
.fd-ic.reg { color: var(--muted); background: var(--surface-2); }
.fd-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feed-row.recent .fd-ic { box-shadow: 0 0 0 1px color-mix(in srgb, var(--pos) 45%, transparent); }
.fd-main { flex: 1; min-width: 0; }
.fd-main code { font-size: 12.5px; color: var(--text); }
.fd-main .st { margin-left: 8px; vertical-align: 1px; }
.fd-when { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.fd-amt { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--pos); white-space: nowrap; }
.empty-box { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 26px 18px; text-align: center; color: var(--faint); font-size: 13px; }

/* ---- wallet: gifts ---------------------------------------------------- */
.gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.gift { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); animation: rise .45s var(--ease) both; }
.gift[data-locked="true"] { background: none; }
.gift[data-locked="true"] .gift-img img { filter: grayscale(1) opacity(.45); }
.gift-img { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); padding: 5px; }
.gift-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.gift-body { flex: 1; min-width: 0; }
.gift-body > b { display: block; font-size: 14px; font-weight: 600; }
.gift-body span { font-size: 12px; color: var(--faint); }
.gift-body span b { color: var(--text); font-weight: 600; }
.gift-st { font-size: 11.5px; font-weight: 600; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.gift-st[data-st="requested"] { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.gift-st[data-st="shipped"] { color: var(--text); }
.gift-st[data-st="delivered"], .gift-st[data-st="credited"] { background: color-mix(in srgb, var(--pos) 16%, transparent); color: var(--pos); }
.gift-st[data-st="locked"] { background: none; color: var(--faint); }
.gift-next { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.gift-next b { color: var(--text); }

.claim-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.claim-img { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 12px; background: var(--surface-2); padding: 6px; display: grid; place-items: center; }
.claim-img img { width: 100%; height: 100%; object-fit: contain; }
.claim-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.claim-choice button { text-align: left; padding: 12px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, background .15s; }
.claim-choice button b { font-size: 13.5px; font-weight: 600; }
.claim-choice button span { font-size: 11.5px; color: var(--faint); }
.claim-choice button[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--surface-2)); }
.claim-cash-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0 0 4px; }

/* admin: claims to ship */
.claim-who { display: flex; align-items: center; gap: 12px; }
.claim-thumb { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px; background: var(--surface-2); padding: 4px; display: grid; place-items: center; }
.claim-thumb img { width: 100%; height: 100%; object-fit: contain; }
.claim-ship { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 14px; font-size: 13px; }
.claim-ship .wide { grid-column: 1 / -1; }
.claim-ship span { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.claim-cashline { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.claim-cashline b { color: var(--pos); }

/* ---- admin: overview + partner page ----------------------------------- */
.faint { color: var(--faint); font-weight: 400; }
.casino-cpa { margin: -14px 0 0; font-size: 12.5px; color: var(--muted); }
.casino-cpa b { color: var(--text); }
.casino-cpa { line-height: 1.8; }
.casino-cpa code { font-size: 12px; color: var(--text); }
.linkbtn { border: none; background: none; padding: 0; color: var(--gold); font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:root[data-theme="light"] .linkbtn { color: var(--text); }
.fd-who { border: none; background: none; padding: 0; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.fd-who:hover { text-decoration-color: var(--gold); }
.fd-who.none { font-weight: 400; color: var(--faint); text-decoration: none; cursor: default; }
#admin-rows tr { cursor: pointer; }
.member-actions { display: flex; gap: 8px; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h3 { margin: 0; }
.card-h .hint { margin: 0; font-size: 11.5px; color: var(--faint); }
.deal-form { display: flex; flex-direction: column; gap: 13px; }
.field-hint { font-size: 11.5px; color: var(--faint); margin: 0; }
.deal-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.deal-actions .msg { margin: 0; }
.pay-owed { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pay-owed .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pay-owed .v { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; color: var(--pos); }
.addr-box { margin-top: 12px; padding: 13px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.addr-k { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--faint); letter-spacing: .04em; margin-bottom: 8px; }
.addr-v { display: block; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; line-height: 1.5; }
.addr-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.addr-none { font-size: 13px; color: var(--muted); }

/* ---- tips ------------------------------------------------------------- */
.tips-intro { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; max-width: 62ch; }
.tip-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tip-cats button { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 500; transition: color .15s, border-color .15s, background .15s; }
.tip-cats button:hover { color: var(--text); border-color: var(--line-2); }
.tip-cats button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.tip-group { margin-top: 22px; }
.tip-cat-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.tip { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 20px; animation: rise .45s var(--ease) both; }
.tip.pinned { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 55%), var(--surface); }
.tip.draft { border-style: dashed; opacity: .8; }
.tip-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tip-badges:not(:empty) { margin-bottom: 10px; }
.tip-badges .pill { margin-left: 0; }
.tip h3 { margin: 0 0 8px; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tip-body { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.tip-body p { margin: 0 0 10px; } .tip-body p:last-child, .tip-body ul:last-child { margin-bottom: 0; }
.tip-body b { color: var(--text); font-weight: 600; }
.tip-body ul { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tip-body li { position: relative; padding-left: 16px; }
.tip-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); }
.tip-acts { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tip-sheet { max-width: 620px !important; }

/* ---- offres: welcome visuals + weekend feed --------------------------- */
.off-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 22px 0 14px; }
.off-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.welcome-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.welcome-card { animation: rise .45s var(--ease) both; }
.welcome-img { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); transition: transform .3s var(--ease); }
.welcome-card:hover .welcome-img { transform: translateY(-3px); }
.welcome-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade .4s var(--ease) both; }
.welcome-ph { display: block; width: 100%; height: 100%; background: linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.welcome-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.welcome-acts .btn { flex: 1 1 auto; }
.offers-grid { display: block !important; columns: 3 280px; column-gap: 12px; }
.offers-grid .tip { display: inline-block; width: 100%; margin-bottom: 12px; break-inside: avoid; }
.tip.has-img { padding: 0; overflow: hidden; }
.tip.has-img .tip-in { padding: 16px 18px 18px; }
.tip-img { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tip-img img { width: 100%; display: block; max-height: 520px; object-fit: contain; }
.tip-acts { flex-wrap: wrap; }
.tip-admin { margin-left: auto; display: inline-flex; gap: 4px; }
.img-drop { position: relative; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); min-height: 110px; display: grid; place-items: center; overflow: hidden; cursor: pointer; transition: border-color .15s; }
.img-drop:hover { border-color: var(--gold); }
.img-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-drop img { max-width: 100%; max-height: 260px; display: block; }
.img-drop-txt { text-align: center; padding: 16px; font-size: 12.5px; color: var(--muted); }
.img-drop-txt b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 3px; }

/* ---- offres v2: one page, a space per kind ----------------------------- */
.off-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; position: sticky; top: 0; z-index: 3; padding: 8px 0; background: var(--bg); }
.off-jump button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; transition: border-color .15s, background .15s; }
.off-jump button:hover { border-color: var(--gold); }
.off-jump span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.off-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.off-sec:first-of-type { border-top: none; padding-top: 6px; }
.off-sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.off-ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); color: var(--gold); }
.off-ic svg, .om-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.om-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); }
.ogrid-welcome { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ocard.is-svg .ocard-img { background: #020a2e; }
.ocard-img svg.wsvg { width: 100%; height: 100%; display: block; }
.ocard.is-svg:hover { border-color: rgba(252, 49, 95, 0.55); }
.off-sec-h h2 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.off-sec-h p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.off-sub-h { margin: 20px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.off-sub-h:first-of-type { margin-top: 4px; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ogrid-empty { grid-column: 1 / -1; padding: 18px; }
.ocard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; animation: rise .45s var(--ease) both; transition: border-color .2s, transform .2s var(--ease); }
.ocard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ocard.is-off { opacity: .55; }
.ocard-img { aspect-ratio: 4 / 5; background: var(--surface-2); border-bottom: 1px solid var(--line); display: grid; place-items: stretch; overflow: hidden; }
.ocard-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade .35s var(--ease) both; }
.ocard-txt { padding: 18px; font-size: 14px; line-height: 1.55; color: var(--text); overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%); }
.ocard-txt b { color: var(--gold); }
.ocard-txt p { margin: 0 0 8px; }
.ocard-body { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 3px; }
.ocard-body b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ocard-body span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ocard-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; }
.ocard-badges .pill { margin-left: 0; }
.ocard-acts { display: flex; gap: 6px; padding: 10px 14px 14px; margin-top: auto; }
.ocard-acts .btn { height: 34px; }
.ocard-acts .btn-primary { flex: 1; }
.ocard-admin { display: flex; gap: 14px; padding: 0 14px 12px; font-size: 12px; }
.linkbtn.danger { color: var(--neg); }
/* composer */
.offer-sheet { max-width: 860px !important; }
.om-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; }
.om-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.om-step { display: flex; align-items: center; gap: 9px; margin-top: 6px; font-size: 13.5px; }
.om-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 800; }
.om-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.om-types button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); text-align: left; font-size: 13px; transition: border-color .15s; }

.om-types button[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--surface-2)); }
.om-drop { min-height: 140px; }
.om-ends { display: flex; gap: 6px; flex-wrap: wrap; }
.om-ends button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.om-ends button[aria-pressed="true"] { border-color: var(--gold); color: var(--text); }
.om-preview { display: flex; flex-direction: column; gap: 8px; }
.om-prev-lab { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.om-preview .ocard { animation: none; }
.om-preview .ocard:hover { transform: none; }

/* welcome bonuses: big poster + plain explanation */
.wbonus-list { display: flex; flex-direction: column; gap: 18px; }
.wbonus { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 28px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--surface); animation: rise .5s var(--ease) both; }
.wbonus-visual { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #020a2e; border: none !important; box-shadow: 0 24px 48px -28px rgba(2, 10, 46, 0.9); }
.wbonus-visual svg.wsvg { width: 100%; height: 100%; display: block; }
.wbonus-info { padding: 8px 4px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wb-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wb-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text); padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); }
.wb-link svg { width: 14px; height: 14px; fill: none; stroke: #f7956c; stroke-width: 2.2; stroke-linecap: round; }
.wb-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #fff; padding: 5px 11px; border-radius: 999px; background: linear-gradient(90deg, #fc315f, #e97343); }
.wbonus-info h3 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.wb-lead { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.wb-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wb-rows li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.wb-badge { flex: 0 0 64px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; background: linear-gradient(135deg, #fc315f, #e97343); }
.wb-rows b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.wb-rows span:not(.wb-badge) { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.wb-more { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.wb-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 13.5px; font-weight: 600; }
.wb-more summary::-webkit-details-marker { display: none; }
.wb-more summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.wb-more[open] summary svg { transform: rotate(180deg); }
.wb-more dl { margin: 0; padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 4px; animation: rise .3s var(--ease) both; }
.wb-more dt { font-size: 13px; font-weight: 600; margin-top: 8px; }
.wb-more dd { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.wb-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-acts .btn-primary { flex: 1 1 200px; }

/* tips: Infos Celsius FAQ */
.faq-head { margin-bottom: 12px; }
.faq-head .tip-cat-h { margin-bottom: 4px; }
.faq-head p { margin: 0; font-size: 13px; color: var(--muted); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.faq-item.draft { border-style: dashed; opacity: .8; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-size: 15px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; transition: transform .25s var(--ease); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 18px 16px; animation: rise .3s var(--ease) both; }
.faq-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

/* dashboard: FTD validation rules */
.ftd-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 26px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.fr-col { background: var(--surface); padding: 18px 20px; }
.fr-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fr-h b { display: block; font-size: 14.5px; font-weight: 600; }
.fr-h span:not(.fr-ic) { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.fr-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; }
.fr-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fr-ic.ok { color: var(--pos); background: color-mix(in srgb, var(--pos) 14%, transparent); }
.fr-ic.warn { color: var(--neg); background: color-mix(in srgb, var(--neg) 14%, transparent); }
.fr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fr-list li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.fr-list li b { color: var(--text); font-weight: 600; }
.fr-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; }
.fr-list.ok li::before { background: color-mix(in srgb, var(--pos) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4 7.2 2 2 4-4.2' fill='none' stroke='%234ccb85' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.fr-list.warn li::before { background: color-mix(in srgb, var(--neg) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4.5 4.5l5 5M9.5 4.5l-5 5' fill='none' stroke='%23ec6a6a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---- support conversations ------------------------------------------- */
.threads { display: flex; flex-direction: column; gap: 8px; }
.thread { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s; }
.thread.unread { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.thread[open] { border-color: var(--line-2); }
.thread summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.thread summary::-webkit-details-marker { display: none; }
.t-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--gold); }
.t-main { flex: 1; min-width: 0; }
.t-main b { display: block; font-size: 14px; font-weight: 600; }
.t-main span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.thread.unread .t-main b { color: var(--text); }
.t-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.t-when { font-size: 11px; color: var(--faint); }
.t-body { padding: 0 16px 16px; animation: rise .3s var(--ease) both; }
.t-who { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.t-conv { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.bubble.from-partner { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.from-admin { align-self: flex-end; background: color-mix(in srgb, var(--gold) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); border-bottom-right-radius: 4px; }
.b-meta { font-size: 11px; color: var(--faint); margin-bottom: 3px; }
.b-body { overflow-wrap: anywhere; }
.t-reply { display: flex; flex-direction: column; gap: 8px; }
.t-reply textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.t-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- responsive -------------------------------------------------------- */
.ptabs { display: contents; }
button, a, label { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .reward:hover, .btn:hover:not(:disabled), .reward:hover .reward-ic img { transform: none; }
}

@media (max-width: 820px) {
  /* app shell → sticky top bar + fixed bottom tab bar (thumb reach) */
  .shell { grid-template-columns: minmax(0, 1fr); }
  .main { min-width: 0; }
  .side {
    position: sticky; top: 0; z-index: 40; height: auto;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    border-right: none; border-bottom: 1px solid var(--line);
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
  }
  /* blur lives on a pseudo-element: backdrop-filter on .side itself would trap the fixed nav */
  .side::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .side .brand { padding: 0; }
  .side .foot { margin: 0; flex-direction: row; align-items: center; gap: 6px; }
  .side .acct { display: none; }
  .foot-row #logout { flex: none; }

  .side nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    flex-direction: row; gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .side nav button {
    flex: 1 1 0; min-width: 0; height: 52px; padding: 0 2px;
    flex-direction: column; justify-content: center; gap: 4px;
    font-size: 10.5px; letter-spacing: -0.01em; text-align: center; white-space: nowrap;
    animation-name: fade;
  }
  .side nav button svg { width: 21px; height: 21px; flex: none; }
  .side nav button:hover { background: none; }
  .side nav button[aria-current="true"] { background: none; color: var(--text); }
  .side nav button[aria-current="true"] svg { color: var(--gold); }
  .side nav button[aria-current="true"]::before {
    content: ""; position: absolute; top: -6px; left: 28%; right: 28%; height: 2px;
    border-radius: 0 0 2px 2px; background: var(--gold); animation: pop 0.3s var(--ease);
  }
  .side nav .nav-badge { position: absolute; top: 3px; left: 50%; margin-left: 5px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
  .nav-ind, .nav-sep { display: none !important; }

  .main { padding: 22px 16px calc(92px + env(safe-area-inset-bottom)); }
  .page-h { font-size: 20px; }

  /* dashboard */
  .periods { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; border-bottom: none; margin: 16px 0 18px; }
  .ptabs {
    display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--line); margin: 0 -16px; padding: 0 16px;
  }
  .ptabs::-webkit-scrollbar { display: none; }
  .ptabs button { flex: none; padding: 11px 12px; }
  .period-month { margin: 0; height: 42px; padding: 0 12px; }
  .period-month select { flex: 1; min-width: 0; width: 100%; font-size: 16px; }
  .mgrid { grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; }
  .ftd-rules { grid-template-columns: 1fr; margin-bottom: 22px; }
  .fr-col { padding: 16px; }
  .mtile { padding: 20px 10px; }
  .mtile .v { font-size: 25px; }
  .mtile .k { font-size: 11.5px; margin-top: 6px; }

  .rewards-head { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 22px; }
  .rn-card { padding: 16px; }
  .rn-top { gap: 12px; }
  .rn-ic.has-img { width: 56px; height: 56px; flex-basis: 56px; }
  .rn-name { font-size: 17px; }
  .rn-rem span:first-child { font-size: 20px; }
  /* reward ladder → swipeable row */
  .rewards {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; gap: 10px;
  }
  .rewards::-webkit-scrollbar { display: none; }
  .reward { scroll-snap-align: start; padding: 16px 10px; }
  .reward-ic, .reward-ic.has-img { height: 76px; }
  .reward-ic img { max-height: 76px; }

  .linkbox code { font-size: 12px; padding: 0 12px; }

  /* generic */
  .input, textarea.input, select.input { font-size: 16px; } /* < 16px makes iOS zoom on focus */
  .card, .info-card { padding: 18px 16px; }
  .col2, .col2 .col { gap: 12px; }
  .kv-row { align-items: baseline; }
  .kv-v { text-align: right; min-width: 0; overflow-wrap: anywhere; }
  .strip { margin-bottom: 20px; }
  .strip .m { padding: 14px; }
  .strip .m .v { font-size: 19px; }
  .table-wrap { overflow-x: auto; }
  .board th, .board td { padding: 12px 10px; }
  .board th:first-child, .board td:first-child { padding-left: 14px; }
  .board th:last-child, .board td:last-child { padding-right: 14px; }
  .board td code.mono { display: inline-block; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

  /* admin: account rows become cards */
  .row-between { flex-wrap: wrap; margin: 14px 0 16px; }
  .row-between > div { width: 100%; justify-content: space-between; }
  #admin-list .board thead { display: none; }
  #admin-rows tr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; padding: 16px 14px; border-bottom: 1px solid var(--line); }
  #admin-rows tr:last-child { border-bottom: none; }
  #admin-rows td { padding: 0 !important; border: none; text-align: left; }
  #admin-rows td:not(.num):not(.who):not([colspan]) { display: none; }
  #admin-rows td.num { display: block; font-size: 14px; }
  #admin-rows td.who, #admin-rows td[colspan] { grid-column: 1 / -1; }
  #admin-rows td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 3px; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
  #admin-rows td.acts { grid-column: 1 / -1; display: flex; gap: 8px; }
  #admin-rows td.acts .btn { flex: 1; height: 38px; }
  .member-head { flex-wrap: wrap; }
  .member-actions { width: 100%; }
  .member-actions .btn { flex: 1; }
  .casino-cpa { margin-top: -10px; }
  .app-card { padding: 16px; }
  .app-card .app-actions { flex-wrap: wrap; }
  .app-card .app-actions .btn { flex: 1; }

  /* report + wallet */
  .rp-bar { flex-direction: column; align-items: stretch; }
  .rp-bar .seg { display: flex; overflow-x: auto; scrollbar-width: none; }
  .rp-bar .seg::-webkit-scrollbar { display: none; }
  .rp-bar .seg button { flex: 1 0 auto; justify-content: center; }
  .search, .search.sm { min-width: 0; }
  .search input { height: 42px; font-size: 16px; }
  .strip-head:has(.search) { flex-direction: column; align-items: stretch; gap: 8px; }
  .feed-row { padding: 12px 14px; gap: 11px; }
  .fd-main code { display: inline-block; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .gifts { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .thread summary { padding: 12px 14px; }
  .tip-grid { grid-template-columns: 1fr; }
  .ogrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ogrid-welcome { grid-template-columns: 1fr; gap: 14px; }
  .wbonus { grid-template-columns: 1fr; padding: 12px; gap: 16px; }
  .wbonus-info h3 { font-size: 22px; }
  .wb-acts .btn { flex: 1 1 auto; }
  .ocard-body { padding: 10px 10px 2px; }
  .ocard-body b { font-size: 13px; }
  .ocard-acts { padding: 8px 10px 10px; flex-wrap: wrap; }
  .ocard-acts .btn { flex: 1 1 auto; padding: 0 8px; font-size: 12px; }
  .off-jump { margin: 0 -16px; padding: 8px 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; top: calc(53px + env(safe-area-inset-top)); }
  .off-jump::-webkit-scrollbar { display: none; }
  .off-jump button { flex: none; }
  .om-layout { grid-template-columns: 1fr; }
  .om-preview { display: none; }
  .welcome-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .welcome-acts .btn { flex: 1 1 100%; height: 36px; }
  .off-head .seg { width: 100%; display: flex; }
  .off-head .seg button { flex: 1; }
  .offers-grid { columns: 1; }
  .tip-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 0 16px; }
  .tip-cats::-webkit-scrollbar { display: none; }
  .tip-cats button { flex: none; }
  .side nav:has(> button:nth-of-type(8):not([hidden])) button { font-size: 9.5px; letter-spacing: -0.02em; }
  .side nav:has(> button:nth-of-type(8):not([hidden])) button svg { width: 19px; height: 19px; }
  /* admins have 9 tabs: let the bar scroll sideways rather than crush the labels */
  .side nav:has(> button:nth-of-type(9):not([hidden])) { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .side nav:has(> button:nth-of-type(9):not([hidden]))::-webkit-scrollbar { display: none; }
  .side nav:has(> button:nth-of-type(9):not([hidden])) button { flex: 0 0 58px; font-size: 10px; }
  .claim-ship { grid-template-columns: 1fr; }

  /* modal → bottom sheet */
  .modal .sheet {
    top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-width: none; max-height: 92vh;
    border-radius: 16px 16px 0 0; border-bottom: none;
    padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
    animation: sheetUp 0.32s var(--ease) both;
  }
  .sheet .actions .btn { flex: 1; height: 46px; }

  .hero { grid-template-columns: 1fr; }
  .hero .chart { border-left: none; border-top: 1px solid var(--line); }
  .cards2 { grid-template-columns: 1fr; }
  .deal-meta { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr 1fr; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 560px) {
  .strip { flex-wrap: wrap; }
  .strip .m { flex: 1 1 50%; border-top: 1px solid var(--line); }
  .strip .m:nth-child(1), .strip .m:nth-child(2) { border-top: none; }
  .strip .m:nth-child(odd) { border-left: none; }
  .grid2 { grid-template-columns: 1fr; }
  .board .hide-sm { display: none; }
  .rewards { grid-auto-columns: 42%; }
}
@media (max-width: 380px) {
  .side .brand .brand-rule, .side .brand .brand-caps { display: none; }
  .mtile .v { font-size: 22px; }
}

/* =====================  LANDING  ======================================= */
.lp { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 66px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.lp-nav.scrolled { border-bottom-color: var(--line); }
.lp-nav > .lp { width: 100%; }
.lp-nav .links { display: flex; align-items: center; gap: 10px; }
.lp-link { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: color 0.15s; }
.lp-link:hover { color: var(--text); }

.lp-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 7vw, 80px); }
.lp-hero .eyebrow { margin-bottom: 18px; }
.lp-hero h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(38px, 6.4vw, 62px); margin: 0 0 20px;
}
.lp-hero h1 .accent { color: var(--gold); }
.lp-hero .lead { font-size: clamp(15px, 2.2vw, 17.5px); color: var(--muted); line-height: 1.55; max-width: 36ch; margin: 0 0 30px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.lp-trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; }
.lp-trust .t { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; }
.lp-trust .t b { color: var(--text); font-family: var(--mono); font-weight: 600; font-size: 14px; }

/* hero chart card — the product's own motif */
.lp-ledger {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 48%), var(--surface);
  padding: 22px; overflow: hidden;
}
.lp-ledger .top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.lp-ledger .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.lp-ledger .big { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(34px, 5vw, 46px); }
.lp-ledger .big .cur { color: var(--gold); font-size: 0.5em; vertical-align: 0.15em; margin-left: 4px; }
.lp-ledger .delta { color: var(--pos); font-family: var(--mono); font-size: 13px; }
.lp-ledger .graph { position: relative; height: 150px; margin-top: 14px; }
.lp-ledger svg { width: 100%; height: 100%; display: block; }

.lp-section { padding: clamp(44px, 7vw, 76px) 0; border-top: 1px solid var(--line); }
.lp-section > .eyebrow { display: block; margin-bottom: 10px; }
.lp-section h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; max-width: 20ch; }
.lp-section .intro { color: var(--muted); font-size: 15px; max-width: 54ch; margin: 0 0 36px; }

/* steps — a real sequence, so numbered */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.lp-step { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px; }
.lp-step .n {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--gold); font-family: var(--display); font-weight: 600; font-size: 14px;
  margin-bottom: 14px;
}
.lp-step h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.lp-step p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* product proof */
.lp-proof { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.lp-feats { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.lp-feat { display: flex; gap: 13px; }
.lp-feat .ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold); }
.lp-feat .ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.lp-feat h3 { font-size: 14px; font-weight: 600; margin: 2px 0 4px; }
.lp-feat p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.lp-shot { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px; }
.lp-shot .shot-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.lp-shot .shot-h .k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.lp-shot .shot-h .v { font-family: var(--display); font-weight: 600; font-size: 24px; }
.lp-shot .shot-h .v .cur { color: var(--gold); font-size: 0.6em; }
.lp-minstrip { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lp-minstrip .m { flex: 1; padding: 12px 14px; border-left: 1px solid var(--line); }
.lp-minstrip .m:first-child { border-left: none; }
.lp-minstrip .m .k { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.lp-minstrip .m .v { font-family: var(--mono); font-weight: 500; font-size: 17px; margin-top: 5px; }

/* payout band */
.lp-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-pay .p { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 22px; }
.lp-pay .p .big { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; color: var(--gold); }
.lp-pay .p h3 { font-size: 14px; font-weight: 600; margin: 10px 0 5px; }
.lp-pay .p p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* apply */
.lp-apply { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.lp-apply .pitch h2 { max-width: 14ch; }
.lp-form { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.lp-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-form textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; font-family: inherit; line-height: 1.5; }
.lp-form .btn { height: 48px; margin-top: 4px; }
.lp-done { text-align: center; padding: 34px 20px; }
.lp-done .ok { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--pos) 18%, transparent); color: var(--pos); }
.lp-done h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.lp-done p { color: var(--muted); font-size: 13.5px; margin: 0; }

.lp-footer { border-top: 1px solid var(--line); padding: 30px 0 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-footer .legal { color: var(--faint); font-size: 12px; }
.lp-footer .r { display: flex; gap: 16px; align-items: center; }
.lp-age { display: inline-flex; align-items: center; gap: 7px; color: var(--faint); font-size: 12px; }
.lp-age .b { border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; font-weight: 700; font-size: 11px; color: var(--muted); }

@media (max-width: 860px) {
  .lp-hero, .lp-proof, .lp-apply { grid-template-columns: 1fr; gap: 30px; }
  .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-pay { grid-template-columns: 1fr; }
  .lp-nav .links .lp-link.hide-sm { display: none; }
}
@media (max-width: 480px) {
  .lp-nav .nav-cta { display: none; } /* the hero CTA sits right below */
  .lp-cta .btn { flex: 1 1 100%; }
  .lp-form .row2 { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-minstrip { flex-wrap: wrap; }
  .lp-minstrip .m { flex: 1 1 50%; border-top: 1px solid var(--line); }
}

/* ---- reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .spark .line { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
