: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;
  --violet-hot: #c026d3;
  --cyan: #f0abfc;
  --pink: #f0abfc;
  --danger: #fb7185;
  --ok: #86efac;
  --aqua: #67e8f9;
  --lime: #a7f3d0;
  --ink-panel: rgba(10, 18, 30, .62);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --button-font-size: 16px;
  --button-line-height: 1.2;
  --nav-button-height: 64px;
  --nav-button-width: 154px;
  --font-body: "Golos Text", "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-tech: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font: 15px/1.5 var(--font-body);
  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;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a { color: var(--text); text-decoration: none; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.panel,
.card,
.auth-card,
.dashboard-main,
.discount-panel,
.tariff-panel,
.lectures-panel,
.lecture-progress,
.lecture-item,
.lecture-form,
.file-picker {
  min-width: 0;
}
.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: 14px;
  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: "";
  width: 72px;
  height: 72px;
  border-radius: 0;
  display: inline-block;
  background: url("/assets/voidex-selected/rune-logo.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(216,180,254,.74));
}
.navlinks { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); align-items: center; }
.navlinks a {
  color: var(--muted);
  min-width: var(--nav-button-width);
  min-height: var(--nav-button-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  font-weight: 850;
  padding: 0 22px;
  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, .nav-logout {
  min-width: var(--nav-button-width);
  min-height: var(--nav-button-height) !important;
  padding: 0 22px;
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  font-weight: 850;
  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: 850;
}
.nav-logout {
  color: #fff !important;
  border-color: rgba(251, 113, 133, .54) !important;
  background: linear-gradient(135deg, rgba(190, 18, 60, .9), rgba(127, 29, 29, .82)) !important;
  box-shadow: 0 12px 24px rgba(251, 113, 133, .18);
}

.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); font-family: var(--font-tech); text-transform: uppercase; font-weight: 800; letter-spacing: 0.12em; font-size: 12px; }
h1 { margin: 12px 0 16px; font-family: var(--font-body); font-size: clamp(42px, 7vw, 86px); line-height: 0.95; letter-spacing: -.04em; }
h2 { margin: 0 0 14px; font-family: var(--font-body); font-size: clamp(26px, 4vw, 42px); letter-spacing: -.035em; }
h3 { margin: 0 0 8px; font-family: var(--font-body); font-size: 18px; letter-spacing: -.02em; }
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; }
.hero-showcase {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: start;
  justify-items: center;
}
.mascot-art {
  display: block;
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0,0,0,.52)) drop-shadow(0 0 22px rgba(168,85,247,.28));
}
.mascot-hero {
  max-height: min(74vh, 650px);
  margin-top: -28px;
  margin-bottom: 0;
}
.hero-demo {
  width: min(68%, 340px);
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: absolute;
  right: 0;
  bottom: 12px;
  background: linear-gradient(180deg, rgba(22, 8, 45, .92), rgba(7, 2, 15, .9));
  backdrop-filter: blur(12px);
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(103, 232, 249, .24);
  border-radius: 999px;
  color: #d9fbff;
  background: rgba(8, 47, 73, .28);
  font-size: 13px;
  font-weight: 850;
}
.section.readiness-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 12px 0 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 18%, rgba(103, 232, 249, .12), transparent 120px),
    linear-gradient(180deg, rgba(36, 16, 68, 0.94), rgba(13, 6, 28, 0.94));
  box-shadow: var(--shadow);
}
.readiness-strip h2 {
  margin-top: 10px;
}
.readiness-strip p {
  max-width: 820px;
  margin-bottom: 0;
}
.readiness-strip .btn {
  justify-self: end;
  min-width: 210px;
}
.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; }
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card .rune-icon {
  position: absolute;
  right: 14px;
  top: 14px;
}
.feature-card.compact {
  padding-right: 16px;
}
.rune-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: .82;
  filter: drop-shadow(0 0 12px rgba(168,85,247,.28));
}
.feature-card h3,
.feature-card p,
.feature-card .badge {
  position: relative;
  z-index: 1;
}
.page-head, .profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-head > div,
.profile-line > div {
  min-width: 0;
}
.profile-line h2,
.dashboard-main h2,
.tariff-panel h2,
.discount-panel h2,
.lecture-item strong,
.lecture-progress-top strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.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-family: var(--font-tech);
  font-weight: 800;
  font-size: var(--button-font-size);
  letter-spacing: .035em;
  line-height: var(--button-line-height);
  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;
}
input,
select,
textarea,
button,
.btn {
  max-width: 100%;
}
.btn.hero-cta, .btn.pro-cta {
  min-height: 56px;
  padding: 15px 24px;
  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: var(--button-font-size); 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) {
  .btn:hover, .navlinks a[href="/subscription"]:hover, .nav-cta: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, .navlinks a:not([href="/subscription"]):not(.nav-cta):not(.nav-logout):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);
  }
  .nav-logout:hover {
    background: linear-gradient(135deg, #fb7185, #be123c) !important;
    border-color: rgba(255, 228, 230, .62) !important;
    box-shadow: 0 14px 30px rgba(251, 113, 133, .26);
    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);
  }
}

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

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

@media (hover: none), (pointer: coarse) {
  .btn, .navlinks a {
    transition-duration: .12s;
  }
  .btn:active, .navlinks a:active {
    background: linear-gradient(135deg, #a855f7, #4f46e5);
    border-color: rgba(240, 171, 252, .46);
    transform: scale(.985);
  }
  .nav-logout:active {
    background: linear-gradient(135deg, #fb7185, #be123c) !important;
    border-color: rgba(255, 228, 230, .58) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .navlinks a {
    transition: none;
  }
  .btn:hover, .navlinks a:hover,
  .btn:active, .navlinks a: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;
}
.plan-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 2px 0 8px;
  padding: 0;
  list-style: none;
}
.plan-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: #e6dcff;
  font-weight: 720;
  line-height: 1.35;
}
.plan-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--ok));
  box-shadow: 0 0 16px rgba(103, 232, 249, .38);
}
.plan-rune {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 66px;
  height: 66px;
  object-fit: contain;
  opacity: .82;
  filter: drop-shadow(0 0 18px rgba(168,85,247,.32));
  pointer-events: none;
}
.plan-mascot {
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: min(42%, 230px);
  height: auto;
  opacity: .5;
  filter: drop-shadow(0 0 26px rgba(168,85,247,.36));
  pointer-events: none;
}
.pro-card .plan-mascot {
  width: min(92%, 620px);
  right: -92px;
  bottom: 0;
  opacity: .26;
  filter: drop-shadow(0 0 34px rgba(168,85,247,.42)) drop-shadow(0 22px 44px rgba(0,0,0,.44));
}
.price-card > :not(.plan-rune):not(.plan-mascot) {
  position: relative;
  z-index: 1;
}
.price-card .plan-rune,
.price-card .plan-mascot {
  z-index: 0;
}
.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 12% 88%, rgba(103, 232, 249, .12), transparent 110px),
    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: none;
  border-color: rgba(240, 171, 252, .62);
  background:
    radial-gradient(circle at 10% 92%, rgba(134,239,172,.13), transparent 120px),
    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);
}
.pro-card .badge,
.pro-card h2,
.pro-card p,
.pro-card .price-stack,
.pro-card .btn {
  max-width: 72%;
}
.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;
}
.text-link {
  color: #f0abfc;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.support-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.metric { color: white; font-family: var(--font-tech); font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.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-family: var(--font-tech); font-size: 12px; font-weight: 800; letter-spacing: .035em; }
.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;
  min-height: 56px;
  font-family: var(--font-tech);
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  font-weight: 850;
}
label { display: block; margin-top: 14px; color: var(--muted); font-weight: 700; }
#registrationConsents {
  display: grid;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 13px;
  border: 1px solid rgba(103, 232, 249, .24);
  background:
    linear-gradient(135deg, rgba(103, 232, 249, .05), transparent 48%),
    rgba(6, 3, 18, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
#registrationConsents legend {
  padding: 0 8px;
  color: var(--cyan);
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#registrationConsents label {
  position: relative;
  display: block;
  margin: 0;
  padding: 10px 11px 10px 42px;
  border: 1px solid transparent;
  color: #dbeafe;
  background: rgba(15, 8, 35, .58);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
  transition: border-color .18s ease, background .18s ease;
}
#registrationConsents label:hover {
  border-color: rgba(168, 85, 247, .48);
  background: rgba(39, 16, 72, .7);
}
#registrationConsents label:has(input:checked) {
  border-color: rgba(103, 232, 249, .62);
  background: linear-gradient(90deg, rgba(8, 76, 102, .62), rgba(39, 16, 72, .68));
}
#registrationConsents label:has(input:focus-visible) {
  outline: 2px solid rgba(103, 232, 249, .88);
  outline-offset: 2px;
}
#registrationConsents input[type="checkbox"] {
  position: absolute;
  top: 11px;
  left: 11px;
  display: grid;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  place-content: center;
  border: 1px solid rgba(103, 232, 249, .82);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .26), transparent 30%), #180b35;
  box-shadow: inset 0 0 0 1px rgba(10, 4, 26, .7), 0 0 0 1px rgba(168, 85, 247, .18);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
#registrationConsents input[type="checkbox"]::after {
  width: 7px;
  height: 4px;
  border: solid #14072c;
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg) scale(0);
  transition: transform .14s ease;
}
#registrationConsents input[type="checkbox"]:checked {
  background: radial-gradient(circle at 35% 30%, #fff, #9ff9ff 28%, var(--cyan) 30%, #22a9c8 100%);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, .45), 0 0 16px rgba(103, 232, 249, .38);
}
#registrationConsents input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
#registrationConsents input[type="checkbox"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
#registrationConsents a {
  color: #b8f7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#registrationConsents a:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  #registrationConsents label,
  #registrationConsents input[type="checkbox"],
  #registrationConsents input[type="checkbox"]::after { transition: none; }
}
.password-control {
  position: relative;
  display: block;
  margin-top: 6px;
}
.password-control input {
  margin-top: 0;
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  display: grid;
  place-items: center;
  top: 50%;
  right: 7px;
  width: 36px;
  min-width: 36px;
  min-height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(216, 180, 254, .25);
  border-radius: 6px;
  color: rgba(244, 240, 255, .78);
  background: rgba(7, 2, 15, .72);
  cursor: pointer;
}
.password-toggle::before {
  content: "";
  grid-area: 1 / 1;
  width: 17px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50% / 60%;
}
.password-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.password-toggle[aria-pressed="true"]::before {
  box-shadow: inset 0 0 0 3px rgba(7, 2, 15, .84);
}
.password-toggle[aria-pressed="true"]::after {
  width: 20px;
  height: 1.5px;
  border-radius: 0;
  background: currentColor;
  transform: rotate(-42deg);
}
.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle[aria-pressed="true"] {
  border-color: rgba(103, 232, 249, .54);
  color: #fff;
  background: rgba(32, 14, 57, .9);
}
.password-toggle:focus-visible {
  outline: 2px solid rgba(103, 232, 249, .68);
  outline-offset: 2px;
}
input,
select,
textarea {
  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);
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
}
select {
  min-height: 50px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #eadcff 50%),
    linear-gradient(135deg, #eadcff 50%, transparent 50%),
    linear-gradient(135deg, rgba(192,38,211,.2), rgba(79,70,229,.14));
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 16px) 50%,
    0 0;
  background-size:
    8px 8px,
    8px 8px,
    100% 100%;
  background-repeat: no-repeat;
}
select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(232,121,249,.68);
  box-shadow: 0 0 0 3px rgba(168,85,247,.18);
}
select option {
  color: #171024;
  background: #f4edff;
}
.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-inline.email-cell { min-width: 230px; }
.admin-inline.password-cell { min-width: 160px; }
.admin-create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  align-items: start;
}
.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);
}
.field-hint {
  display: block;
  margin-top: 6px;
  color: rgba(203, 188, 231, .78);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.admin-create-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}
.admin-create-form button {
  min-height: 52px;
  min-width: 240px;
}
.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-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.table-search { max-width: 340px; margin: 0; }
.table-filter {
  width: auto;
  min-width: 132px;
  max-width: 190px;
  margin: 0;
  padding: 10px 34px 10px 12px;
}
.user-filters {
  justify-content: flex-start;
  margin-bottom: 12px;
}
.subscription-days {
  display: inline-block;
  min-width: 64px;
  font-weight: 900;
  color: var(--text);
}
.subscription-meta {
  margin-top: 8px;
  color: #f5d0fe;
  font-weight: 800;
}
.warning-text { color: #fde68a; }
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; }
main.section { padding-top: 46px; }
.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 {
  position: relative;
  overflow: hidden;
  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 > :not(.card-mascot) {
  position: relative;
  z-index: 1;
}
.card-mascot {
  position: absolute;
  right: -18px;
  bottom: -54px;
  width: 260px;
  max-width: 46%;
  opacity: .72;
  filter: drop-shadow(0 26px 38px rgba(0,0,0,.48));
  pointer-events: none;
}
.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; }
.session-management-panel { grid-column: span 3; }
.session-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 4, 24, .26);
}
.session-item.current {
  border-color: rgba(45, 212, 191, .5);
  background: linear-gradient(135deg, rgba(45, 212, 191, .11), rgba(79, 70, 229, .08));
}
.session-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.session-current {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.session-item p,
.session-item small,
.session-status,
.session-empty {
  margin: 6px 0 0;
  color: var(--muted);
}
.session-item small { display: block; font-size: 12px; }
.session-status { min-height: 1.4em; }
.session-item > div { min-width: 0; }
.session-revoke { white-space: normal; align-self: center; }
.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));
}
.lectures-panel {
  grid-column: 1 / -1;
}
.lecture-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}
.lecture-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}
.file-picker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  width: 100%;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}
.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet-hot), var(--blue));
  box-shadow: 0 10px 28px rgba(124, 58, 237, .24);
}
.file-picker-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 800;
}
.file-picker:focus-within {
  border-color: rgba(190,148,255,.72);
  box-shadow: 0 0 0 3px rgba(124,58,237,.16);
}
.lecture-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.lecture-add-ons {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(192, 132, 252, .4);
  border-radius: 10px;
  background: linear-gradient(115deg, rgba(124, 58, 237, .13), rgba(253, 230, 138, .05));
}
.lecture-add-ons > div:first-child { display: grid; gap: 2px; }
.lecture-add-ons p, .lecture-add-ons small { margin: 0; color: var(--muted); }
.lecture-add-on-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lecture-add-on {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  min-height: 74px;
  padding: 11px 12px 10px 16px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 254, .34);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: rgba(8, 3, 18, .44);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.lecture-add-on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--amber), var(--violet-hot));
}
.lecture-add-on span { font-weight: 800; }
.lecture-add-on b { color: var(--amber); font-family: var(--font-tech); }
.lecture-add-on small { grid-column: 1 / -1; font-size: 12px; }
.lecture-add-on:hover:not(:disabled), .lecture-add-on:focus-visible {
  border-color: rgba(253, 230, 138, .78);
  outline: none;
  transform: translateY(-2px);
  background: rgba(63, 25, 103, .38);
}
.lecture-add-on:disabled { opacity: .58; cursor: not-allowed; }
.lecture-add-on-state { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.lecture-add-on-state li { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.lecture-add-on-refund { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.lecture-add-on-refund:hover, .lecture-add-on-refund:focus-visible { color: var(--text); border-color: var(--amber); outline: none; }
.lecture-progress {
  margin: 2px 0 16px;
  padding: 14px;
  border: 1px solid rgba(45, 212, 191, .24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, .1), rgba(190, 148, 255, .08)),
    rgba(255,255,255,.035);
}
.lecture-progress.idle {
  border-color: var(--line);
  background: rgba(255,255,255,.035);
}
.lecture-progress.failed {
  border-color: rgba(251, 113, 133, .34);
  background: rgba(251, 113, 133, .08);
}
.lecture-progress.ready {
  border-color: rgba(34, 197, 94, .34);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, .09), rgba(190, 148, 255, .08)),
    rgba(255,255,255,.035);
}
.lecture-progress.active {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, .16), 0 18px 44px rgba(45, 212, 191, .08);
}
.lecture-progress-top,
.lecture-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.lecture-progress-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lecture-progress-top span,
.lecture-progress-meta {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.lecture-progress-live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: var(--ok);
  font-size: 14px;
  font-weight: 900;
}
.lecture-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 rgba(45, 212, 191, .46);
  animation: lecturePulse 1.35s ease-out infinite;
}
.lecture-progress-bar {
  position: relative;
  isolation: isolate;
  height: 14px;
  margin: 12px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
}
.lecture-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.58) 45%, rgba(255,255,255,.82) 50%, rgba(255,255,255,.58) 55%, transparent 100%);
  transform: translateX(-110%);
}
.lecture-progress-bar span {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--violet-hot));
  transition: width .35s ease;
}
.lecture-progress.active .lecture-progress-bar span {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 10px, rgba(255,255,255,0) 10px 20px),
    linear-gradient(90deg, var(--teal), var(--blue), var(--violet-hot));
  background-size: 34px 34px, 100% 100%;
  animation: lectureBarMove .85s linear infinite, lectureBarGlow 1.4s ease-in-out infinite alternate;
}
.lecture-progress.active .lecture-progress-bar::after {
  opacity: .9;
  animation: lectureBarSweep 1.15s linear infinite;
}
.lecture-progress.failed .lecture-progress-bar span {
  background: linear-gradient(90deg, var(--rose), #fca5a5);
}
.lecture-progress.ready .lecture-progress-bar span {
  background: linear-gradient(90deg, var(--ok), var(--teal));
}
@keyframes lecturePulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .48); }
  100% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
}
@keyframes lectureBarGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.2); }
}
@keyframes lectureBarMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 34px 0, 0 0; }
}
@keyframes lectureBarSweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}
.lecture-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.lecture-item p {
  margin: 4px 0 0;
  color: var(--muted);
}
.lecture-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.lecture-map-shell {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.lecture-map-head,
.lecture-map-workspace {
  display: grid;
  gap: 14px;
}
.lecture-map-head {
  grid-template-columns: 1fr auto;
  align-items: start;
}
.lecture-map-head div {
  display: grid;
  gap: 4px;
}
.lecture-map-head span {
  color: var(--muted);
  font-weight: 800;
}
.lecture-map-workspace {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: stretch;
}
.lecture-graph,
.lecture-node-detail,
.lecture-node-list {
  border: 1px solid rgba(190,148,255,.22);
  border-radius: 8px;
  background: rgba(10, 4, 26, .54);
}
.lecture-graph {
  min-height: 420px;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(124,58,237,.12);
}
.lecture-graph svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.lecture-graph-links line {
  stroke: rgba(190,148,255,.24);
  stroke-width: 1.2;
}
.lecture-graph-core {
  fill: rgba(232,121,249,.82);
  filter: drop-shadow(0 0 12px rgba(232,121,249,.5));
}
.lecture-graph-core-text,
.lecture-graph-node text {
  fill: rgba(244,238,255,.82);
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(10,4,26,.8);
  stroke-width: 3px;
}
.lecture-graph-node {
  cursor: pointer;
}
.lecture-graph-node circle {
  fill: rgba(45,212,191,.86);
  stroke: rgba(255,255,255,.64);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(45,212,191,.42));
}
.lecture-graph-node.active circle {
  fill: rgba(232,121,249,.96);
  stroke: rgba(255,255,255,.92);
  filter: drop-shadow(0 0 16px rgba(232,121,249,.8));
}
.lecture-graph-node.active text {
  fill: #fff;
}
.lecture-node-detail {
  max-height: 420px;
  overflow: auto;
  padding: 16px;
}
.lecture-node-detail h4 {
  margin: 0 0 8px;
  font-size: 20px;
}
.lecture-node-detail p {
  margin: 0 0 14px;
  color: var(--muted);
}
.lecture-node-detail section {
  margin-top: 14px;
}
.lecture-node-detail ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.lecture-node-detail li {
  margin: 6px 0;
}
.lecture-node-pages {
  margin-top: 14px;
  color: var(--pink);
  font-weight: 900;
}
.lecture-node-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
}
.lecture-node-list button {
  min-width: 0;
  text-align: left;
  padding: 10px;
  border: 1px solid rgba(190,148,255,.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  cursor: pointer;
}
.lecture-node-list button.active {
  border-color: rgba(45,212,191,.64);
  background: rgba(45,212,191,.12);
}
.lecture-node-list b,
.lecture-node-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lecture-node-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.public-maps-page .page-head {
  align-items: end;
}
.public-map-card {
  display: grid;
  align-content: start;
  gap: 10px;
}
.public-map-card h3 {
  margin: 0;
  font-size: 20px;
}
.public-map-card p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
}
.public-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--pink);
  font-weight: 900;
}
@media (max-width: 900px) {
  .lecture-map-workspace,
  .lecture-node-list {
    grid-template-columns: 1fr;
  }
  .lecture-graph,
  .lecture-graph svg,
  .lecture-node-detail {
    min-height: 340px;
    max-height: 420px;
  }
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}
.admin-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  background: rgba(255,255,255,.045);
}
.admin-tab.active {
  border-color: rgba(232,121,249,.55);
  background: linear-gradient(135deg, rgba(192,38,211,.72), rgba(79,70,229,.78));
  box-shadow: 0 14px 32px rgba(124,58,237,.24);
}
.admin-nav-card {
  color: var(--text);
  text-decoration: none;
}
.pro-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.pro-settings-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.pro-settings-intro h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}
.pro-field {
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(190,148,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.pro-field span {
  display: block;
  color: var(--text);
  font-weight: 900;
  margin-bottom: 8px;
}
.pro-field small {
  display: block;
  min-height: 38px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}
.pro-switch-field {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  cursor: pointer;
}
.pro-switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pro-switch-ui {
  display: block;
  width: 58px;
  height: 32px;
  margin-bottom: 0;
  border-radius: 999px;
  border: 1px solid rgba(190,148,255,.36);
  background: rgba(255,255,255,.08);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.pro-switch-ui::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  background: #d8c7ff;
  transition: transform .18s ease, background .18s ease;
}
.pro-switch-field input:checked + .pro-switch-ui {
  border-color: rgba(52,211,153,.55);
  background: linear-gradient(135deg, rgba(16,185,129,.55), rgba(34,211,238,.36));
}
.pro-switch-field input:checked + .pro-switch-ui::after {
  transform: translateX(25px);
  background: #ecfdf5;
}
.pro-switch-copy b {
  display: block;
  color: var(--text);
  font-weight: 900;
}
.pro-switch-copy {
  margin-bottom: 0;
}
.pro-switch-copy small {
  min-height: auto;
}
.lecture-upload-disabled {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(251,191,36,.28);
  border-radius: 8px;
  background: rgba(251,191,36,.08);
}
.lecture-upload-disabled strong {
  display: block;
  color: #fde68a;
  font-weight: 900;
}
.lecture-upload-disabled p {
  margin: 6px 0 0;
  color: var(--muted);
}
.token-chart .chart-bar span {
  background: linear-gradient(180deg, var(--violet-hot), var(--blue));
}
.danger-text {
  color: #fca5a5;
  font-weight: 900;
}

@media (max-width: 820px) {
  .shell { width: min(100% - 18px, 1180px); }
  .lecture-add-on-grid { grid-template-columns: 1fr; }
  .hero, .auth-split, .grid, .grid.two, .grid.four, .dashboard-layout, .stats-split, .chart-legend, .extension-hero, .pricing-grid, .footer-grid, .pro-settings-intro, .lecture-form, .file-picker { grid-template-columns: 1fr; }
  .dashboard-main, .discount-panel, .tariff-panel, .session-management-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: 30px 0 18px; gap: 16px; }
  .voidex-hero { min-height: auto; }
  .hero-showcase { min-height: auto; align-items: center; }
  .mascot-hero { width: min(76vw, 300px); max-height: 260px; margin: 0 auto 6px; }
  .hero-demo { position: relative; right: auto; bottom: auto; width: 100%; margin-top: -8px; }
  .trust-strip { gap: 6px; }
  .trust-strip span { width: 100%; justify-content: center; border-radius: 8px; }
  .section.readiness-strip { grid-template-columns: 1fr; padding: 16px; margin-top: 4px; }
  .readiness-strip .btn { justify-self: stretch; width: 100%; min-width: 0; }
  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: 56px; height: 56px; }
  .navlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .navlinks a,
  .navlinks a[href="/subscription"],
  .nav-login,
  .nav-cta {
    min-width: 0;
    min-height: 52px;
    padding: 0 10px;
    font-size: var(--button-font-size);
    line-height: var(--button-line-height);
  }
  .plan-mascot {
    width: 170px;
    right: -38px;
    bottom: -44px;
    opacity: .34;
  }
  .pro-card .plan-mascot {
    width: 320px;
    right: -96px;
    bottom: 0;
    opacity: .2;
  }
  .pro-card .badge,
  .pro-card h2,
  .pro-card p,
  .pro-card .price-stack,
  .pro-card .btn {
    max-width: none;
  }
  .actions, .page-head, .profile-line, .demo-row, .demo-score, .connect-top, .lecture-item, .lecture-actions { align-items: stretch; flex-direction: column; }
  .session-item { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; }
  .session-revoke { width: 100%; min-height: 44px; justify-self: stretch; }
  .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; }
  .card-mascot { width: 150px; max-width: 34%; right: 0; bottom: -40px; opacity: .42; }
  .plan-rune { width: 50px; height: 50px; top: 14px; right: 14px; opacity: .68; }
  .rune-icon { width: 34px; height: 34px; }
  .connect-card { min-height: auto; }
  .connect-top h3 { font-size: clamp(20px, 8vw, 28px); line-height: 1.08; overflow-wrap: anywhere; }
  .connection-dot { display: none; }
  .hero-demo { min-height: auto; }
  .answer-chart { margin: 0 auto; max-width: 220px; }
  .profile-line h2 { font-size: clamp(26px, 8vw, 34px); line-height: 1.05; }
  .lecture-form,
  .file-picker,
  .lecture-progress,
  .lecture-item {
    width: 100%;
  }
  .file-picker {
    grid-template-columns: minmax(0, 1fr);
  }
  .file-picker-button,
  .file-picker-name {
    width: 100%;
  }
  .table-head { align-items: stretch; flex-direction: column; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .table-search { max-width: none; }
  .admin-create-form, .pro-settings-form { grid-template-columns: 1fr; }
  .admin-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table { min-width: 680px; }
}

@media (max-width: 460px) {
  body { font-size: 14px; }
  .voidex-hero .lead { font-size: 15px; }
  .voidex-hero p:not(.lead) { font-size: 14px; }
  .hero-demo { gap: 10px; padding: 14px; }
  .demo-question { font-size: 17px; padding: 14px; }
  .navlinks { grid-template-columns: 1fr; }
  .admin-tabs { 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; }
  main.section { padding-top: 34px; }
  .grid, .dashboard-layout { margin: 18px 0; gap: 12px; }
}
