:root {
  color-scheme: dark;
  --bg: #020711;
  --bg-2: #061426;
  --panel: rgba(8, 20, 38, 0.78);
  --panel-strong: rgba(10, 28, 50, 0.94);
  --line: rgba(92, 203, 255, 0.22);
  --line-strong: rgba(92, 203, 255, 0.42);
  --text: #edf8ff;
  --muted: #90a7ba;
  --blue: #22ccff;
  --blue-2: #4f7dff;
  --teal: #4fffd3;
  --danger: #ff647c;
  --ok: #6effa4;
  --shadow: 0 22px 80px rgba(0, 102, 255, 0.2);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(34, 204, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 15% 20%, rgba(79, 125, 255, 0.18), transparent 28rem),
    linear-gradient(145deg, #020711 0%, #061426 55%, #020711 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.aurora {
  position: fixed;
  inset: auto -20% -40% -20%;
  height: 46vh;
  background: linear-gradient(90deg, transparent, rgba(34, 204, 255, 0.13), rgba(79, 125, 255, 0.12), transparent);
  filter: blur(54px);
  pointer-events: none;
  animation: auroraDrift 11s ease-in-out infinite alternate;
}
.public-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(2, 7, 17, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(92, 203, 255, 0.14);
}
.public-nav nav, .hero-actions, .inline-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-logout { margin: 0; display: inline-flex; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand span { white-space: nowrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(34, 204, 255, 0.62);
  border-radius: var(--radius);
  color: #01101a;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 800;
  box-shadow: 0 0 28px rgba(34, 204, 255, 0.22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 38px rgba(34, 204, 255, 0.32); }
.btn.ghost { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--line); box-shadow: none; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.danger {
  color: #fff6f8;
  border-color: rgba(255, 100, 124, .5);
  background: linear-gradient(135deg, rgba(255, 100, 124, .92), rgba(180, 35, 70, .86));
  box-shadow: 0 0 24px rgba(255, 100, 124, .2);
}
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.landing { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 70px; }
.landing.compact { padding-top: 36px; }
.hero {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 34px;
  padding: 48px 0 20px;
}
.cinematic-hero { position: relative; }
.cinematic-hero::before {
  content: "";
  position: absolute;
  inset: 7% 42% 12% -9%;
  background: radial-gradient(circle, rgba(34, 204, 255, .14), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.hero h1, .page-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: .9;
}
.hero p, .page-hero p { max-width: 680px; color: #bdd2e2; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.eyebrow { display: inline-block; color: var(--teal); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.hero-copy { position: relative; z-index: 2; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 640px;
}
.hero-metrics span {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(92, 203, 255, .18);
  border-radius: 8px;
  background: rgba(2, 7, 17, .48);
  color: var(--muted);
}
.hero-metrics strong { display: block; color: var(--text); font-size: 24px; }
.hero-visual {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(92, 203, 255, .2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 34px 100px rgba(0, 80, 190, .24), inset 0 0 0 1px rgba(255,255,255,.04);
  background: #03101f;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 17, .72), rgba(2, 7, 17, .12) 45%, rgba(2, 7, 17, .2)),
    radial-gradient(circle at 62% 40%, rgba(34,204,255,.16), transparent 36%);
  z-index: 1;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 130deg, transparent, rgba(34,204,255,.18), transparent 24%, transparent 100%);
  animation: scanSweep 10s linear infinite;
  z-index: 2;
  opacity: .65;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  animation: imageFloat 9s ease-in-out infinite alternate;
}
.hero-glass-panel {
  position: absolute;
  z-index: 3;
  min-width: 210px;
  padding: 13px 14px;
  border: 1px solid rgba(92, 203, 255, .34);
  border-radius: 8px;
  background: rgba(2, 7, 17, .68);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}
.hero-glass-panel span { display: block; color: var(--teal); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hero-glass-panel strong { display: block; margin-top: 4px; }
.hero-glass-panel.panel-a { left: 22px; bottom: 28px; }
.hero-glass-panel.panel-b { right: 22px; top: 26px; }
.hero-art {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(34, 204, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 204, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(8, 20, 38, 0.84), rgba(5, 16, 31, 0.34));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.orbit { position: absolute; border: 1px solid rgba(34, 204, 255, .42); border-radius: 999px; animation: spin 18s linear infinite; }
.orbit-a { inset: 70px; }
.orbit-b { inset: 125px 80px; animation-duration: 26s; border-color: rgba(79, 125, 255, .48); }
.bot-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34,204,255,.94), rgba(79,125,255,.92));
  box-shadow: 0 0 60px rgba(34, 204, 255, .35);
}
.bot-core strong { color: #02101c; font-size: 38px; }
.signal-card {
  position: absolute;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(2, 7, 17, .72);
  border-radius: 8px;
  font-weight: 800;
}
.signal-card.one { top: 96px; left: 42px; }
.signal-card.two { right: 54px; top: 156px; }
.signal-card.three { bottom: 92px; left: 72px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes auroraDrift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes scanSweep { to { transform: rotate(360deg); } }
@keyframes imageFloat { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.055) translateY(-10px); } }
.feature-grid, .pricing-grid, .metric-grid, .grid {
  display: grid;
  gap: 18px;
}
.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 46px;
  border: 1px solid rgba(92, 203, 255, .18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(92, 203, 255, .18);
}
.brand-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(2, 7, 17, .72);
  color: #d8f6ff;
  font-weight: 900;
  text-align: center;
}
.feature-showcase {
  display: grid;
  gap: 26px;
  margin: 36px 0 42px;
}
.visual-feature {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(92, 203, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 20, 38, .82), rgba(2, 7, 17, .54)),
    radial-gradient(circle at 20% 15%, rgba(34, 204, 255, .12), transparent 26rem);
  overflow: hidden;
}
.visual-feature.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }
.visual-feature.reverse img { order: 2; }
.visual-feature img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(92, 203, 255, .22);
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(0, 89, 255, .22);
}
.visual-feature h2 { margin: 10px 0; font-size: clamp(28px, 5vw, 54px); line-height: 1.02; }
.visual-feature p { color: #bdd2e2; font-size: 18px; line-height: 1.65; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 34px 0; }
.feature, .panel, .price-card, .metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}
.feature, .panel, .price-card { padding: 24px; }
.feature span { color: var(--blue); font-weight: 900; }
.feature h2, .panel h2, .price-card h2, .price-card h3 { margin: 10px 0; }
.feature p, .panel p, .price-card p, .muted { color: var(--muted); line-height: 1.55; }
.pricing-band { display: grid; gap: 22px; margin-top: 60px; }
.section-kicker { max-width: 760px; }
.section-kicker h2 { margin: 8px 0; font-size: clamp(30px, 5vw, 58px); line-height: 1.02; }
.section-kicker p { color: var(--muted); font-size: 18px; }
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pricing-grid.wide, .pricing-grid.in-app { margin-top: 24px; }
.price-card { position: relative; display: grid; gap: 14px; align-content: start; }
.price-card strong { font-size: 38px; color: var(--text); }
.price-card small { color: var(--muted); font-size: 15px; }
.price-card.accent { border-color: rgba(79, 255, 211, .42); }
.price-card.highlight {
  border-color: rgba(34, 204, 255, .58);
  background: linear-gradient(180deg, rgba(34, 204, 255, .12), rgba(8,20,38,.78));
  box-shadow: 0 24px 82px rgba(34, 204, 255, .16);
}
.plan-badge {
  width: fit-content;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #02101c;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-size: 12px;
  font-weight: 900;
}
.clean-list { padding-left: 18px; color: #c4d7e6; line-height: 1.8; }
.page-hero { padding: 46px 0 20px; }
.legal-page .page-hero { max-width: 940px; }
.legal-content { max-width: 960px; margin-bottom: 52px; }
.legal-content h2 { margin-top: 28px; }
.center-panel {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.narrow { width: min(460px, 100%); }
.form-stack { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: #c8d8e5; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(92, 203, 255, .22);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, .24);
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34, 204, 255, .12); }
.app-shell { display: block; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  height: 100dvh;
  overflow-y: auto;
  padding: 22px;
  border-right: 1px solid rgba(92, 203, 255, .14);
  background: rgba(2, 7, 17, .72);
  backdrop-filter: blur(18px);
}
.sidebar nav { display: grid; gap: 8px; margin-top: 28px; }
.sidebar nav a {
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c6d7e4;
}
.sidebar nav a:hover { border-color: var(--line); background: rgba(255,255,255,.04); color: var(--text); }
.main { min-width: 0; margin-left: 270px; padding: 24px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.topbar h1 { margin: 6px 0 0; font-size: clamp(26px, 4vw, 42px); }
.flash {
  width: min(1180px, 100%);
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(34, 204, 255, .08);
}
.public-flash { margin: 18px auto; }
.flash.error { border-color: rgba(255, 100, 124, .46); background: rgba(255, 100, 124, .1); }
.flash.success { border-color: rgba(110, 255, 164, .42); background: rgba(110, 255, 164, .09); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { padding: 20px; }
.metric span { display: block; color: var(--muted); margin-bottom: 10px; }
.metric strong { display: block; font-size: clamp(26px, 4vw, 40px); color: var(--blue); }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(92, 203, 255, .12); text-align: left; vertical-align: top; }
th { color: var(--teal); font-size: 12px; text-transform: uppercase; }
td { color: #d8e8f4; }
small { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(34, 204, 255, .08);
  font-size: 12px;
  font-weight: 800;
}
.command-panel h2 { max-width: 880px; }
.command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
code, .json-box {
  display: block;
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(92, 203, 255, .2);
  border-radius: 8px;
  color: #bdf2ff;
  background: rgba(0, 0, 0, .28);
}
.json-box.mini { max-height: 160px; font-size: 12px; }
.warning { color: #ffd48a !important; }
.switch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.switch-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(92, 203, 255, .14);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(92, 203, 255, .24);
  background: rgba(0,0,0,.36);
  position: relative;
}
.switch-row i::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #6f8292;
  transition: transform .18s ease, background .18s ease;
}
.switch-row input:checked + i { background: rgba(34, 204, 255, .2); border-color: var(--blue); }
.switch-row input:checked + i::after { transform: translateX(24px); background: var(--teal); }
.check { display: inline-flex; grid-template-columns: none; align-items: center; gap: 10px; }
.check input { width: auto; min-height: auto; }
.legal-check { align-items: flex-start; color: var(--muted); font-weight: 600; line-height: 1.5; }
.legal-check input { margin-top: 5px; }
.legal-check a { color: var(--teal); font-weight: 800; }
pre { margin: 0; white-space: pre-wrap; }
.public-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 0;
  padding: 24px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(92, 203, 255, .16);
  color: var(--muted);
}
.public-footer p { margin: 6px 0 0; }
.public-footer nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.public-footer a { color: #d8f6ff; }
.payment-modal[hidden] { display: none !important; }
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}
.payment-modal-open { overflow: hidden; }
.payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 12, .78);
  backdrop-filter: blur(14px);
}
.payment-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  border: 1px solid rgba(92, 203, 255, .32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 204, 255, .16), transparent 22rem),
    linear-gradient(145deg, rgba(8, 20, 38, .98), rgba(2, 7, 17, .96));
  box-shadow: 0 28px 110px rgba(0, 0, 0, .48), 0 0 70px rgba(34, 204, 255, .12);
}
.payment-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 0;
}
.payment-modal__head h2 { margin: 8px 0 6px; font-size: clamp(28px, 5vw, 44px); }
.payment-modal__head p { margin: 0; color: var(--muted); }
.payment-modal__close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 203, 255, .22);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.payment-modal__body {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}
.payment-qr-frame {
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 1px solid rgba(92, 203, 255, .22);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.payment-qr-frame img {
  width: min(300px, 74vw);
  height: min(300px, 74vw);
  display: block;
  border: 12px solid #fff;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.payment-copy { display: grid; gap: 16px; align-content: start; }
.payment-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.payment-copy dl > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(92, 203, 255, .16);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
}
.payment-copy dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.payment-copy dd { margin: 7px 0 0; color: var(--text); font-weight: 800; overflow-wrap: anywhere; }
.payment-copy textarea {
  min-height: 136px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  resize: none;
}
.payment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.payment-status {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 46px 0 18px; gap: 26px; }
  .hero-art { min-height: 300px; }
  .hero-visual, .hero-visual img { min-height: 420px; }
  .brand-strip, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-feature, .visual-feature.reverse { grid-template-columns: 1fr; }
  .visual-feature.reverse img { order: 0; }
  .feature-grid, .metric-grid, .grid.two, .switch-grid { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(92, 203, 255, .14);
  }
  .main { margin-left: 0; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { align-items: flex-start; }
  .payment-modal__body { grid-template-columns: 1fr; }
  .payment-qr-frame { min-height: 280px; }
}

@media (max-width: 640px) {
  .public-nav { align-items: flex-start; }
  .public-nav nav { justify-content: flex-end; }
  .landing { width: min(100% - 24px, 1180px); }
  .main { padding: 16px; }
  .panel, .feature, .price-card { padding: 18px; }
  .command-row { grid-template-columns: 1fr; }
  .sidebar nav { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; }
  .hero h1 { font-size: clamp(44px, 18vw, 76px); }
  .page-hero h1 { font-size: clamp(38px, 13vw, 56px); }
  .hero-metrics { display: none; }
  .hero-visual, .hero-visual img { min-height: 240px; }
  .hero-glass-panel { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; margin: 10px; min-width: 0; }
  .hero-visual { display: grid; align-content: end; }
  .hero-visual img { position: absolute; inset: 0; }
  .brand-strip, .pricing-grid { grid-template-columns: 1fr; }
  .public-footer { flex-direction: column; align-items: flex-start; }
  .payment-modal { padding: 10px; align-items: end; }
  .payment-modal__dialog { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .payment-modal__head { padding: 18px 18px 0; }
  .payment-modal__body { padding: 18px; gap: 16px; }
  .payment-copy dl { grid-template-columns: 1fr; }
  .payment-actions .btn { width: 100%; }
  .hero-art { min-height: 240px; }
  .orbit-a { inset: 42px; }
  .orbit-b { inset: 70px 48px; }
  .bot-core { width: 104px; height: 104px; }
  .bot-core strong { font-size: 30px; }
  .signal-card { padding: 10px 12px; }
  .signal-card.one { top: 54px; left: 40px; }
  .signal-card.two { right: 36px; top: 100px; }
  .signal-card.three { bottom: 34px; left: 70px; }
}

.landing.landing-cinematic {
  width: 100%;
  margin: 0;
  padding-bottom: 0;
  overflow: visible;
}

.landing-cinematic .btn {
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
}

.bot-hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 120px) clamp(18px, 7vw, 92px) clamp(54px, 8vw, 104px);
  isolation: isolate;
  overflow: hidden;
}

.bot-hero__backdrop,
.bot-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bot-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .9;
  transform: scale(1.035);
  animation: cinematicDrift 16s ease-in-out infinite alternate;
}

.bot-hero__shade {
  z-index: 1;
  background:
    radial-gradient(circle at 69% 45%, rgba(34, 204, 255, .08), transparent 28rem),
    linear-gradient(90deg, rgba(2, 7, 17, .96) 0%, rgba(2, 7, 17, .74) 36%, rgba(2, 7, 17, .22) 68%, rgba(2, 7, 17, .72) 100%),
    linear-gradient(180deg, rgba(2, 7, 17, .08), rgba(2, 7, 17, .42) 70%, #020711 100%);
}

.bot-hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.bot-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(50px, 8.8vw, 126px);
  line-height: .82;
  letter-spacing: 0;
  text-shadow: 0 0 44px rgba(34, 204, 255, .22);
}

.bot-hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #c8deeb;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 32px;
  color: #9eb6c8;
}

.hero-signal-row span {
  position: relative;
  padding-left: 18px;
  min-width: 156px;
}

.hero-signal-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 18px rgba(110, 255, 164, .9);
}

.hero-signal-row strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.hero-orbit-note {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 7vw, 92px);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bdf2ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: .88;
}

.hero-orbit-note span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(79, 255, 211, .48);
  background: conic-gradient(from 0deg, rgba(79, 255, 211, .9), transparent 34%, transparent);
  animation: sweepSpin 2.8s linear infinite;
}

.cinema-stage {
  --scene-progress: 0;
  --scene-scale: .96;
  --scene-y: 0px;
  --threat-x: 88%;
  --threat-y: 17%;
  --intercept: 0;
  --settle: 0;
  --ring-spin: 0deg;
  --pin-bg-opacity: .2;
  --shield-opacity: .22;
  --shield-scale: 1;
  --beam-scale: .28;
  --flare-opacity: 0;
  --flare-scale: .72;
  --lock-scale: .8;
  --missile-opacity: 0;
  --missile-scale: .12;
  --missile-x: 52%;
  --missile-y: 47%;
  --impact-opacity: 0;
  --impact-scale: .6;
  --shot-angle: -50deg;
  --shot-distance: 30;
  position: relative;
  min-height: 320svh;
  background:
    radial-gradient(circle at 72% 20%, rgba(79, 255, 211, .08), transparent 28rem),
    linear-gradient(180deg, #020711 0%, #061426 46%, #020711 100%);
}

.scene-pin {
  position: sticky;
  top: 0;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
  padding: clamp(34px, 7svh, 72px) clamp(18px, 6vw, 92px);
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
}

.scene-pin.is-scene-fixed {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
}

.scene-pin.is-scene-bottom {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
}

.scene-pin::before,
.scene-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-pin::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 17, .9), rgba(2, 7, 17, .34) 58%, rgba(2, 7, 17, .72)),
    url("/assets/img/radar-command-scene.png") center / cover no-repeat;
  opacity: var(--pin-bg-opacity);
  transform: scale(1.12);
}

.scene-pin::after {
  z-index: -1;
  background:
    linear-gradient(rgba(92, 203, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 203, 255, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 68% 50%, black 0 36%, transparent 72%);
  opacity: .44;
}

.scene-copy {
  position: relative;
  z-index: 3;
  min-height: clamp(250px, 45svh, 340px);
  max-width: 520px;
}

.scene-step {
  position: absolute;
  inset: clamp(32px, 6svh, 42px) 0 auto;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .42s ease, transform .42s ease;
  pointer-events: none;
}

.scene-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.scene-step h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: .96;
  max-width: 720px;
}

.scene-step p {
  max-width: 520px;
  margin: 0;
  color: #b8ccda;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.62;
}

.radar-scene {
  position: relative;
  z-index: 2;
  width: min(48vw, 660px, calc(100svh - 118px));
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 255, 211, .2), transparent 9%),
    radial-gradient(circle at 50% 50%, rgba(34, 204, 255, .14), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(2, 7, 17, .1), rgba(2, 7, 17, .84) 67%, transparent 72%);
  filter: drop-shadow(0 42px 90px rgba(0, 132, 255, .28));
  transform: translate3d(0, var(--scene-y), 0) scale(var(--scene-scale));
  transition: filter .2s ease;
}

.scene-depth,
.radar-grid,
.radar-rings,
.radar-rings span,
.radar-sweep,
.bot-core-scene,
.shield-dome,
.intercept-beam,
.missile-trail,
.missile-head,
.block-flare,
.impact-burst,
.safe-node,
.threat-node,
.lock-ring {
  position: absolute;
}

.scene-depth--back {
  inset: 10%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 12deg, rgba(92, 203, 255, .2) 0 1deg, transparent 1deg 14deg),
    radial-gradient(circle, transparent 0 58%, rgba(92, 203, 255, .16) 59%, transparent 60%);
  opacity: .28;
  transform: rotate(var(--ring-spin));
}

.radar-grid {
  inset: 4%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 10.5%, rgba(92, 203, 255, .22) 10.7% 11%, transparent 11.3% 20%),
    repeating-conic-gradient(from 0deg, rgba(92, 203, 255, .16) 0 1deg, transparent 1deg 18deg);
  opacity: .72;
  transform: rotate(var(--ring-spin));
}

.radar-rings {
  inset: 0;
  border-radius: 50%;
}

.radar-rings span {
  border: 1px solid rgba(92, 203, 255, .25);
  border-radius: 50%;
  box-shadow: inset 0 0 26px rgba(34, 204, 255, .05);
}

.radar-rings span:nth-child(1) { inset: 7%; }
.radar-rings span:nth-child(2) { inset: 20%; border-color: rgba(79, 255, 211, .28); }
.radar-rings span:nth-child(3) { inset: 34%; }
.radar-rings span:nth-child(4) { inset: 47%; border-color: rgba(79, 255, 211, .36); }

.radar-sweep {
  inset: -3%;
  border-radius: 50%;
  background: conic-gradient(from -20deg, transparent 0 68%, rgba(79, 255, 211, .48) 74%, rgba(34, 204, 255, .12) 78%, transparent 83% 100%);
  mix-blend-mode: screen;
  opacity: .72;
  animation: sweepSpin 4.8s linear infinite;
}

.bot-core-scene {
  left: 50%;
  top: 50%;
  width: clamp(92px, 11vw, 146px);
  height: clamp(92px, 11vw, 146px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 204, 255, .16), transparent 66%);
  box-shadow:
    0 0 0 11px rgba(34, 204, 255, .08),
    0 0 54px rgba(34, 204, 255, .56),
    0 0 82px rgba(79, 255, 211, .18);
  transform: translate(-50%, -50%);
}

.bot-core-scene img {
  width: 138%;
  height: 138%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 22px rgba(34, 204, 255, .6));
}

.shield-dome {
  left: 50%;
  top: 50%;
  width: 36%;
  height: 36%;
  border-radius: 50%;
  border: 1px solid rgba(79, 255, 211, .62);
  background: radial-gradient(circle, rgba(79, 255, 211, .16), transparent 68%);
  opacity: var(--shield-opacity);
  transform: translate(-50%, -50%) scale(var(--shield-scale));
  box-shadow: 0 0 56px rgba(79, 255, 211, .2);
}

.intercept-beam {
  left: 50%;
  top: 50%;
  width: calc(var(--shot-distance) * 1%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 255, 211, .08), rgba(79, 255, 211, .98), rgba(255, 100, 124, .72));
  box-shadow: 0 0 22px rgba(79, 255, 211, .9), 0 0 40px rgba(255, 100, 124, .32);
  opacity: var(--intercept);
  transform-origin: left center;
  transform: rotate(var(--shot-angle)) scaleX(var(--beam-scale));
}

.missile-trail {
  left: 50%;
  top: 50%;
  width: calc(var(--shot-distance) * 1%);
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(79, 255, 211, .22) 18%, rgba(79, 255, 211, .88) 58%, rgba(255, 240, 180, .98));
  box-shadow:
    0 0 24px rgba(79, 255, 211, .78),
    0 0 44px rgba(255, 100, 124, .3);
  opacity: var(--missile-opacity);
  transform-origin: left center;
  transform: rotate(var(--shot-angle)) scaleX(var(--missile-scale));
  filter: blur(.2px);
}

.missile-head {
  left: var(--missile-x);
  top: var(--missile-y);
  width: clamp(16px, 2.4vw, 30px);
  height: clamp(16px, 2.4vw, 30px);
  border-radius: 50% 50% 50% 8px;
  background: radial-gradient(circle at 62% 38%, #fff8cf 0 16%, #71fff0 17% 42%, #22ccff 43% 76%, transparent 77%);
  box-shadow: 0 0 20px rgba(79, 255, 211, .95), 0 0 34px rgba(255, 100, 124, .42);
  opacity: var(--missile-opacity);
  transform: translate(-50%, -50%) rotate(var(--shot-angle));
}

.block-flare {
  left: var(--threat-x);
  top: var(--threat-y);
  width: clamp(70px, 9vw, 116px);
  height: clamp(70px, 9vw, 116px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 100, 124, .8), rgba(255, 100, 124, .2) 36%, transparent 68%);
  opacity: var(--flare-opacity);
  transform: translate(-50%, -50%) scale(var(--flare-scale));
  filter: blur(1px);
}

.impact-burst {
  left: var(--threat-x);
  top: var(--threat-y);
  width: clamp(74px, 9vw, 124px);
  height: clamp(74px, 9vw, 124px);
  border-radius: 50%;
  opacity: var(--impact-opacity);
  transform: translate(-50%, -50%) scale(var(--impact-scale));
  background:
    radial-gradient(circle, rgba(255, 247, 194, .98) 0 8%, rgba(255, 100, 124, .78) 9% 20%, rgba(255, 100, 124, .2) 36%, transparent 62%);
  box-shadow: 0 0 44px rgba(255, 100, 124, .62), 0 0 80px rgba(255, 218, 130, .28);
  mix-blend-mode: screen;
}

.impact-burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 247, 194, .98), transparent);
  transform-origin: left center;
}

.impact-burst i:nth-child(1) { transform: rotate(0deg); }
.impact-burst i:nth-child(2) { transform: rotate(48deg); }
.impact-burst i:nth-child(3) { transform: rotate(112deg); }
.impact-burst i:nth-child(4) { transform: rotate(184deg); }
.impact-burst i:nth-child(5) { transform: rotate(238deg); }
.impact-burst i:nth-child(6) { transform: rotate(306deg); }

.safe-node,
.threat-node {
  width: clamp(28px, 4vw, 48px);
  height: clamp(28px, 4vw, 48px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.safe-node {
  background: radial-gradient(circle at 38% 34%, #e8fff0 0 9%, #6effa4 10% 34%, rgba(18, 190, 104, .38) 60%, transparent 72%);
  box-shadow: 0 0 18px rgba(110, 255, 164, .76), 0 0 0 1px rgba(110, 255, 164, .54);
  animation: nodePulse 2.8s ease-in-out infinite;
}

.safe-node span,
.threat-node span {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .42;
  animation: nodeRing 2.6s ease-out infinite;
}

.safe-node { color: #6effa4; }
.node-a { left: 22%; top: 36%; animation-delay: -.2s; }
.node-b { left: 36%; top: 24%; animation-delay: -.7s; }
.node-c { left: 58%; top: 24%; animation-delay: -1.1s; }
.node-d { left: 78%; top: 47%; animation-delay: -.4s; }
.node-e { left: 63%; top: 72%; animation-delay: -1.6s; }
.node-f { left: 38%; top: 76%; animation-delay: -.9s; }
.node-g { left: 20%; top: 62%; animation-delay: -1.9s; }
.node-h { left: 84%; top: 66%; animation-delay: -1.3s; }

.safe-node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(54px, 10vw, 126px);
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 255, 164, .5), transparent);
  transform-origin: left center;
  opacity: .46;
}

.node-a::after { transform: rotate(15deg); }
.node-b::after { transform: rotate(38deg); }
.node-c::after { transform: rotate(137deg); }
.node-d::after { transform: rotate(172deg); }
.node-e::after { transform: rotate(-136deg); }
.node-f::after { transform: rotate(-72deg); }
.node-g::after { transform: rotate(-18deg); }
.node-h::after { transform: rotate(202deg); }

.threat-node {
  left: var(--threat-x);
  top: var(--threat-y);
  color: #ff647c;
  background: radial-gradient(circle at 40% 34%, #fff1f4 0 8%, #ff647c 9% 34%, rgba(255, 35, 70, .42) 62%, transparent 74%);
  box-shadow: 0 0 20px rgba(255, 100, 124, .8), 0 0 0 1px rgba(255, 100, 124, .58);
  animation: threatGlitch 1.35s steps(2, end) infinite;
}

.lock-ring {
  left: var(--threat-x);
  top: var(--threat-y);
  width: clamp(92px, 10vw, 138px);
  height: clamp(92px, 10vw, 138px);
  border-radius: 50%;
  border: 2px solid rgba(255, 100, 124, .62);
  opacity: var(--intercept);
  transform: translate(-50%, -50%) scale(var(--lock-scale));
  box-shadow: 0 0 28px rgba(255, 100, 124, .34);
}

.lock-ring::before,
.lock-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 2px;
  height: calc(100% + 28px);
  background: rgba(255, 100, 124, .55);
}

.lock-ring::before { transform: translateX(-50%); }
.lock-ring::after { transform: translateX(-50%) rotate(90deg); }

.after-cinema,
.intercept-proof,
.cinematic-pricing {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.after-cinema {
  position: relative;
  padding: clamp(46px, 7vw, 86px) 0 24px;
}

.signal-line {
  height: 1px;
  margin-bottom: clamp(34px, 7vw, 68px);
  background: linear-gradient(90deg, transparent, rgba(79, 255, 211, .76), rgba(34, 204, 255, .72), transparent);
  box-shadow: 0 0 34px rgba(34, 204, 255, .34);
}

.capability-river {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(26px, 4vw, 42px);
}

.capability-river article {
  position: relative;
  min-height: 210px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(92, 203, 255, .34);
}

.capability-river article::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 20px rgba(79, 255, 211, .78);
}

.capability-river span {
  color: var(--teal);
  font-weight: 900;
}

.capability-river h3 {
  margin: 14px 0 12px;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.02;
}

.capability-river p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.intercept-proof {
  display: grid;
  grid-template-columns: minmax(300px, .96fr) minmax(0, 1.04fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 9vw, 112px) 0;
}

.proof-art {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(92, 203, 255, .2);
  box-shadow: 0 36px 100px rgba(0, 90, 210, .23);
}

.proof-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(2, 7, 17, .14)),
    conic-gradient(from 210deg at 50% 58%, transparent, rgba(79, 255, 211, .18), transparent 30%);
  mix-blend-mode: screen;
  animation: sweepSpin 7s linear infinite;
}

.proof-art img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

.proof-copy h2 {
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .98;
}

.proof-copy p {
  max-width: 590px;
  color: #bdd2e2;
  font-size: 18px;
  line-height: 1.65;
}

.cinematic-pricing {
  width: min(1280px, calc(100% - 36px));
  padding: clamp(28px, 6vw, 70px) 0 clamp(72px, 10vw, 118px);
}

.pricing-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(92, 203, 255, .18);
  border-radius: clamp(28px, 4vw, 46px);
  padding: clamp(24px, 5vw, 58px);
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 255, 211, .18), transparent 30rem),
    radial-gradient(circle at 8% 70%, rgba(79, 125, 255, .2), transparent 26rem),
    linear-gradient(145deg, rgba(8, 20, 38, .88), rgba(2, 7, 17, .7) 56%, rgba(4, 20, 33, .9));
  box-shadow: 0 40px 110px rgba(0, 90, 210, .2);
}

.pricing-shell::before,
.pricing-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pricing-shell::before {
  inset: 10% -18% auto;
  height: 55%;
  border-radius: 50%;
  border: 1px solid rgba(79, 255, 211, .18);
  background:
    repeating-conic-gradient(from 20deg, rgba(92, 203, 255, .16) 0 1deg, transparent 1deg 18deg);
  opacity: .34;
  transform: rotate(-8deg);
}

.pricing-shell::after {
  left: 8%;
  right: 8%;
  bottom: 24%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 255, 211, .7), rgba(34, 204, 255, .72), transparent);
  box-shadow: 0 0 32px rgba(34, 204, 255, .38);
}

.pricing-halo {
  position: absolute;
  right: -12%;
  top: -18%;
  width: min(56vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 204, 255, .14), transparent 42%),
    conic-gradient(from 120deg, transparent, rgba(79, 255, 211, .22), transparent 36%);
  filter: blur(.2px);
  animation: sweepSpin 14s linear infinite;
  pointer-events: none;
}

.pricing-head {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.landing-cinematic .section-kicker h2 {
  font-size: clamp(30px, 4.2vw, 54px);
}

.pricing-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(30px, 5vw, 54px);
}

.landing-cinematic .plan-node {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(92, 203, 255, .2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)),
    radial-gradient(circle at 50% 0%, rgba(34, 204, 255, .16), transparent 52%),
    rgba(2, 7, 17, .58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 24px 74px rgba(0, 0, 0, .25);
  backdrop-filter: blur(18px);
  transform: translateY(0);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.landing-cinematic .plan-node::before,
.landing-cinematic .plan-node::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.landing-cinematic .plan-node::before {
  inset: -38% -24% auto;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 255, 211, .22), transparent 58%);
  opacity: .58;
}

.landing-cinematic .plan-node::after {
  right: -20%;
  bottom: -22%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(92, 203, 255, .16);
  background: repeating-radial-gradient(circle, transparent 0 17%, rgba(92, 203, 255, .12) 18%, transparent 19% 28%);
}

.landing-cinematic .plan-node:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 255, 211, .45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 34px 96px rgba(0, 130, 255, .22);
}

.landing-cinematic .plan-node.highlight {
  border-color: rgba(79, 255, 211, .56);
  background:
    linear-gradient(180deg, rgba(79, 255, 211, .16), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 50% 0%, rgba(79, 255, 211, .22), transparent 54%),
    rgba(3, 18, 28, .74);
  transform: translateY(-14px);
}

.landing-cinematic .plan-node.highlight:hover { transform: translateY(-18px); }

.plan-node > * {
  position: relative;
  z-index: 1;
}

.plan-node__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}

.plan-node__top span,
.plan-node__top em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(92, 203, 255, .24);
  background: rgba(2, 7, 17, .34);
  color: #d9f9ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.plan-node__top em {
  border-color: rgba(79, 255, 211, .48);
  color: #03111f;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.landing-cinematic .plan-node h3 {
  margin: 6px 0 0;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1;
}

.landing-cinematic .plan-node strong {
  display: block;
  white-space: nowrap;
  font-size: clamp(36px, 4vw, 52px);
  line-height: .95;
}

.landing-cinematic .plan-node small {
  display: inline-block;
  margin-left: 4px;
  font-size: 15px;
}

.landing-cinematic .plan-node p {
  margin: 0 0 10px;
  color: #b8ccda;
  line-height: 1.56;
}

.landing-cinematic .plan-node .btn {
  align-self: end;
  width: 100%;
}

.addon-ribbon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: clamp(18px, 3vw, 28px);
  padding: 16px 18px;
  border: 1px solid rgba(79, 255, 211, .28);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 255, 211, .12), rgba(34, 204, 255, .06), rgba(255,255,255,.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.addon-ribbon > span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #6effa4 0 18%, transparent 19%),
    repeating-radial-gradient(circle, rgba(110,255,164,.34) 0 18%, transparent 19% 34%);
  box-shadow: 0 0 26px rgba(110, 255, 164, .5);
}

.addon-ribbon strong {
  display: block;
  font-size: 18px;
}

.addon-ribbon p {
  margin: 3px 0 0;
  color: var(--muted);
}

.addon-ribbon .btn {
  min-width: 170px;
}

.landing-cinematic .price-card {
  overflow: hidden;
}

.landing-cinematic .price-card:not(.plan-node)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79, 255, 211, .16), transparent 42%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.landing-cinematic .price-card:not(.plan-node):hover::before,
.landing-cinematic .price-card:not(.plan-node).highlight::before {
  opacity: 1;
}

@keyframes cinematicDrift {
  from { transform: scale(1.035) translate3d(0, 0, 0); }
  to { transform: scale(1.085) translate3d(-18px, -8px, 0); }
}

@keyframes sweepSpin {
  to { transform: rotate(360deg); }
}

@keyframes nodePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(.9); opacity: .72; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes nodeRing {
  from { transform: scale(.5); opacity: .62; }
  to { transform: scale(1.45); opacity: 0; }
}

@keyframes threatGlitch {
  0%, 100% { filter: hue-rotate(0deg); transform: translate(-50%, -50%) scale(1); }
  50% { filter: hue-rotate(-18deg); transform: translate(calc(-50% + 3px), calc(-50% - 2px)) scale(1.08); }
}

@media (max-width: 1020px) {
  .scene-pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: center;
    gap: clamp(10px, 2svh, 18px);
    padding: clamp(36px, 6svh, 58px) 18px;
  }
  .scene-copy {
    min-height: clamp(210px, 34svh, 276px);
    max-width: 760px;
    width: min(760px, 100%);
    justify-self: center;
    text-align: center;
  }
  .scene-step { inset: clamp(30px, 5svh, 38px) 0 auto; }
  .scene-step p { margin: 0 auto; }
  .radar-scene {
    width: min(76vw, 500px, calc(100svh - 350px));
    justify-self: center;
  }
  .capability-river,
  .intercept-proof {
    grid-template-columns: 1fr;
  }
  .pricing-orbit {
    grid-template-columns: 1fr;
  }
  .landing-cinematic .plan-node,
  .landing-cinematic .plan-node.highlight,
  .landing-cinematic .plan-node.highlight:hover {
    min-height: auto;
    transform: none;
  }
  .proof-art { min-height: 360px; }
  .proof-art img { min-height: 360px; }
}

@media (max-height: 760px) and (min-width: 900px) {
  .scene-pin {
    padding-top: 28px;
    padding-bottom: 28px;
    grid-template-columns: minmax(260px, .66fr) minmax(0, 1fr);
  }
  .scene-copy { min-height: 282px; }
  .scene-step h2 { font-size: clamp(30px, 4.2vw, 52px); }
  .scene-step p { font-size: 17px; line-height: 1.5; }
  .radar-scene { width: min(45vw, 580px, calc(100svh - 96px)); }
}

@media (max-width: 700px) {
  .bot-hero {
    min-height: calc(100svh - 84px);
    padding: 48px 18px 64px;
  }
  .bot-hero__backdrop img { object-position: 62% center; opacity: .72; }
  .bot-hero__shade {
    background:
      linear-gradient(90deg, rgba(2, 7, 17, .98), rgba(2, 7, 17, .82) 58%, rgba(2, 7, 17, .42)),
      linear-gradient(180deg, rgba(2, 7, 17, .02), rgba(2, 7, 17, .48) 72%, #020711);
  }
  .bot-hero h1 { font-size: clamp(52px, 20vw, 88px); }
  .hero-signal-row { gap: 12px; }
  .hero-signal-row span { width: 100%; }
  .hero-orbit-note { display: none; }
  .scene-pin {
    padding: 46px 18px 34px;
    align-content: center;
  }
  .scene-copy {
    min-height: clamp(214px, 35svh, 286px);
    text-align: left;
  }
  .scene-step h2 { font-size: clamp(29px, 10.5vw, 44px); }
  .scene-step p { font-size: 15.5px; line-height: 1.5; }
  .radar-scene { width: min(88vw, 370px, calc(100svh - 380px)); }
  .safe-node::after { width: 70px; }
  .after-cinema,
  .intercept-proof,
  .cinematic-pricing {
    width: min(100% - 24px, 1180px);
  }
  .capability-river { grid-template-columns: 1fr; }
  .capability-river article { min-height: auto; }
  .proof-art { min-height: 280px; }
  .proof-art img { min-height: 280px; }
  .pricing-shell {
    border-radius: 30px;
    padding: 24px 16px 18px;
  }
  .pricing-orbit { gap: 14px; }
  .landing-cinematic .plan-node {
    border-radius: 28px;
    padding: 22px;
  }
  .plan-node__top {
    align-items: flex-start;
    flex-direction: column;
  }
  .plan-node__top span,
  .plan-node__top em {
    white-space: normal;
  }
  .addon-ribbon {
    grid-template-columns: 1fr;
    border-radius: 28px;
    align-items: start;
  }
  .addon-ribbon > span {
    width: 38px;
    height: 38px;
  }
  .addon-ribbon .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bot-hero__backdrop img,
  .hero-orbit-note span,
  .radar-sweep,
  .safe-node,
  .safe-node span,
  .threat-node,
  .threat-node span,
  .missile-trail,
  .missile-head,
  .impact-burst,
  .proof-art::after {
    animation: none !important;
  }
  .scene-step {
    transition: none;
  }
}

/* Public visual system refresh */
:root { --radius: 20px; }

.btn {
  border-radius: 999px;
}

.brand img {
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(34, 204, 255, .28));
}

.public-nav nav > a:not(.btn) {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #d8e8f4;
  transition: background .18s ease, color .18s ease;
}

.public-nav nav > a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, .055);
}

.panel,
.feature,
.metric,
.price-card,
.flash,
input,
select,
textarea,
code,
.json-box,
.sidebar nav a,
.switch-row {
  border-radius: var(--radius);
}

.bot-core-scene img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 122%;
  height: 122%;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.plan-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.plan-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 16%, rgba(79, 255, 211, .12), transparent 30rem),
    radial-gradient(circle at 18% 34%, rgba(79, 125, 255, .18), transparent 30rem),
    linear-gradient(180deg, rgba(2, 7, 17, .05), #020711 68%);
  pointer-events: none;
}

.plan-page-hero {
  width: min(1280px, calc(100% - 36px));
  min-height: min(620px, calc(100svh - 76px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
  padding: clamp(56px, 8vw, 112px) 0 clamp(30px, 5vw, 68px);
}

.plan-page-hero h1 {
  max-width: 820px;
  margin: 10px 0 18px;
  font-size: clamp(42px, 7vw, 94px);
  line-height: .9;
  letter-spacing: 0;
}

.plan-page-hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #bdd2e2;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.58;
}

.plan-page-orb,
.auth-visual {
  position: relative;
  justify-self: center;
  width: min(34vw, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 204, 255, .16), transparent 58%),
    repeating-radial-gradient(circle, rgba(92, 203, 255, .18) 0 1px, transparent 1px 52px);
  filter: drop-shadow(0 40px 90px rgba(0, 132, 255, .26));
}

.plan-page-orb img,
.auth-visual img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
  transform: none;
}

.plan-page-orb span,
.auth-visual span {
  position: absolute;
  inset: var(--ring-inset, 8%);
  border: 1px solid rgba(79, 255, 211, .24);
  border-radius: 50%;
  animation: sweepSpin 10s linear infinite;
}

.plan-page-orb span:nth-child(3),
.auth-visual span:nth-child(3) {
  --ring-inset: 22%;
  animation-duration: 14s;
  border-color: rgba(92, 203, 255, .18);
}

.plan-page-orb span:nth-child(4),
.auth-visual span:nth-child(4) {
  --ring-inset: 36%;
  animation-duration: 18s;
  border-color: rgba(110, 255, 164, .2);
}

.public-pricing {
  margin-top: 0;
  padding-top: 0;
}

.auth-page {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: center;
  padding: clamp(28px, 6vw, 74px) 18px;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 7, 17, .94), rgba(2, 7, 17, .72) 42%, rgba(2, 7, 17, .9)),
    url("/assets/img/radar-command-scene.png") center / cover no-repeat;
  opacity: .72;
  transform: scale(1.04);
}

.auth-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
}

.auth-shell--wide {
  width: min(1120px, 100%);
}

.auth-card {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(92, 203, 255, .22);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    radial-gradient(circle at 50% 0%, rgba(79, 255, 211, .12), transparent 58%),
    rgba(2, 7, 17, .72);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
}

.auth-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: .98;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-card label {
  color: #d9eaf6;
}

.auth-card input {
  min-height: 48px;
  border-radius: 999px;
  padding-inline: 16px;
  background: rgba(2, 7, 17, .64);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 203, 255, .2);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.password-toggle span {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
  border: 2px solid #9eb6c8;
  border-radius: 999px 999px 999px 999px / 80% 80% 80% 80%;
}

.password-toggle span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9eb6c8;
  transform: translate(-50%, -50%);
}

.password-toggle span::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #9eb6c8;
  transform: translateY(-50%) rotate(-38deg);
  opacity: 1;
}

.password-toggle.is-visible {
  border-color: rgba(79, 255, 211, .38);
  background: rgba(79, 255, 211, .08);
}

.password-toggle.is-visible span {
  border-color: var(--teal);
  background: transparent;
}

.password-toggle.is-visible span::before {
  background-color: var(--teal);
}

.password-toggle.is-visible span::after {
  opacity: 0;
}

.password-toggle {
  transform: translateY(-50%);
}

.auth-card .legal-check {
  border: 1px solid rgba(92, 203, 255, .16);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255,255,255,.035);
}

.auth-card .legal-check input {
  min-height: auto;
}

.auth-card .btn {
  width: 100%;
}

.legal-page {
  position: relative;
}

.legal-page .panel {
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(2, 7, 17, .64);
}

@media (max-width: 900px) {
  .plan-page-hero,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .plan-page-orb,
  .auth-visual {
    width: min(72vw, 300px);
    order: -1;
  }

  .plan-page-hero {
    min-height: auto;
    padding-top: 42px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .public-nav {
    gap: 14px;
    padding: 14px 12px;
  }

  .public-nav .brand span {
    font-size: 14px;
  }

  .public-nav nav {
    gap: 6px;
  }

  .public-nav nav > a:not(.btn) {
    min-height: 32px;
    padding: 0 8px;
    font-size: 14px;
  }

  .public-nav .btn.small {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .plan-page-hero {
    width: min(100% - 24px, 1280px);
  }

  .plan-page-hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .auth-page {
    padding: 24px 12px 46px;
  }

  .auth-card {
    border-radius: 28px;
  }
}

.app-shell {
  background:
    radial-gradient(circle at 94% 6%, rgba(79, 255, 211, .12), transparent 24rem),
    radial-gradient(circle at 18% 92%, rgba(79, 125, 255, .14), transparent 26rem),
    linear-gradient(145deg, #020711 0%, #061426 58%, #020711 100%);
}

.app-shell .sidebar {
  background:
    linear-gradient(180deg, rgba(6, 20, 37, .9), rgba(2, 7, 17, .78)),
    radial-gradient(circle at 30% 0%, rgba(34, 204, 255, .12), transparent 18rem);
}

.app-shell .sidebar .brand {
  min-height: 52px;
  width: 100%;
  padding: 4px 0 18px;
  border-bottom: 1px solid rgba(92, 203, 255, .16);
  border-radius: 0;
  background: transparent;
}

.app-shell .sidebar .brand img {
  width: 42px;
  height: 42px;
  padding: 3px;
  border: 1px solid rgba(79, 255, 211, .24);
  background: rgba(34, 204, 255, .055);
  box-shadow: 0 0 24px rgba(34, 204, 255, .16);
}

.app-shell .sidebar .brand span {
  font-size: 16px;
}

.sidebar nav a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sidebar nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(79, 255, 211, .42);
  background:
    linear-gradient(90deg, rgba(79, 255, 211, .13), rgba(34, 204, 255, .04)),
    rgba(255,255,255,.035);
  box-shadow: inset 3px 0 0 rgba(79, 255, 211, .9);
}

.app-shell .btn {
  border-radius: 999px;
}

.dashboard-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid rgba(92, 203, 255, .2);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 20, 38, .86), rgba(2, 7, 17, .58)),
    radial-gradient(circle at 82% 50%, rgba(34, 204, 255, .2), transparent 22rem);
  box-shadow: 0 28px 100px rgba(0, 80, 190, .18);
  isolation: isolate;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(92, 203, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 203, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 78% 48%, black 0 26%, transparent 66%);
  opacity: .72;
  pointer-events: none;
}

.dashboard-hero__copy {
  position: relative;
  z-index: 2;
}

.dashboard-hero h2 {
  max-width: 720px;
  margin: 10px 0 14px;
  font-size: 48px;
  line-height: .96;
}

.dashboard-hero p {
  max-width: 680px;
  color: #bdd2e2;
  font-size: 18px;
  line-height: 1.6;
}

.dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dashboard-radar {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(79, 255, 211, .18) 0 7%, transparent 8%),
    repeating-radial-gradient(circle, transparent 0 17%, rgba(92, 203, 255, .28) 17.4% 17.8%, transparent 18.2% 32%),
    repeating-conic-gradient(from 0deg, rgba(92, 203, 255, .16) 0 1deg, transparent 1deg 18deg),
    radial-gradient(circle, rgba(2, 7, 17, .22), rgba(2, 7, 17, .86) 68%, transparent 71%);
  filter: drop-shadow(0 30px 68px rgba(34, 204, 255, .22));
}

.dashboard-radar__ring,
.dashboard-radar__ring.two,
.dashboard-radar__sweep {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(79, 255, 211, .26);
}

.dashboard-radar__ring.two {
  inset: 27%;
  border-color: rgba(92, 203, 255, .34);
}

.dashboard-radar__sweep {
  inset: -2%;
  border: 0;
  background: conic-gradient(from -20deg, transparent 0 70%, rgba(79, 255, 211, .62) 75%, rgba(34, 204, 255, .08) 80%, transparent 86% 100%);
  mix-blend-mode: screen;
  animation: sweepSpin 4.4s linear infinite;
}

.dashboard-radar img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: 38%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 20px rgba(79, 255, 211, .58));
}

.dash-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 18px rgba(110, 255, 164, .9);
}

.dash-node::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .45;
  animation: nodeRing 2.8s ease-out infinite;
}

.dash-node.danger {
  color: var(--danger);
  background: var(--danger);
  box-shadow: 0 0 20px rgba(255, 100, 124, .9);
}

.node-one { left: 22%; top: 42%; color: var(--ok); }
.node-two { left: 66%; top: 27%; color: var(--ok); }
.node-three { right: 17%; top: 60%; }
.node-four { left: 42%; bottom: 16%; color: var(--ok); }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-metrics article,
.dashboard-grid > .panel,
.bot-settings-page .setting-card,
.settings-hero {
  border: 1px solid rgba(92, 203, 255, .18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(8, 20, 38, .68);
  box-shadow: 0 18px 58px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.dashboard-metrics article {
  min-height: 138px;
  padding: 18px;
  border-radius: 18px;
}

.dashboard-metrics span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-metrics strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 34px;
  line-height: 1;
}

.dashboard-metrics small {
  display: block;
  line-height: 1.4;
}

.progress-line {
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  box-shadow: 0 0 22px rgba(79, 255, 211, .54);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-grid > .panel {
  border-radius: 22px;
}

.rule-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rule-status-grid span {
  min-height: 62px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(92, 203, 255, .13);
  border-radius: 16px;
  color: #c8d8e5;
  background: rgba(255,255,255,.025);
}

.rule-status-grid i,
.group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6f8292;
}

.rule-status-grid span.is-on i,
.group-dot.is-on {
  background: var(--ok);
  box-shadow: 0 0 16px rgba(110, 255, 164, .78);
}

.rule-status-grid small {
  grid-column: 2;
  margin-top: -8px;
}

.action-timeline {
  display: grid;
  gap: 12px;
}

.action-timeline article,
.group-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(92, 203, 255, .12);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

.action-timeline article > i {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 16px rgba(110, 255, 164, .72);
}

.action-timeline article.danger > i {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 100, 124, .72);
}

.action-timeline strong,
.group-list strong,
.empty-state strong {
  display: block;
  color: var(--text);
}

.action-timeline p,
.empty-state p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.45;
}

.action-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}

.admin-action-filters {
  grid-template-columns: minmax(220px, 1.35fr) minmax(220px, 1fr) minmax(180px, .7fr) auto auto;
}

.bot-actions-table table {
  min-width: 980px;
}

.admin-bot-actions-table table {
  min-width: 1280px;
}

.bot-actions-table td strong,
.bot-actions-table td small {
  display: block;
}

.bot-actions-table td p {
  margin: 0 0 8px;
  color: #d8e8f4;
  line-height: 1.4;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 255, 164, .24);
  color: var(--ok);
  background: rgba(110, 255, 164, .08);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.action-badge.danger {
  border-color: rgba(255, 100, 124, .3);
  color: var(--danger);
  background: rgba(255, 100, 124, .08);
}

.action-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-tech span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(92, 203, 255, .12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  background: rgba(255,255,255,.025);
}

.metadata-details {
  margin-top: 8px;
}

.metadata-details summary,
.text-link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.metadata-details .json-box {
  margin-top: 8px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-list {
  display: grid;
  gap: 10px;
}

.groups-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.group-list em {
  font-style: normal;
  color: var(--teal);
  font-weight: 800;
}

.group-meta-line {
  display: block;
  margin-top: 4px;
  color: #88a9ba;
}

.group-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.group-actions form {
  margin: 0;
}

.empty-state {
  min-height: 140px;
  display: grid;
  place-content: center;
  padding: 18px;
  border: 1px dashed rgba(92, 203, 255, .22);
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.02);
}

.bot-settings-page {
  display: grid;
  gap: 18px;
  padding-bottom: 96px;
}

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
}

.settings-hero h2 {
  margin: 8px 0 12px;
  font-size: 42px;
  line-height: 1;
}

.settings-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.master-switch {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(79, 255, 211, .24);
  border-radius: 20px;
  background: rgba(79, 255, 211, .06);
}

.master-switch input,
.mini-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.master-switch i,
.mini-switch i {
  position: relative;
  display: block;
  width: 66px;
  height: 36px;
  border: 1px solid rgba(92, 203, 255, .28);
  border-radius: 999px;
  background: rgba(0,0,0,.36);
}

.master-switch i::after,
.mini-switch i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #718596;
  transition: transform .18s ease, background .18s ease;
}

.master-switch input:checked + i,
.mini-switch input:checked + i {
  border-color: var(--teal);
  background: rgba(79, 255, 211, .18);
}

.master-switch input:checked + i::after,
.mini-switch input:checked + i::after {
  transform: translateX(30px);
  background: var(--teal);
  box-shadow: 0 0 18px rgba(79, 255, 211, .72);
}

.settings-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.settings-board + .settings-board {
  margin-top: 18px;
}

.settings-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.setting-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 20px;
  border-radius: 22px;
  overflow: hidden;
}

.setting-card--bot {
  border-color: rgba(79, 255, 211, .32);
  background:
    radial-gradient(circle at 80% 0%, rgba(79, 255, 211, .18), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(34, 204, 255, .12), transparent 36%),
    linear-gradient(145deg, rgba(17, 34, 49, .92), rgba(7, 15, 28, .94));
  box-shadow: inset 0 0 0 1px rgba(79, 255, 211, .06);
}

.setting-card--bot::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(79, 255, 211, .18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(79, 255, 211, .16) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(79, 255, 211, .16) 50%, transparent 51%);
  opacity: .74;
  pointer-events: none;
}

.setting-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #526577;
}

.setting-card.is-enabled::before {
  background: linear-gradient(180deg, var(--teal), var(--blue));
  box-shadow: 0 0 20px rgba(79, 255, 211, .8);
}

.setting-card--wide {
  grid-column: span 2;
}

.setting-card header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setting-card h3 {
  margin: 6px 0 0;
  font-size: 24px;
}

.setting-state {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(92, 203, 255, .18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.setting-card.is-enabled .setting-state {
  color: var(--teal);
  border-color: rgba(79, 255, 211, .36);
  background: rgba(79, 255, 211, .08);
}

.mini-switch {
  display: block;
}

.mini-switch i {
  width: 58px;
  height: 32px;
}

.mini-switch i::after {
  width: 22px;
  height: 22px;
}

.mini-switch input:checked + i::after {
  transform: translateX(26px);
}

.setting-switches {
  display: grid;
  gap: 10px;
}

.bot-policy-panel {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(79, 255, 211, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 255, 211, .14), transparent 34%),
    rgba(0, 0, 0, .18);
  z-index: 1;
}

.bot-policy-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mini-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bot-policy-grid {
  display: grid;
  gap: 10px;
}

.switch-row.compact {
  min-height: 56px;
  padding: 12px;
  border-radius: 16px;
}

.switch-row.compact strong,
.switch-row.compact small {
  display: block;
}

.switch-row.compact small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.setting-details {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.setting-card:not(.is-enabled) .setting-details {
  display: none;
}

.time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phrase-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preset-switch {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(92, 203, 255, .14);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
}

.preset-switch strong,
.preset-switch small {
  display: block;
}

.preset-switch small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.preset-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preset-switch i {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border: 1px solid rgba(92, 203, 255, .24);
  border-radius: 999px;
  background: rgba(0,0,0,.36);
}

.preset-switch i::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #6f8292;
  transition: transform .18s ease, background .18s ease;
}

.preset-switch input:checked + i {
  background: rgba(34, 204, 255, .2);
  border-color: var(--blue);
}

.preset-switch input:checked + i::after {
  transform: translateX(24px);
  background: var(--teal);
  box-shadow: 0 0 18px rgba(79, 255, 211, .72);
}

[data-line-count] {
  float: right;
  color: var(--teal);
  font-weight: 800;
}

.settings-savebar {
  position: fixed;
  left: calc(270px + 24px);
  right: 24px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(79, 255, 211, .26);
  border-radius: 999px;
  background: rgba(2, 7, 17, .86);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}

.bot-settings-page.is-dirty .settings-savebar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.settings-savebar span {
  color: var(--muted);
  padding-left: 8px;
}

@media (max-width: 1100px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .settings-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .action-filters {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .dashboard-hero h2,
  .settings-hero h2 {
    font-size: 34px;
  }

  .dashboard-radar {
    width: min(100%, 280px);
  }

  .settings-board {
    grid-template-columns: 1fr;
  }

  .setting-card--wide {
    grid-column: auto;
  }

  .phrase-presets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-hero {
    min-height: auto;
    border-radius: 20px;
  }

  .dashboard-metrics,
  .rule-status-grid,
  .time-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > .panel,
  .dashboard-metrics article,
  .settings-hero,
  .setting-card {
    border-radius: 18px;
  }

  .group-list article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .groups-page-list {
    grid-template-columns: 1fr;
  }

  .group-list em {
    grid-column: 2;
  }

  .group-actions {
    grid-column: 2;
    justify-items: start;
  }

  .settings-savebar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }

  .settings-savebar .btn {
    width: 100%;
  }
}
