/* ==========================================================
   One View Player — site, account and admin styles
   Quiet, dark, cinematic. Neutral greys, one accent (amber,
   the TV app's brand colour) used sparingly: primary buttons,
   active states, small highlights. No gradients, no glows.
   No build step; system fonts (no external requests).
   ========================================================== */

:root {
  --bg: #0a0a0b;
  --bg-1: #0f0f11;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --surface-3: #242428;

  --amber: #ffc24b;
  --amber-hover: #ffcd6b;
  --on-accent: #141006;

  --text-hi: #f5f5f7;
  --text: #c8c8cd;
  --text-dim: #8e8e94;
  --text-faint: #5f5f66;

  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --ok: #32d74b;
  --warn: #ffb340;
  --err: #ff5a4f;
  --info: #64a8ff;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--text-hi); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--text-hi); font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
small, .small { font-size: 13.5px; }
::selection { background: rgba(255, 194, 75, .3); }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.hi { color: var(--text-hi); }
.accent { color: var(--amber); }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .err-t { color: var(--err); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-s { max-width: 760px; }
.container-xs { max-width: 480px; }

/* ---------------- icon ---------------- */
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.i-lg { width: 24px; height: 24px; }
.i-xl { width: 36px; height: 36px; }

/* ---------------- brand ---------------- */
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--text-hi); font: 600 16px/1 var(--font-display); letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--amber); }
.brand .b-sub { color: var(--text-dim); font-weight: 500; }

/* ---------------- top bar ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, .82);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 20px; height: 60px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 24px; }
.nav a { white-space: nowrap; color: var(--text-dim); padding: 6px 12px; font-size: 14px; font-weight: 500; text-decoration: none; transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--text-hi); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; gap: 2px; }
.lang-switch a { padding: 4px 7px; font-size: 12.5px; font-weight: 600; color: var(--text-faint); text-decoration: none; border-radius: 6px; }
.lang-switch a.on, .lang-switch a:hover { color: var(--text-hi); }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) { .header-right .hide-m { display: none; } }
@media (min-width: 961px) { .menu-btn { display: none !important; } }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px;
  background: var(--surface-2); color: var(--text-hi);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font: 500 15px/1.2 var(--font); cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn-primary { background: var(--amber); color: var(--on-accent); border-color: transparent; font-weight: 600; }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--text-hi); }
.btn-outline { background: transparent; }
.btn-light { background: var(--text-hi); color: #0a0a0b; border-color: transparent; font-weight: 600; }
.btn-light:hover { background: #fff; }
.btn-danger { background: rgba(255, 90, 79, .1); color: #ff8a82; border-color: rgba(255, 90, 79, .3); }
.btn-danger:hover { background: rgba(255, 90, 79, .18); }
.btn-ok { background: rgba(50, 215, 75, .1); color: #7fe691; border-color: rgba(50, 215, 75, .3); }
.btn-ok:hover { background: rgba(50, 215, 75, .18); }
.btn-sm { min-height: 32px; padding: 5px 13px; font-size: 13.5px; }
.btn-lg { min-height: 48px; padding: 12px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-icon { width: 38px; min-height: 38px; padding: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: inline; margin: 0; }
.link-arrow { color: var(--text-hi); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------------- card ---------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
/* legacy decorative classes: intentionally neutral */
.notch { }
.card-tone-amber, .card-tone-violet, .card-tone-cyan, .card-tone-rose, .card-tone-blue { background: var(--surface); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 17px; }
.stack > * + * { margin-top: 16px; }

/* ---------------- grid ---------------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-side { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------------- badge ---------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; background: rgba(255, 255, 255, .06); color: var(--text); white-space: nowrap; text-decoration: none; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-ok { color: #7fe691; background: rgba(50, 215, 75, .1); }
.b-warn { color: #ffc56b; background: rgba(255, 179, 64, .1); }
.b-err { color: #ff8a82; background: rgba(255, 90, 79, .1); }
.b-info { color: #9cc6ff; background: rgba(100, 168, 255, .1); }
.b-violet { color: #c4b5fd; background: rgba(167, 139, 250, .1); }
.b-dim { color: var(--text-dim); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-hi); font: 500 13px/1.7 var(--mono); }

/* ---------------- alerts ---------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); margin-bottom: 18px; font-size: 15px; }
.alert .i { margin-top: 3px; }
.alert-ok { border-color: rgba(50, 215, 75, .3); color: #c4f2cc; }
.alert-err { border-color: rgba(255, 90, 79, .35); color: #ffcdc9; }
.alert-warn { border-color: rgba(255, 179, 64, .35); color: #ffe2b5; }
.alert-info { border-color: var(--line-strong); color: var(--text); }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------------- forms ---------------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text-hi); font-size: 14px; }
.hint { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  background: var(--bg-1); color: var(--text-hi);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: 15px/1.4 var(--font);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238e8e94' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(255, 194, 75, .7); box-shadow: 0 0 0 3px rgba(255, 194, 75, .15); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input[type=file] { color: var(--text-dim); font-size: 14px; max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-hi); font-weight: 500; cursor: pointer; }
.mono-input { font-family: var(--mono) !important; letter-spacing: .04em; text-transform: uppercase; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; font-size: 14.5px; }
.check input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--amber); flex: none; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-1); cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card:hover { border-color: rgba(255, 255, 255, .26); }
.radio-card input { margin-top: 4px; accent-color: var(--amber); width: 17px; height: 17px; flex: none; }
.radio-card:has(input:checked) { border-color: var(--amber); background: rgba(255, 194, 75, .05); }
.radio-card .rc-body { flex: 1; min-width: 0; }
.radio-card .rc-title { color: var(--text-hi); font-weight: 600; }
.err-msg { color: #ff8a82; font-size: 13px; margin-top: 5px; }
.is-invalid { border-color: rgba(255, 90, 79, .6) !important; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 16px; }
legend { padding: 0 6px; color: var(--text-dim); font-weight: 500; font-size: 13.5px; }

/* ---------------- table ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--text-dim); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table td.actions { text-align: right; white-space: nowrap; }
.table .empty { text-align: center; color: var(--text-dim); padding: 36px; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.kv dt { color: var(--text-dim); font-size: 14px; }
.kv dd { margin: 0; color: var(--text-hi); word-break: break-word; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* ---------------- pagination ---------------- */
.pager { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; margin: 22px 0 6px; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--text); font-weight: 500; font-size: 14px; text-decoration: none; }
.pager a:hover { background: var(--surface-2); }
.pager .on { background: var(--surface-3); color: var(--text-hi); }
.pager .off { opacity: .35; }

/* ---------------- tabs / filter ---------------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 6px 14px; border-radius: 999px; color: var(--text-dim); font-size: 14px; font-weight: 500; text-decoration: none; }
.tabs a:hover { color: var(--text-hi); }
.tabs a.on { background: var(--surface-2); color: var(--text-hi); }
.tabs a .n { color: var(--text-faint); margin-left: 4px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search], .toolbar input[type=text] { max-width: 340px; }
.toolbar select { width: auto; min-width: 150px; }

/* ==========================================================
   Marketing pages
   ========================================================== */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section + .section { padding-top: 0; }
.section-h { max-width: 640px; margin: 0 0 48px; }
.section-h.center { margin-left: auto; margin-right: auto; }
.section-h p { color: var(--text-dim); font-size: 17px; margin: 0; }
.kicker { display: block; color: var(--amber); font-size: 14px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.display { font-size: 64px; line-height: 1.04; letter-spacing: -.035em; font-weight: 650; max-width: 900px; }
.lead { text-wrap: pretty; font-size: 20px; line-height: 1.5; color: var(--text-dim); max-width: 620px; }
@media (max-width: 760px) { .section { padding: 64px 0; } .display { font-size: 40px; } .lead { font-size: 18px; } h2 { font-size: 24px; } }

/* Hero */
.hero { padding: 104px 0 0; }
.hero .btn-row { margin-top: 32px; gap: 20px; }
.hero-note { margin-top: 20px; color: var(--text-faint); font-size: 14px; }
.hero-shot { margin-top: 72px; }
@media (max-width: 760px) { .hero { padding-top: 56px; } .hero-shot { margin-top: 44px; } }

/* Screenshots */
.shot { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-1); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Feature rows: text + screenshot */
.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { font-size: 34px; letter-spacing: -.025em; }
.feature-row p { color: var(--text-dim); font-size: 17px; }
.feature-row ul { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feature-row li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; gap: 28px; } .feature-row.flip > :first-child { order: 0; } .feature-row + .feature-row { margin-top: 80px; } }

/* Plain feature list (no boxes) */
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.feature-list > div { padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.feature-list h3 { font-size: 16px; margin-bottom: 6px; }
.feature-list p { color: var(--text-dim); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* Platforms */
.pf-table { border-top: 1px solid var(--line); }
.pf-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pf-row .pf-name { color: var(--text-hi); font-weight: 500; }
.pf-row .pf-os { color: var(--text-dim); font-size: 14.5px; }
.pf-row .pf-state { font-size: 14px; color: var(--text-faint); text-align: right; }
.pf-row.is-live .pf-state { color: var(--ok); }
.pf-row .pf-state a { color: var(--text-hi); }
@media (max-width: 560px) { .pf-row { grid-template-columns: 1fr auto; } .pf-row .pf-os { display: none; } }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.step { padding: 24px 0 0; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; color: var(--text-faint); font: 500 14px/1 var(--mono); margin-bottom: 18px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 15px; margin: 0; }
.step.card { background: none; border: 0; border-radius: 0; padding: 24px 0 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.price-table { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.price-col { display: flex; flex-direction: column; padding: 32px 28px; border-left: 1px solid var(--line); }
.price-col:first-child { border-left: 0; }
.price-col .p-name { color: var(--text-hi); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.price-col .p-flag { color: var(--amber); font-size: 12.5px; font-weight: 600; }
.price-col .p-price { font: 650 40px/1 var(--font-display); letter-spacing: -.03em; color: var(--text-hi); margin-top: 22px; }
.price-col .p-sub { color: var(--text-dim); font-size: 14px; margin-top: 8px; min-height: 22px; }
.price-col .btn { margin-top: 28px; }
.price-col.featured { background: var(--surface-2); }
.included { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 32px; list-style: none; padding: 0; margin: 32px 0 0; }
.included li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.included .i { color: var(--text-dim); margin-top: 3px; }
.price-note { color: var(--text-faint); font-size: 13.5px; margin-top: 24px; max-width: 760px; }
@media (max-width: 900px) { .price-table { grid-template-columns: repeat(2, minmax(0, 1fr)); } .price-col:nth-child(3) { border-left: 0; } .price-col:nth-child(n+3) { border-top: 1px solid var(--line); } .included { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .price-table { grid-template-columns: 1fr; } .price-col { border-left: 0; border-top: 1px solid var(--line); } .price-col:first-child { border-top: 0; } .included { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; color: var(--text-hi); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-dim); font-size: 20px; line-height: 1; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 32px 20px 0; color: var(--text-dim); }
.faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 15px; color: var(--text-dim); font-weight: 500; letter-spacing: 0; margin-bottom: 8px; }

/* Closing call to action */
.cta { padding: 40px 0 0; text-align: left; }
.cta h2 { font-size: 40px; letter-spacing: -.03em; max-width: 640px; }
.cta p { color: var(--text-dim); max-width: 560px; font-size: 17px; }
.cta .btn-row { margin-top: 28px; gap: 20px; }
.cta.card { background: none; border: 0; padding: 40px 0 0; }

/* Page title for inner pages */
.page-title { padding: 80px 0 40px; }
.page-title h1 { font-size: 48px; letter-spacing: -.03em; margin-bottom: 12px; }
.page-title p { color: var(--text-dim); font-size: 18px; max-width: 640px; margin: 0; }
@media (max-width: 760px) { .page-title { padding: 48px 0 28px; } .page-title h1 { font-size: 34px; } }

/* Legal text */
.prose { color: var(--text); font-size: 16px; line-height: 1.75; max-width: 760px; }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 21px; margin-top: 2em; }
.prose h3 { font-size: 17px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--line-strong); padding: 9px 10px 9px 0; text-align: left; vertical-align: top; }
.prose th { color: var(--text-hi); font-weight: 600; }
.prose.card { background: none; border: 0; padding: 0; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-nav { position: sticky; top: 92px; display: grid; gap: 0; }
.legal-nav a { padding: 7px 0; color: var(--text-dim); font-size: 14.5px; text-decoration: none; }
.legal-nav a.on, .legal-nav a:hover { color: var(--text-hi); }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; } }

/* ---------------- footer ---------------- */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 13px; font-weight: 600; color: var(--text-hi); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--text-hi); }
.footer-grid .brand { color: var(--text-hi); }
.footer-grid p a { color: var(--text-dim); text-decoration: underline; }
.footer-grid p { color: var(--text-faint); max-width: 320px; margin-top: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; color: var(--text-faint); font-size: 12.5px; }
.footer-bottom .lang-switch a { font-size: 12.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- auth pages ---------------- */
.auth-wrap { min-height: calc(100vh - 60px - 220px); display: flex; align-items: center; justify-content: center; padding: 64px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 32px 30px; }
.auth-card h1 { font-size: 26px; }
.auth-card .sub { color: var(--text-dim); margin-bottom: 24px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 13px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pair-code { font: 600 32px/1 var(--mono); letter-spacing: .16em; color: var(--text-hi); }

/* ---------------- app shell (account / admin) ---------------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.side-group { margin-bottom: 20px; }
.side-group > span { display: block; padding: 0 12px 6px; color: var(--text-faint); font-size: 12px; font-weight: 500; }
.side a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: var(--text-dim); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.side a:hover { color: var(--text-hi); }
.side a.on { background: var(--surface-2); color: var(--text-hi); }
.side a .count { margin-left: auto; background: var(--amber); color: var(--on-accent); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.content { padding: 32px 36px 64px; min-width: 0; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-h h1 { font-size: 26px; margin: 0; }
.page-h p { margin: 4px 0 0; color: var(--text-dim); }
.crumbs { font-size: 13.5px; color: var(--text-dim); margin-bottom: 6px; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; }
  .side-group { display: contents; }
  .side-group > span { display: none; }
  .side a { flex: none; }
  .content { padding: 24px 16px 56px; }
}

/* Stats */
.stat { padding: 20px 22px; }
.stat .s-label { color: var(--text-dim); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat .s-value { color: var(--text-hi); font: 600 28px/1.1 var(--font-display); letter-spacing: -.02em; margin-top: 8px; }
.stat .s-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* Simple bar chart */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 8px; }
.bars .bar { flex: 1; min-width: 3px; border-radius: 3px 3px 0 0; background: rgba(255, 194, 75, .75); position: relative; }
.bars.violet .bar { background: rgba(255, 255, 255, .35); }
.bars .bar:hover { background: var(--amber); }
.bars-x { display: flex; justify-content: space-between; color: var(--text-faint); font-size: 12px; margin-top: 6px; }

/* Device card */
.device { display: flex; gap: 16px; align-items: flex-start; }
.device .d-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-hi); }
.device .d-ico .i { width: 22px; height: 22px; }
.device .d-name { color: var(--text-hi); font-weight: 600; font-size: 16px; }
.device .d-meta { color: var(--text-dim); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--text-faint); }
.dot.on { background: var(--ok); }

/* Payment / bank */
.bank { padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-1); }
.bank + .bank { margin-top: 12px; }
.copy-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.copy-row:last-child { border-bottom: 0; }
.copy-row .k { color: var(--text-dim); font-size: 13.5px; }
.copy-row .v { color: var(--text-hi); font-weight: 500; word-break: break-all; text-align: right; }
.copy-btn { border: 0; background: transparent; color: var(--text-dim); cursor: pointer; padding: 4px; border-radius: 6px; flex: none; }
.copy-btn:hover { color: var(--text-hi); background: rgba(255, 255, 255, .06); }
.copy-btn.done { color: var(--ok); }
.ref-box { text-align: center; padding: 18px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line-strong); }
.ref-box .ref { font: 600 24px/1.2 var(--mono); color: var(--text-hi); letter-spacing: .06em; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; padding: 0 0 18px 28px; color: var(--text-dim); }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 21px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text-hi); }
.timeline li.done::before { border-color: var(--ok); background: var(--ok); }
.timeline li.now { color: var(--text-hi); }
.timeline li.now::before { border-color: var(--amber); background: var(--amber); }

/* QR / pairing */
.qr-box { background: #fff; border-radius: 12px; padding: 10px; width: 180px; height: 180px; }
.qr-box img { width: 100%; height: 100%; display: block; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-dim); }
.empty-state .i { width: 36px; height: 36px; color: var(--text-faint); margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 6px; }

/* Hidden value */
.secret { font-family: var(--mono); }
.secret[data-hidden] { filter: blur(5px); cursor: pointer; user-select: none; }

/* Cookie notice (strictly necessary cookies only) */
.cookie-note { position: fixed; left: 20px; bottom: 20px; z-index: 80; max-width: 420px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(27, 27, 30, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); box-shadow: 0 16px 48px rgba(0, 0, 0, .5); font-size: 13.5px; color: var(--text); }
.cookie-note a { color: var(--text-hi); }
.cookie-note[hidden] { display: none; }
@media (max-width: 560px) { .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Code block */
pre.code { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.6 var(--mono); color: var(--text); }

/* Legacy pieces still used on inner pages */
.ico { display: inline-flex; align-items: center; justify-content: center; color: var(--text-hi); }
.tone-amber { color: var(--amber); }
.tone-violet, .tone-cyan, .tone-rose, .tone-blue { color: var(--text-hi); }
.platforms { display: block; }
.withdrawal-form { border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 18px; background: var(--bg-1); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .side, .btn, .cookie-note { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 1px solid #ccc; background: #fff; }
  .shell { display: block; }
}

/* Account / admin: full-width header aligned with the sidebar */
.is-app .site-header .container { max-width: none; padding: 0 24px; }
