:root {
  --bg: #0a0e16; --bg2: #101622; --surface: #161e2e; --surface2: #1d2739; --line: #263248;
  --text: #e9eef7; --muted: #8d9ab0; --accent: #4f8cff; --accent2: #7aa8ff; --violet: #8a5cff;
  --good: #3ccf8e; --warn: #ffb547; --bad: #ff5d6c; --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10,14,22,.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--violet)); display: grid; place-items: center; }
.logo .mark::after { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.logo .iv { color: var(--accent2); margin-left: -6px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.langs { display: flex; gap: 4px; }
.langs button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 8px; font: 600 12px var(--font); cursor: pointer; }
.langs button.on { background: var(--surface2); color: var(--text); border-color: var(--accent); }
@media (max-width: 760px) { .nav { display: none; } .langs { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 13px 22px; font: 700 16px var(--font); border: 1px solid var(--line); background: var(--surface2); color: var(--text); cursor: pointer; transition: transform .1s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #6b6dff); border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* hero */
.hero { padding: 88px 0 72px; background: radial-gradient(ellipse at 20% 0%, #1d3160 0%, transparent 60%), radial-gradient(ellipse at 90% 30%, rgba(138,92,255,.18) 0%, transparent 50%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent2), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #c7d0df; margin: 18px 0 30px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.tv { aspect-ratio: 16/10; border-radius: 18px; background: linear-gradient(160deg, #18233c, #0d1320); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); padding: 18px; display: grid; grid-template-columns: 30% 1fr; gap: 12px; }
.tv .col { display: flex; flex-direction: column; gap: 8px; }
.tv .bar { height: 14px; border-radius: 6px; background: var(--surface2); }
.tv .bar.on { background: linear-gradient(90deg, var(--accent), #6b6dff); }
.tv .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tv .card { aspect-ratio: 2/3; border-radius: 8px; background: linear-gradient(160deg, #24314d, #151d2d); }
.tv .card:nth-child(3n+1) { background: linear-gradient(160deg, #2b3f6e, #18223a); }
.tv .card:nth-child(4) { outline: 2px solid var(--accent); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 56px; } }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg2); }
h2.sec { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.01em; margin-bottom: 10px; }
p.sub { color: var(--muted); font-size: 17px; margin-bottom: 36px; max-width: 46em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(79,140,255,.14); color: var(--accent2); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.device { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.device h3 { font-size: 18px; }
.device p { color: var(--muted); font-size: 15px; flex: 1; }
.code { font-family: ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--text); }

/* pricing */
.price-card { max-width: 520px; margin: 0 auto; text-align: center; background: linear-gradient(160deg, #16233f, var(--surface)); border: 1px solid var(--accent); border-radius: 20px; padding: 36px; }
.price-card .amount { font-size: 52px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }
.price-card .per { color: var(--muted); }
.price-card ul { list-style: none; text-align: left; margin: 22px 0 26px; display: grid; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 10px; }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin-top: 10px; }

/* activate page */
.panel { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.field { display: flex; gap: 10px; margin: 18px 0 8px; }
.field input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; color: var(--text); font: 600 18px ui-monospace, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.field input:focus { outline: none; border-color: var(--accent); }
.hint { color: var(--muted); font-size: 14px; }
.status { margin-top: 24px; border-radius: 14px; padding: 20px; border: 1px solid var(--line); background: var(--bg2); }
.status .badge { display: inline-block; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; }
.badge.trial { background: rgba(79,140,255,.15); color: var(--accent2); }
.badge.expired, .badge.blocked { background: rgba(255,93,108,.15); color: var(--bad); }
.badge.active { background: rgba(60,207,142,.15); color: var(--good); }
.badge.unknown { background: rgba(255,181,71,.15); color: var(--warn); }
#pp-buttons { margin-top: 18px; }
.msg-ok { color: var(--good); font-weight: 600; margin-top: 14px; }
.msg-err { color: var(--bad); margin-top: 14px; }

/* legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 0; }
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal h2 { font-size: 21px; margin: 30px 0 8px; }
.legal p, .legal li { color: #c7d0df; }
.legal ul { padding-left: 22px; }
.legal .meta { color: var(--muted); font-size: 14px; }

/* footer */
footer { border-top: 1px solid rgba(255,255,255,.06); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }

/* admin */
.admin { padding: 32px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat small { color: var(--muted); display: block; }
.stat b { font-size: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td .mini { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
