/* ============================================================ OpenVisuals
   dark-green theme
   ============================================================ */

:root {
  --bg: #050d09;
  --bg-2: #07150e;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .055);
  --line: rgba(148, 255, 196, .10);
  --line-strong: rgba(148, 255, 196, .22);
  --accent: #4ade80;
  --accent-2: #22c55e;
  --accent-dim: rgba(74, 222, 128, .14);
  --fg: #e8f5ee;
  --muted: #8ea89a;
  --danger: #ff8f7a;
  --warn: #f7c873;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: rgba(74, 222, 128, .28); color: #f0fff6; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #060f0b; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #14532d, #166534); border-radius: 99px; border: 2px solid #060f0b; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #15803d, #16a34a); }

body {
  margin: 0;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(34, 197, 94, .16), transparent 60%),
    radial-gradient(800px 480px at 0% 20%, rgba(16, 185, 129, .10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--fg);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden { display: none !important; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 750; }
h3 { font-size: 17px; font-weight: 650; }

p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(460px, 100% - 40px); }

/* ------------------------------------------------------------------ decor */
.glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(120px); opacity: .5; pointer-events: none;
  will-change: transform;
}
.glow-a { width: 520px; height: 520px; top: -180px; right: -120px; background: rgba(34, 197, 94, .35); animation: drift-a 22s ease-in-out infinite alternate; }
.glow-b { width: 460px; height: 460px; bottom: -220px; left: -160px; background: rgba(6, 148, 96, .30); animation: drift-b 26s ease-in-out infinite alternate; }

@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, 60px) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, -50px) scale(1.12); } }

.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 255, 196, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 255, 196, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 13, 9, .72);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.brand-mark { display: grid; place-items: center; }
.brand-text { font-size: 18px; letter-spacing: -.01em; }
.brand-text span { color: var(--accent); }

.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color .18s; }
.nav-links a:hover { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; margin: 4px 0; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .15s, background .18s, border-color .18s, filter .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #04170d; box-shadow: 0 10px 30px rgba(34, 197, 94, .28);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .6s;
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { filter: brightness(1.06); }

.btn-outline { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--fg); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-dim); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }

.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #b9f5d3; background: var(--accent-dim); border: 1px solid var(--line-strong);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse-dot 2.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 6px var(--accent); opacity: 1; } 50% { box-shadow: 0 0 16px var(--accent); opacity: .65; } }

.eyebrow {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

.grad {
  background: linear-gradient(92deg, var(--accent) 10%, #a7f3d0 55%, #34d399 95%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shimmer 7s ease-in-out infinite;
}

@keyframes grad-shimmer { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* ----------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  align-items: center; padding: 86px 0 76px;
}
.lead { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats {
  list-style: none; display: flex; gap: 34px; padding: 0; margin: 44px 0 0;
}
.hero-stats li { display: flex; flex-direction: column; gap: 3px; }
.hero-stats b { font-size: 22px; font-weight: 750; color: var(--accent); }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-art { position: relative; }

.art-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(-1.2deg);
}
.art-head {
  display: flex; align-items: center; gap: 7px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.art-head b { margin-left: 8px; color: var(--fg); font-weight: 600; }
.art-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.art-body { padding: 20px; display: grid; gap: 12px; }
.art-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px; color: var(--muted);
}
.art-row b { color: var(--fg); font-weight: 600; }
.art-row b.ok { color: var(--accent); }
.art-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.art-bar i { display: block; height: 100%; width: 72%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.art-play {
  margin-top: 4px; text-align: center; padding: 12px; border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #04170d; font-weight: 700; font-size: 14px;
}

.art-float {
  position: absolute; right: -14px; bottom: -26px;
  background: rgba(6, 20, 13, .92); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  display: grid; gap: 3px; animation: float 5s ease-in-out infinite;
}
.art-float span { font-size: 12.5px; color: var(--accent); }
.art-float b { font-size: 14px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* -------------------------------------------------------------- sections */
section.container, .container + .container { scroll-margin-top: 90px; }
#features, #how, #pricing, #faq { padding-top: 74px; scroll-margin-top: 84px; }

.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head p { color: var(--muted); margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s, background .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-5px); background: var(--panel-2); box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 0 1px rgba(74, 222, 128, .06); }
.feature:hover::before { opacity: 1; }
.f-icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px;
  border-radius: 12px; background: var(--accent-dim); border: 1px solid var(--line-strong);
  color: var(--accent); font-size: 20px; transition: transform .25s, box-shadow .25s;
}
.feature:hover .f-icon { transform: scale(1.08) rotate(-3deg); box-shadow: 0 0 22px rgba(74, 222, 128, .25); }
.feature p { color: var(--muted); font-size: 14px; margin-top: 8px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; transition: transform .2s, border-color .2s, background .2s;
}
.step::after {
  content: ""; position: absolute; right: 18px; top: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(74, 222, 128, .16); border: 1px dashed rgba(74, 222, 128, .35);
}
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-2); }
.step span {
  font-size: 30px; font-weight: 800; color: rgba(74, 222, 128, .32);
  display: block; margin-bottom: 10px; background: linear-gradient(180deg, rgba(74,222,128,.55), rgba(74,222,128,.18));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .25s;
}
.step:hover span { transform: translateY(-2px); }
.step p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* --------------------------------------------------------------- pricing */
.pricing { max-width: 640px; margin: 0 auto; }

.price-card {
  background: linear-gradient(165deg, rgba(74, 222, 128, .10), rgba(255, 255, 255, .02));
  border: 1px solid rgba(74, 222, 128, .28); border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(74, 222, 128, .05); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  background-clip: padding-box;
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(74, 222, 128, .5); box-shadow: var(--shadow), 0 0 60px rgba(74, 222, 128, .12); }
.price-card::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 243, 208, .8), transparent);
}
.price-card::after {
  content: ""; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(74, 222, 128, .30), transparent 70%);
  animation: pulse-card 5s ease-in-out infinite;
}
@keyframes pulse-card { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; }
.price b { font-size: 58px; font-weight: 850; letter-spacing: -.04em; }
.price span { color: var(--muted); font-size: 16px; }
.price-note { color: var(--muted); font-size: 14px; }
.price-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 11px; }
.price-list li { position: relative; padding-left: 28px; font-size: 14.5px; color: #cfe7db; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent); font-size: 11px; font-weight: 800;
}

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 20px;
}
.faq details[open] { border-color: var(--line-strong); background: var(--panel-2); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 20px; font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ----------------------------------------------------------------- auth */
.auth-card {
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 22px; padding: 34px; margin: 70px 0 90px; box-shadow: var(--shadow);
}
.auth-head h1 { font-size: 30px; margin-top: 16px; }
.auth-head .hint { margin-top: 8px; }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line);
  border-radius: 12px; margin: 24px 0 20px;
}
.segmented button {
  background: transparent; border: 0; color: var(--muted); font: inherit; font-weight: 600;
  padding: 10px; border-radius: 9px; cursor: pointer; transition: .18s;
}
.segmented button.active { background: var(--accent-dim); color: var(--accent); }

label { display: block; color: var(--muted); font-size: 12.5px; margin: 14px 0 7px; font-weight: 600; }

input, select {
  width: 100%; background: rgba(0, 0, 0, .30); border: 1px solid var(--line);
  color: var(--fg); border-radius: 12px; padding: 12px 14px; font: inherit; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder { color: rgba(142, 168, 154, .65); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 222, 128, .14); }
input:disabled { opacity: .5; }

#auth-form .btn { margin-top: 22px; }

.msg { min-height: 20px; margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.msg.ok { color: var(--accent); }
.msg.err { color: var(--danger); }
.msg.warn { color: var(--warn); }

.fine { color: var(--muted); font-size: 12.5px; margin-top: 14px; text-align: center; }
.hint { color: var(--muted); font-size: 14px; }

.agree-row {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--muted); font-size: 13px; font-weight: 400;
  margin: 16px 0 0; padding: 12px 14px;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: border-color .18s, background .18s;
}
.agree-row:hover { border-color: var(--line-strong); background: rgba(0, 0, 0, .3); }
.agree-row input[type="checkbox"] {
  flex: 0 0 17px; width: 17px; height: 17px; margin: 1px 0 0;
  accent-color: var(--accent); cursor: pointer;
}
.agree-row a { color: var(--accent); }
.agree-row a:hover { text-decoration: underline; }
#agree-msg { margin-top: 8px; }

/* ------------------------------------------------------------- documents */
.docs {
  max-width: 780px; margin: 56px auto 90px;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 22px; padding: 44px; box-shadow: var(--shadow);
}
.docs-head { margin-bottom: 28px; }
.docs-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 8px; }
.docs h2 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--fg); }
.docs p, .docs li { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.docs ul { padding: 0 0 0 18px; margin: 0 0 14px; }
.docs a { color: var(--accent); }
.docs a:hover { text-decoration: underline; }
.docs-foot {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  display: grid; gap: 3px;
}
@media (max-width: 620px) {
  .docs { padding: 26px 20px; margin: 34px auto 60px; border-radius: 16px; }
}

/* -------------------------------------------------------------- cabinet */
.cab-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding: 46px 0 26px;
}
.cab-head h1 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; word-break: break-all; }
.cab-actions { display: flex; gap: 10px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  display: grid; gap: 5px;
}
.stat-card span { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.stat-card b { font-size: 19px; font-weight: 700; }
.stat-card b.yes { color: var(--accent); }
.stat-card b.no { color: var(--danger); }
.stat-card i { font-style: normal; color: var(--muted); font-size: 12.5px; }

.gate {
  margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(0, 0, 0, .22);
  color: var(--muted); font-size: 14px;
}
.gate.ok { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); color: #b9f5d3; }
.gate.no { border-color: rgba(255, 143, 122, .30); background: rgba(255, 143, 122, .07); color: #ffc9bd; }

.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; padding-bottom: 70px; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.panel.span-2 { grid-column: span 2; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-head h2 { font-size: 18px; }
.sub-h { font-size: 15px; margin-bottom: 10px; }

.tag {
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--line-strong);
}
.tag.no { background: rgba(255, 143, 122, .12); color: var(--danger); border-color: rgba(255, 143, 122, .3); }

.divider { height: 1px; background: var(--line); margin: 22px 0; }

/* payment */
.pay-methods { display: grid; gap: 12px; margin-top: 6px; }
.pay-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: rgba(0, 0, 0, .26); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit;
  transition: border-color .18s, transform .15s, background .18s;
}
.pay-btn:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(74, 222, 128, .07); }
.pay-logo {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
  background: linear-gradient(160deg, #ffdb4d, #ffcc00); color: #1a1a1a;
}
.pay-text { display: grid; gap: 2px; }
.pay-text b { font-size: 15px; }
.pay-text i { font-style: normal; color: var(--muted); font-size: 13px; }

.sub-ok {
  display: flex; align-items: center; gap: 14px;
  background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .3);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 18px;
}
.sub-ok-icon {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #04170d; font-weight: 800; font-size: 18px;
}
.sub-ok b { display: block; font-size: 16px; }
.sub-ok span { color: var(--muted); font-size: 13.5px; }

/* tables */
.table { display: flex; flex-direction: column; gap: 7px; max-height: 330px; overflow: auto; }
.tr {
  display: grid; grid-template-columns: 1.5fr .8fr 1fr .9fr;
  gap: 10px; align-items: center;
  background: rgba(0, 0, 0, .24); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 13px; font-size: 13px;
}
.tr.head { background: transparent; border-color: transparent; color: var(--muted); font-size: 12px; }
.tr code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--accent); font-size: 12.5px; }
.tr .st { font-weight: 650; }
.tr .st.paid { color: var(--accent); }
.tr .st.pending { color: var(--warn); }
.tr .st.failed, .tr .st.rejected { color: var(--danger); }
.tr button { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.tr .muted { color: var(--muted); }

#admin-payments .tr { grid-template-columns: 1.2fr 1.4fr .7fr .9fr auto; }
#keys-table .tr, #users-table .tr { grid-template-columns: 1.4fr 1fr 1fr auto; }

.keys { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.keys code {
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 11px; color: var(--accent); font-size: 13px;
}
.keys code.err { color: var(--danger); }

.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.gap { gap: 12px; }
.w-sm { max-width: 110px; }
.w-md { max-width: 260px; }
#payments .tr, #keys-table .tr, #users-table .tr, #admin-payments .tr { grid-auto-rows: minmax(0, auto); }

.empty { color: var(--muted); font-size: 13.5px; padding: 6px 2px; }

/* ------------------------------------------------------ reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .05s; }
.reveal:nth-child(3) { transition-delay: .1s; }
.reveal:nth-child(4) { transition-delay: .15s; }
.reveal:nth-child(5) { transition-delay: .2s; }
.reveal:nth-child(6) { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow, .grad, .dot, .price-card::after { animation: none !important; }
}

/* --------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .30);
  padding: 46px 0 26px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.req-line { font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.req-line b { color: var(--fg); }
.contacts { display: grid; gap: 6px; margin-top: 16px; }
.contact-line {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13.5px; transition: color .18s;
}
.contact-line::before { content: "・"; color: var(--accent); }
.contact-line:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px;
  color: var(--muted); font-size: 12.5px;
}

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 80; padding: 13px 22px; border-radius: 12px;
  background: rgba(6, 20, 13, .96); border: 1px solid var(--line-strong);
  color: var(--fg); font-size: 14px; box-shadow: var(--shadow);
  animation: toast-in .25s ease;
}
.toast.ok { border-color: rgba(74, 222, 128, .45); color: #b9f5d3; }
.toast.err { border-color: rgba(255, 143, 122, .45); color: #ffc9bd; }

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; gap: 44px; }
  .hero-art { max-width: 460px; }
  .pricing { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .panel.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(5, 13, 9, .97);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
}

@media (max-width: 620px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .cab-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .tr, #admin-payments .tr, #keys-table .tr, #users-table .tr { grid-template-columns: 1fr 1fr; }
  .tr.head { display: none; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
}
