:root {
  --bg: #07020f;
  --panel: #160b2e;
  --panel-2: #241044;
  --line: rgba(216, 180, 254, 0.26);
  --text: #f4f0ff;
  --muted: #cbbce7;
  --blue: #7c3aed;
  --teal: #c084fc;
  --amber: #fde68a;
  --rose: #fb7185;
  --violet: #a855f7;
  --cyan: #f0abfc;
  --danger: #fb7185;
  --ok: #86efac;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(240, 171, 252, 0.22), transparent 170px),
    radial-gradient(circle at 12% 0%, rgba(124, 58, 237, 0.28), transparent 260px),
    linear-gradient(135deg, #07020f 0%, #17072d 52%, #090314 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
}

a { color: var(--text); text-decoration: none; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 5, 17, 0.82);
  backdrop-filter: blur(18px);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 0 22px rgba(240, 171, 252, .28);
}
.brand::before {
  content: "V";
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  letter-spacing: 0;
  font-size: 20px;
  background: radial-gradient(circle at 65% 28%, #fff 0 12%, #d8b4fe 13% 24%, #7c3aed 42%, #2e1065 78%);
  box-shadow: 0 0 22px rgba(216,180,254,.58);
}
.navlinks { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); align-items: center; }
.navlinks a {
  color: var(--muted);
  min-width: 124px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 850;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, filter .18s ease;
}
.navlinks a:hover { color: var(--text); }
.navlinks a[href="/subscription"] {
  border: 1px solid rgba(240, 171, 252, .52);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.22), transparent 42px),
    linear-gradient(135deg, #c026d3, #7c3aed 50%, #4f46e5);
  box-shadow: 0 14px 30px rgba(168, 85, 247, .32), 0 0 20px rgba(240, 171, 252, .14);
}
.nav-login, .nav-cta {
  min-width: 124px;
  min-height: 54px !important;
  padding: 0 18px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nav-cta {
  color: white !important;
  border-color: rgba(216, 180, 254, .48);
  background: linear-gradient(135deg, #7e22ce, #4f46e5);
  box-shadow: 0 12px 24px rgba(168, 85, 247, .22);
  font-weight: 900;
}

.hero { padding: 72px 0 36px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.voidex-hero { min-height: calc(100vh - 128px); }
.eyebrow { color: var(--cyan); text-transform: uppercase; font-weight: 800; letter-spacing: 0.12em; font-size: 12px; }
h1 { margin: 12px 0 16px; font-size: clamp(42px, 7vw, 86px); line-height: 0.95; letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 42px); letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 18px; }
p { color: var(--muted); margin: 0 0 14px; }
.lead { color: #d9e5f7; font-size: 18px; max-width: 680px; }

.panel, .card, .auth-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(36, 16, 68, 0.94), rgba(13, 6, 28, 0.94));
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.panel { padding: 24px; }
.rune-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
  border: 1px solid rgba(216, 180, 254, .22);
  background:
    radial-gradient(circle at 50% 50%, rgba(168,85,247,.18), transparent 58%),
    linear-gradient(180deg, rgba(36,16,68,.32), rgba(13,6,28,.12));
  box-shadow: var(--shadow);
}
.rune-stage::before {
  content: "";
  position: absolute;
  inset: 6%;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(240,171,252,.24), transparent 56%),
    url("/assets/voidex/rune-sheet.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 24px rgba(168,85,247,.42));
  opacity: .62;
}
.rune-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .2;
  pointer-events: none;
}
.hero-figure {
  min-height: min(72vh, 680px);
}
.rune-orbit {
  position: absolute;
  inset: 3%;
  pointer-events: none;
  opacity: .72;
  background:
    radial-gradient(circle at 16% 22%, rgba(240,171,252,.45) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 72%, rgba(124,58,237,.55) 0 2px, transparent 3px),
    url("/assets/voidex/rune-sheet.webp") center / min(58%, 420px) no-repeat;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 22px rgba(168,85,247,.4));
}
.magic-console {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(240,171,252,.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7,2,15,.78), rgba(22,8,45,.72));
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 28px rgba(168,85,247,.22);
}
.visual-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.head-figure {
  min-height: 280px;
  max-height: 390px;
}
.rune-badge::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 7px;
  background: url("/assets/voidex/rune-sheet.webp") 50% 50% / 220px 220px no-repeat;
  filter: drop-shadow(0 0 9px rgba(240,171,252,.72));
}
.hero-demo {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: relative;
}
.demo-bar { display: flex; gap: 8px; margin-bottom: 8px; }
.demo-bar span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.26); }
.demo-question {
  border: 1px solid rgba(240, 171, 252, .24);
  border-radius: 8px;
  padding: 18px;
  color: #eaf7ff;
  font-size: 20px;
  font-weight: 900;
  background: rgba(8, 13, 21, .62);
}
.demo-row, .demo-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.045);
}
.demo-row span, .demo-score span { color: var(--muted); }
.ok-row strong, .demo-score strong { color: var(--ok); }
.demo-score strong { font-size: 34px; line-height: 1; }
.page-head, .profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  border: 1px solid rgba(216, 180, 254, 0.36);
  background: linear-gradient(135deg, #7e22ce, #4f46e5);
  color: white;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(168, 85, 247, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn.hero-cta, .btn.pro-cta {
  min-height: 56px;
  padding: 15px 24px;
  font-size: 17px;
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 16px 34px rgba(168, 85, 247, .38), 0 0 24px rgba(240, 171, 252, .2);
}
.btn.pro-cta {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.24), transparent 42px),
    linear-gradient(135deg, #c026d3, #7c3aed 48%, #4f46e5);
  color: #fff;
}
.btn.pro-cta.secondary {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.2), transparent 42px),
    linear-gradient(135deg, rgba(192, 38, 211, .32), rgba(124, 58, 237, .24));
  border-color: rgba(240, 171, 252, .48);
  color: #fff;
}
.btn.secondary { background: rgba(255,255,255,0.06); box-shadow: none; color: var(--text); }
.btn.table-action { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.danger-btn { border-color: rgba(251, 113, 133, .5); color: #ffe4e6; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 250px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

@media (hover: hover) and (pointer: fine) {
  .rune-orbit {
    animation: runePulse 4.8s ease-in-out infinite;
  }
  .btn:hover, .nav-cta:hover, .navlinks a[href="/subscription"]:hover {
    background:
      radial-gradient(circle at 82% 18%, rgba(255,255,255,.28), transparent 42px),
      linear-gradient(135deg, #d946ef, #8b5cf6 46%, #2563eb);
    border-color: rgba(240, 171, 252, .62);
    box-shadow: 0 18px 38px rgba(168, 85, 247, .44), 0 0 28px rgba(240, 171, 252, .24);
    transform: translateY(-2px);
    filter: saturate(1.08);
  }
  .btn.secondary:hover, .nav-login:hover {
    background: rgba(216, 180, 254, .14);
    border-color: rgba(240, 171, 252, .48);
    box-shadow: 0 12px 26px rgba(168, 85, 247, .18);
    transform: translateY(-1px);
  }
  .btn.pro-cta:hover {
    background:
      radial-gradient(circle at 82% 18%, rgba(255,255,255,.32), transparent 46px),
      linear-gradient(135deg, #f0abfc, #a855f7 44%, #4f46e5);
  }
  .card:hover, .panel:hover {
    border-color: rgba(240, 171, 252, .42);
    box-shadow: 0 20px 48px rgba(168,85,247,.24);
  }
  .footer-grid a:hover {
    color: #fff;
    text-shadow: 0 0 18px rgba(240,171,252,.38);
  }
}

@keyframes runePulse {
  0%, 100% { opacity: .5; transform: scale(.985); }
  50% { opacity: .86; transform: scale(1.02); }
}

.btn:focus-visible, .navlinks a:focus-visible {
  outline: 3px solid rgba(240, 171, 252, .38);
  outline-offset: 3px;
}

.btn:active, .nav-cta:active, .nav-login:active {
  transform: translateY(1px) scale(.99);
  box-shadow: 0 8px 18px rgba(168, 85, 247, .22);
}

@media (hover: none), (pointer: coarse) {
  .btn, .nav-login, .nav-cta {
    transition-duration: .12s;
  }
  .btn:active, .nav-cta:active, .nav-login:active {
    background: linear-gradient(135deg, #a855f7, #4f46e5);
    border-color: rgba(240, 171, 252, .46);
    transform: scale(.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav-login, .nav-cta, .rune-orbit {
    transition: none;
    animation: none;
  }
  .btn:hover, .nav-cta:hover, .nav-login:hover,
  .btn:active, .nav-cta:active, .nav-login:active {
    transform: none;
  }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 18px; min-height: 120px; }
.pricing-grid {
  display: grid;
  grid-template-columns: .9fr 1.05fr 1.18fr;
  gap: 16px;
  margin: 28px 0;
  align-items: stretch;
}
.price-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card.with-runes::before {
  content: "";
  position: absolute;
  inset: auto -18% -24% auto;
  width: 250px;
  height: 250px;
  background: url("/assets/voidex/rune-sheet.webp") center / contain no-repeat;
  opacity: .22;
  mix-blend-mode: screen;
  pointer-events: none;
}
.price-card > * {
  position: relative;
  z-index: 1;
}
.price-card .metric { margin-top: auto; }
.price-stack {
  margin-top: auto;
  display: grid;
  gap: 4px;
}
.price-stack .old-price {
  width: max-content;
  color: rgba(203, 188, 231, .72);
  font-size: 22px;
  font-weight: 850;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--rose);
}
.price-stack strong {
  color: #fff;
  font-size: clamp(38px, 4vw, 56px);
  line-height: .98;
  letter-spacing: 0;
}
.price-stack small {
  color: var(--ok);
  font-weight: 850;
  min-height: 20px;
}
.midi-card {
  border-color: rgba(240, 171, 252, .42);
  background:
    radial-gradient(circle at 86% 14%, rgba(240,171,252,.2), transparent 86px),
    linear-gradient(180deg, rgba(50, 20, 92, .96), rgba(14, 7, 31, .96));
}
.pro-card {
  transform: translateY(-8px);
  border-color: rgba(240, 171, 252, .62);
  background:
    radial-gradient(circle at 86% 13%, rgba(255,255,255,.26), transparent 78px),
    radial-gradient(circle at 14% 0%, rgba(192,38,211,.28), transparent 140px),
    linear-gradient(180deg, rgba(72, 25, 128, .98), rgba(18, 7, 36, .98));
  box-shadow: 0 24px 58px rgba(168,85,247,.34), 0 0 34px rgba(240,171,252,.18);
}
.stat-hero h2 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: .95;
  margin-top: 12px;
}
.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: rgba(7, 2, 15, .58);
  padding: 28px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.footer-grid a {
  color: var(--muted);
  transition: color .18s ease, text-shadow .18s ease;
}
.support-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.metric { font-size: 30px; font-weight: 900; color: white; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; color: var(--cyan); background: rgba(103,232,249,.08); font-size: 12px; font-weight: 800; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.danger { color: var(--danger); }

.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 32px 0; }
.auth-card { width: min(440px, 100%); padding: 28px; }
.auth-split {
  grid-template-columns: minmax(320px, 440px) minmax(280px, 560px);
  gap: 28px;
}
.auth-art {
  width: 100%;
  min-height: 560px;
}
.forgot-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--cyan);
  font-weight: 850;
}
.auth-submit { width: 100%; margin-top: 20px; }
label { display: block; margin-top: 14px; color: var(--muted); font-weight: 700; }
input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(190,148,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.admin-inline {
  width: auto;
  min-width: 92px;
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(190,148,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.admin-inline.mini { min-width: 72px; max-width: 96px; }
.admin-create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.admin-create-form label { margin-top: 0; }
.admin-create-form select {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(190,148,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.admin-create-form button { min-height: 48px; }
.admin-chart {
  min-height: 160px;
  display: flex;
  align-items: end;
  gap: 10px;
  overflow-x: auto;
}
.chart-bar {
  min-width: 48px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 5px;
  justify-items: center;
  color: var(--muted);
}
.chart-bar span {
  width: 100%;
  align-self: end;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #f0abfc, #7c3aed);
  box-shadow: 0 10px 24px rgba(168,85,247,.25);
}
.chart-bar b { color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.table-head h2 { margin: 0; }
.table-search { max-width: 340px; margin: 0; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(190,148,255,.14); }
th { color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #e8e0ff; }
tbody tr:hover { background: rgba(192, 132, 252, .06); }
.empty-cell { text-align: center; color: var(--muted); padding: 22px 12px; }
.section { padding: 34px 0; }
.status { min-height: 22px; color: var(--muted); margin-top: 10px; }
.status-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.status-actions .btn {
  width: 100%;
  min-height: 48px;
}
.extension-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
  margin: 26px 0 8px;
  align-items: stretch;
}
.download-card {
  border: 1px solid rgba(216, 180, 254, .34);
  border-radius: 8px;
  padding: 24px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,255,255,.2), transparent 62px),
    linear-gradient(135deg, rgba(126, 34, 206, .32), rgba(79, 70, 229, .18)),
    linear-gradient(180deg, rgba(36, 16, 68, .96), rgba(13, 6, 28, .96));
  box-shadow: var(--shadow);
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.download-card h2 { margin-top: 12px; }
.connect-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.connect-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.connect-top h3 {
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 22px;
}
.connection-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 7px rgba(134, 239, 172, .1), 0 0 22px rgba(134, 239, 172, .55);
  margin-top: 6px;
  flex: 0 0 auto;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.dashboard-main, .discount-panel, .tariff-panel { grid-column: span 3; }
.dashboard-guest {
  grid-column: span 3;
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.18), transparent 86px),
    linear-gradient(135deg, rgba(126,34,206,.24), rgba(79,70,229,.12)),
    linear-gradient(180deg, rgba(36, 16, 68, .96), rgba(13, 6, 28, .96));
}
.dashboard-guest h2 {
  margin-top: 12px;
  font-size: clamp(30px, 5vw, 54px);
}
.dashboard-guest p {
  max-width: 620px;
  font-size: 17px;
}
.guest-actions {
  display: grid;
  gap: 12px;
  min-width: 220px;
}
.tariff-panel {
  border-color: rgba(240,171,252,.42);
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.16), transparent 90px),
    linear-gradient(135deg, rgba(192,38,211,.22), rgba(79,70,229,.14)),
    linear-gradient(180deg, rgba(36, 16, 68, .96), rgba(13, 6, 28, .96));
}
.stats-split {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}
.answer-chart {
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--teal) 0 var(--answered-pct), var(--rose) 0 100%);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 44px rgba(0,0,0,.24);
}
.answer-chart > div {
  width: 66%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #0e1523;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
}
.answer-chart strong { font-size: 34px; line-height: 1; }
.answer-chart span { color: var(--muted); font-size: 12px; font-weight: 800; }
.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.chart-legend div {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,.045);
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 4px 10px;
  align-content: center;
}
.chart-legend strong { font-size: 24px; line-height: 1; }
.chart-legend span:last-child { color: var(--muted); grid-column: 2; }
.dot { width: 10px; height: 10px; border-radius: 999px; align-self: center; }
.answered-dot { background: var(--teal); }
.unanswered-dot { background: var(--rose); }
.db-dot { background: var(--blue); }
.gpt-dot { background: var(--amber); }
.discount-counter {
  border: 1px solid rgba(45, 212, 191, .26);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ok);
  font-weight: 900;
  background: rgba(45, 212, 191, .08);
  white-space: nowrap;
}
.progress {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  margin: 14px 0;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

@media (max-width: 820px) {
  .shell { width: min(100% - 24px, 1180px); }
  .hero, .visual-head, .auth-split, .grid, .grid.two, .grid.four, .dashboard-layout, .stats-split, .chart-legend, .extension-hero, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .dashboard-main, .discount-panel, .tariff-panel, .dashboard-guest { grid-column: auto; }
  .dashboard-guest { grid-template-columns: 1fr; min-height: auto; }
  .guest-actions { min-width: 0; }
  .pro-card { transform: none; }
  .hero { padding: 38px 0 18px; gap: 18px; }
  .voidex-hero { min-height: auto; }
  .rune-stage, .hero-figure, .auth-art, .head-figure { min-height: 220px; max-height: 320px; }
  .magic-console { position: relative; left: auto; right: auto; bottom: auto; margin-top: -84px; }
  .rune-orbit { opacity: .36; background-size: 260px; }
  .visual-head { gap: 12px; }
  h1 { font-size: clamp(36px, 11vw, 48px); line-height: 1.02; }
  h2 { font-size: clamp(24px, 7vw, 32px); }
  .lead { font-size: 16px; }
  .nav { align-items: stretch; flex-direction: column; padding: 12px 0; gap: 12px; }
  .brand { font-size: 20px; justify-content: center; }
  .brand::before { width: 36px; height: 36px; }
  .navlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .navlinks a { min-width: 0; min-height: 52px; padding: 0 10px; }
  .navlinks a[href="/subscription"] { min-height: 52px; padding: 0 10px; }
  .actions, .page-head, .profile-line, .demo-row, .demo-score, .connect-top { align-items: stretch; flex-direction: column; }
  .actions .btn, .logout-btn, .profile-line .btn { width: 100%; }
  .panel, .card, .auth-card { padding: 16px; }
  .auth-card { width: 100%; }
  .download-card { padding: 16px; min-height: auto; }
  .connect-card { min-height: auto; }
  .connection-dot { display: none; }
  .hero-demo { min-height: auto; }
  .answer-chart { margin: 0 auto; max-width: 220px; }
  .table-head { align-items: stretch; flex-direction: column; }
  .table-search { max-width: none; }
  .admin-create-form { grid-template-columns: 1fr; }
  table { min-width: 680px; }
}

@media (max-width: 460px) {
  body { font-size: 14px; }
  .navlinks { grid-template-columns: 1fr; }
  .status-actions { grid-template-columns: 1fr; }
  .metric { font-size: 26px; }
  .demo-score strong, .answer-chart strong { font-size: 30px; }
  .section { padding: 24px 0; }
  .grid, .dashboard-layout { margin: 18px 0; gap: 12px; }
}
