:root {
  --bg-top: #0a2463; --bg: #020a22; --panel: #0b1d4a; --panel-hi: #173679;
  --ink: #fff; --muted: #a9bce3; --dim: #6e83b3; --accent: #12a4ff; --accent-2: #0b63f6;
  --good: #39d5c8; --warn: #ffc94d; --bad: #ff2e8b; --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { background: var(--bg); }
html, body { margin: 0; }
body {
  min-height: 100vh; color: var(--ink); background: linear-gradient(180deg, var(--bg-top), var(--bg) 70%) fixed;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: flex; flex-direction: column;
}
a { color: var(--accent); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; padding: 80px 16px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; max-width: 1040px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: -.5px; }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; }
#signedOut { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-top: 30px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -1px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff2e8b, #8b3dff, #00c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 10px; }
.card { background: rgba(11, 29, 74, .85); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid .card { margin-bottom: 0; }
.grid + .card { margin-top: 18px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; background: rgba(0,0,0,.25); padding: 4px; border-radius: 12px; }
.tab { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.tab.on { background: var(--panel-hi); color: var(--ink); }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input {
  font: inherit; color: var(--ink); background: rgba(2, 10, 34, .7); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 12px 14px; outline: none; width: 100%;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18,164,255,.25); }
input.code { font-size: 28px; letter-spacing: 8px; text-transform: uppercase; font-weight: 800; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.btn {
  font: inherit; font-weight: 700; color: var(--ink); background: var(--panel-hi); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 12px 18px; cursor: pointer;
}
.btn.primary { background: linear-gradient(90deg, var(--accent-2), var(--accent)); border: 0; }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn:disabled, .plan:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; justify-self: start; }
.msg { min-height: 1.2em; margin: 0; color: var(--warn); font-size: 14px; }
.msg.ok { color: var(--good); }
.status { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.status h2 { margin: 2px 0 4px; font-size: 26px; }
.status p { margin: 0; }
.pill { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; background: var(--panel-hi); white-space: nowrap; }
.pill.good { background: rgba(57,213,200,.18); color: var(--good); }
.pill.warn { background: rgba(255,201,77,.15); color: var(--warn); }
.pill.bad { background: rgba(255,46,139,.15); color: var(--bad); }
.plans { display: grid; gap: 10px; margin: 14px 0; }
.plan {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left;
  font: inherit; color: var(--ink); background: rgba(2,10,34,.6); border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
}
.plan:hover { border-color: var(--accent); }
.plan-title { font-weight: 700; }
.plan-title em { font-style: normal; font-size: 12px; background: var(--good); color: #022; border-radius: 6px; padding: 2px 6px; margin-left: 6px; }
.plan-price { font-weight: 800; font-size: 20px; }
.plan-price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.devices { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(2,10,34,.5); border-radius: 10px; padding: 12px 14px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(2,10,34,.6); padding: 10px 12px; border-radius: 8px; word-break: break-all; }
.banner { background: rgba(57,213,200,.15); color: var(--good); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.foot { text-align: center; padding: 20px 16px 28px; }
.doc { max-width: 760px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 20px; margin-top: 28px; }
@media (max-width: 760px) {
  #signedOut, .grid { grid-template-columns: 1fr; }
  #signedOut { padding-top: 6px; gap: 18px; }
  .status { flex-direction: column; align-items: flex-start; }
  .top { padding: 14px 16px; }
}
/* ---- channel editor ---- */
.ed-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.ed-head h2 { margin: 0 0 4px; }
.ed-head p { margin: 0; max-width: 560px; }
.ed-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
select { font: inherit; color: var(--ink); background: rgba(2,10,34,.7); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 9px 12px; }
.ed-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; align-items: start; }
.ed-col { margin-bottom: 0; }
.ed-col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.ed-col-head h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-list, .ed-results { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; max-height: 62vh; overflow-y: auto; }
.ed-results { max-height: 240px; margin-bottom: 12px; }
.ed-row, .ed-results li { display: flex; align-items: center; gap: 10px; background: rgba(2,10,34,.5); border-radius: 10px; padding: 8px 10px; border: 1px solid transparent; }
.ed-row.on { border-color: var(--accent); background: rgba(18,164,255,.12); }
.ed-row.custom .n { color: var(--warn); }
.ed-row.ghost { opacity: .4; }
.handle { cursor: grab; color: var(--dim); font-size: 18px; padding: 0 4px; user-select: none; touch-action: none; }
.ed-name { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; }
.ed-name .n, .ed-name .o { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.icon:hover { background: var(--panel-hi); color: var(--ink); }
.count { min-width: 2em; text-align: right; }
/* ---- setup page ---- */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: rgba(2,10,34,.5); border-radius: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-2); display: grid; place-items: center; font-weight: 800; }
.bigcode { font: 800 30px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 3px; color: var(--good); }
@media (max-width: 760px) {
  .ed-head { flex-direction: column; }
  .ed-actions { justify-content: flex-start; }
  .ed-cols { grid-template-columns: 1fr; }
  .ed-list { max-height: none; }
}
a.btn { text-decoration: none; display: inline-block; }
/* ---- landing page ---- */
.lp-main { max-width: 1120px; }
.lp .top { max-width: 1120px; }
.lp-nav nav { display: flex; align-items: center; gap: 22px; }
.lp-nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.lp-nav nav a:not(.btn):hover { color: var(--ink); }
.btn.big { padding: 14px 24px; font-size: 17px; }
.center-text { text-align: center; margin-left: auto; margin-right: auto; }
.lp-kicker { color: var(--good); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin: 0 0 10px; }
.lp-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 40px 0 30px; }
.lp-hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -1.5px; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff2e8b, #8b3dff, #00c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.lp-section { padding: 64px 0 10px; }
.lp-section h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.8px; margin: 0 0 10px; text-align: center; }
.lp-split h2 { text-align: left; }

/* TV mock-up */
.tv { position: relative; }
.tv-screen { background: #000; border: 10px solid #111827; border-radius: 18px; aspect-ratio: 16 / 9; overflow: hidden; padding: 4%; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  background: radial-gradient(120% 90% at 0% 0%, #0a2463 0%, #020a22 65%); display: flex; flex-direction: column; gap: 2.2%; font-size: clamp(7px, 1.05vw, 12px); }
.tv-stand { width: 28%; height: 14px; margin: 0 auto; background: linear-gradient(#1f2937, #0b1020); border-radius: 0 0 10px 10px; }
.g-top { display: flex; gap: 4%; height: 34%; }
.g-preview { flex: 0 0 38%; border-radius: 8px; background: url("https://picsum.photos/seed/veyro-hero/480/270") center/cover, #173679; position: relative; }
.g-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2em; color: rgba(255,255,255,.85); }
.g-info { display: flex; flex-direction: column; justify-content: center; gap: .3em; min-width: 0; }
.g-ch { color: var(--muted); font-weight: 700; }
.g-title { font-size: 1.9em; font-weight: 800; }
.g-time { color: var(--muted); }
.g-live { color: #fff; background: #ff2e8b; border-radius: 4px; padding: 0 .4em; font-weight: 800; }
.g-bar { height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; width: 70%; }
.g-bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.g-head { display: grid; grid-template-columns: 16% repeat(4, 1fr); color: var(--dim); font-weight: 700; }
.g-row { display: flex; gap: .6%; height: 9%; }
.g-logo { flex: 0 0 15.4%; border-radius: 6px; background: var(--c); display: grid; place-items: center; font-weight: 800; font-size: .95em; }
.g-p { border-radius: 6px; background: rgba(23,54,121,.55); border: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; padding: 0 .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.g-p.w1 { flex: 1; } .g-p.w2 { flex: 2; } .g-p.w3 { flex: 3; } .g-p.w4 { flex: 4; }
.g-p.hl { background: #fff; color: #020a22; font-weight: 800; }
.g-row.on .g-logo { outline: 2px solid #fff; }

/* features */
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.lp-f { background: rgba(11, 29, 74, .7); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 20px; }
.lp-f h3 { margin: 10px 0 6px; font-size: 17px; }
.lp-f p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lp-i { font-size: 26px; }

/* split + phone */
.lp-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.phone { justify-self: center; width: 250px; border: 10px solid #111827; border-radius: 36px; background: #020a22; box-shadow: 0 30px 70px rgba(0,0,0,.55); padding: 26px 12px 18px; }
.phone-screen { display: grid; gap: 8px; }
.ph-title { font-weight: 800; font-size: 18px; margin: 0 4px 6px; }
.ph-row { display: flex; gap: 10px; align-items: center; background: rgba(11,29,74,.9); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 14px; }
.ph-row b { color: var(--warn); }
.ph-row i { margin-left: auto; font-style: normal; color: var(--dim); font-size: 12px; }
.ph-row.on { outline: 1px solid var(--accent); background: rgba(18,164,255,.15); }
.ph-save { margin-top: 6px; text-align: center; font-weight: 800; border-radius: 10px; padding: 10px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.lp-steps > div { background: rgba(11, 29, 74, .7); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px; }
.lp-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-2); font-weight: 800; }
.lp-steps h3 { margin: 12px 0 6px; }
.lp-steps p { margin: 0; color: var(--muted); }

/* pricing */
.lp-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 18px; margin: 28px 0 14px; }
.lp-price { position: relative; background: rgba(11, 29, 74, .8); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.lp-price.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(18,164,255,.15); }
.lp-price h3 { margin: 0; color: var(--muted); }
.lp-amount { font-size: 44px; font-weight: 900; margin: 6px 0 4px; letter-spacing: -1px; }
.lp-amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.lp-price .ticks { margin: 12px 0 22px; flex: 1; }
.lp-price .btn { text-align: center; }
.lp-badge { position: absolute; top: -12px; right: 20px; background: var(--good); color: #022; font-weight: 800; font-size: 13px; border-radius: 8px; padding: 3px 10px; }

/* FAQ */
.lp-faq { max-width: 780px; margin: 0 auto; }
.lp-faq details { background: rgba(11, 29, 74, .7); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px 20px; margin-top: 10px; }
.lp-faq summary { cursor: pointer; font-weight: 700; }
.lp-faq details p { color: var(--muted); margin: 10px 0 0; }
.lp-final { text-align: center; padding: 70px 0 40px; }
.lp-final h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 20px; }

@media (max-width: 900px) {
  .lp-hero, .lp-split { grid-template-columns: 1fr; gap: 30px; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-nav nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .lp-features, .lp-prices { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 10px; }
  .btn.big { width: 100%; text-align: center; }
}

/* ---- admin ---- */
.admin-form { grid-template-columns: 2fr .6fr 1.2fr auto; align-items: end; gap: 10px; }
@media (max-width: 760px) { .admin-form { grid-template-columns: 1fr; } }

.bigcode-sm { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--good); }

/* ---- phones: a bit more compact so pages don't feel zoomed in ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 560px) {
  body { font-size: 15px; }
  .top { padding: 12px 14px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  main { padding: 4px 12px 32px; }
  .card { padding: 16px; border-radius: 14px; margin-bottom: 12px; }
  .card h3 { font-size: 17px; }
  .status h2 { font-size: 21px; }
  .grid { gap: 12px; }
  .grid + .card { margin-top: 12px; }
  .lead { font-size: 15.5px; }
  .btn { padding: 10px 14px; }
  .btn.big { padding: 12px 16px; font-size: 16px; }
  input { padding: 10px 12px; font-size: 16px; } /* 16px stops iPhones zooming when you tap a box */
  input.code { font-size: 22px; letter-spacing: 6px; }
  .lp-hero { padding-top: 4px; gap: 22px; }
  .lp-hero h1 { font-size: 30px; letter-spacing: -0.8px; margin-bottom: 12px; }
  .lp-kicker { font-size: 11px; letter-spacing: 1px; }
  .lp-section { padding-top: 40px; }
  .lp-section h2, .lp-final h2 { font-size: 24px; }
  .lp-f { padding: 16px; }
  .lp-f h3 { font-size: 16px; }
  .lp-f p, .lp-steps p { font-size: 14px; }
  .lp-amount { font-size: 36px; }
  .lp-price { padding: 20px; }
  .lp-faq details { padding: 12px 16px; }
  .phone { width: 220px; }
  .doc h1 { font-size: 26px; }
  .steps li { padding: 12px 14px 12px 50px; }
  .bigcode { font-size: 24px; }
  .lp-nav nav { gap: 10px; }
}

/* ---- real screenshots ---- */
.tv-shot { padding: 0; display: block; background: #000; }
.tv-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shots { margin-top: 24px; }
.shot-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.shot-tab { font: inherit; font-weight: 700; color: var(--muted); background: rgba(11,29,74,.7); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.shot-tab.on { color: #020a22; background: #fff; }
.shot-frame { border: 8px solid #111827; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); max-width: 1000px; margin: 0 auto; background: #000; }
.shot-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .shot-tab { padding: 6px 12px; font-size: 13px; } .shot-frame { border-width: 5px; } }

/* ---- phones: features as a compact list ---- */
@media (max-width: 560px) {
  .lp-features { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .lp-f { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; padding: 12px 14px; }
  .lp-f .lp-i { grid-row: span 2; font-size: 22px; line-height: 1.2; }
  .lp-f h3 { margin: 0 0 2px; font-size: 15px; }
  .lp-f p { font-size: 13.5px; }
  .lp-steps { gap: 8px; }
  .lp-steps > div { padding: 14px 16px; }
  .lp-steps h3 { margin: 8px 0 4px; }
  .lp-split { gap: 18px; }
  .phone { display: none; }
  .lp-prices { gap: 12px; }
  .shot-frame { border-radius: 10px; }
}

.crashes { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.crashes li { background: rgba(2,10,34,.5); border-radius: 10px; padding: 10px 14px; }
.crashes summary { cursor: pointer; }
.crashes strong { font-size: 14px; word-break: break-word; }
.crashes pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; color: var(--muted); max-height: 320px; overflow: auto; margin: 10px 0 0; }

.tg-qr { text-align: center; }
.tg-qr img { width: 100%; max-width: 320px; border-radius: 22px; background: #fff; padding: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
@media (max-width: 760px) { .tg-qr { display: none; } }

.offer-card { border: 2px solid #8b3dff; background: linear-gradient(135deg, rgba(255,46,139,.18), rgba(139,61,255,.18)); }
.offer-card h3 { margin-top: 0; }

label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.4; margin: 6px 0; cursor: pointer; }
label.check input { width: auto; margin-top: 3px; flex: none; }

/* Refer a friend */
.ref-banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border: 2px solid #8b3dff; background: rgba(139,61,255,.15); color: #fff; }
main > .ref-banner { margin: 16px auto; max-width: 1100px; }
.ref-banner a { color: #fff; font-weight: 700; }
.ref-card { border: 2px solid #1e7bff; }
.ref-link { display: flex; gap: 8px; margin: 12px 0 6px; flex-wrap: wrap; }
.ref-link input { flex: 1 1 220px; min-width: 0; }
.ref-levels { display: grid; gap: 8px; margin: 12px 0 6px; }
.ref-level { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.ref-level .bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.ref-level .bar i { display: block; height: 100%; background: linear-gradient(90deg,#ff2e8b,#8b3dff,#1e7bff); }
.ref-level.done { background: rgba(34,197,94,.15); }
.ref-level b { white-space: nowrap; }
