:root,
:root[data-theme="obsidian"] {
  --font-geist-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-geist-mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  --bg: #0b0a09;
  --bg-deep: #070605;
  --panel: #151311;
  --panel-soft: #1b1815;
  --text: #f4eee6;
  --muted: #9c938a;
  --accent: #ff5a1f;
  --accent-strong: #d92d20;
  --accent-soft: #ffb347;
  --border: #3b342e;
  --grid: rgba(255, 90, 31, 0.08);
  --glow: rgba(255, 90, 31, 0.18);
  --heading: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --mono: var(--font-geist-mono), "IBM Plex Mono", monospace;
}

:root[data-theme="midnight"] {
  --bg: #060812;
  --bg-deep: #04050b;
  --panel: #0b1020;
  --panel-soft: #11182a;
  --text: #f7f9fc;
  --muted: #96a2ba;
  --accent: #22d3ee;
  --accent-strong: #8b5cf6;
  --accent-soft: #a78bfa;
  --border: #26334d;
  --grid: rgba(34, 211, 238, 0.08);
  --glow: rgba(139, 92, 246, 0.2);
  --heading: var(--font-geist-sans), Arial, sans-serif;
  --mono: var(--font-geist-mono), monospace;
}

:root[data-theme="command"] {
  --bg: #07100f;
  --bg-deep: #040a09;
  --panel: #0c1715;
  --panel-soft: #101e1b;
  --text: #f2f8f6;
  --muted: #8fa7a1;
  --accent: #3ce6a4;
  --accent-strong: #30c9c4;
  --accent-soft: #80f1ca;
  --border: #203630;
  --grid: rgba(60, 230, 164, 0.07);
  --glow: rgba(48, 201, 196, 0.18);
  --heading: var(--font-geist-sans), Arial, sans-serif;
  --mono: var(--font-geist-mono), monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: 78px 78px;
  color: var(--text);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  transition: background-color 240ms ease, color 240ms ease;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 0 clamp(24px, 4vw, 72px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.site-header nav button {
  position: relative;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.site-header nav button:hover {
  color: var(--text);
}

.site-header nav button:first-child {
  color: var(--accent);
}

.site-header nav button:first-child::after {
  position: absolute;
  bottom: -31px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--accent);
  content: "";
  transform: translateX(-50%);
}

.theme-picker {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.theme-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 13px currentColor;
}

.theme-picker select {
  max-width: 145px;
  border: 0;
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
  overflow: hidden;
  padding: 70px clamp(28px, 5vw, 76px) 60px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 78% 38%, var(--glow), transparent 34%),
    linear-gradient(90deg, var(--bg) 46%, transparent);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 62%, var(--grid) 62% 63%, transparent 63%);
  content: "";
}

.hero-copy,
.network-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  color: var(--text);
  font-family: var(--heading);
  font-size: clamp(64px, 7.3vw, 118px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-wrap: balance;
  text-transform: none;
}

:root[data-theme="obsidian"] .hero h1 {
  text-transform: none;
}

.hero-description {
  max-width: 590px;
  margin: 32px 0 0 34px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 34px 0 0 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 0 28px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.button.primary:hover:not(:disabled) {
  box-shadow: 0 10px 35px var(--glow);
}

.button.secondary:hover {
  border-color: var(--accent-soft);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 0 34px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.trust-line i {
  width: 22px;
  height: 1px;
  background: var(--border);
}

.network-visual {
  min-height: 570px;
}

.map-grid {
  position: absolute;
  inset: 20px 0 40px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 48% 43%, var(--glow), transparent 28%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    color-mix(in srgb, var(--panel) 70%, transparent);
  background-size: auto, 30px 30px, 30px 30px, auto;
  clip-path: polygon(10% 0, 100% 0, 100% 86%, 92% 86%, 92% 100%, 0 100%, 0 16%);
}

.map-grid::after {
  position: absolute;
  inset: 24% 11%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.45;
  content: "";
  transform: rotate(-14deg);
}

.node {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  background: var(--accent-soft);
  box-shadow: 0 0 17px var(--accent);
  animation: pulse 2.8s ease-in-out infinite;
}

.node-one { left: 24%; top: 41%; }
.node-two { left: 55%; top: 28%; animation-delay: 0.7s; }
.node-three { left: 72%; top: 58%; animation-delay: 1.4s; }

.trace {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: left center;
}

.trace-one { left: 24%; top: 42%; width: 50%; transform: rotate(-18deg); }
.trace-two { left: 34%; top: 48%; width: 42%; transform: rotate(20deg); }

.status-card {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.status-primary {
  top: 58px;
  right: 2%;
  width: min(360px, 72%);
  padding: 28px;
}

.status-primary > p {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.status-primary dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.status-primary dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
}

.status-primary dt { color: var(--muted); }
.status-primary dd { margin: 0; color: var(--accent); }

.status-secondary {
  top: 280px;
  right: 6%;
  width: min(410px, 78%);
  display: flex;
  justify-content: space-between;
  padding: 22px 26px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.circuit-card {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 30px;
  width: 65%;
  height: 230px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--panel), transparent);
}

.circuit-card i {
  position: absolute;
  right: -8%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: rotate(-18deg);
  box-shadow: 0 0 8px var(--accent);
}

.circuit-card i:nth-child(1) { top: 22%; }
.circuit-card i:nth-child(2) { top: 42%; right: -2%; }
.circuit-card i:nth-child(3) { top: 62%; right: -14%; }
.circuit-card i:nth-child(4) { top: 82%; right: 5%; }

.subscriptions,
.benefits,
.apply-section,
.status-section {
  scroll-margin-top: 78px;
  padding: 90px clamp(28px, 5vw, 76px);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.status-section h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.section-heading > p:last-child,
.status-section > div > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.progress-heading {
  max-width: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 60px;
}

.progress-heading h2 {
  font-family: var(--mono);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: 0;
}

.progress-track {
  height: 1px;
  margin-bottom: 8px;
  overflow: visible;
  background: var(--border);
}

.progress-track span {
  display: block;
  height: 3px;
  margin-top: -1px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--glow);
  transition: width 220ms ease;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
}

.platform-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.platform-card:hover {
  z-index: 2;
  border-color: var(--accent);
  background: var(--panel-soft);
  transform: translateY(-4px);
}

.platform-card.disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.platform-corner {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.platform-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.platform-card strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.platform-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.platform-state {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: var(--muted);
  font-size: 20px;
}

.platform-state.selected { color: var(--accent); }

.benefits {
  background:
    radial-gradient(circle at 4% 20%, var(--glow), transparent 24%),
    var(--bg-deep);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.benefit-grid article {
  min-height: 245px;
  padding: 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 58%, transparent);
}

.benefit-grid article > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

.benefit-grid h3 {
  margin: 60px 0 12px;
  font-family: var(--heading);
  font-size: 30px;
  letter-spacing: -0.02em;
}

.benefit-grid p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: start;
}

.verification-form {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 18px 18px 0 color-mix(in srgb, var(--accent) 10%, transparent);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.verification-form label > span,
.status-form label > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verification-form input:not([type="checkbox"]),
.verification-form select,
.status-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.verification-form input::placeholder,
.status-form input::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }

.honeypot {
  position: absolute;
  left: -10000px;
}

.verification-form fieldset {
  margin: 36px 0 0;
  padding: 0;
  border: 0;
}

.verification-form legend {
  margin-bottom: 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.check-grid label {
  min-height: 86px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-content: center;
  gap: 2px 10px;
  padding: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.check-grid label:hover,
.check-grid label.checked {
  border-color: var(--accent);
  background: var(--glow);
}

.check-grid input {
  position: absolute;
  opacity: 0;
}

.check-grid label > span {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
}

.check-grid strong {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.check-grid small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.consent input {
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.consent > span {
  margin: 0 !important;
  font-family: var(--font-geist-sans) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.submit-button {
  width: 100%;
  margin-top: 24px;
}

.form-message {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
}

.form-message.error {
  border-color: #d92d20;
  color: #ff8a80;
  background: rgba(217, 45, 32, 0.08);
}

.form-message.success {
  border-color: var(--accent);
  color: var(--text);
  background: var(--glow);
}

.form-message b { color: var(--accent); }

.status-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px 70px;
  align-items: end;
  background: var(--bg-deep);
}

.status-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.status-section > .form-message,
.status-result {
  grid-column: 2;
}

.status-result {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.status-result > div {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.status-result small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.status-result strong {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  text-overflow: ellipsis;
}

.status-result .accent { color: var(--accent); }

footer {
  min-height: 140px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 30px clamp(28px, 5vw, 76px);
  background: var(--bg-deep);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.footer-brand { font-size: 16px; }
footer p:nth-child(2) { color: var(--accent); }
footer p:last-child { justify-self: end; }

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr 0.8fr; }
  .network-visual { min-height: 480px; }
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
  .apply-section { grid-template-columns: 1fr; }
  .apply-section .section-heading { max-width: 700px; }
  .status-section { grid-template-columns: 1fr; align-items: start; }
  .status-section > .form-message,
  .status-result { grid-column: 1; }
}

@media (max-width: 860px) {
  .site-header { height: 68px; padding: 0 20px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .theme-picker select { max-width: 105px; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 70px 24px 40px;
  }
  .hero-description,
  .hero-actions,
  .trust-line { margin-left: 0; }
  .network-visual { min-height: 460px; }
  .subscriptions,
  .benefits,
  .apply-section,
  .status-section { padding: 70px 24px; scroll-margin-top: 68px; }
  .progress-heading { grid-template-columns: 1fr; gap: 24px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 200px; }
  .benefit-grid h3 { margin-top: 38px; }
  .field-grid,
  .check-grid { grid-template-columns: 1fr 1fr; }
  .status-form { grid-template-columns: 1fr; }
  .status-result { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  footer p:last-child { justify-self: center; }
}

@media (max-width: 520px) {
  .brand > span:last-child { display: none; }
  .hero h1 { font-size: clamp(56px, 19vw, 82px); }
  .hero-description { padding-left: 16px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; justify-content: space-between; }
  .network-visual { min-height: 410px; }
  .status-primary { width: 84%; padding: 22px; }
  .status-secondary { top: 260px; width: 88%; }
  .circuit-card { width: 80%; height: 180px; }
  .platform-grid,
  .field-grid,
  .check-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 150px; }
  .verification-form { padding: 22px; box-shadow: 9px 9px 0 var(--glow); }
  .status-result { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.admin-shell { min-height: 100vh; padding: 110px clamp(20px, 4vw, 64px) 60px; }
.admin-header { position: fixed; inset: 0 0 auto 0; grid-template-columns: 1fr auto; }
.admin-header .admin-nav { justify-self: end; display: flex; gap: 12px; align-items: center; }
.admin-login { width: min(500px, 100%); margin: 8vh auto 0; padding: 36px; border: 1px solid var(--border); background: var(--panel); }
.admin-login h1 { margin: 0 0 12px; font-family: var(--heading); font-size: 48px; }
.admin-login p { color: var(--muted); line-height: 1.6; }
.admin-login label { display: block; margin: 18px 0; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.admin-login input, .admin-toolbar input, .admin-toolbar select, .admin-card input, .admin-card select, .admin-card textarea {
  width: 100%; min-height: 46px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 0;
  background: var(--bg-deep); color: var(--text); font-family: var(--mono); font-size: 12px;
}
.admin-card textarea { min-height: 78px; resize: vertical; }
.admin-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.admin-title h1 { margin: 0; font-family: var(--heading); font-size: clamp(46px, 7vw, 82px); line-height: .9; }
.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; margin-bottom: 30px; }
.admin-stat { padding: 22px; border: 1px solid var(--border); background: var(--panel); }
.admin-stat small { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.admin-stat strong { display: block; margin-top: 12px; color: var(--accent); font-family: var(--heading); font-size: 38px; }
.admin-toolbar { display: grid; grid-template-columns: 1fr 200px auto; align-items: end; gap: 12px; margin: 26px 0; }
.admin-toolbar label { color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.admin-list { display: grid; gap: 14px; }
.admin-card { padding: 24px; border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 92%, transparent); }
.admin-card summary { display: grid; grid-template-columns: 1.4fr 1fr .8fr .8fr auto; gap: 16px; align-items: center; cursor: pointer; list-style: none; }
.admin-card summary::-webkit-details-marker { display: none; }
.admin-card summary strong { font-family: var(--mono); font-size: 12px; }
.admin-card summary span { color: var(--muted); font-size: 12px; }
.status-badge { display: inline-flex; width: fit-content; padding: 6px 9px; border: 1px solid var(--border); color: var(--accent) !important; font-family: var(--mono); font-size: 9px !important; }
.admin-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.admin-platforms { display: grid; gap: 8px; }
.admin-platform-row { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--border); }
.admin-platform-row form { display: contents; }
.admin-platform-row strong { font-family: var(--mono); font-size: 11px; }
.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.admin-actions .message-field { grid-column: 1 / -1; }
.flash { margin-bottom: 22px; padding: 14px 18px; border: 1px solid var(--accent); background: var(--glow); font-family: var(--mono); font-size: 11px; }
.flash.error { border-color: #d92d20; color: #ff8a80; background: rgba(217,45,32,.08); }
.empty-state { padding: 60px 24px; border: 1px solid var(--border); color: var(--muted); text-align: center; }
.compact-button { min-height: 40px; width: auto; padding: 0 16px; gap: 8px; }
.platform-settings { margin-top: 30px; }

@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-card summary { grid-template-columns: 1fr 1fr; }
  .admin-card-body { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .admin-shell { padding-inline: 14px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-card { padding: 16px; }
  .admin-card summary { grid-template-columns: 1fr; }
  .admin-platform-row { grid-template-columns: 1fr; }
  .admin-platform-row form { display: grid; gap: 8px; }
  .admin-actions { grid-template-columns: 1fr; }
}
