/*
 * NaijaVibe — public app styles.
 * Tokens come from design/project/NaijaVibe Design System.dc.html (Foundations).
 * Mobile-first. No inline styles anywhere (the CSP blocks them).
 */

:root {
  /* Colour tokens */
  --bg: #0A0E0C;            /* bg/base */
  --bg-page: #060807;
  --surface: #121815;       /* bg/raised — cards, sheets */
  --control: #19211D;       /* bg/control — inputs, tiles */
  --line: #25302A;          /* border */
  --line-soft: #1E2722;
  --line-faint: #161D19;
  --line-strong: #3A4740;
  --text: #F3F6F4;          /* fg/primary */
  --text-soft: #C9D1CC;
  --muted: #97A39C;         /* fg/secondary */
  --subtle: #6F7D75;
  --disabled: #56635B;
  --green: #2FD36B;         /* accent — Naija Green */
  --green-deep: #14532F;    /* accent/deep */
  --green-ink: #06210F;     /* fg/on-accent */
  --mint: #7DF0A6;          /* link / hashtags */
  --gold: #F4B53F;          /* gift, coins, pending */
  --gold-ink: #2A1A00;
  --red: #EF4E4E;           /* live, likes, danger */
  --red-text: #FF7A7A;

  /* Type */
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-admin: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-chip: 8px;
  --r-control: 14px;
  --r-card: 20px;
  --r-sheet: 24px;
  --r-pill: 999px;

  --shadow-overlay: 0 12px 32px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
  --focus: 0 0 0 4px rgba(47, 211, 107, .25);
  --tabbar-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--mint); }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--control); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.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; }
[hidden] { display: none !important; }

.icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0;
  user-select: none;
  flex-shrink: 0;
}
.icon--fill { font-variation-settings: 'FILL' 1; }

/* ---------- Type ---------- */
.display { font-size: clamp(40px, 8vw, 64px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.02; margin: 0; }
.h1 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; line-height: 1.15; margin: 0; }
.h2 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; margin: 0; }
.lead { font-size: 17px; color: var(--text-soft); margin: 0; max-width: 34em; }
.muted { color: var(--muted); margin: 0; }
.subtle { color: var(--subtle); font-size: 13px; margin: 0; }
.text { color: var(--text); }
.accent { color: var(--green); }
.center { text-align: center; }
.fineprint { font-size: 12.5px; color: var(--subtle); margin: 0; }
.fineprint a { color: var(--text-soft); }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-soft); background: var(--control); border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--r-pill); }

/* ---------- Layout helpers ---------- */
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 28px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -.5px; }
.brand__mark { width: 36px; height: 36px; border-radius: 11px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.brand__play { width: 14px; height: 16px; background: var(--green-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 3px; }
.brand__word { font-size: 22px; }
.brand__word span { color: var(--green); }
.brand--lg .brand__mark { width: 72px; height: 72px; border-radius: 22px; box-shadow: 0 12px 40px rgba(47, 211, 107, .35); }
.brand--lg .brand__play { width: 28px; height: 32px; margin-left: 6px; }
.brand--lg .brand__word { font-size: 44px; letter-spacing: -1.5px; }
a:hover .brand { color: var(--text); }

/* Subtle green/gold woven strip — the Nigerian accent from the Welcome screen */
.naija-strip {
  height: 28px;
  opacity: .5;
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, #0F7A3D 8px 10px),
    repeating-linear-gradient(-45deg, transparent 0 8px, #3A2A08 8px 10px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border-radius: var(--r-control); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s, color .15s;
}
.btn:active { transform: scale(.98); }
.btn--lg { height: 54px; font-size: 17px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: var(--green-ink); }
.btn--primary:hover { background: #45DD7C; color: var(--green-ink); }
.btn--secondary { background: var(--control); border-color: #2C3832; color: var(--text); }
.btn--secondary:hover { background: #1F2924; color: var(--text); }
.btn--danger { background: rgba(239, 78, 78, .12); color: var(--red-text); }
.btn--danger:hover { background: rgba(239, 78, 78, .2); color: var(--red-text); }
.btn--text { background: none; color: var(--green); padding: 0 6px; height: 40px; }
.btn--text:hover { color: var(--mint); }
.btn--muted { color: var(--muted); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--control); color: var(--disabled); border-color: transparent; cursor: not-allowed; transform: none; }

.icon-btn { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: none; border: 0; cursor: pointer; }
.icon-btn .icon { font-size: 26px; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.icon-btn--ghost { visibility: hidden; }
.icon-btn[aria-disabled="true"] { opacity: .55; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field__row label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__link { font-size: 13px; font-weight: 600; }
.field__hint { font-size: 12.5px; color: var(--subtle); margin: 0; }
.field__error { font-size: 12.5px; color: var(--red-text); display: flex; gap: 6px; align-items: center; margin: 0; }
.field__error .icon { font-size: 16px; }

.input, .input--affix input {
  width: 100%; height: 52px; padding: 0 14px;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--r-control);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .input--affix input::placeholder { color: var(--disabled); }
.input:focus, .input--affix:focus-within { outline: none; border-color: var(--green); box-shadow: var(--focus); }
.input[aria-invalid="true"], .input--affix:has(input[aria-invalid="true"]) { border-color: var(--red); }

.input--affix { display: flex; align-items: center; padding: 0; height: 52px; overflow: hidden; }
.input--affix input { border: 0; height: 100%; background: transparent; box-shadow: none; flex: 1; min-width: 0; }
.input--affix input:focus { outline: none; }
.input__prefix { padding: 0 0 0 14px; color: var(--muted); font-size: 16px; display: flex; align-items: center; gap: 10px; }
.input__prefix::after { content: ''; width: 1px; height: 22px; background: #2C3832; }
.input__action { width: 48px; height: 100%; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.input__action:hover { color: var(--text); }
.input--code { font-size: 26px; letter-spacing: 12px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-soft); cursor: pointer; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex-shrink: 0; }

/* Email / Phone switch. Without :has() support both fields simply show. */
.segmented { display: flex; gap: 4px; padding: 4px; margin: 0; border: 0; background: var(--surface); border-radius: var(--r-control); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { flex: 1; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.segmented input:checked + label { background: #2C3832; color: var(--text); }
.segmented input:focus-visible + label { box-shadow: var(--focus); }
.form:has(#method-email:checked) .field-phone,
.form:has(#method-phone:checked) .field-email { display: none; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; list-style: none; }
.chips--center { justify-content: center; }
.chip {
  height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  background: var(--surface); color: var(--text-soft); border: 1px solid var(--line);
}
.chips--static .chip { height: 38px; font-size: 14px; }
.chip .icon { font-size: 20px; }
.chip--on { background: rgba(47, 211, 107, .14); color: var(--mint); border-color: var(--green); }
.chip--toggle { cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s; }
.chip--toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip--toggle:has(input:checked) { background: rgba(47, 211, 107, .14); color: var(--mint); border-color: var(--green); }
.chip--toggle:has(input:focus-visible) { box-shadow: var(--focus); }
.chip--toggle:hover { border-color: var(--line-strong); }

/* ---------- Pills, badges, dots ---------- */
.pill { height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.pill--success { background: rgba(47, 211, 107, .14); color: #4BE383; }
.pill--pending { background: rgba(244, 181, 63, .14); color: var(--gold); }
.pill--failed { background: rgba(239, 78, 78, .14); color: var(--red-text); }
.pill--muted { background: rgba(151, 163, 156, .14); color: var(--text-soft); }
.pill--accent { background: rgba(47, 211, 107, .14); color: var(--green); height: 22px; font-weight: 700; }
a.pill--pending:hover { background: rgba(244, 181, 63, .24); color: var(--gold); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot--live { background: var(--red); animation: nv-pulse 1.6s ease-in-out infinite; }
.badge-icon { width: 56px; height: 56px; border-radius: 18px; background: rgba(47, 211, 107, .14); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.badge-icon .icon { font-size: 30px; }

/* ---------- Feedback ---------- */
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px 12px 16px; margin-bottom: 20px;
  border-radius: var(--r-control); background: var(--control); border: 1px solid #2C3832;
  font-size: 14px; animation: nv-in .25s ease-out;
}
.flash__text { flex: 1; }
.flash__close { background: none; border: 0; color: var(--muted); cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 18px; }
.flash__close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.flash--success > .icon { color: var(--green); }
.flash--info > .icon { color: var(--text-soft); }
.flash--warning > .icon { color: var(--gold); }
.flash--error > .icon { color: var(--red-text); }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.notice p { margin: 0; }
.notice--info { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.notice--info .icon { color: var(--text-soft); }
.notice--warning { background: rgba(244, 181, 63, .1); color: #F7CB77; }
.notice--warning .icon { color: var(--gold); }

.banner { display: flex; align-items: center; gap: 12px; margin: 0 16px; padding: 12px 14px; border-radius: var(--r-control); background: rgba(244, 181, 63, .12); color: var(--gold); font-size: 14px; font-weight: 600; }
.banner span:nth-child(2) { flex: 1; }
.banner:hover { background: rgba(244, 181, 63, .18); color: var(--gold); }

.toast-region { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + var(--safe-bottom)); transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-control); background: var(--control); box-shadow: var(--shadow-overlay); font-size: 14px; animation: nv-in .2s ease-out; }
.toast .icon { color: var(--gold); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 8px; }
.empty__icon { font-size: 48px; color: var(--line-strong); }
.empty .btn { margin-top: 8px; }

/* ---------- Cards & lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 16px 10px; }
.card__head { display: flex; justify-content: space-between; align-items: center; }
.card__title { font-size: 15px; font-weight: 700; margin: 10px 0 8px; }
.card .chips { padding: 4px 0 8px; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; color: var(--text); border-top: 1px solid var(--line-faint); width: 100%; text-align: left; font-size: 14.5px; }
.card__title + .list-row { border-top: 0; }
.list-row:hover { color: var(--text); }
.list-row__icon { color: var(--muted); }
.list-row__main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list-row--button { background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; font-family: inherit; }
.list-row--button[aria-disabled="true"] .list-row__main { color: var(--muted); }

.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #1A231E 0 7px, #212B25 7px 14px); font-weight: 800; color: var(--text); }
.avatar--xl { width: 96px; height: 96px; font-size: 38px; }
.avatar--ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--green); }

.steps { display: flex; gap: 6px; }
.steps__bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps__bar.is-done { background: var(--green); }

/* ---------- Auth layout ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px; }
.auth__main { flex: 1; width: 100%; max-width: 460px; margin: 0 auto; padding: 16px 20px 40px; }
.sticky-actions { position: sticky; bottom: 0; padding: 16px 0 calc(8px + var(--safe-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.prose p { color: var(--text-soft); line-height: 1.65; }
.prose .notice { margin: 20px 0; }

.error-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; max-width: 520px; margin: 0 auto; }
.error-page__icon { font-size: 56px; color: var(--muted); }
.error-page__code { font-family: var(--font-mono); color: var(--green); margin: 0; }
.error-page__actions { margin-top: 12px; }

/* ---------- Landing ---------- */
.page-landing { background: var(--bg-page); }
.landing__nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 1180px; margin: 0 auto; }
.landing__navlinks { display: flex; gap: 8px; align-items: center; }
.hero { display: flex; flex-direction: column; gap: 32px; padding: 16px 16px 48px; max-width: 1180px; margin: 0 auto; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; }
.hero__art { position: relative; display: flex; justify-content: center; padding-top: 8px; }
.hero__glow { position: absolute; inset: 10% 15%; background: radial-gradient(closest-side, rgba(47, 211, 107, .28), transparent); filter: blur(30px); }
.hero__phone { position: relative; width: 240px; height: 440px; border-radius: 36px; border: 1px solid var(--line); background: #000; padding: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.hero__screen {
  position: relative; height: 100%; border-radius: 28px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, transparent 22%, transparent 55%, rgba(0, 0, 0, .8) 92%),
    radial-gradient(120% 70% at 30% 30%, #1F5C38 0%, transparent 60%),
    radial-gradient(90% 60% at 80% 75%, #5A3F0C 0%, transparent 60%),
    repeating-linear-gradient(135deg, #141B17 0 12px, #18201B 12px 24px);
}
.hero__tabs { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 16px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.hero__tabs .is-on { color: #fff; border-bottom: 2px solid var(--green); padding-bottom: 3px; }
.hero__rail { position: absolute; right: 10px; bottom: 90px; display: flex; flex-direction: column; gap: 16px; }
.hero__rail .icon { font-size: 28px; color: #fff; }
.hero__rail .hero__gift { color: var(--gold); }
.hero__caption { position: absolute; left: 14px; right: 52px; bottom: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.hero__caption em { color: var(--mint); font-style: normal; font-weight: 700; }

.section { max-width: 1180px; margin: 0 auto; padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.feature h3 { margin: 6px 0 0; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.feature__icon { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(47, 211, 107, .14); color: var(--green); }
.feature__icon--live { background: rgba(239, 78, 78, .14); color: var(--red); }
.feature__icon--gold { background: rgba(244, 181, 63, .14); color: var(--gold); }
.city-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 20px; font-weight: 800; letter-spacing: -.3px; color: var(--text-soft); }
.city-list li:nth-child(3n+1) { color: var(--green); }
.city-list li:nth-child(3n+2) { color: var(--gold); }
.landing__footer { max-width: 1180px; margin: 0 auto; padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line-soft); }
.landing__footer nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.landing__footer nav a { color: var(--text-soft); }

/* ---------- App shell ---------- */
.shell__main { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); min-height: 100vh; min-height: 100dvh; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding: 6px 6px var(--safe-bottom);
  display: flex; align-items: center; justify-content: space-around;
  background: var(--bg); border-top: 1px solid var(--line-soft);
}
.tabbar__brand { display: none; }
.tab { position: relative; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: inherit; }
.tab .icon { font-size: 26px; }
.tab__label { font-size: 10.5px; font-weight: 600; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--green); }
.tab__soon { position: absolute; top: -4px; left: 50%; margin-left: 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; background: var(--control); color: var(--gold); border: 1px solid var(--line); border-radius: 6px; padding: 1px 4px; }
.tab.is-soon .icon, .tab.is-soon .tab__label { opacity: .6; }
.tab--create .icon { width: 52px; height: 36px; border-radius: 12px; background: var(--green); color: var(--green-ink); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; box-shadow: 0 0 0 3px rgba(47, 211, 107, .18); }
.tab--create.is-soon .icon { opacity: .75; }
.tab--create .tab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.page { max-width: 560px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 0 4px; }
.profile-head .avatar { margin-bottom: 10px; }
.profile-head .muted { display: flex; align-items: center; gap: 6px; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .hero { flex-direction: row-reverse; align-items: center; gap: 64px; padding-top: 48px; padding-bottom: 80px; }
  .hero__copy, .hero__art { flex: 1; }
  .hero__cta { flex-direction: row; }
  .hero__phone { width: 300px; height: 560px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .landing__footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .auth__top { padding: 20px 32px; }
}

@media (min-width: 900px) {
  :root { --tabbar-h: 0px; }
  .tabbar {
    top: 0; right: auto; width: 232px; height: auto; padding: 20px 14px;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line-soft);
  }
  .tabbar__brand { display: block; padding: 4px 10px 24px; }
  .tab { width: auto; flex-direction: row; gap: 14px; padding: 12px; border-radius: 12px; }
  .tab:hover { background: var(--surface); }
  .tab__label { font-size: 15px; }
  .tab__soon { position: static; margin-left: auto; }
  .tab--create .icon { width: 26px; height: 26px; border-radius: 8px; font-size: 22px; box-shadow: none; }
  .tab--create .tab__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .shell__main { margin-left: 232px; padding-bottom: 32px; }
  .toast-region { bottom: 24px; }
}

/* ---------- Shared: spinner, avatars, misc ---------- */
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .18); border-top-color: var(--green); animation: nv-spin .9s linear infinite; display: inline-block; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar--sm { width: 34px; height: 34px; font-size: 14px; flex-shrink: 0; }
.avatar--md { width: 48px; height: 48px; font-size: 18px; }
.icon-btn--sm { width: 32px; height: 32px; }
.icon-btn--sm .icon { font-size: 18px; }
.btn--icon { width: 48px; padding: 0; }
.tag-link, .mention-link { color: var(--mint); font-weight: 700; }
.tag-link:hover, .mention-link:hover { color: #fff; }
.input--area { height: auto; padding: 12px 14px; resize: vertical; min-height: 52px; line-height: 1.45; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.input--readonly { opacity: .65; }
.field__legend { font-size: 13px; font-weight: 600; color: var(--text-soft); padding: 0; margin-bottom: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.empty--compact { padding: 32px 8px; }
.empty--compact .icon { font-size: 36px; color: var(--line-strong); }

/* ---------- Feed & player ---------- */
.page-feed { overflow: hidden; background: #000; }
.page-feed .shell__main { padding-bottom: 0; height: 100vh; height: 100dvh; }
.feed-page { position: relative; height: 100vh; height: 100dvh; max-width: 520px; margin: 0 auto; }
.page-app .feed-page { height: calc(100dvh - var(--tabbar-h) - var(--safe-bottom)); }
.feed-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 24px; background: linear-gradient(rgba(0, 0, 0, .5), transparent); pointer-events: none; }
.feed-top > * { pointer-events: auto; }
.feed-top__verify { color: var(--gold); }
.feed-tabs { display: flex; gap: 22px; font-size: 17px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.feed-tabs a { color: rgba(255, 255, 255, .65); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.feed-tabs a::after { content: ''; width: 22px; height: 3px; border-radius: 2px; background: transparent; }
.feed-tabs a.is-active { color: #fff; }
.feed-tabs a.is-active::after { background: var(--green); }
.feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.feed__loading { height: 100%; display: flex; align-items: center; justify-content: center; }
.feed-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px; background: var(--bg); }
.feed-empty > .icon { font-size: 48px; color: var(--line-strong); }

.clip { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: repeating-linear-gradient(135deg, #141B17 0 12px, #18201B 12px 24px); }
.clip__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.clip__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 16%, transparent 55%, rgba(0, 0, 0, .7) 92%); }
.clip__state { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
.clip.is-buffering .clip__state { display: flex; }
.clip__paused { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: none; align-items: center; justify-content: center; pointer-events: none; }
.clip__paused .icon { font-size: 48px; }
.clip.is-paused .clip__paused { display: flex; }
.clip__unmute { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.clip.is-muted .clip__unmute { display: flex; }
.clip__failed { position: absolute; inset: 0; background: rgba(10, 14, 12, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 0 48px; z-index: 2; }
.clip__failed > .icon { font-size: 44px; color: var(--muted); }
.clip__failed[hidden] { display: none; }

.rail { position: absolute; right: 8px; bottom: 96px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 60px; }
.rail__avatar { position: relative; border-radius: 50%; border: 2px solid #fff; display: block; }
.rail__avatar .avatar { display: flex; }
.rail__follow { position: relative; z-index: 1; margin-top: -26px; width: 22px; height: 22px; border-radius: 11px; border: 0; background: var(--green); color: var(--green-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rail__follow .icon { font-size: 18px; font-weight: 700; }
.rail__follow[hidden] { display: none; }
.rail__btn { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; padding: 0; min-width: 48px; }
.rail__btn .icon { font-size: 34px; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); transition: transform .15s; }
.rail__btn:active .icon { transform: scale(.85); }
.rail__count { font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); min-height: 1em; }
.rail__like.is-on .icon { color: var(--red); }
.rail__save.is-on .icon { color: var(--gold); }
.rail__share .icon { transform: scaleX(-1); }
.rail__gift .icon { color: var(--gold); }

.clip__meta { position: absolute; left: 14px; right: 84px; bottom: 26px; z-index: 3; display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.clip__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clip__name { color: #fff; font-weight: 800; font-size: 16px; }
.clip__name:hover { color: #fff; text-decoration: underline; }
.clip__follow { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; text-shadow: none; }
.clip__caption { margin: 0; font-size: 14.5px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clip__visibility { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-soft); }
.clip__visibility .icon { font-size: 16px; }
.clip__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 4; cursor: pointer; display: flex; align-items: flex-end; }
.clip__progress::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.clip__progress span { position: relative; height: 3px; width: 0; background: #fff; }
.clip__heart { position: absolute; width: 80px; height: 80px; pointer-events: none; opacity: 0; z-index: 4; }
.clip__heart .icon { font-size: 80px; color: var(--red); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4)); }
.clip__heart.is-bursting { animation: nv-burst .8s ease-out; }
.guest-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + var(--safe-bottom)); background: rgba(10, 14, 12, .92); border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.guest-bar span { flex: 1; }
.page-watch .clip__meta { bottom: 34px; }
.page-watch:not(.page-app) .clip__meta, .page-watch:not(.page-app) .rail { margin-bottom: 56px; }

/* ---------- Sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 78vh; max-height: 78dvh; display: flex; flex-direction: column; background: var(--surface); border-top: 1px solid var(--line); border-radius: var(--r-sheet) var(--r-sheet) 0 0; transform: translateY(100%); transition: transform .2s ease-out; padding-bottom: var(--safe-bottom); max-width: 560px; margin: 0 auto; }
.sheet.is-open { transform: none; }
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 2px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px 18px; }
.sheet__title { font-size: 16px; font-weight: 800; margin: 0; }
.sheet__body { overflow-y: auto; padding: 4px 16px 16px; flex: 1; }
.sheet__loading { display: flex; justify-content: center; padding: 32px; }
.sheet__menu { display: flex; flex-direction: column; padding: 8px; }
.menu-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; border: 0; background: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.menu-row:hover { background: var(--control); }
.menu-row--danger { color: var(--red-text); }
.menu-row--muted { color: var(--muted); justify-content: center; }
.menu-row[hidden] { display: none; }
.radio-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.radio-row { display: flex; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--line-faint); cursor: pointer; font-size: 14.5px; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }

.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment--reply { padding: 8px 0 0; }
.comment__avatar { flex-shrink: 0; }
.comment__main { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.comment__name { color: var(--muted); font-weight: 700; }
.comment__time { color: var(--subtle); }
.comment__body { margin: 2px 0 4px; font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.comment__actions { display: flex; gap: 14px; }
.comment__actions button, .comment__replies, .comment-more { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.comment__actions button:hover, .comment__replies:hover { color: var(--text); }
.comment__like { background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; font-size: 11.5px; cursor: pointer; padding: 4px; min-width: 36px; }
.comment__like .icon { font-size: 18px; }
.comment__like.is-on { color: var(--red); }
.comment__removed { color: var(--subtle); font-style: italic; margin: 0; font-size: 13.5px; }
.composer { border-top: 1px solid var(--line-soft); padding: 8px 12px; }
.composer__row { display: flex; align-items: flex-end; gap: 8px; }
.composer__row[hidden] { display: none; }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--control); color: var(--text); font: inherit; font-size: 15px; }
.composer textarea:focus { outline: none; border-color: var(--green); }
.composer__send { color: var(--green); }
.composer__send[disabled] { color: var(--disabled); cursor: default; }
.composer__reply { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 0 4px 6px; }
.composer__off { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin: 6px 4px; }

/* ---------- Create ---------- */
.page--wide { max-width: 960px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.page-head__title { font-size: 16px; font-weight: 700; margin: 0; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 48px 20px; min-height: 360px; border: 2px dashed var(--line-strong); border-radius: var(--r-card); background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--green); background: rgba(47, 211, 107, .05); }
.dropzone:focus-within { box-shadow: var(--focus); }
.dropzone__icon { width: 64px; height: 64px; border-radius: 20px; background: rgba(47, 211, 107, .14); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.dropzone__icon .icon { font-size: 34px; }
.dropzone .btn { margin-top: 12px; pointer-events: none; }
.create__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.create__preview { display: flex; flex-direction: column; gap: 14px; }
.preview-frame { position: relative; width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; background: #000; border: 1px solid var(--line); }
.preview-frame video { width: 100%; height: 100%; object-fit: cover; }
.preview-frame__badge { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 6px; }
input[type=range] { width: 100%; accent-color: var(--green); }
.upload-status { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.upload-status__row { display: flex; justify-content: space-between; gap: 8px; }
.upload-status.is-error { border-color: var(--red); color: var(--red-text); }
.upload-status .btn { align-self: flex-start; }
.progress { height: 6px; border-radius: 3px; background: var(--control); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.tool-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip--tool { position: relative; height: 38px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.chip--tool .tab__soon { top: -8px; left: auto; right: -4px; margin: 0; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--r-control); border: 1.5px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: center; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:has(input:checked) { border-color: var(--green); background: rgba(47, 211, 107, .1); color: var(--mint); }
.radio-card:has(input:focus-visible) { box-shadow: var(--focus); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; gap: 2px; }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color .15s; flex-shrink: 0; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { box-shadow: var(--focus); outline: none; }
.create__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.create__actions .btn[hidden] { display: none; }

/* ---------- Profile & grids ---------- */
.profile-head__name { display: flex; align-items: center; gap: 8px; }
.profile-head__bio { margin: 4px 0 0; color: var(--text-soft); font-size: 14px; max-width: 34em; white-space: normal; overflow-wrap: anywhere; }
.stats { display: flex; margin: 8px 0 4px; }
.stats > div { width: 100px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.stats > div + div { border-left: 1px solid var(--line-soft); }
.stats dt { font-size: 12.5px; color: var(--muted); }
.stats dd { margin: 0; font-size: 18px; font-weight: 800; }
.profile-actions { display: flex; gap: 8px; width: 100%; max-width: 380px; margin-top: 6px; }
.profile-actions .btn:not(.btn--icon) { flex: 1; }
.profile-tabs { display: flex; border-bottom: 1px solid var(--line-faint); margin: 0 -16px; }
.profile-tab { flex: 1; background: none; border: 0; color: var(--subtle); padding: 10px 0 8px; cursor: pointer; border-bottom: 2px solid transparent; }
.profile-tab.is-active { color: var(--text); border-bottom-color: var(--text); }
.profile-tab .icon { font-size: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -16px; }
.grid__msg { grid-column: 1 / -1; }
.tile { position: relative; aspect-ratio: 3 / 4; background: repeating-linear-gradient(135deg, #141B17 0 10px, #18201B 10px 20px); overflow: hidden; color: #fff; }
.tile__img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { color: #fff; }
.tile:hover .tile__img { opacity: .85; }
.tile__views { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.tile__views .icon { font-size: 16px; }
.tile__badge { position: absolute; left: 6px; top: 6px; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; }
.tile__badge--failed { background: var(--red); color: #fff; }
.tile__badge--muted { background: rgba(0, 0, 0, .55); color: #fff; }
.tile__badge .icon { font-size: 15px; }
.grid-more { display: flex; justify-content: center; padding: 12px; }
.tag-head { display: flex; align-items: center; gap: 16px; }
.tag-head__mark { width: 72px; height: 72px; border-radius: 20px; background: var(--control); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; }
.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.avatar-edit label.btn { cursor: pointer; }

@media (min-width: 760px) {
  .create__grid { grid-template-columns: 300px 1fr; align-items: start; }
  .grid { grid-template-columns: repeat(4, 1fr); margin: 0; gap: 6px; }
  .tile { border-radius: 10px; }
  .profile-tabs { margin: 0; }
  .sheet { bottom: 16px; border-radius: var(--r-sheet); border: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .page-app .feed-page { height: 100dvh; padding: 16px 0; }
  .page-app .feed { border-radius: var(--r-sheet); }
}

@keyframes nv-spin { to { transform: rotate(360deg); } }
@keyframes nv-burst { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.15); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-60px) scale(1.1); } }

/* ---------- Milestone 3: Discover, search, inbox, chat ---------- */
.spinner--sm { width: 24px; height: 24px; border-width: 3px; }
.avatar--lg { width: 56px; height: 56px; font-size: 22px; flex-shrink: 0; }
.tab__badge { position: absolute; top: -4px; left: 50%; margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.tab__badge[hidden] { display: none; }

.search-bar { display: flex; align-items: center; gap: 6px; }
.search-bar__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: var(--r-control); background: var(--control); color: var(--muted); border: 1.5px solid transparent; }
.search-bar__field:focus-within { border-color: var(--green); box-shadow: var(--focus); }
.search-bar__field input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex-shrink: 0; height: 38px; font-size: 14px; }
.chip-scroll .chip:hover { border-color: var(--line-strong); color: var(--text); }
.disc-section { display: flex; flex-direction: column; gap: 10px; }
.disc-head { display: flex; justify-content: space-between; align-items: baseline; }
.disc-title { font-size: 18px; font-weight: 800; margin: 8px 0 0; }
.creator-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; min-height: 60px; }
.creator-row::-webkit-scrollbar { display: none; }
.creator-card { flex-shrink: 0; width: 120px; padding: 14px 8px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); }
.creator-card strong { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-card:hover { border-color: var(--line-strong); color: var(--text); }
.tag-list { list-style: none; margin: 0; padding: 0; }
.tag-row, .person-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 0; border-bottom: 1px solid var(--line-faint); color: var(--text); }
.tag-row:hover, .person-row:hover { color: var(--text); }
.tag-row__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--control); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex-shrink: 0; }
.tag-row__rank { color: var(--gold); font-size: 12.5px; font-weight: 700; }
.person-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.person-row__main strong, .person-row__main .subtle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row--button { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; text-align: left; font-family: inherit; }
.people-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-row { display: flex; align-items: center; justify-content: space-between; }
.recent-row a { display: flex; align-items: center; gap: 12px; flex: 1; min-height: 44px; color: var(--text-soft); }
.recent-row a .icon { color: var(--subtle); }
.grid--discover { margin: 0; }
.tile__who { position: absolute; left: 6px; top: 6px; font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg-tabs { display: flex; gap: 6px; padding: 4px; border-radius: var(--r-control); background: var(--surface); }
.seg-tab { flex: 1; min-width: 0; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; white-space: nowrap; font-weight: 700; color: var(--muted); }
.seg-tab.is-active { background: #2C3832; color: var(--text); }
.results { display: flex; flex-direction: column; gap: 10px; }
.send-to { display: flex; gap: 8px; margin-bottom: 12px; }
.send-to .input { flex: 1; }

.inbox-head { display: flex; align-items: center; justify-content: space-between; }
.inbox-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line-faint); margin: 0 -16px; padding: 0 16px; }
.inbox-tab { position: relative; display: flex; align-items: center; gap: 6px; padding: 10px 0; font-size: 15px; font-weight: 700; color: var(--subtle); white-space: nowrap; border-bottom: 3px solid transparent; }
.inbox-tab.is-active { color: var(--text); border-bottom-color: var(--green); }
.inbox-tab:hover { color: var(--text); }
.inbox-tab__count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; }
.inbox-tab__count[hidden] { display: none; }
.inbox-list { display: flex; flex-direction: column; }
.inbox-group { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 4px; }
.chat-row, .note-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); }
.chat-row:hover, .note-row:hover { color: var(--text); background: rgba(255, 255, 255, .02); }
.chat-row__main, .note-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-row__name { font-size: 15px; font-weight: 600; }
.chat-row.is-unread .chat-row__name { font-weight: 800; }
.chat-row__preview { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-row.is-unread .chat-row__preview { color: var(--text); }
.chat-row__preview .icon { font-size: 16px; }
.tick { color: var(--muted); }
.tick--seen { color: var(--green); }
.chat-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chat-row__time, .note-row__time { font-size: 12px; color: var(--subtle); }
.chat-row.is-unread .chat-row__time { color: var(--green); font-weight: 600; }
.chat-row__unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: var(--green-ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.note-row { align-items: flex-start; border-radius: 12px; padding: 10px 8px; margin: 0 -8px; }
.note-row.is-unread { background: rgba(47, 211, 107, .06); }
.note-row__text { font-size: 14px; }
.note-row__excerpt { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.note-row__icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(47, 211, 107, .14); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.note-row__icon.is-bad { background: rgba(239, 78, 78, .14); color: var(--red-text); }
.note-row__thumb { width: 44px; height: 58px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: repeating-linear-gradient(135deg, #141B17 0 6px, #18201B 6px 12px); }
.note-row__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Chat */
.page-chat .shell__main { padding-bottom: 0; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--tabbar-h) - var(--safe-bottom)); max-width: 680px; margin: 0 auto; }
.chat-head { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line-faint); }
.chat-head__who { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.chat-head__who:hover { color: var(--text); }
.chat-head__names { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat-head__names strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-bar { padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line-faint); font-size: 13.5px; }
.request-bar p { margin: 0 0 10px; color: var(--text-soft); }
.chat-body { flex: 1; overflow-y: auto; padding: 12px 14px; overscroll-behavior: contain; }
.chat-older { display: block; margin: 0 auto 8px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; margin: 3px 0; max-width: 80%; }
.msg--mine { align-items: flex-end; margin-left: auto; }
.bubble { padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--control); font-size: 15px; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; }
.msg--mine .bubble { background: var(--green); color: var(--green-ink); border-radius: 18px 18px 6px 18px; }
.msg--mine .bubble .tag-link, .msg--mine .bubble .mention-link { color: var(--green-ink); text-decoration: underline; }
.bubble__text { margin: 0; white-space: pre-line; }
.bubble__unavailable { font-style: italic; opacity: .75; font-size: 13.5px; }
.msg__meta { font-size: 11px; color: var(--subtle); margin: 2px 6px 0; }
.msg__seen { font-size: 11px; color: var(--muted); margin: 0 6px; font-weight: 600; }
.msg__report { background: none; border: 0; padding: 0 6px; font-size: 11px; color: var(--subtle); cursor: pointer; display: none; }
.msg:hover .msg__report, .msg:focus-within .msg__report { display: inline; }
.msg.is-pending .bubble { opacity: .65; }
.msg.is-failed .bubble { opacity: .65; outline: 1.5px solid var(--red); }
.msg__retry { background: none; border: 0; padding: 0; color: var(--red-text); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.share-card { display: flex; gap: 10px; align-items: center; color: inherit; min-width: 200px; }
.share-card:hover { color: inherit; }
.share-card__thumb { position: relative; width: 54px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: repeating-linear-gradient(135deg, #141B17 0 6px, #18201B 6px 12px); display: flex; align-items: center; justify-content: center; color: #fff; }
.share-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.share-card__thumb .icon { position: relative; }
.share-card__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.share-card__text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-composer { padding-bottom: calc(8px + var(--safe-bottom)); }
@media (min-width: 900px) { .chat { height: 100dvh; } }

/* ---------- Milestone 4: Livestreaming ---------- */
.avatar--xs { width: 26px; height: 26px; font-size: 11px; flex-shrink: 0; }
.btn--live { background: var(--red); color: #fff; }
.btn--live:hover { background: #F46262; color: #fff; }
.live-badge { height: 24px; padding: 0 9px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .5px; display: inline-flex; align-items: center; white-space: nowrap; }
.live-badge--warn { background: var(--gold); color: var(--gold-ink); }
.live-badge--off { background: var(--line-strong); }
.live-pill { height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.live-pill:hover { color: #fff; border-color: #fff; }

.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.live-card { display: flex; flex-direction: column; gap: 4px; color: var(--text); min-width: 0; }
.live-card:hover { color: var(--text); }
.live-card__cover { position: relative; aspect-ratio: 9 / 14; border-radius: var(--r-card); overflow: hidden; background: radial-gradient(120% 70% at 30% 30%, #5A1F1F 0%, transparent 60%), repeating-linear-gradient(135deg, #141B17 0 10px, #18201B 10px 20px); }
.live-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.live-card__cover .live-badge { position: absolute; left: 8px; top: 8px; }
.live-card__viewers { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.live-card__viewers .icon { font-size: 16px; }
.live-card__title { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.preview-frame--live { aspect-ratio: 9 / 16; }
.preview-frame video.is-mirrored { transform: scaleX(-1); }
.preview-frame__msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; font-size: 13.5px; color: var(--text-soft); background: rgba(10, 14, 12, .85); }
.preview-frame__msg[hidden] { display: none; }
.preview-frame__msg .icon { font-size: 36px; color: var(--muted); }
.round-btn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; position: relative; }
.round-btn:hover { background: rgba(255, 255, 255, .22); }
.round-btn[disabled] { opacity: .4; cursor: default; }
.round-btn.is-off { background: var(--red); }
.round-btn--gold { background: var(--gold); color: var(--gold-ink); }
.round-btn--gold:hover { background: #F7C25E; }
.round-btn--heart { background: rgba(239, 78, 78, .9); }
.round-btn--heart:hover { background: var(--red); }
.round-btn .tab__soon { top: -8px; left: auto; right: -6px; margin: 0; }
.live-controls { display: flex; justify-content: center; gap: 12px; }
.live-controls--setup .round-btn { background: var(--control); }
.radio-card--soon { font-family: inherit; color: var(--muted); }
.radio-card--soon .tab__soon { position: absolute; top: -8px; right: -4px; left: auto; margin: 0; }
.input--file { height: auto; padding: 12px; font-size: 14px; }

/* Studio & viewer: full-screen video with overlays */
.page-live { background: #000; overflow: hidden; }
.live { position: relative; height: 100vh; height: 100dvh; max-width: 520px; margin: 0 auto; overflow: hidden; background: radial-gradient(120% 70% at 30% 30%, #1F5C38 0%, transparent 60%), repeating-linear-gradient(135deg, #141B17 0 12px, #18201B 12px 24px); }
.live__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.live__video--mirror { transform: scaleX(-1); }
.live__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, transparent 20%, transparent 45%, rgba(0, 0, 0, .8) 100%); }
.live__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 0 40px; font-size: 13.5px; }
.live__placeholder[hidden] { display: none; }
.live__placeholder > .icon { font-size: 52px; color: var(--red); }
.live-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.live-top__left { display: flex; gap: 6px; align-items: center; flex: 1; flex-wrap: wrap; }
.live-top__spacer { flex: 1; }
.live-chip { height: 26px; padding: 0 8px; border-radius: 6px; background: rgba(0, 0, 0, .45); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.live-chip .icon { font-size: 16px; }
.live-chip[hidden] { display: none; }
.live-chip--quality.is-bad { color: var(--gold); }
.host-chip { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 55%; height: 44px; padding: 0 12px 0 4px; border-radius: 22px; background: rgba(0, 0, 0, .45); color: #fff; }
.host-chip:hover { color: #fff; }
.host-chip .avatar { width: 36px; height: 36px; }
.host-chip__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.host-chip__text strong, .host-chip__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.host-chip__text span { font-size: 11.5px; color: var(--text-soft); }
.live-overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 0 40px; background: rgba(10, 14, 12, .75); }
.live-overlay[hidden] { display: none; }
.live-overlay .spinner[hidden] { display: none; }
.live-unmute { position: absolute; z-index: 5; top: 70px; left: 50%; transform: translateX(-50%); height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.live-unmute[hidden] { display: none; }
.live-stats { position: absolute; z-index: 3; right: 12px; top: 64px; display: flex; flex-direction: column; gap: 8px; }
.live-stats > div { position: relative; height: 30px; padding: 0 10px; border-radius: 15px; background: rgba(0, 0, 0, .45); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.live-stats .icon { font-size: 18px; color: var(--red); }
.live-stats__gifts .icon { color: var(--gold); }
.live-stats__gifts .tab__soon { position: static; margin-left: 2px; }
.live-hearts { position: absolute; z-index: 3; right: 16px; bottom: 90px; width: 60px; height: 260px; pointer-events: none; }
.live-heart { position: absolute; bottom: 0; font-size: 30px; animation: nv-float 2.6s ease-out forwards; }
.live-chat { position: absolute; z-index: 3; left: 0; right: 72px; bottom: 74px; max-height: 38%; display: flex; flex-direction: column; }
.live-chat__list { overflow-y: auto; padding: 0 12px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); }
.live-chat__list::-webkit-scrollbar { display: none; }
.live-msg { display: flex; gap: 8px; align-items: flex-start; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.live-msg.is-moderatable { cursor: pointer; border-radius: 10px; }
.live-msg.is-moderatable:hover, .live-msg.is-moderatable:focus { background: rgba(255, 255, 255, .08); outline: none; }
.live-msg__text { margin: 0; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.live-msg__name { color: var(--text-soft); font-weight: 700; }
.live-msg--host .live-msg__name { color: var(--gold); }
.live-msg__tag { margin-left: 4px; padding: 1px 5px; border-radius: 4px; background: var(--gold); color: var(--gold-ink); font-size: 10px; font-weight: 800; text-shadow: none; }
.live-msg__tag--staff { background: var(--green); color: var(--green-ink); }
.live-msg--notice { font-size: 12.5px; color: var(--mint); font-weight: 600; }
.live-bottom { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(14px + var(--safe-bottom)); }
.live-input { flex: 1; min-width: 0; }
.live-input input { width: 100%; height: 44px; border-radius: 22px; border: 0; padding: 0 16px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 15px; }
.live-input input::placeholder { color: var(--text-soft); }
.live-input input:focus { outline: 2px solid var(--green); }
.live-input input:disabled { opacity: .6; }
.live-input--guest { height: 44px; border-radius: 22px; background: rgba(255, 255, 255, .14); color: var(--text-soft); display: flex; align-items: center; padding: 0 16px; font-size: 14px; }
.live-dev { position: absolute; z-index: 5; left: 12px; right: 12px; top: 46px; margin: 0; font-size: 11.5px; color: var(--gold); text-align: center; }
.sheet__context { margin: 4px 12px 8px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.summary-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat-tile span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-tile strong { font-size: 22px; letter-spacing: -.4px; }
.create-switch { display: flex; gap: 6px; padding: 4px; border-radius: var(--r-control); background: var(--surface); }
.create-switch a { flex: 1; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.create-switch a.is-active { background: #2C3832; color: var(--text); }
.avatar-live { position: relative; display: inline-block; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--red); }
.avatar-live .live-badge { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); height: 20px; font-size: 10.5px; }
@keyframes nv-float { 0% { transform: translateY(0) scale(.8); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-240px) scale(1.15); opacity: 0; } }
@media (min-width: 760px) { .live-grid { grid-template-columns: repeat(4, 1fr); } .summary-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Admin (light theme, Plus Jakarta Sans) ---------- */
.page-admin { background: #F5F7F6; color: #0E1A13; font-family: var(--font-admin); font-size: 14px; }
.page-admin a:hover .brand { color: #0E1A13; }
.page-admin .brand { color: #0E1A13; }
.admin__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; background: #fff; border-bottom: 1px solid #E2E8E4; }
.admin__brand { display: flex; align-items: center; gap: 10px; }
.admin__tag { font-size: 12px; font-weight: 700; color: #138A44; background: #E3F7EA; padding: 3px 8px; border-radius: 6px; }
.admin__who { display: flex; align-items: center; gap: 12px; color: #4A5A50; font-weight: 600; }
.page-admin .btn--secondary { background: #fff; color: #0E1A13; border-color: #D5DDD8; }
.admin__main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.admin__title h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.6px; }
.admin__title p { margin: 4px 0 0; color: #5B6B61; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid #E2E8E4; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.stat span { color: #5B6B61; font-weight: 600; font-size: 13px; }
.stat strong { font-size: 28px; letter-spacing: -.6px; }
.panel { background: #fff; border: 1px solid #E2E8E4; border-radius: 14px; padding: 18px; }
.panel h2 { margin: 0 0 12px; font-size: 16px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #5B6B61; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid #E2E8E4; white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid #EEF2EF; vertical-align: top; }
.table code { background: #EEF2EF; color: #0E1A13; }
.t-muted { color: #5B6B61; }
.t-empty { text-align: center; color: #5B6B61; padding: 28px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.tag--active { background: #E3F7EA; color: #138A44; }
.tag--suspended { background: #FFF3DC; color: #9A6200; }
.tag--banned { background: #FDE6E6; color: #B42323; }
.admin__nav { display: flex; gap: 4px; }
.admin__nav a { padding: 8px 12px; border-radius: 10px; color: #4A5A50; font-weight: 700; text-decoration: none; }
.admin__nav a[aria-current="page"] { background: #E3F7EA; color: #138A44; }
.stat small { color: #5B6B61; font-size: 12px; }
.stat--key { border-color: #138A44; background: #F2FBF5; }
.panel__sub { font-size: 14px; margin: 18px 0 8px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.filter-bar label { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #4A5A50; }
.page-admin .input--sm, .input--sm { height: 36px; padding: 0 10px; font-size: 14px; border-radius: 10px; }
.page-admin .input { background: #fff; color: #0E1A13; border-color: #D5DDD8; }
.alert { padding: 14px 16px; border-radius: 12px; }
.alert ul { margin: 6px 0 0; }
.alert--danger { background: #FDE6E6; color: #8A1C1C; }
.alert--info { background: #E8F1FF; color: #17366B; }
.actions-cell { min-width: 220px; }
.action-box { margin: 0 0 6px; }
.action-box > summary { cursor: pointer; font-weight: 700; color: #138A44; font-size: 13px; }
.action-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.action-form .input { flex: 1 1 150px; }
@media (max-width: 640px) {
  /* Tables become stacked cards on phones */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid #E2E8E4; padding: 8px 0; }
  .table td { border: 0; padding: 4px 0; display: flex; gap: 12px; }
  .table td::before { content: attr(data-label); min-width: 90px; color: #5B6B61; font-size: 12px; font-weight: 700; }
  .table td.t-empty::before { content: none; }
}


/* ---------- Money: wallet, gifts, earnings, withdrawals (Milestone 5) ---------- */
.gold { color: var(--gold); }
.h3 { font-size: 16px; font-weight: 800; margin: 0; }
.section--flush { padding: 0; margin: 20px 0 0; gap: 10px; }
.page .section { padding: 20px 0 0; gap: 10px; }
.coin { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.coin--sm { width: 16px; height: 16px; font-size: 0; }
.coin--xs { width: 18px; height: 18px; font-size: 11px; }
.coin-card { border-radius: var(--r-card); padding: 18px; background: linear-gradient(140deg, #14532F, #0C2E1B); border: 1px solid #1E6B3E; display: flex; flex-direction: column; gap: 6px; }
.coin-card__label, .coin-card__hint { font-size: 13px; color: #A9E8C2; font-weight: 600; }
.coin-card__hint { font-size: 12px; font-weight: 500; }
.coin-card__value { display: flex; align-items: center; gap: 10px; }
.coin-card__value strong { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.earn-card { margin-top: 10px; border-radius: var(--r-card); padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.earn-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.earn-card__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.earn-card__value { font-size: 24px; font-weight: 800; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.package-form { margin: 0; }
.package { position: relative; width: 100%; height: 78px; border-radius: var(--r-control); background: var(--surface); border: 1.5px solid var(--line); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font: inherit; }
.package:hover, .package:focus-visible { border-color: var(--gold); outline: none; }
.package__coins { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.package__price { font-size: 13px; color: var(--muted); font-weight: 600; }
.package__tag { position: absolute; top: -8px; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; }
.tx-list { list-style: none; margin: 0; padding: 0; }
.tx { min-height: 62px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-faint); padding: 8px 0; }
.tx__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--control); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-soft); flex-shrink: 0; }
.tx__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tx__main strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx__ref { font-size: 12px; color: var(--subtle); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14.5px; }
.earn-total { padding: 18px 4px 6px; display: flex; flex-direction: column; gap: 4px; }
.earn-total__value { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; }
.bars { height: 150px; display: flex; align-items: flex-end; gap: 3px; padding: 10px 0 0; margin-bottom: 16px; }
.bars__col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars__bar { width: 100%; height: 2%; border-radius: 4px 4px 2px 2px; background: var(--green); }
.bars__bar--zero { background: var(--line); }
.bars__label { font-size: 10px; color: var(--subtle); height: 12px; }
.summary-grid--3 { grid-template-columns: repeat(3, 1fr); }
.summary-grid--3 .stat-tile strong { font-size: 16px; }
.wd-steps { list-style: none; display: flex; gap: 8px; margin: 16px 0; padding: 0; }
.wd-step { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--subtle); }
.wd-step__n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.wd-step.is-current { color: var(--text); }
.wd-step.is-current .wd-step__n { border-color: var(--green); color: var(--green); }
.wd-step.is-done .wd-step__n { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.disclose > summary { list-style: none; cursor: pointer; display: inline-flex; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose[open] > summary { margin-bottom: 8px; }
.result-icon { font-size: 64px; }
.result-icon--ok { color: var(--green); }
.result-icon--bad { color: var(--red); }

/* Gift sheet */
.gift-head { display: flex; align-items: center; gap: 8px; }
.coin-chip { height: 32px; padding: 0 10px; border-radius: 16px; background: var(--control); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 120px; }
@media (min-width: 420px) { .gift-grid { grid-template-columns: repeat(4, 1fr); } }
.gift-tile { height: 112px; border-radius: 16px; background: var(--control); border: 1.5px solid transparent; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; padding: 4px; }
.gift-tile.is-on { border-color: var(--gold); background: rgba(244, 181, 63, .1); }
.gift-tile:focus-visible { outline: none; box-shadow: var(--focus); }
.gift-tile__art { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gift-tile__art .icon { font-size: 30px; }
.gift-tile__name { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.1; }
.gift-tile__price { font-size: 11.5px; color: var(--gold); font-weight: 600; }
.gift-low { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(244, 181, 63, .12); color: var(--gold); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gift-low a { color: var(--gold); text-decoration: underline; }
.gift-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; }
.gift-qty { height: 52px; border-radius: var(--r-control); background: var(--control); display: flex; align-items: center; padding: 0 4px; }
.gift-qty__btn { height: 44px; width: 46px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gift-qty__btn.is-on { background: #2C3832; color: var(--text); }
.gift-send { flex: 1; height: 52px; border-radius: var(--r-control); border: 0; background: var(--gold); color: var(--gold-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font: inherit; }
.gift-send strong { font-size: 15.5px; font-weight: 800; }
.gift-send span { font-size: 11.5px; font-weight: 600; opacity: .8; }
.gift-send:disabled { background: var(--control); color: var(--disabled); cursor: not-allowed; }
.gift-note { margin: 0; padding: 4px 16px calc(14px + var(--safe-bottom)); font-size: 11.5px; color: var(--subtle); text-align: center; }
.gift-burst { position: fixed; inset: 0; pointer-events: none; z-index: 60; display: flex; align-items: center; justify-content: center; }
.gift-pop { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: nv-gift-pop 2.4s ease-out forwards; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.gift-pop__art .icon { font-size: 96px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
.gift-pop--float .gift-pop__art .icon { font-size: 72px; }
.gift-pop--fullscreen .gift-pop__art .icon { font-size: 160px; }
.gift-pop__label { font-size: 20px; font-weight: 800; }
@keyframes nv-gift-pop { 0% { opacity: 0; transform: scale(.4) translateY(40px); } 15% { opacity: 1; transform: scale(1.1); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60px); } }

/* Gifts and tickets in lives */
.gift-banners { position: absolute; z-index: 4; left: 12px; top: 84px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100% - 24px); }
.gift-banner { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: linear-gradient(90deg, rgba(244, 181, 63, .92), rgba(244, 181, 63, .55)); color: var(--gold-ink); width: max-content; max-width: 100%; animation: nv-gift-in 3.2s ease-out forwards; }
.gift-banner__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.gift-banner__text strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-banner__text span { font-size: 12px; font-weight: 600; }
.gift-banner__art { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center; }
.gift-banner__art .icon { font-size: 24px; }
.gift-banner__qty { font-size: 22px; font-weight: 900; font-style: italic; }
.gift-banner--fullscreen { animation-duration: 4.2s; transform-origin: left center; }
.gift-banner--fullscreen .gift-banner__art { width: 52px; height: 52px; }
.gift-banner--fullscreen .gift-banner__art .icon { font-size: 38px; }
@keyframes nv-gift-in { 0% { opacity: 0; transform: translateX(-40px); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }
.live-msg--gift .live-msg__text { color: #F7CB77; font-weight: 600; }
.live-msg--gift .live-msg__text .icon { font-size: 18px; vertical-align: -4px; }
.ticket-gate { position: absolute; z-index: 6; inset: auto 12px 12px; max-width: 420px; margin: 0 auto; padding: 22px 18px; border-radius: var(--r-sheet); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.ticket-gate[hidden] { display: none; }
.ticket-gate__icon { font-size: 44px; color: var(--gold); }
.ticket-gate__price { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0; }


/* ---------- Backoffice shell (Milestone 6) ---------- */
.adm { display: flex; min-height: 100vh; background: #F5F7F6; color: #0E1A13; font-family: var(--font-admin); }
.adm__side { width: 232px; flex-shrink: 0; background: #fff; border-right: 1px solid #E2E8E4; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.adm__brand { display: flex; align-items: center; gap: 8px; padding: 0 8px; color: inherit; text-decoration: none; }
.adm__nav { display: flex; flex-direction: column; gap: 2px; }
.adm__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #3E4C44; font-weight: 600; font-size: 14px; text-decoration: none; }
.adm__nav a:hover { background: #F0F4F1; }
.adm__nav a[aria-current="page"] { background: #E3F7EA; color: #0F6B35; }
.adm__nav .icon { font-size: 20px; }
.adm__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm__top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: #fff; border-bottom: 1px solid #E2E8E4; position: sticky; top: 0; z-index: 5; }
.adm__spacer { flex: 1; }
.adm__search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid #D5DDD8; border-radius: 10px; background: #F8FAF9; }
.adm__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: inherit; outline: none; }
.adm__search:focus-within { border-color: #138A44; box-shadow: 0 0 0 3px rgba(19, 138, 68, .15); }
.adm__menu { position: relative; margin-left: auto; }
.adm__menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 8px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #3E4C44; }
.adm__menu summary::-webkit-details-marker { display: none; }
.adm__menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid #E2E8E4; border-radius: 12px; box-shadow: 0 12px 32px rgba(14, 26, 19, .12); padding: 6px; display: flex; flex-direction: column; z-index: 10; }
.adm__menu-list a, .adm__menu-list button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #0E1A13; text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; width: 100%; text-align: left; }
.adm__menu-list a:hover, .adm__menu-list button:hover { background: #F0F4F1; }
.adm__menu-list form { margin: 0; }
.adm__main { padding: 24px; display: flex; flex-direction: column; gap: 20px; max-width: 1280px; width: 100%; }
.adm--bare .adm__main { max-width: 520px; margin: 40px auto; }
.adm a { color: #0F6B35; }
.adm .avatar { background: #E3F7EA; color: #0F6B35; border: 0; }
.adm .avatar span { color: #0F6B35; font-weight: 800; }
.adm code { background: #EEF2EF; color: #0E1A13; padding: 1px 6px; border-radius: 6px; }
.adm__side .adm__brand { flex-wrap: wrap; row-gap: 6px; }
.page-admin .flash { background: #fff; border: 1px solid #E2E8E4; color: #0E1A13; }
.panel { display: flex; flex-direction: column; gap: 12px; }
.panel h2 { margin: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel__h1 { margin: 0; font-size: 22px; }
.panel--narrow { max-width: 460px; margin: 0 auto; text-align: center; align-items: center; }
.panel--narrow form { width: 100%; text-align: left; }
.panel__icon { font-size: 44px; color: #138A44; }
.adm-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.adm-form--wide { max-width: none; }
.adm .field label { color: #3E4C44; font-weight: 600; font-size: 14px; }
.adm .field__hint { color: #5B6B61; }
.adm .field__error { color: #B42323; }
.input--code-sm { letter-spacing: 6px; font-size: 20px; font-variant-numeric: tabular-nums; }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.secret-key code { font-size: 18px; letter-spacing: 1px; background: #EEF2EF; padding: 6px 10px; border-radius: 8px; display: inline-block; }
.crumbs { font-size: 13px; color: #5B6B61; }
.user-head { display: flex; gap: 16px; align-items: flex-start; }
.user-head h1 { margin: 0; font-size: 24px; }
.user-head p { margin: 4px 0 0; }
.action-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.action-grid .action-box { flex: 1 1 280px; }
.action-box summary.danger { color: #B42323; }
.action-form--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; align-items: end; }
.action-form--grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #5B6B61; }
.check-inline { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 600 !important; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col--wide { grid-template-columns: 2fr 1fr; }
.two-col aside { display: flex; flex-direction: column; gap: 20px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.timeline li { padding-bottom: 10px; border-bottom: 1px solid #EEF2EF; }
.tabs-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-row a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #E2E8E4; color: #3E4C44; font-weight: 700; font-size: 14px; text-decoration: none; }
.tabs-row a[aria-current="page"] { background: #0E1A13; color: #fff; border-color: #0E1A13; }
.tabs-row .count { margin-left: 4px; opacity: .7; }
.filter-bar__grow { flex: 1 1 240px; }
.filter-bar__grow input { width: 100%; }
.case-list { list-style: none; margin: 0; padding: 0; }
.case__link { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid #EEF2EF; color: inherit !important; text-decoration: none; }
.case__link:hover { background: #F8FAF9; }
.case__thumb { width: 56px; height: 72px; border-radius: 8px; background: #EEF2EF; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; color: #5B6B61; }
.case__thumb img { width: 100%; height: 100%; object-fit: cover; }
.case__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.case__text { color: #3E4C44; font-size: 14px; }
.case__meta { font-size: 12.5px; color: #5B6B61; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.case-preview { max-width: 240px; border-radius: 12px; }
.case-quote { margin: 0; padding: 12px 14px; background: #F8FAF9; border-left: 4px solid #D5DDD8; border-radius: 8px; white-space: pre-wrap; }
.radio-stack { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.radio-stack label { display: flex; gap: 8px; align-items: baseline; }
.empty-state { text-align: center; padding: 32px; color: #5B6B61; }
.empty-state .icon { font-size: 40px; color: #138A44; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; }
.priority-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.priority-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FFF8E8; color: #6B4500 !important; font-weight: 600; text-decoration: none; }
.priority-list a .icon:last-child { margin-left: auto; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.chart { margin: 0; background: #fff; border: 1px solid #E2E8E4; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart__title { font-size: 13px; font-weight: 700; color: #5B6B61; }
.chart__total { font-size: 18px; }
.chart__svg { width: 100%; height: 160px; display: block; overflow: visible; }
.chart__bar { fill: #138A44; }
.chart__target { fill: transparent; }
.chart__hit:hover .chart__bar { fill: #0F6B35; }
.chart__hit:hover .chart__target { fill: rgba(19, 138, 68, .06); }
.chart__grid { stroke: #EEF2EF; stroke-width: 1; stroke-dasharray: 3 3; }
.chart__axis { stroke: #D5DDD8; stroke-width: 1; }
.chart__label { fill: #5B6B61; font-size: 11px; font-family: var(--font-admin); }
.chart__table summary { font-size: 12px; color: #5B6B61; cursor: pointer; }
.table--compact td, .table--compact th { padding: 4px 8px; }
.gift-swatch { font-size: 22px; vertical-align: middle; }
.ann-preview { background: #F8FAF9; border: 1px dashed #D5DDD8; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ann-preview__label { font-size: 12px; font-weight: 700; color: #5B6B61; }
.ann-preview__note { display: flex; gap: 10px; align-items: flex-start; }
.ann-preview__note .icon { color: #138A44; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.table--matrix td { text-align: center; }
.table--matrix td:first-child { text-align: left; }
.icon.ok { color: #138A44; }
.audit-meta code { white-space: normal; word-break: break-word; font-size: 12px; }
.switch-line { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #EEF2EF; }
.switch-line input { margin-top: 4px; width: 18px; height: 18px; accent-color: #138A44; }
.log-box { background: #0E1A13; color: #E3F7EA; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 12px; max-height: 360px; }
.code-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.code-list code { font-size: 15px; font-weight: 700; }
.feedback-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feedback { border: 1px solid #E2E8E4; border-radius: 12px; padding: 12px 14px; }
.feedback p { margin: 0 0 6px; }
.feedback__meta { font-size: 13px; color: #5B6B61; }
.page-admin .btn--primary { background: #138A44; color: #fff; }
.page-admin .btn--danger { background: #B42323; color: #fff; }
.page-admin .btn--text { color: #0F6B35; }
@media (max-width: 900px) {
  .adm { flex-direction: column; }
  .adm__side { width: auto; height: auto; position: static; flex-direction: row; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #E2E8E4; overflow-x: auto; gap: 12px; }
  .adm__nav { flex-direction: row; }
  .adm__nav a { white-space: nowrap; }
  .adm__nav a span:last-child { display: none; }
  .adm__nav a[aria-current="page"] span:last-child { display: inline; }
  .adm__top { position: static; padding: 10px 16px; flex-wrap: wrap; }
  .adm__who { display: none; }
  .adm__main { padding: 16px; }
  .two-col, .two-col--wide { grid-template-columns: 1fr; }
}

/* App: site banner, creator analytics */
.site-banner { margin: 0; padding: 10px 16px; display: flex; gap: 10px; align-items: center; background: rgba(244, 181, 63, .12); color: #F7CB77; font-size: 13.5px; font-weight: 600; }
.bars--short { height: 90px; }
.section-gap { margin-top: 16px; }

/* ---------- Motion ---------- */
@keyframes nv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes nv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Milestone 6 layout fixes */
.action-form--grid .input { flex: none; width: 100%; }
.tag .icon { font-size: 14px; vertical-align: -2px; }
.tx__main a { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Advertising (admin) */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 18px; }
.field--wide { grid-column: 1 / -1; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.owed { color: #9A6200; }
.ad-preview { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.ad-preview__phone { width: 220px; height: 360px; border-radius: 22px; background: #0E1A13; color: #fff; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.ad-preview__label { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.15); padding: 3px 8px; border-radius: 999px; align-self: flex-start; }
.ad-preview__video { color: #7DF0A6 !important; text-align: center; }
.ad-preview__cta { background: #F3F6F4; color: #0E1A13; border-radius: 10px; padding: 10px; text-align: center; font-weight: 700; }
.ad-preview p { flex: 1 1 260px; }

/* Sponsored videos in the feed */
.clip__sponsored { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; text-shadow: none; }
.clip__cta { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 360px; padding: 11px 14px; border: 0; border-radius: 12px; background: var(--text); color: var(--bg); font: inherit; text-align: left; cursor: pointer; text-shadow: none; }
.clip__cta strong { font-size: 15px; }
.clip__cta span:not(.icon) { flex: 1; min-width: 0; font-size: 12.5px; color: #4A5A50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip__cta .icon { font-size: 20px; }

/* Inside the Android/iOS app */
.app-update { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 24px; text-align: center; }
.app-update strong { font-size: 22px; }
.app-update p { color: var(--muted); margin: 0; }
.package:disabled { opacity: .55; cursor: not-allowed; }
