/* ZONWIX — тёмная гейминг-тема. Оригинальный дизайн, ничего не скопировано с реальных сайтов. */
:root {
  --bg: #0a0e17;
  --bg2: #0f1524;
  --panel: #131b2e;
  --panel2: #182238;
  --border: #232f47;
  --text: #e8eeff;
  --muted: #8ea0c8;
  --accent: #ffc247;
  --accent2: #ff6b6b;
  --ok: #43d18a;
  --danger: #ff5470;
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #1c2745 0%, var(--bg) 60%), var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 14, 23, 0.85); backdrop-filter: blur(8px);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 0.5px; color: var(--text); }
.logo .dot { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 0 14px var(--accent); }
.logo:hover { text-decoration: none; }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--muted); font-weight: 600; font-size: 14.5px; }
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a.active { color: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }

.lang-switch { position: relative; display: inline-flex; background: var(--panel2); border: 1px solid var(--border); border-radius: 20px; padding: 3px; gap: 2px; }
.lang-switch .lang-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); transition: transform .2s cubic-bezier(.4,0,.2,1); z-index: 0; }
.lang-switch[data-lang="en"] .lang-thumb { transform: translateX(100%); }
.lang-switch button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--muted); padding: 5px 13px; border-radius: 16px; font-size: 12px; font-weight: 800; letter-spacing: .5px; cursor: pointer; width: auto; margin: 0; transition: color .2s ease; }
.lang-switch button.active { color: #0b0f1a; }
.lang-switch button:hover:not(.active) { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel2); color: var(--text); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: transform .08s ease, border-color .15s ease; }
.btn:hover { border-color: #35456b; text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff9f4a); color: #191008; border: none; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn.danger { background: linear-gradient(135deg, var(--danger), #c23); color: #fff; border: none; }
.btn.block { width: 100%; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

.hero { padding: 90px 0 60px; text-align: center; }
.hero h1 { font-size: 46px; margin: 0 0 14px; letter-spacing: -0.5px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; }

.section { padding: 60px 0; }
.section h2 { font-size: 30px; margin: 0 0 8px; text-align: center; }
.section p.lead { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 40px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } nav.main { display: none; } }

.feature { padding: 26px; }
.feature .icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }

.pricing-card { padding: 30px 26px; position: relative; display: flex; flex-direction: column; }
.pricing-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -20px rgba(255, 194, 71, 0.35); }
.pricing-card .badge { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #191008; font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 20px; }
.pricing-card h3 { margin: 0 0 6px; font-size: 20px; }
.pricing-card .price { font-size: 34px; font-weight: 800; margin: 10px 0; }
.pricing-card .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.pricing-card ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.pricing-card ul li { color: var(--muted); font-size: 14px; padding: 6px 0; border-top: 1px solid var(--border); }
.pricing-card ul li:before { content: "✓ "; color: var(--ok); font-weight: 800; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

form.stack { display: flex; flex-direction: column; gap: 14px; }
label { font-size: 13.5px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; }
input, textarea, select { width: 100%; background: var(--bg2); border: 1px solid var(--border); color: var(--text); padding: 11px 13px; border-radius: 9px; font-size: 15px; font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.auth-page { max-width: 400px; margin: 70px auto; }
.auth-page h1 { font-size: 24px; text-align: center; margin-bottom: 4px; }
.auth-page p.hint { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 14px; }
.msg { border-radius: 9px; padding: 11px 14px; font-size: 14px; margin-bottom: 4px; }
.msg.error { background: rgba(255, 84, 112, 0.12); color: #ff8fa3; border: 1px solid rgba(255, 84, 112, 0.3); }
.msg.ok { background: rgba(67, 209, 138, 0.12); color: #6fe3ab; border: 1px solid rgba(67, 209, 138, 0.3); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.divider:before, .divider:after { content: ""; flex: 1; height: 1px; background: var(--border); }

.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.status-pill.active { background: rgba(67, 209, 138, 0.15); color: var(--ok); }
.status-pill.expired, .status-pill.banned, .status-pill.revoked { background: rgba(255, 84, 112, 0.15); color: var(--danger); }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.data th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:before { content: "＋ "; color: var(--accent); }
.faq-item[open] summary:before { content: "－ "; }
.faq-item p { color: var(--muted); margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 0; color: var(--muted); font-size: 14px; }
footer.site .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

.badge-soon { font-size: 11px; background: var(--panel2); border: 1px solid var(--border); padding: 3px 8px; border-radius: 20px; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.gap { display: flex; gap: 10px; flex-wrap: wrap; }
code, pre { font-family: "SF Mono", Consolas, monospace; }
pre.codebox { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow: auto; font-size: 13.5px; color: #b9c6e6; }
.tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--border); color: var(--muted); margin-right: 6px; }
.hide { display: none !important; }

.modal-overlay { position: fixed; inset: 0; background: rgba(6, 9, 16, 0.72); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { width: 100%; max-width: 420px; }
.modal-box h3 { margin-top: 0; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.status-pill.pending { background: rgba(255, 194, 71, 0.15); color: var(--accent); }
.status-pill.approved { background: rgba(67, 209, 138, 0.15); color: var(--ok); }
.status-pill.rejected { background: rgba(255, 84, 112, 0.15); color: var(--danger); }
