/* IB Player Pro — website styles (single dark theme, matches the app) */
:root {
  color-scheme: dark;
  --bg: #0b0d13;
  --bg-2: #0e1119;
  --surface: #12151f;
  --surface-2: #171b27;
  --border: #1f2333;
  --border-2: #2a2f42;
  --text: #f5f6fa;
  --text-2: #a9adbb;
  --muted: #6b7082;
  --accent: #4f7cff;
  --accent-2: #9b6bff;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 16px;
  --shadow: 0 20px 60px -20px rgba(79, 124, 255, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ea2ff; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.center { text-align: center; }
.grad-text { background: linear-gradient(90deg, #7ea2ff, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 700 15px/1 Inter, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; opacity: .9; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); border-color: rgba(255,255,255,.18); }
.btn-primary:hover { color: #fff; box-shadow: 0 24px 60px -18px rgba(79,124,255,.6); }
.btn-green { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 20px 50px -20px rgba(34,197,94,.55); }
.btn-green:hover { color: #fff; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.14); backdrop-filter: blur(14px); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.1); }
.btn-danger { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.35); }
.btn-danger:hover { color: #fca5a5; }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
.btn-xs { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; }
.btn-lg { height: 58px; padding: 0 28px; border-radius: 17px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* Nav */
.topbar { background: var(--amber); color: #111; text-align: center; font-size: 13px; font-weight: 600; padding: 6px; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,13,19,.72); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; height: 96px; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: none; width: 152px; max-width: 100%; }
.brand img { display: block; width: 100%; height: auto; }
.nav .brand { width: 104px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-2); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn-primary, .nav-links .btn-ghost { color: #fff; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--border-2); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background: radial-gradient(circle at 30% 30%, rgba(79,124,255,.28), transparent 55%), radial-gradient(circle at 75% 20%, rgba(155,107,255,.22), transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #4ade80; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; letter-spacing: -.04em; margin: 18px 0; }
.hero p.lead { font-size: 18px; color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--text-2); font-size: 13px; font-weight: 600; }

/* Phone mockup */
.phone { position: relative; width: min(330px, 100%); aspect-ratio: 9/19; margin-inline: auto; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #2a2f42, #12151f); box-shadow: 0 50px 120px -30px rgba(79,124,255,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.wall { position: absolute; inset: -40px -60px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-11deg); }
.tile { border-radius: 14px; aspect-ratio: .68; position: relative; overflow: hidden; }
.tile:nth-child(3n+2) { aspect-ratio: 1.15; }
.tile::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.55)); clip-path: polygon(0 60%, 18% 30%, 35% 55%, 55% 15%, 72% 50%, 88% 28%, 100% 45%, 100% 100%, 0 100%); }
.tile::before { content: ""; position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; top: 22%; left: 38%; background: rgba(255,247,218,.85); }
.phone-ui { position: absolute; inset: auto 0 0; padding: 26px 18px 20px; background: linear-gradient(transparent, var(--bg) 30%); z-index: 2; }
.phone-ui h4 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.phone-ui .pbtn { height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; margin-top: 12px; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 > *, .grid-2 > * { min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(79,124,255,.14); margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; fill: var(--accent); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--text-2); margin: 0; font-size: 14.5px; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 60px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .badge-top { position: absolute; top: -12px; left: 28px; padding: 4px 10px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .8px; color: #fff; background: linear-gradient(90deg, #f59e0b, #ef4444); }
.plan h3 { font-size: 20px; }
.price { font-size: 44px; font-weight: 900; letter-spacing: -.03em; margin: 8px 0 2px; }
.price small { font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--text-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 800; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #fecaca; font-size: 13.5px; }
.notice svg { flex: none; width: 18px; height: 18px; fill: #f87171; margin-top: 2px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 10px 0 0; }

.cta-band { border-radius: 26px; padding: 50px 30px; text-align: center; background: radial-gradient(circle at 20% 0%, rgba(79,124,255,.35), transparent 50%), radial-gradient(circle at 90% 100%, rgba(155,107,255,.3), transparent 50%), var(--surface); border: 1px solid var(--border-2); }

/* Forms */
.auth { min-height: calc(100vh - 96px); display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(circle at 50% -10%, rgba(79,124,255,.22), transparent 55%); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .logo { display: block; margin: 0 auto 22px; width: 210px; max-width: 100%; height: auto; }
.auth-card h1 { text-align: center; font-size: 30px; font-weight: 800; }
.auth-card .sub { text-align: center; color: var(--text-2); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); font: 15px Inter, sans-serif; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,124,255,.18); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); font-size: 13px; color: #c9ccd6; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert-error { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: #fecaca; }
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); color: #bbf7d0; }
.alert-info { background: rgba(79,124,255,.1); border-color: rgba(79,124,255,.4); color: #c7d4ff; }
.form-foot { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 18px; }
.cf-turnstile { margin-bottom: 16px; }

/* Account dashboard */
.page { padding: 50px 0 80px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h1 { font-size: 32px; font-weight: 800; margin: 0; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .label { color: var(--text-2); font-size: 13px; }
.stat .value { font-size: 22px; font-weight: 800; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.badge-green { background: rgba(34,197,94,.14); color: #4ade80; }
.badge-amber { background: rgba(245,158,11,.14); color: #fbbf24; }
.badge-red { background: rgba(239,68,68,.14); color: #f87171; }
.badge-blue { background: rgba(79,124,255,.16); color: #8fa8ff; }
.badge-gray { background: rgba(148,163,184,.12); color: #a3a9b8; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-2); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }

/* Legal */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 21px; margin-top: 32px; }
.prose p, .prose li { color: #b5b9c6; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid > * { min-width: 0; }
.footer .brand { width: 190px; margin-bottom: 14px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); margin-bottom: 14px; }
.footer a:not(.brand) { display: block; color: #c9ccd6; padding: 4px 0; font-size: 14px; }
.footer a:not(.brand):hover { color: #fff; }
.disclaimer-note { font-size: 12.5px; color: var(--muted); max-width: 380px; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 96px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; background: rgba(11,13,19,.97); border-bottom: 1px solid var(--border); }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  body.nav-open .nav-links { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 50px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── v4 polish ─────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }
body.site { background:
  radial-gradient(1200px 600px at 85% -10%, rgba(155,107,255,.10), transparent 60%),
  radial-gradient(1000px 600px at -10% 10%, rgba(79,124,255,.10), transparent 60%),
  var(--bg); background-attachment: fixed; }
::selection { background: rgba(79,124,255,.35); }
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -30px rgba(0,0,0,.6); transition: border-color .2s, transform .2s; }
.feature.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card h3 { font-size: 17px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.card-head h3 { margin: 0; }
.input { background: #0f121b; }
.input:hover { border-color: #353b52; }
.input::placeholder { color: #5b6075; }
.btn:focus-visible, .input:focus-visible, .tabs a:focus-visible, .seg label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer { background: rgba(14,17,25,.7); }

/* Account shell */
.acct-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 22px; margin-bottom: 14px;
  background: radial-gradient(circle at 0% 0%, rgba(79,124,255,.22), transparent 55%), radial-gradient(circle at 100% 100%, rgba(155,107,255,.18), transparent 55%), var(--surface);
  border: 1px solid var(--border-2); }
.acct-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.acct-id h1 { font-size: 26px; font-weight: 800; margin: 0 0 2px; }
.acct-id .badge { margin-left: 4px; vertical-align: 1px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; box-shadow: var(--shadow); }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs a svg { width: 17px; height: 17px; fill: currentColor; }
.tabs a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tabs a.active { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -12px rgba(79,124,255,.8); }
.tabs em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.14); }
.mini-list { list-style: none; padding: 0; margin: 10px 0 14px; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li span:first-child { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Playlists page */
.pl-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-title h2, .add-card h2 { font-size: 21px; font-weight: 800; margin: 0; }
.add-card { position: sticky; top: 88px; min-width: 0; }
.pl-layout > * { min-width: 0; }
.add-card > .muted { margin: 4px 0 16px; }
.pl-list { display: grid; gap: 10px; }
.pl-item { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.pl-item:hover { border-color: var(--border-2); }
.pl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pl-body strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-body > .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.pl-icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.pl-icon svg { width: 21px; height: 21px; fill: #fff; }
.pl-m3u { background: linear-gradient(135deg, #4f7cff, #2f5bdc); }
.pl-xtream { background: linear-gradient(135deg, #9b6bff, #6d3fe0); }
.pl-file { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(239,68,68,.3); background: rgba(239,68,68,.08); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.icon-btn svg { width: 18px; height: 18px; fill: #f87171; }
.icon-btn:hover { background: rgba(239,68,68,.18); }
.empty { text-align: center; padding: 40px 24px; }
.empty svg { width: 46px; height: 46px; fill: #3a4055; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: #0f121b; border: 1px solid var(--border-2); margin-bottom: 18px; }
.seg label { position: relative; text-align: center; padding: 10px 6px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.grid-2.tight { gap: 12px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; margin-bottom: 16px; border-radius: 14px; border: 1.5px dashed rgba(245,158,11,.5); background: rgba(245,158,11,.06); cursor: pointer; text-align: center; transition: background .15s; }
.dropzone:hover { background: rgba(245,158,11,.1); }
.dropzone svg { width: 34px; height: 34px; fill: #fbbf24; }
.dropzone strong { color: #fbbf24; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 900px) {
  .pl-layout { grid-template-columns: minmax(0, 1fr); }
  .add-card { position: static; }
}
@media (max-width: 520px) {
  .acct-hero { padding: 18px; }
  .acct-id h1 { font-size: 22px; }
  .avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 17px; }
  .seg label { font-size: 12.5px; }
}

/* ── Account dashboard (v5) ─────────────────────────────────────────────── */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.plan-card { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; border: 1px solid var(--border-2);
  background: radial-gradient(circle at 100% 0%, rgba(155,107,255,.22), transparent 55%), radial-gradient(circle at 0% 100%, rgba(79,124,255,.18), transparent 55%), var(--surface); }
.plan-card.on { border-color: rgba(79,124,255,.5); box-shadow: 0 24px 60px -30px rgba(79,124,255,.55); }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-card h2 { font-size: 30px; font-weight: 900; letter-spacing: -.03em; margin: 8px 0 4px; }
.plan-card p { margin: 0 0 16px; }
.meter { height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 18px; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.plan-card-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-stats { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.mini-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, transform .15s; }
.mini-stat:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }
.mini-stat .ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); }
.mini-stat .ic svg { width: 20px; height: 20px; fill: var(--c); }
.mini-stat b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.mini-stat > span:last-child { color: var(--text-2); font-size: 13px; }
.kv { display: grid; gap: 10px; margin: 8px 0 16px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.kv dt { color: var(--text-2); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.help-card { background: linear-gradient(135deg, rgba(79,124,255,.12), rgba(155,107,255,.08)), var(--surface); border-color: rgba(79,124,255,.35); }
.msg-list { display: grid; gap: 10px; }
.msg { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.msg > div { min-width: 0; flex: 1; }
.msg-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); }
.msg-ic svg { width: 19px; height: 19px; fill: #fff; }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.msg h3 { font-size: 16px; margin: 0; }
.msg p { color: #c9ccd6; margin: 6px 0 10px; }
.danger-card { border-color: rgba(239,68,68,.3); }
.danger-row { display: flex; flex-wrap: wrap; gap: 10px; }
.danger-row .input { flex: 1 1 240px; max-width: 360px; }
.card .empty svg, .card.empty svg { width: 46px; height: 46px; fill: #3a4055; margin-bottom: 10px; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } .mini-stats { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mini-stats { grid-template-columns: 1fr; } .plan-card h2 { font-size: 25px; } }

/* Checkout: payment method picker */
.pay-methods { display: grid; gap: 10px; }
.pay-method, .field .pay-method { display: flex; margin: 0; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); cursor: pointer; transition: border-color .15s, background .15s; }
.pay-method input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.pay-method-body { display: grid; gap: 2px; min-width: 0; }
.pay-method-body b { font-size: 14.5px; color: var(--text, #fff); }
.pay-method-body small { font-size: 12.5px; color: var(--muted, #9aa0b2); }
.pay-method:has(input:checked) { border-color: var(--accent); background: rgba(79,124,255,.08); }
.plans.plans-single { max-width: 380px; }
.pay-method-body { flex: 1; }
.pay-method-price { display: grid; justify-items: end; gap: 1px; flex: none; font-variant-numeric: tabular-nums; }
.pay-method-price b { font-size: 15px; color: var(--text, #fff); }
.pay-method-price s { font-size: 12px; color: var(--muted, #9aa0b2); }
.pay-off { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px; vertical-align: 1px; }

/* ── Landing v2: hero stage (TV + phone), availability, stats, feature groups, devices ── */
.hero-home { padding-bottom: 40px; }
.avail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.avail-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-right: 4px; }
.avail-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.avail-pill svg { width: 14px; height: 14px; fill: currentColor; opacity: .85; }
.avail-pill small { font-size: 10px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .5px; }
.avail-pill.on { color: #d1fae5; border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.1); }
.avail-pill:hover { color: var(--text); border-color: rgba(255,255,255,.22); }

.stage { position: relative; padding: 10px 0 40px; }
.tv { position: relative; width: 100%; max-width: 560px; margin-left: auto; }
.tv-screen { aspect-ratio: 16 / 10; border-radius: 16px; padding: 10px; background: #05060a; border: 8px solid #1b1f2c; box-shadow: 0 50px 110px -30px rgba(79,124,255,.55), inset 0 0 0 1px rgba(255,255,255,.05); overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.tv-stand { width: 34%; height: 14px; margin: 0 auto; border-radius: 0 0 12px 12px; background: linear-gradient(#1b1f2c, #10131c); }
.tv-bar { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-2); }
.tv-bar b { color: var(--text); font-size: 14px; }
.tv-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.tv-body { flex: 1; display: grid; grid-template-columns: 30% 1fr; gap: 8px; min-height: 0; }
.tv-cats { display: flex; flex-direction: column; gap: 4px; }
.tv-cats span { padding: 6px 8px; border-radius: 8px; font-size: 10.5px; color: var(--text-2); background: rgba(255,255,255,.03); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-cats span.on { color: #fff; background: var(--grad); }
.tv-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tv-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: rgba(255,255,255,.03); min-width: 0; }
.tv-row.on { background: rgba(79,124,255,.18); box-shadow: inset 0 0 0 1px rgba(79,124,255,.5); }
.tv-num { width: 14px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tv-logo { flex: none; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 30%)); }
.tv-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tv-txt b { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-txt small { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-txt i { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.tv-txt i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--grad); }
.phone.phone-sm { position: absolute; left: 0; bottom: 0; width: 150px; border-radius: 28px; padding: 7px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.phone-sm .phone-screen { border-radius: 22px; }
.phone-sm .phone-notch { width: 46px; height: 13px; top: 6px; }
.mini-ui { position: absolute; inset: 26px 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.mini-ui b { font-size: 10.5px; }
.mini-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mini-rail span { aspect-ratio: .68; border-radius: 6px; background: linear-gradient(160deg, hsl(var(--h) 65% 50%), hsl(var(--h) 60% 18%)); }
.mini-ui .pbtn { margin-top: auto; height: 26px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 9.5px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: 18px; overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.stats > div { background: var(--surface); padding: 18px 20px; display: grid; gap: 2px; }
.stats b { font-size: 15.5px; }
.stats span { color: var(--muted); font-size: 13px; }

.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018) 12%, rgba(255,255,255,.018) 88%, transparent); }
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fgroup { padding: 22px 22px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.fgroup h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fgroup h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.fgroup ul { list-style: none; margin: 0; padding: 0; }
.fgroup li { position: relative; padding: 7px 0 7px 24px; color: var(--text-2); font-size: 14px; border-top: 1px solid rgba(255,255,255,.04); }
.fgroup li:first-child { border-top: 0; }
.fgroup li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 800; }

.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.device { display: flex; flex-direction: column; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.device:hover { border-color: var(--border-2); transform: translateY(-2px); }
.device.is-live { border-color: rgba(34,197,94,.35); background: linear-gradient(180deg, rgba(34,197,94,.06), transparent 60%), var(--surface); }
.device-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.device-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(79,124,255,.12); }
.device-ic svg { width: 22px; height: 22px; fill: #9fb6ff; }
.is-live .device-ic { background: rgba(34,197,94,.14); }
.is-live .device-ic svg { fill: #86efac; }
.device-state { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; color: var(--amber); background: rgba(245,158,11,.1); }
.device-state.on { color: #4ade80; background: rgba(34,197,94,.12); }
.device h3 { font-size: 16.5px; margin-bottom: 4px; }
.device-req { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.device-note { color: var(--text-2); font-size: 13px; margin: 0 0 6px; }
.device-cta { margin-top: auto; padding-top: 12px; }
.device-cta [aria-disabled] { cursor: default; color: var(--text-2); }
.device-cta [aria-disabled]:hover { transform: none; }
.device-code { margin: 10px 0 0; font-size: 13px; color: var(--text-2); text-align: center; }
.device-code b { font-family: ui-monospace, Menlo, monospace; color: var(--text); letter-spacing: 1px; }

.hero-slim { padding: 80px 0 30px; }
section.tight { padding: 26px 0; }
.group-title { font-size: 20px; margin-bottom: 16px; }
.install-guide ol { margin: 0; padding-left: 20px; color: var(--text-2); }
.install-guide li { margin-bottom: 8px; }

@media (max-width: 960px) {
  .feature-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv { margin-inline: auto; }
  .phone.phone-sm { left: 4%; }
}
@media (max-width: 560px) {
  .feature-groups, .stats { grid-template-columns: 1fr; }
  .phone.phone-sm { width: 112px; }
  .tv-cats span:nth-child(n+4) { display: none; }
  .stage { padding-bottom: 60px; }
}
/* Stage: TV on the right, phone overlapping its left edge only */
.stage .tv { width: 76%; }
.stage .phone.phone-sm { left: 0; bottom: 8px; width: 128px; }
.tv-list { overflow: hidden; }
@media (max-width: 560px) {
  .stage .tv { width: 100%; }
  .stage .phone.phone-sm { display: none; }
  .stage { padding-bottom: 10px; }
  .tv-row:nth-child(n+5) { display: none; }
}
.hero-home::before { height: auto; bottom: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }

/* ── Blog ── */
.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.blog-cats a { padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.blog-cats a b { color: var(--muted); font-weight: 700; margin-left: 4px; }
.blog-cats a.on, .blog-cats a:hover { color: var(--text); border-color: var(--accent); background: rgba(79,124,255,.12); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .post-cover { flex: 0 0 52%; aspect-ratio: auto; min-height: 280px; }
.post-card.featured h2 { font-size: clamp(22px, 2.6vw, 30px); }
.post-cover { display: block; aspect-ratio: 1200 / 630; background: var(--surface-2); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover-ph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 30% 30%, hsl(var(--h) 70% 45% / .55), transparent 60%), linear-gradient(135deg, hsl(var(--h) 60% 22%), hsl(calc(var(--h) + 50) 60% 14%)); }
.post-cover-ph svg { width: 54px; height: 54px; fill: rgba(255,255,255,.75); filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; min-width: 0; }
.post-body h2 { font-size: 19px; margin: 0; line-height: 1.3; }
.post-body h2 a { color: var(--text); }
.post-body h2 a:hover { color: #9fb6ff; }
.post-body p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.post-cat { padding: 2px 9px; border-radius: 99px; background: rgba(79,124,255,.14); color: #9fb6ff; font-weight: 700; font-size: 11.5px; letter-spacing: .3px; text-transform: uppercase; margin-right: 4px; }
.post-more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--border-2); color: var(--text-2); font-weight: 700; }
.pager span.on { background: var(--grad); color: #fff; border-color: transparent; }

.article-head { max-width: 860px; padding-top: 56px; }
.article-head h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 900; letter-spacing: -.03em; margin: 16px 0 14px; }
.article-head .lead { font-size: 18.5px; color: var(--text-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--text-2); }
.post-author { color: var(--text-2); font-weight: 600; }
.article-cover { max-width: 1100px; margin: 30px auto 0; }
.article-cover img { width: 100%; height: auto; border-radius: 20px; display: block; border: 1px solid var(--border); }
.article-cover figcaption { max-width: 820px; margin: 12px auto 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; max-width: 1100px; padding-block: 40px 30px; align-items: start; }
.article-body { font-size: 17px; line-height: 1.75; color: #d4d7e1; max-width: 720px; }
.article-body h2 { font-size: 27px; margin: 1.8em 0 .6em; color: var(--text); scroll-margin-top: 120px; }
.article-body h3 { font-size: 21px; margin: 1.5em 0 .5em; color: var(--text); scroll-margin-top: 120px; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.15em; }
.article-body li { margin-bottom: .4em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(79,124,255,.5); }
.article-body strong { color: var(--text); }
.article-body code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); color: #e3e7ff; overflow-wrap: anywhere; }
.article-body blockquote { margin: 1.3em 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(79,124,255,.08); color: var(--text-2); }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.article-side { position: sticky; top: 120px; display: grid; gap: 14px; }
.toc h3, .side-cta h3 { font-size: 15px; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--text); }
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-cover { flex: 0 0 auto; aspect-ratio: 1200 / 630; min-height: 0; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-side { position: static; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 16.5px; }
}
.article-head { max-width: 1100px; }
.article-head h1, .article-head .lead { max-width: 820px; }

/* Account → Devices: activate a TV by MAC address */
.tv-activate { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; align-items: center; margin-bottom: 26px; border-color: rgba(79,124,255,.35); background: radial-gradient(circle at 10% 0%, rgba(79,124,255,.16), transparent 60%), var(--surface); }
.tv-activate h2 { font-size: 26px; margin: 6px 0 8px; }
.tv-activate p { margin: 0; }
.tv-activate-form .field { margin-bottom: 12px; }
.tv-activate-form .input { font-size: 18px; letter-spacing: 1px; }
@media (max-width: 760px) { .tv-activate { grid-template-columns: 1fr; } }
.tv-steps { list-style: none; counter-reset: tvs; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.tv-steps li { counter-increment: tvs; position: relative; padding-left: 46px; display: grid; gap: 2px; }
.tv-steps li::before { content: counter(tvs); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.tv-steps li b { color: var(--text); }
.tv-steps li span { color: var(--text-2); font-size: 14px; }
.tv-activate-form .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.tv-activate-form .tv-mac, .tv-activate-form .tv-key { font-size: 20px; letter-spacing: 2px; text-transform: uppercase; }
