:root {
  /* Gold theme: --accent #e0a92a, --accent-dark #a8770f, --accent-text #e0a92a, --on-accent #000, --glow #0f3a63 */
  --accent: #bf232e;
  --accent-dark: #8e1a22;
  --accent-text: #ff5c66;
  --on-accent: #fff;
  --glow: #4a0d12;
  --header: #1b1b1d;
  --text: #fff;
  --label: #c2c2c2;
  --dim: #a3a3a3;
  --line: #2b2b2f;
  --surface: #121214;
  --danger: #f87171;
  --ok: #34d399;
  --font: "Segoe UI", "SF Pro Display", -apple-system, system-ui, Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
main { flex: 1; width: 100%; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.muted { color: var(--dim); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.accent { color: var(--accent-text); }
[hidden] { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header); }
.site-header .inner { max-width: 1240px; height: 80px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 18px; }
.nav a { color: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.2; text-transform: uppercase; padding: 16px 0; max-width: 120px; }
.nav a:hover { color: var(--accent-text); text-decoration: none; }
.nav a.active { color: var(--accent-text); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-btn span { display: block; width: 28px; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; }

@media (max-width: 1000px) {
  .site-header .inner { height: 64px; }
  .brand img { width: 42px; height: 42px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--header); padding: 6px 20px 18px; border-top: 1px solid #2a2a2e; }
  .nav.open { display: flex; }
  .nav a { max-width: none; padding: 13px 0; border-bottom: 1px solid #26262a; }
}

/* Dark stage with the brand glow (IBO-style page body) */
.stage {
  position: relative;
  background:
    radial-gradient(60% 70% at 72% 45%, color-mix(in srgb, var(--glow) 70%, transparent), transparent 70%),
    radial-gradient(40% 45% at 20% 15%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    linear-gradient(180deg, #050506, #000);
  padding: 64px 0 80px;
}
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(transparent 55%, rgba(0, 0, 0, .65)); }
.stage > * { position: relative; z-index: 1; }
.page-title h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin: 0 0 12px; }
.page-title p { font-size: 20px; margin: 0 0 44px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 9px 26px; border-radius: 6px; border: 1px solid #3a3a3f;
  background: transparent; color: #fff; font: 700 15px var(--font); cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); text-transform: uppercase; letter-spacing: .03em; }
.btn.paypal { background: #ffc439; border-color: #ffc439; color: #111; }
.btn.crypto { background: #26a17b; border-color: #26a17b; color: #fff; }
.pay-methods { display: grid; gap: 18px; margin-top: 8px; }
.pay-method .hint { margin-top: 8px; }
.btn.block { width: 100%; }
.btn.small { min-height: 32px; padding: 5px 14px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: rgba(248, 113, 113, .4); }
.btn:disabled { opacity: .55; cursor: wait; }
.text-btn { background: none; border: 0; padding: 4px 0; color: var(--label); font: 13px var(--font); cursor: pointer; }
.text-btn:hover { color: #fff; text-decoration: underline; }

/* Form card */
.wrap:has(> .auth-card) > .page-title { text-align: center; }
.auth-card {
  max-width: 700px; margin: 0 auto; padding: 32px 32px 34px; border-radius: 35px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .78) 55%, rgba(48, 48, 52, .82));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.auth-card.wide { max-width: 860px; }
.auth-card .logo { width: 64px; height: 64px; margin: 6px auto 18px; border-radius: 50%; }
.auth-card h2 { text-align: center; margin: 0 0 22px; font-size: 26px; font-weight: 500; }
@media (max-width: 600px) { .auth-card { padding: 26px 22px 28px; border-radius: 26px; } }

.line-field { display: block; position: relative; margin-bottom: 26px; }
.line-field > span { display: block; color: var(--label); font-weight: 700; font-size: 18px; padding: 0 8px; }
.line-field input, .line-field select {
  width: 100%; height: 46px; background: transparent; border: 0; border-bottom: 2px solid var(--label); border-radius: 0;
  color: #fff; font: 17px var(--font); padding: 6px 8px; outline: none;
}
.line-field input::placeholder { color: #5f5f66; }
.line-field input:focus { border-bottom-color: var(--accent); }
.line-field input.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }

.captcha-row {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; margin-bottom: 22px;
  grid-template-areas: "label label" "img refresh" "input input";
}
.captcha-row > span { grid-area: label; display: block; color: var(--label); font-weight: 700; font-size: 18px; padding: 0 8px 8px; }
.captcha-row img { grid-area: img; width: 160px; height: 56px; margin-left: 4px; border-radius: 6px; }
.captcha-row .text-btn { grid-area: refresh; justify-self: start; font-size: 14px; }
.captcha-row input { grid-area: input; width: 100%; height: 46px; background: transparent; border: 0; border-bottom: 2px solid var(--label); color: #fff; font: 18px ui-monospace, Menlo, monospace; letter-spacing: .3em; padding: 6px 8px; outline: none; }
.captcha-row input:focus { border-bottom-color: var(--accent); }

.msg { min-height: 22px; margin: 14px 0 0; font-weight: 600; font-size: 14px; text-align: center; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.hint { font-size: 13.5px; text-align: center; margin: 16px 0 0; color: var(--dim); }
#back { margin-top: 12px; }

/* Activation */
.device-box { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid #333338; border-radius: 12px; margin-bottom: 22px; background: rgba(255, 255, 255, .03); }
.device-box .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.device-box .row b { font-family: ui-monospace, Menlo, monospace; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.plan { position: relative; display: block; cursor: pointer; padding: 20px 18px; border-radius: 14px; border: 2px solid #34343a; background: rgba(255, 255, 255, .03); }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.plan .name { font-weight: 800; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; color: var(--label); }
.plan .price { font-size: 32px; font-weight: 800; margin: 4px 0; }
.plan .note { color: var(--dim); font-size: 13px; }
.plan .badge { position: absolute; top: -11px; right: 14px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 4px; text-transform: uppercase; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--label); margin-bottom: 18px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 4px; font-weight: 700; font-size: 13px; }
.status-pill.on { background: rgba(52, 211, 153, .15); color: var(--ok); }
.status-pill.off { background: rgba(248, 113, 113, .13); color: var(--danger); }
.notice { padding: 16px 18px; border: 1px solid #333338; border-radius: 12px; color: var(--label); }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* Playlists */
.pl-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #2c2c31; }
.pl-head .muted b { color: #fff; }
.pl-list { display: grid; gap: 10px; margin-bottom: 30px; }
.pl-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255, 255, 255, .04); border: 1px solid #2f2f35; border-radius: 12px; }
.pl-item .info { flex: 1; min-width: 0; }
.pl-item .info b { display: block; }
.pl-item .info span { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.section-label { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.tabs { display: flex; gap: 0; margin-bottom: 22px; border-bottom: 2px solid #2c2c31; }
.tabs button { flex: 1; padding: 12px; margin-bottom: -2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--dim); font: 700 15px var(--font); cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.tabs button.active { color: #fff; border-bottom-color: var(--accent); }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; min-height: calc(100vh - 80px - 144px); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.12; margin: 0 0 26px; }
.hero p { font-size: 17px; line-height: 1.6; color: #e6e6e6; margin: 0 0 30px; max-width: 620px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .actions .btn { min-width: 150px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; min-height: 0; } }

/* Device mock-ups around the real app screenshots */
.devices { position: relative; padding: 0 6% 56px 0; }
.devices img { width: 100%; height: auto; display: block; }
.tv { position: relative; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #2a2a2e, #0c0c0e); box-shadow: 0 40px 90px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06); }
.tv img { border-radius: 6px; }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 30%; height: 26px; transform: translateX(-50%); background: linear-gradient(180deg, #222226, #0b0b0d); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.phone { position: absolute; right: 0; bottom: 0; width: 25%; padding: 5px; border-radius: 22px; background: #111114; box-shadow: 0 30px 60px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); }
.phone img { border-radius: 17px; }

.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.screens figure { margin: 0; }
.screens img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.screens figcaption { margin-top: 12px; color: var(--label); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
@media (max-width: 800px) { .screens { grid-template-columns: 1fr; } }

.disclaimer {
  position: relative; max-width: 560px; margin: 40px 0 0 auto; padding: 22px 52px 22px 26px; border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-dark) -20%, #000 140%); color: #fff; font-size: 14px; line-height: 1.5;
}
.disclaimer button { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

.band { padding: 80px 0; }
.band.light { background: #fff; color: #111; --accent-text: var(--accent); }
.band.light .muted, .band.light p { color: #333; }
.band.dark { background: #0a0a0b; }
.band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0 0 18px; }
.band .lead { font-size: 17px; margin: 0 0 40px; max-width: 760px; }

.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.dl-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 24px; border: 1px solid var(--accent); border-radius: 8px; background: #fff; }
.dl-card .ico { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 20px; background: #f4f4f5; }
.dl-card h3 { margin: 4px 0 0; font-size: 20px; font-weight: 600; }
.dl-card p { margin: 0; font-size: 15px; }
.dl-card .btn { margin-top: auto; }
.dl-card .btn.primary { text-transform: none; font-size: 14px; min-height: 34px; padding: 6px 18px; }
.dl-card .soon { display: inline-block; margin-top: auto; padding: 5px 14px; border-radius: 4px; background: #f1f1f2; color: #555; font-weight: 700; font-size: 13px; }
.dl-card code { background: #f4f4f5; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
@media (max-width: 700px) { .downloads { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 26px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; }
.band.light .card { background: #fff; border-color: #e4e4e7; }
.band.light .card p { color: #444; }

/* Legal notice modal */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .78); display: grid; place-items: center; padding: 20px; }
.modal { max-width: 740px; max-height: 90vh; overflow: auto; background: #fff; color: #111; border-radius: 10px; padding: 30px 34px 26px; }
.modal h2 { margin: 0 0 16px; font-size: 34px; text-align: center; }
.modal p { font-size: 16px; }
.modal ul { padding-left: 18px; font-size: 14px; }
.modal .small { font-size: 14px; color: #555; }
.modal .actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.modal .btn.primary { text-transform: none; font-size: 16px; padding: 10px 22px; }

/* Footer */
.site-footer { background: #000; padding: 64px 0 16px; color: #fff; font-size: 17px; }
.site-footer .inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.foot-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid #3a3a3f; }
.foot-top a { color: #fff; }
.foot-top .mail { display: flex; align-items: center; gap: 10px; }
.foot-top .foot-logo img { width: 56px; height: 56px; border-radius: 50%; }
.foot-top .social { justify-self: end; color: var(--label); font-size: 14px; max-width: 340px; text-align: right; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 18px; font-size: 15px; }
.foot-bottom .links { display: flex; flex-wrap: wrap; gap: 6px 0; }
.foot-bottom .links a { color: #fff; padding: 0 12px; border-left: 1px solid #555; }
.foot-bottom .links a:first-child { border-left: 0; }
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .foot-top .social { justify-self: center; text-align: center; }
  .foot-bottom { justify-content: center; text-align: center; }
}

/* Legal and guide pages */
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0 0 10px; }
.legal h2 { font-size: 21px; margin-top: 30px; }
.legal p, .legal li { color: #d4d4d8; }
.fill { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); padding: 0 4px; border-radius: 4px; }
details { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; }
details p, details ol { color: #c9c9ce; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--dim); font-weight: 700; }
pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; }
.captcha-row input::placeholder { color: #5f5f66; letter-spacing: normal; font-family: var(--font); font-size: 16px; }
