:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --surface-2: #f0eefa;
  --text: #1c1830;
  --muted: #6b6785;
  --border: #e3e0f0;
  --primary: #5b3df5;
  --primary-ink: #ffffff;
  --primary-soft: #ece8ff;
  --good: #15935b;
  --good-soft: #e3f6ec;
  --warn: #b26b00;
  --warn-soft: #fff3dc;
  --bad: #d23b4b;
  --bad-soft: #fde8ea;
  --shadow: 0 1px 2px rgba(28, 24, 48, .06), 0 6px 24px rgba(28, 24, 48, .06);
  --radius: 16px;
  --series-1: #2a78d6; --series-2: #eb6834;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110f1c; --surface: #1b1829; --surface-2: #242036; --text: #f1eefc; --muted: #a29dbd; --border: #2f2a46;
    --primary: #8c74ff; --primary-ink: #120d2b; --primary-soft: #2a2350; --good: #3fd08e; --good-soft: #143426;
    --warn: #f0b04a; --warn-soft: #3a2b10; --bad: #ff6b7a; --bad-soft: #3d1a20; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.3);
    --series-1: #3987e5; --series-2: #d95926;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #110f1c; --surface: #1b1829; --surface-2: #242036; --text: #f1eefc; --muted: #a29dbd; --border: #2f2a46;
  --primary: #8c74ff; --primary-ink: #120d2b; --primary-soft: #2a2350; --good: #3fd08e; --good-soft: #143426;
  --warn: #f0b04a; --warn-soft: #3a2b10; --bad: #ff6b7a; --bad-soft: #3d1a20; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.3);
  --series-1: #3987e5; --series-2: #d95926;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden, [hidden] { display: none !important; }

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 750; font-size: 1.1rem; }
.topnav { display: flex; gap: 6px; align-items: center; }
.topnav .lang { width: auto; padding: 6px 10px; font-size: .875rem; border-radius: 10px; max-width: 130px; }
.demo-banner { background: var(--warn-soft); color: var(--warn); font-size: .82rem; text-align: center; padding: 6px 16px; }
main { max-width: 980px; margin: 0 auto; padding: 20px 16px 80px; outline: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card.flat { box-shadow: none; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.btn {
  appearance: none; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 650; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .06s ease, filter .15s ease; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { padding: 7px 12px; font-size: .875rem; border-radius: 10px; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=date], input[type=number], input[type=text], input[type=url], input[type=password], input[type=search], input[type=email], input:not([type]), textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); }

/* home */
.hero { text-align: center; padding: 28px 0 8px; }
.hero p { max-width: 560px; margin: 0 auto 20px; color: var(--muted); font-size: 1.05rem; }
.finder { max-width: 520px; margin: 0 auto; }
.finder form { display: flex; gap: 8px; }
.finder input { font-size: 1.05rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 750; margin-bottom: 8px; }

/* video page */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.primary { background: var(--primary-soft); color: var(--primary); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.prompt { background: var(--primary-soft); border-radius: 12px; padding: 12px 14px; color: var(--text); border-left: 4px solid var(--primary); }
.embed { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; margin: 12px 0; }
.embed iframe, .embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.embed button { position: absolute; inset: 0; background: rgba(0,0,0,.25); border: 0; color: #fff; font-size: 3rem; cursor: pointer; }
.live-hint { font-size: .85rem; margin-top: 6px; min-height: 1.3em; }
.live-hint.bad { color: var(--bad); }
.live-hint.good { color: var(--good); }

.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.comment:first-child { border-top: 0; }
.avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; color: #fff; text-transform: uppercase; }
.comment .meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment .name { font-weight: 650; }
.comment .text { margin-top: 2px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.tab { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab[aria-selected=true] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.stat .v { font-size: 1.6rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .8rem; }
.share { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.share canvas { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 6px; border: 1px solid var(--border); }
.code-big { font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.video-list { display: grid; gap: 10px; }
.video-item { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.video-item:hover { border-color: var(--primary); }
.vnum { flex: 0 0 52px; height: 52px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.person { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.person:first-child { border-top: 0; }
.rank { font-weight: 800; color: var(--muted); font-size: 1.05rem; padding-top: 6px; text-align: center; }
.scorebar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; width: 120px; display: inline-block; vertical-align: middle; }
.scorebar > i { display: block; height: 100%; background: var(--good); border-radius: 99px; }
.quote { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-size: .93rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.actions select, .actions input { width: auto; padding: 6px 10px; font-size: .85rem; border-radius: 10px; }
.actions input { flex: 1 1 160px; }
.blur { filter: blur(5px); cursor: pointer; user-select: none; }
.empty { text-align: center; color: var(--muted); padding: 28px 8px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.toolbar input { flex: 1 1 200px; width: auto; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); transition: transform .25s ease, opacity .25s ease; opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; max-width: calc(100vw - 32px); width: max-content; z-index: 50; font-weight: 550; box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.good { background: var(--good); color: #fff; }
.modal { position: fixed; inset: 0; background: rgba(10, 8, 20, .55); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal > .card { width: 100%; max-width: 460px; margin: 0; }
.modal video { width: 100%; border-radius: 12px; background: #000; }

@media (max-width: 560px) {
  .share { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .share .row { justify-content: center; }
  .card { padding: 16px; }
  .finder form { flex-direction: column; }
  .brand span { font-size: 1rem; }
}

/* keep the top bar inside small phones in every language */
.brand { min-width: 0; flex: 0 1 auto; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topnav { flex: 0 1 auto; min-width: 0; }
.topnav .btn { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.lang-bar { max-width: 980px; margin: 0 auto; padding: 12px 16px 0; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.lang-bar .lang { width: auto; max-width: 220px; padding: 7px 12px; font-size: .9rem; border-radius: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero h1, .hero p, .step { overflow-wrap: anywhere; }


/* ---------- landing: join cards ---------- */
.center { text-align: center; }
.join { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 22px 0 10px; }
.join-card { border-radius: 20px; padding: 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.join-card h2 { margin: 6px 0 10px; font-size: 1.3rem; }
.join-card ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.join-card li { padding-left: 26px; position: relative; color: var(--muted); }
.join-card li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--good); }
.join-card.creator { background: linear-gradient(145deg, #5b3df5, #8a3df5 60%, #c2368f); color: #fff; border-color: transparent; }
.join-card.creator li { color: rgba(255,255,255,.88); }
.join-card.creator li::before { color: #fff; }
.join-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-soft); }
.join-card.creator .join-icon { background: rgba(255,255,255,.18); }
.btn-light { background: #fff; color: #5b3df5; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 24px auto; }
.auth h1 { font-size: 1.5rem; margin: 14px 0 6px; }
.role-switch { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.role-switch a { text-align: center; padding: 8px 6px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 650; font-size: .9rem; white-space: nowrap; }
.role-switch a[aria-selected=true] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.btn-social { background: var(--surface); color: var(--text); border-color: var(--border); margin-bottom: 10px; }
.btn-social b { font-size: 1.1rem; }
.btn-social.google b { color: #4285f4; }
.btn-social.apple { background: #000; color: #fff; border-color: #000; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 6px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.alert { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.member-line { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.badge.member { background: var(--primary-soft); color: var(--primary); padding: 1px 6px; }

/* ---------- owner panel ---------- */
.owner-tabs .tab { text-decoration: none; }
.user-row { grid-template-columns: 40px 1fr; }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; border-top: 1px solid var(--border); }
.switch:first-of-type { border-top: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slider { flex: 0 0 42px; height: 24px; border-radius: 99px; background: var(--border); position: relative; transition: background .15s; margin-top: 1px; }
.slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--good); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.provider { border-top: 1px solid var(--border); }
.provider summary { list-style: none; cursor: pointer; }
.provider summary::-webkit-details-marker { display: none; }
.provider summary .switch { border-top: 0; }
.provider-body { padding: 0 0 12px 54px; }
.copy-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.copy-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--surface-2); padding: 6px 10px; border-radius: 8px; font-size: .82rem; }
.sticky-save { position: sticky; bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .provider-body { padding-left: 0; } }

/* ================= dashboards (creator + owner) ================= */
body.console-mode main { max-width: 1320px; padding-top: 0; }
.console { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { min-width: 0; position: sticky; top: 72px; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; max-height: calc(100vh - 80px); }
.side nav { display: grid; gap: 2px; }
.nav-h { font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-item:hover { background: var(--surface-2); }
.nav-item.on { background: var(--primary-soft); color: var(--primary); }
.nav-item span { flex: 1; }
.ic { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-badge { background: var(--warn); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 7px; }
.side-foot { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--border); padding: 12px 8px 0; margin-top: 8px; }
.side-foot b { font-size: .9rem; }
.icon-btn { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--text); }
.console-main { min-width: 0; padding-top: 20px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { margin: 2px 0 0; font-size: 1.7rem; letter-spacing: -.01em; }
.eyebrow { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.eyebrow .ic { width: 15px; height: 15px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 12px; position: relative; overflow: hidden; min-height: 118px; }
.kpi-l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi-v { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.kpi-d { font-size: .8rem; font-weight: 650; }
.kpi-d.good { color: var(--good); } .kpi-d.bad { color: var(--bad); } .kpi-d.flat { color: var(--muted); font-weight: 500; }
.kpi-d .muted { font-weight: 500; }
.kpi .spark { position: absolute; right: 12px; top: 14px; opacity: .9; }
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; color: var(--text); text-decoration: none; font-size: .85rem; line-height: 1.3; }
a.mini:hover { outline: 1px solid var(--primary); }
.mini-v { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2 > .card { margin: 0 0 16px; min-width: 0; }
.chart-card h2 { margin-bottom: 2px; }

/* charts */
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 8px 0 4px; }
.chart-legend i, .chart-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-box { position: relative; width: 100%; }
.chart-box svg { display: block; overflow: visible; }
.chart-box .grid { stroke: var(--border); stroke-width: 1; }
.chart-box .grid.base { stroke: color-mix(in srgb, var(--muted) 45%, transparent); }
.chart-box .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-box .area { opacity: .12; }
.chart-box .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-box .hit { cursor: crosshair; }
.chart-empty { position: absolute; inset: 0 0 26px 34px; display: grid; place-items: center; color: var(--muted); font-size: .9rem; pointer-events: none; }
.chart-tip { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 10px; padding: 8px 10px; font-size: .8rem; min-width: 150px; pointer-events: none; }
.chart-tip div { display: flex; align-items: center; gap: 2px; margin-top: 3px; color: var(--muted); }
.chart-tip span { margin-left: auto; padding-left: 12px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 6px; font-size: .82rem; }
.chart-table summary { cursor: pointer; color: var(--muted); }
.chart-table .table-wrap { max-height: 220px; overflow: auto; margin-top: 6px; }
.chart-table table { width: 100%; border-collapse: collapse; }
.chart-table th, .chart-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--border); }

/* tables */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl .ck { width: 34px; }
.tbl .ck input { width: 18px; height: 18px; accent-color: var(--primary); }
.tbl .act { text-align: right; }
.row-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.table-card { padding-bottom: 8px; }
.tbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tbar input { flex: 1 1 220px; width: auto; }
.tbar select { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip b { color: var(--text); margin-left: 4px; }
.chip[aria-pressed=true] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed=true] b { color: var(--bg); }
.bulk { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--primary-soft); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; position: sticky; top: 64px; z-index: 2; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 2px 2px; }
.pager .btn[disabled] { opacity: .45; cursor: default; }

/* owner extras */
.pending-card { border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); background: linear-gradient(0deg, var(--surface), var(--surface)) padding-box, var(--warn-soft); }
.pending-card h2 { margin: 0; font-size: 1.1rem; }
.pend-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pend-row:first-of-type { margin-top: 8px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.feed li:first-child { border-top: 0; }
.feed time { white-space: nowrap; }
.fd { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: 0 0 10px; background: var(--muted); }
.fd.b { background: var(--series-1); } .fd.v { background: var(--primary); } .fd.g { background: var(--good); } .fd.c { background: var(--muted); } .fd.r { background: var(--bad); }
.feed-q { color: var(--muted); font-size: .85rem; margin-top: 2px; overflow-wrap: anywhere; }

/* creator video cards */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.vcard { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); background: var(--surface); transition: border-color .15s, transform .15s; }
.vcard:hover { border-color: var(--primary); transform: translateY(-1px); }
.vtitle { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.vstats { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); margin-top: auto; padding-top: 6px; }
.vstats b { color: var(--text); }
.vnum.sm { flex: 0 0 auto; width: auto; height: auto; padding: 4px 10px; font-size: .9rem; border-radius: 8px; }
.empty-hero { text-align: center; padding: 28px 12px; }
.empty-hero .big { font-size: 2.6rem; }
.empty-hero p { color: var(--muted); max-width: 460px; margin: 6px auto 16px; }

/* loading */
.skel-wrap { display: grid; gap: 12px; }
.skel { height: 64px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

@media (max-width: 1100px) {
  .kpis, .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .console { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: sticky; top: 57px; z-index: 5; max-height: none; padding: 8px 0; margin: 0 -16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .side nav { display: flex; overflow-x: auto; gap: 4px; padding: 0 16px; scrollbar-width: none; }
  .nav-h, .side-foot { display: none; }
  .nav-item { white-space: nowrap; padding: 8px 12px; font-size: .88rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-h h1 { font-size: 1.4rem; }
}
@media (max-width: 640px) {
  .kpi-v { font-size: 1.6rem; }
  .kpi .spark { display: none; }
  .tbl.users thead { display: none; }
  .tbl.users, .tbl.users tbody, .tbl.users tr, .tbl.users td { display: block; width: 100%; }
  .tbl.users tr { position: relative; border-bottom: 1px solid var(--border); padding: 10px 0 10px 34px; }
  .tbl.users td { border: 0; padding: 3px 0; text-align: left; }
  .tbl.users td.ck { position: absolute; left: 0; top: 14px; width: auto; }
  .tbl.users td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .8rem; }
  .tbl.users td.num { text-align: left; }
  .tbl.users .act { text-align: left; padding-top: 6px; }
  .row-acts { justify-content: flex-start; }
  .bulk { top: 108px; }
}

/* ---------- premium login / sign-up ---------- */
body.auth-mode main { max-width: 1120px; padding-top: 24px; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); min-height: 620px; }
.auth-brand { --ab-1: #4a2be0; --ab-2: #6b3ff2; --ab-3: #9a2f9c;
  position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 36px 40px; display: flex; flex-direction: column; gap: 28px;
  background: linear-gradient(150deg, var(--ab-1) 0%, var(--ab-2) 55%, var(--ab-3) 100%); }
:root[data-theme="dark"] .auth-brand { --ab-1: #2b1a8f; --ab-2: #43249f; --ab-3: #6b1f6f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-brand { --ab-1: #2b1a8f; --ab-2: #43249f; --ab-3: #6b1f6f; } }
.auth-brand .glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; }
.auth-brand .g1 { width: 340px; height: 340px; background: #22c07a; right: -120px; top: -120px; opacity: .32; }
.auth-brand .g2 { width: 420px; height: 420px; background: #ff7ab8; left: -180px; bottom: -200px; opacity: .3; }
.ab-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 750; font-size: 1.1rem; }
.ab-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; color: #fff; }
.ab-copy p { margin: 0 0 22px; color: rgba(255,255,255,.86); font-size: 1.02rem; max-width: 34ch; }
.ab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ab-list li { display: flex; gap: 12px; align-items: center; font-weight: 550; }
.ab-list .tick { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: .8rem; font-weight: 800; }
.ab-sample { margin: auto 0 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); border-radius: 18px; padding: 16px; max-width: 400px; }
.ab-av { flex: 0 0 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ab-2); display: grid; place-items: center; font-weight: 800; }
.ab-chip { font-size: .72rem; background: rgba(255,255,255,.2); border-radius: 99px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }
.ab-text { font-size: .92rem; color: rgba(255,255,255,.92); margin-top: 3px; }
.ab-score { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); font-size: .82rem; color: rgba(255,255,255,.8); }
.ab-score b { font-size: 1.35rem; color: #fff; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 36px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.75rem; letter-spacing: -.02em; margin: 22px 0 4px; }
.auth-card .lead { margin: 0 0 22px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.seg a { text-align: center; padding: 9px 6px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 650; font-size: .9rem; white-space: nowrap; transition: background .15s, color .15s; }
.seg a:hover { color: var(--text); }
.seg a[aria-current=page] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
:root[data-theme="dark"] .seg a[aria-current=page] { background: #3a3358; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg a[aria-current=page] { background: #3a3358; } }
.social { display: grid; gap: 10px; }
.social .btn-social { margin: 0; min-height: 46px; font-weight: 650; }
.btn-social.google:hover { border-color: var(--primary); }
:root[data-theme="dark"] .btn-social.apple { background: #fff; color: #000; border-color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-social.apple { background: #fff; color: #000; border-color: #fff; } }
.auth-card .or { margin: 18px 0; }
.auth-card .field { margin-bottom: 14px; }
.auth-card input { min-height: 46px; }
.btn-lg { min-height: 48px; font-size: 1rem; border-radius: 12px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle .slash { display: none; }
.pw-toggle[aria-pressed=true] .slash { display: inline; }
.pw-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter i { height: 4px; border-radius: 4px; background: var(--border); transition: background .2s; }
.pw-meter[data-level="1"] i:nth-child(1) { background: var(--bad); }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-level="3"] i { background: var(--good); }
.pw-text { min-height: 1.4em; margin-top: 4px; }
.pw-text .lvl-1 { color: var(--bad); } .pw-text .lvl-2 { color: var(--warn); } .pw-text .lvl-3 { color: var(--good); }
.field-error { display: block; color: var(--bad); font-size: .85rem; margin-top: 4px; }
.field-error:empty { display: none; }
input[aria-invalid=true] { border-color: var(--bad); }
input[aria-invalid=true]:focus { box-shadow: 0 0 0 3px var(--bad-soft); border-color: var(--bad); }
.caps { display: block; color: var(--warn); margin-top: 4px; }
.form-error { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 550; font-size: .92rem; }
.form-error[hidden] { display: none; }
.terms { margin: 12px 0 0; text-align: center; }
.switch-line { margin: 18px 0 0; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading { opacity: .85; cursor: progress; }
.btn.loading:not(:has(.spinner))::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .spinner, .btn.loading::before { animation-duration: 2s; } }
@media (max-width: 820px) {
  body.auth-mode main { padding: 12px 12px 60px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 20px; }
  .auth-brand { padding: 22px 22px 24px; gap: 14px; }
  .ab-logo { display: none; }
  .ab-copy h2 { font-size: 1.45rem; margin-bottom: 6px; }
  .ab-copy p { margin: 0; font-size: .95rem; }
  .ab-list, .ab-sample { display: none; }
  .auth-panel { padding: 22px 18px 28px; }
  .auth-card h1 { font-size: 1.5rem; margin-top: 18px; }
}
@media (max-width: 380px) { .seg a { font-size: .8rem; padding: 8px 2px; } }

/* ---------- reports ---------- */
.comment { position: relative; }
.flag-btn { position: absolute; top: 8px; right: 0; width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; opacity: .55; transition: opacity .15s, background .15s; }
.comment:hover .flag-btn, .flag-btn:focus-visible { opacity: 1; }
.flag-btn:hover { background: var(--bad-soft); color: var(--bad); }
.flag-btn.done { color: var(--bad); opacity: 1; cursor: default; }
.flag-btn.done svg path { fill: currentColor; }
@media (hover: none) { .flag-btn { opacity: .8; } }
.comment:has(.flag-btn) .grow { padding-right: 30px; }
.reasons { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.reason { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.reason:has(input:checked) { border-color: var(--bad); background: var(--bad-soft); }
.reason input { margin-top: 4px; accent-color: var(--bad); width: 18px; height: 18px; }
.reason > span { display: grid; }
.report-card { margin-bottom: 12px; }
.report-card .quote { margin: 12px 0 8px; padding: 10px 14px; border-left: 4px solid var(--bad); background: var(--surface-2); border-radius: 0 10px 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-card .notes { margin: 10px 0 0; padding-left: 18px; font-size: .9rem; color: var(--muted); }
.report-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.report-alert { display: block; text-decoration: none; background: var(--bad-soft); color: var(--bad); margin-bottom: 14px; }
.report-alert:hover { outline: 1px solid var(--bad); }

/* ---------- wallet & payouts ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.wallet-hero { --wh-1: #4a2be0; --wh-2: #7a3be6; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #fff; border-radius: 20px; padding: 24px 26px; margin-bottom: 12px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(34,192,122,.35) 0%, transparent 45%), linear-gradient(135deg, var(--wh-1), var(--wh-2)); box-shadow: var(--shadow); }
:root[data-theme="dark"] .wallet-hero { --wh-1: #2b1a8f; --wh-2: #4b2aa8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wallet-hero { --wh-1: #2b1a8f; --wh-2: #4b2aa8; } }
.wh-l { font-size: .85rem; font-weight: 650; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.wh-v { font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin: 4px 0 6px; }
.wh-s { font-size: .9rem; opacity: .9; }
.wh-a { display: grid; gap: 6px; justify-items: end; text-align: right; }
.wallet-hero .btn { background: #fff; color: #3b1fc9; min-width: 150px; }
.wallet-hero .btn:disabled { background: rgba(255,255,255,.35); color: rgba(255,255,255,.9); opacity: 1; cursor: not-allowed; }
.goal { margin: -4px 0 14px; }
.goal-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--good); border-radius: 8px; }
.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.why li { display: flex; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.ledger li:first-child { border-top: 0; }
.ledger li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.ledger .amt { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .amt.pos { color: var(--good); }
.ledger-wrap { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; }
.modal > .card.wide { max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal h3 { font-size: .95rem; margin: 16px 0 8px; }
.modal .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal .mini { flex-direction: column; align-items: flex-start; gap: 2px; }
.methods { border: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.methods legend { font-weight: 650; margin-bottom: 6px; padding: 0; }
.method { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; cursor: pointer; font-weight: 600; font-size: .88rem; text-align: center; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.method:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); }
.grid-2.tight { gap: 0 16px; margin-top: 12px; }
.grid-2.tight select { width: 100%; }
.payout-card { margin-bottom: 12px; }
.po-amt { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.po-to { margin: 12px 0 8px; }
.po-to code { font-size: .92rem; white-space: pre-wrap; }
.po-check { font-size: .88rem; background: var(--good-soft); color: var(--text); border-radius: 10px; padding: 8px 12px; }
.po-check.risky { background: var(--warn-soft); }
.payout-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.linkish { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; }
.payout-alert { display: block; text-decoration: none; background: var(--good-soft); color: var(--text); margin-bottom: 14px; }
.payout-alert:hover { outline: 1px solid var(--good); }
@media (max-width: 640px) {
  .wallet-hero { padding: 20px; }
  .wh-a { justify-items: stretch; text-align: left; width: 100%; }
  .wallet-hero .btn { width: 100%; }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2.tight { grid-template-columns: minmax(0, 1fr); }
}
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { flex: 1; min-width: 0; width: auto; }
.inline-form .btn { flex: 0 0 auto; }

/* ---------- subscriptions ---------- */
.promo-ribbon { display: block; text-align: center; text-decoration: none; color: #fff; font-size: .95rem; padding: 10px 16px; border-radius: 14px; margin-bottom: 10px;
  background: linear-gradient(90deg, #d6336c, #f08c00); box-shadow: var(--shadow); }
.promo-ribbon.launch { background: linear-gradient(90deg, #4a2be0, #12a06a); }
.promo-ribbon:hover { filter: brightness(1.06); }
.pr-tag { display: inline-block; background: rgba(255,255,255,.22); border-radius: 99px; padding: 1px 10px; font-weight: 750; margin-right: 4px; }
.price-line { margin: 0 0 12px; font-size: .95rem; }
.price-line s { opacity: .65; }
.plan-alert { display: block; text-decoration: none; background: var(--warn-soft); color: var(--text); margin-bottom: 14px; }
.plan-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: 20px; padding: 22px 26px; margin-bottom: 12px; color: #fff;
  background: linear-gradient(135deg, #0f8a5a, #1c6fd1); box-shadow: var(--shadow); }
.plan-hero.off { background: linear-gradient(135deg, #8a2d3b, #b85a1e); }
:root[data-theme="dark"] .plan-hero { background: linear-gradient(135deg, #0b5c3d, #154f96); }
:root[data-theme="dark"] .plan-hero.off { background: linear-gradient(135deg, #5e1f29, #7a3c14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-hero { background: linear-gradient(135deg, #0b5c3d, #154f96); } :root:not([data-theme="light"]) .plan-hero.off { background: linear-gradient(135deg, #5e1f29, #7a3c14); } }
.ph-v { font-size: 1.7rem; font-weight: 800; margin: 4px 0; }
.ph-price { display: grid; justify-items: end; text-align: right; gap: 2px; }
.ph-price b { font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ph-price s { opacity: .75; }
.ph-price span { font-size: .85rem; opacity: .9; }
.ph-tag { background: rgba(255,255,255,.22); border-radius: 99px; padding: 2px 10px; font-weight: 700; }
.pay-steps { margin: 0; padding-left: 22px; display: grid; gap: 18px; }
.pay-steps > li::marker { font-weight: 800; color: var(--primary); }
.copy-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.copy-inline code { background: var(--surface-2); padding: 3px 8px; border-radius: 8px; }
.pay-note { margin-top: 6px; white-space: pre-wrap; }
.upi-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.upi-box canvas { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.pay-form { margin-top: 10px; max-width: 420px; }
.only-phone { display: none; }
@media (hover: none) and (pointer: coarse) { .only-phone { display: inline-flex; } }
@media (max-width: 640px) { .ph-price { justify-items: start; text-align: left; } .plan-hero { padding: 20px; } }

/* ---------- landing page ---------- */
html:has(body.landing-mode), body.landing-mode { overflow-x: clip; }
body.landing-mode main { max-width: 1180px; padding: 8px 20px 0; }
body.landing-mode .lang-bar { max-width: 1180px; padding: 12px 20px 0; }
body.landing-mode .lang-bar .lang { border-radius: 999px; background: var(--surface); }
.landing-mode .promo-ribbon { border-radius: 999px; max-width: 760px; margin: 4px auto 10px; }
.lp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 36px 0 56px; }
.lp-hero::before { content: ""; position: absolute; top: -40px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(600px 380px at 15% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
              radial-gradient(520px 360px at 85% 40%, color-mix(in srgb, #22c07a 13%, transparent), transparent 70%),
              radial-gradient(420px 300px at 60% 95%, color-mix(in srgb, #c2368f 10%, transparent), transparent 70%); }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c07a; box-shadow: 0 0 0 4px color-mix(in srgb, #22c07a 25%, transparent); flex: 0 0 auto; }
.lp-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 16px; font-weight: 800; overflow-wrap: anywhere; }
.lp-accent { color: var(--primary); }
.lp-sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 26px; }
.lp-finder { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 18px; max-width: 560px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(28,24,48,.04), 0 18px 40px -12px color-mix(in srgb, var(--primary) 30%, transparent); }
.lp-finder:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft), 0 18px 40px -12px color-mix(in srgb, var(--primary) 35%, transparent); }
.lp-finder > svg { color: var(--muted); flex: 0 0 auto; }
.lp-finder input { border: 0; background: transparent; padding: 10px 4px; font-size: 1.02rem; min-width: 0; flex: 1; box-shadow: none !important; }
.lp-finder .btn { border-radius: 13px; padding: 12px 20px; flex: 0 0 auto; }
.lp-finder-alt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.lp-finder-alt .btn { border-radius: 999px; background: var(--surface); }
#findMsg { margin: 10px 0 0; min-height: 1.4em; }
.lp-err { color: var(--bad); font-weight: 600; }
.lp-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.lp-hero-cta.center { justify-content: center; }
.lp-btn-lg { padding: 13px 22px; border-radius: 14px; font-size: 1rem; }
.btn-ghost.lp-btn-lg { background: var(--surface); }

/* hero mockup */
.lp-art { position: relative; display: grid; place-items: center; min-height: 540px; text-align: left; }
.lp-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; filter: blur(50px); opacity: .55;
  background: conic-gradient(from 200deg, #5b3df5, #22c07a, #c2368f, #5b3df5); }
.lp-phone { position: relative; width: 300px; max-width: 100%; padding: 14px 12px 12px; border-radius: 40px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 30px 60px -20px rgba(28,24,48,.35), 0 0 0 8px color-mix(in srgb, var(--surface) 60%, transparent); transform: rotate(-2deg); }
.lp-notch { width: 90px; height: 22px; border-radius: 999px; background: var(--text); opacity: .9; margin: 0 auto 12px; }
.lp-video { position: relative; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffb36b, transparent 55%), linear-gradient(135deg, #5b3df5, #c2368f); }
.lp-play { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.25); backdrop-filter: blur(6px); padding-left: 3px; }
.lp-vtag, .lp-vcode { position: absolute; bottom: 8px; font-size: .7rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 999px; }
.lp-vtag { left: 8px; } .lp-vcode { right: 8px; font-family: ui-monospace, monospace; letter-spacing: .04em; }
.lp-vtitle { font-weight: 750; font-size: .92rem; margin: 10px 4px 8px; }
.lp-cmt { display: flex; gap: 9px; padding: 9px; border-radius: 14px; background: var(--surface-2); margin-bottom: 7px; font-size: .8rem; line-height: 1.35; }
.lp-cmt b { font-size: .8rem; }
.lp-cmt p { margin: 1px 0 5px; color: var(--muted); }
.lp-av { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 750; display: grid; place-items: center; flex: 0 0 auto; font-size: .8rem; }
.lp-blocked { background: var(--bad-soft); }
.lp-blocked p { margin-bottom: 0; }
.lp-blocked b { color: var(--bad); }
.lp-av-x { background: var(--bad); }
.lp-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.lp-chip.good { background: var(--good-soft); color: var(--good); }
.lp-chip.idea { background: var(--warn-soft); color: var(--warn); }
.lp-input { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 7px 7px 7px 14px; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.lp-input span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
.lp-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 16px 36px -14px rgba(28,24,48,.35); font-size: .82rem; line-height: 1.25; animation: lpFloat 6s ease-in-out infinite; }
.lp-float small { display: block; color: var(--muted); font-size: .74rem; }
.lp-score { top: 70px; right: -6px; }
.lp-qrcard { bottom: 60px; left: -10px; animation-delay: -3s; }
.lp-qrcard > svg { color: var(--primary); }
.lp-ring { --p: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--good) calc(var(--p) * 1%), var(--surface-2) 0); }
.lp-ring span { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; color: var(--good); font-size: .9rem; }
@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none; } }

/* numbers strip */
.lp-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: 22px; overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.lp-strip > div { background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.lp-strip b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  background: linear-gradient(120deg, var(--primary), #c2368f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-strip span { color: var(--muted); font-size: .9rem; }

/* sections */
.lp-section { padding: 80px 0 0; }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.lp-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.12; }
.lp-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.lp-kicker.light { color: #b9a9ff; }
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.lp-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lp-step h3 { font-size: 1.2rem; margin-top: 14px; }
.lp-step p { color: var(--muted); font-size: .95rem; flex: 1; overflow-wrap: anywhere; }
.lp-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), #c2368f); }
.lp-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.lp-way { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); color: var(--primary); }
.lp-way span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lp-way small { color: var(--muted); font-size: .7rem; }
.lp-way b { color: var(--text); font-size: .85rem; }
.lp-mini-cmt, .lp-mini-rank { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: .88rem; margin-top: 8px; }
.lp-mini-cmt svg { color: var(--primary); flex: 0 0 auto; }
.lp-mini-rank { justify-content: space-between; }
.lp-mini-rank span { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.lp-mini-rank svg { color: var(--warn); }
.lp-mini-rank b { color: var(--good); background: var(--good-soft); padding: 2px 10px; border-radius: 999px; }

/* feature bento */
.lp-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-feature { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); overflow: hidden; }
.lp-feature h3 { font-size: 1.15rem; margin-top: 14px; }
.lp-feature p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.lp-f-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; align-items: center; }
.lp-f-wide > .lp-ficon, .lp-f-wide > h3, .lp-f-wide > p { grid-column: 1; }
.lp-f-wide > .lp-demo { grid-column: 2; grid-row: 1 / span 3; }
.lp-ficon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; }
.lp-f-shield .lp-ficon { background: var(--good-soft); color: var(--good); }
.lp-f-score .lp-ficon { background: var(--bad-soft); color: var(--bad); }
.lp-demo { display: grid; gap: 10px; }
.lp-demo-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 16px; font-size: .92rem; border: 1px solid var(--border); background: var(--surface-2); }
.lp-demo-row.bad { background: var(--bad-soft); border-color: transparent; }
.lp-mask { text-decoration: line-through; color: var(--muted); }
.lp-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.lp-pill.bad { background: var(--bad); color: #fff; }
.lp-pill.good { background: var(--good); color: #fff; }
.lp-meter { height: 10px; border-radius: 999px; background: var(--surface-2); margin-top: 18px; overflow: hidden; }
.lp-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f0b04a, var(--good)); }
.lp-meter-l { display: flex; justify-content: space-between; font-size: .85rem; margin-top: 6px; color: var(--muted); }
.lp-meter-l b { color: var(--good); }
.lp-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 18px; }
.lp-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 40%, transparent)); }

/* creator band */
.lp-creator-band { margin-top: 80px; border-radius: 32px; padding: 52px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; color: #fff;
  background: radial-gradient(500px 300px at 90% 10%, rgba(194,54,143,.45), transparent 70%), radial-gradient(500px 320px at 0% 100%, rgba(34,192,122,.25), transparent 70%), linear-gradient(135deg, #1a1240, #2d1a7a);
  box-shadow: 0 30px 60px -30px rgba(45,26,122,.6); }
.lp-creator-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.03em; }
.lp-creator-band > .lp-cb-copy > p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.lp-creator-band .btn-light { margin-top: 8px; }
.lp-checks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; }
.lp-checks svg { flex: 0 0 auto; margin-top: 2px; color: var(--good); }
.lp-creator-band .lp-checks svg { color: #6ee7b0; }
.lp-cb-cards { display: grid; gap: 12px; }
.lp-cb-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.lp-cb-card .lp-ficon { background: rgba(255,255,255,.14); color: #fff; }
.lp-cb-card small { display: block; color: #b9a9ff; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.lp-cb-card b { display: block; font-size: 1.05rem; margin: 2px 0 4px; }
.lp-cb-card p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }

/* join cards */
.lp-join { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto 16px; }
.lp-join-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lp-join-card h3 { font-size: 1.5rem; margin: 14px 0 4px; }
.lp-join-card .lp-checks { flex: 1; }
.lp-join-card.featured { color: #fff; border-color: transparent; background: linear-gradient(150deg, #5b3df5, #8a3df5 55%, #c2368f); box-shadow: 0 24px 50px -20px rgba(91,61,245,.6); }
.lp-join-card.featured p { color: rgba(255,255,255,.85); }
.lp-join-card.featured .lp-ficon { background: rgba(255,255,255,.18); color: #fff; }
.lp-join-card.featured .lp-checks svg { color: #a7f3d0; }
.lp-badge { position: absolute; top: 22px; right: 22px; font-size: .74rem; font-weight: 750; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }

/* final call + footer */
.lp-final { margin-top: 80px; text-align: center; padding: 56px 24px; border-radius: 32px; color: #fff;
  background: radial-gradient(400px 220px at 50% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #5b3df5, #c2368f); }
.lp-final h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.03em; max-width: 640px; margin: 0 auto 10px; }
.lp-final p { color: rgba(255,255,255,.85); }
.lp-btn-glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.lp-footer { display: flex; flex-direction: column; gap: 18px; padding: 36px 0 44px; margin-top: 40px; border-top: 1px solid var(--border); }
.lp-foot-top, .lp-foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-footer .lp-legal { gap: 8px 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.lp-footer .lp-legal a { font-size: .85rem; }
.lp-nz { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.lp-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-footer nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.lp-footer nav a:hover { color: var(--text); }

@media (max-width: 960px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; text-align: center; }
  .lp-sub, .lp-finder { margin-left: auto; margin-right: auto; }
  .lp-finder-alt, .lp-hero-cta { justify-content: center; }
  .lp-art { min-height: 500px; }
  .lp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps, .lp-bento { grid-template-columns: minmax(0, 1fr); }
  .lp-f-wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .lp-f-wide > .lp-demo { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .lp-creator-band { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
}
@media (max-width: 640px) {
  body.landing-mode main { padding: 4px 16px 0; }
  body.landing-mode .lang-bar { padding: 10px 16px 0; }
  .lp-eyebrow { font-size: .78rem; text-align: left; }
  .lp-hero h1 { margin-top: 16px; }
  .lp-sub { font-size: 1rem; }
  .lp-finder { flex-wrap: wrap; padding: 8px; }
  .lp-finder > svg { display: none; }
  .lp-finder input { flex: 1 1 100%; padding: 10px 10px; }
  .lp-finder .btn { flex: 1 1 100%; }
  .lp-hero-cta .btn { flex: 1 1 100%; }
  .lp-art { min-height: 0; padding: 20px 0 30px; }
  .lp-phone { width: 270px; }
  .lp-score { right: 0; top: 30px; }
  .lp-qrcard { left: 0; bottom: 96px; }
  .lp-float { padding: 8px 10px 8px 8px; font-size: .75rem; }
  .lp-strip > div { padding: 16px; }
  .lp-strip b { font-size: 1.6rem; }
  .lp-strip span { font-size: .82rem; }
  .lp-section { padding-top: 56px; }
  .lp-head { margin-bottom: 24px; }
  .lp-join { grid-template-columns: minmax(0, 1fr); }
  .lp-join-card { padding: 24px; }
  .lp-creator-band, .lp-final { margin-top: 56px; border-radius: 26px; }
  .lp-final { padding: 40px 20px; }
  .lp-footer { text-align: center; }
  .lp-foot-top, .lp-foot-bottom { flex-direction: column; justify-content: center; }
  .lp-footer nav { justify-content: center; }
}

/* ---------- inline line icons (replace emoji) ---------- */
.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; margin-inline-end: .38em; }
.i.i-end { margin-inline-end: 0; margin-inline-start: .3em; }
.btn > .i, .badge > .i, .topnav .i { margin-inline-end: 0; }
.badge.good .i, .comment .meta .i, .live-hint.good .i { color: var(--good, #15935b); }
.empty-hero .big { line-height: 1; color: var(--primary); }
.empty-hero .big .i { margin: 0; width: 1em; height: 1em; stroke-width: 1.5; }
.lang-bar label { display: inline-flex; color: var(--muted); }
.lang-bar label .i { margin: 0; }
.ab-list .tick .i { margin: 0; }
