/* ==========================================================================
   MediMeet — Neon dark theme
   Loaded after every component stylesheet, only active when
   <html data-theme="dark">. The light theme is untouched.
   ========================================================================== */

/* ---------- Page atmosphere ---------- */

html[data-theme="dark"] body {
  background:
    radial-gradient(1100px 620px at 86% -8%, rgba(124, 58, 237, 0.16), transparent 62%),
    radial-gradient(900px 520px at 4% 0%, rgba(34, 211, 238, 0.07), transparent 60%),
    var(--surface);
}

/* ---------- Header ---------- */

html[data-theme="dark"] .site-header {
  background: rgba(5, 8, 16, 0.72);
  border-bottom-color: transparent;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background-color 0.25s, border-color 0.25s;
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(5, 8, 16, 0.94);
  border-bottom-color: var(--outline-variant);
  box-shadow: none;
}

html[data-theme="dark"] .site-header--mint::before,
html[data-theme="dark"] .site-header--lavender::before,
html[data-theme="dark"] .site-header--teal::before {
  display: none;
}

html[data-theme="dark"] .nav-link {
  color: #97a6ba;
}

html[data-theme="dark"] .nav-link:hover {
  color: var(--on-surface);
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .nav-link.is-active,
html[data-theme="dark"] .site-header.is-scrolled .nav-link.is-active {
  color: var(--primary);
  background: rgba(217, 255, 63, 0.08);
  box-shadow: inset 0 0 0 1px rgba(217, 255, 63, 0.22);
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.22);
  color: #dbe6f3;
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .theme-toggle:hover {
  color: var(--primary);
  border-color: rgba(217, 255, 63, 0.55);
  background: rgba(217, 255, 63, 0.06);
  box-shadow: 0 0 18px rgba(217, 255, 63, 0.15);
}

html[data-theme="dark"] .nav-toggle {
  border-color: rgba(255, 255, 255, 0.22);
  color: #eef4fb;
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .mini-mark {
  filter: var(--logo-filter);
}

/* ---------- Type accents ---------- */

html[data-theme="dark"] .text-accent {
  color: var(--primary);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html[data-theme="dark"] .text-accent {
    background: linear-gradient(94deg, #dbff45 0%, #b5ff57 46%, #5df2cf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

html[data-theme="dark"] .eyebrow {
  color: var(--primary);
}

html[data-theme="dark"] .eyebrow::before {
  box-shadow: 0 0 12px rgba(217, 255, 63, 0.45);
}

/* ---------- Buttons ---------- */

html[data-theme="dark"] .btn-primary {
  color: #081000;
  background: linear-gradient(96deg, #dcff4b, #c5ff25);
  box-shadow:
    0 0 0 1px rgba(217, 255, 63, 0.35),
    0 10px 30px rgba(190, 255, 40, 0.16);
}

html[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(96deg, #dcff4b, #c5ff25);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(217, 255, 63, 0.6),
    0 14px 38px rgba(190, 255, 40, 0.3);
}

html[data-theme="dark"] .btn-secondary {
  color: #eef4fb;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

html[data-theme="dark"] .btn-secondary:hover {
  border-color: rgba(217, 255, 63, 0.55);
  background: rgba(217, 255, 63, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .btn-ghost {
  color: #dbe6f3;
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .btn-ghost:hover {
  color: var(--on-surface);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .btn-primary:focus-visible {
  outline-color: #071000;
}

html[data-theme="dark"] .link-arrow {
  color: var(--primary);
}

html[data-theme="dark"] .link-arrow:hover {
  text-shadow: 0 0 18px rgba(217, 255, 63, 0.35);
}

/* ---------- Hero ---------- */

html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero--paper,
html[data-theme="dark"] .hero--lavender,
html[data-theme="dark"] .hero--teal {
  background: transparent;
}

html[data-theme="dark"] .hero-bg::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background:
    radial-gradient(46% 44% at 86% 12%, rgba(47, 226, 255, 0.16), transparent 70%),
    radial-gradient(44% 46% at 8% 88%, rgba(255, 79, 216, 0.12), transparent 70%);
  filter: blur(64px);
  pointer-events: none;
}

html[data-theme="dark"] .orb {
  display: block;
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

html[data-theme="dark"] .orb-cyan {
  width: 520px;
  height: 520px;
  top: -190px;
  right: -110px;
  background: rgba(47, 226, 255, 0.16);
}

html[data-theme="dark"] .orb-purple {
  width: 620px;
  height: 620px;
  top: 10%;
  right: 6%;
  background: rgba(160, 107, 255, 0.18);
}

html[data-theme="dark"] .orb-pink {
  width: 420px;
  height: 420px;
  bottom: -220px;
  left: -120px;
  background: rgba(255, 79, 216, 0.12);
}

html[data-theme="dark"] .hero-visual::before,
html[data-theme="dark"] .hero--lavender .hero-visual::before,
html[data-theme="dark"] .hero--teal .hero-visual::before,
html[data-theme="dark"] .hero--paper .hero-visual::before {
  inset: 8% -4% 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  background: radial-gradient(ellipse at 55% 50%, rgba(160, 107, 255, 0.34), transparent 68%);
  filter: blur(46px);
  opacity: 1;
}

html[data-theme="dark"] .hero-float {
  border-color: rgba(160, 107, 255, 0.32);
  background: rgba(10, 18, 30, 0.94);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(160, 107, 255, 0.08);
}

html[data-theme="dark"] .hero-float .spark-box {
  background: rgba(160, 107, 255, 0.14);
  color: var(--tertiary);
  box-shadow: 0 0 16px rgba(160, 107, 255, 0.2);
}

/* ---------- Cards and tones ---------- */

html[data-theme="dark"] .neon-card {
  border-color: color-mix(in srgb, var(--tone, var(--outline)) 42%, transparent);
  background:
    radial-gradient(120% 130% at 50% 0%, color-mix(in srgb, var(--tone, transparent) 9%, transparent), transparent 68%),
    linear-gradient(165deg, rgba(13, 22, 36, 0.85), rgba(7, 13, 22, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] a.neon-card:hover,
html[data-theme="dark"] .neon-card--hover:hover {
  border-color: color-mix(in srgb, var(--tone, var(--primary)) 72%, transparent);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.35),
    0 0 34px color-mix(in srgb, var(--tone, transparent) 10%, transparent);
  transform: translateY(-4px);
}

html[data-theme="dark"] .icon-tile {
  border: 1px solid color-mix(in srgb, var(--tone, var(--on-surface)) 30%, transparent);
  background: color-mix(in srgb, var(--tone, var(--on-surface)) 10%, transparent);
  color: var(--tone, var(--on-surface));
  box-shadow: 0 0 16px color-mix(in srgb, var(--tone, transparent) 12%, transparent);
}

html[data-theme="dark"] .icon-tile--plain {
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--tone, var(--primary));
}

html[data-theme="dark"] .check-icon {
  background: rgba(217, 255, 63, 0.12);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(217, 255, 63, 0.16);
}

html[data-theme="dark"] .layer-num,
html[data-theme="dark"] .step-num,
html[data-theme="dark"] .floor-key-num {
  box-shadow: 0 0 16px color-mix(in srgb, var(--tone) 35%, transparent);
}

/* Team messaging carried the indigo role in the light rebuild; the neon dark
   scheme restores the original site's green tile. */
html[data-theme="dark"] .feature-tile.tone-secondary,
html[data-theme="dark"] .feature-card.tone-secondary {
  --tone: var(--success);
  --tone-container: var(--success-container);
  --on-tone-container: var(--on-success-container);
  --tone-soft: var(--success-container-soft);
  --on-tone: var(--on-success);
}

html[data-theme="dark"] .floor-board {
  border-color: rgba(160, 107, 255, 0.28);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(160, 107, 255, 0.12), transparent 55%),
    linear-gradient(160deg, #0b1524 0%, #060c15 100%);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.4),
    0 0 45px rgba(160, 107, 255, 0.07);
}

html[data-theme="dark"] .live-pill {
  color: var(--primary);
  background: rgba(217, 255, 63, 0.08);
  box-shadow: inset 0 0 0 1px rgba(217, 255, 63, 0.28);
}

html[data-theme="dark"] .live-pill i {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(217, 255, 63, 0.75);
}

html[data-theme="dark"] .status-pill {
  background: rgba(57, 229, 140, 0.1);
  color: var(--success);
  box-shadow: inset 0 0 0 1px rgba(57, 229, 140, 0.26);
}

html[data-theme="dark"] .status-pill i {
  background: var(--success);
  box-shadow: 0 0 8px rgba(57, 229, 140, 0.7);
}

html[data-theme="dark"] .status-pill--cyan {
  background: rgba(47, 226, 255, 0.1);
  color: var(--clinic);
  box-shadow: inset 0 0 0 1px rgba(47, 226, 255, 0.26);
}

html[data-theme="dark"] .status-pill--cyan i {
  background: var(--clinic);
  box-shadow: 0 0 8px rgba(47, 226, 255, 0.7);
}

html[data-theme="dark"] .status-pill--purple {
  background: rgba(160, 107, 255, 0.12);
  color: var(--tertiary);
  box-shadow: inset 0 0 0 1px rgba(160, 107, 255, 0.3);
}

html[data-theme="dark"] .status-pill--purple i {
  background: var(--tertiary);
  box-shadow: 0 0 8px rgba(160, 107, 255, 0.7);
}

html[data-theme="dark"] .floor-board-ai {
  color: var(--on-tertiary-container);
  background:
    linear-gradient(100deg, rgba(160, 107, 255, 0.2), rgba(217, 255, 63, 0.06)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(160, 107, 255, 0.3);
}

html[data-theme="dark"] .floor-board-ai .spark {
  background: rgba(217, 255, 63, 0.12);
  color: var(--primary);
}

html[data-theme="dark"] .suggestion-card {
  border-color: rgba(160, 107, 255, 0.3);
  background:
    linear-gradient(100deg, rgba(160, 107, 255, 0.16), rgba(10, 18, 30, 0.7));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Pricing ---------- */

html[data-theme="dark"] .plan {
  border-color: color-mix(in srgb, var(--tone) 34%, transparent);
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--tone) 8%, transparent), transparent 62%),
    linear-gradient(165deg, rgba(13, 22, 36, 0.85), rgba(7, 13, 22, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .plan--featured {
  border-color: color-mix(in srgb, var(--tone) 62%, transparent);
  background:
    radial-gradient(120% 130% at 50% 0%, color-mix(in srgb, var(--tone) 12%, transparent), transparent 68%),
    linear-gradient(165deg, rgba(13, 22, 36, 0.9), rgba(7, 13, 22, 0.94));
  box-shadow:
    0 0 44px color-mix(in srgb, var(--tone) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .plan::before {
  background: linear-gradient(90deg, transparent, var(--tone));
  box-shadow: 0 0 12px color-mix(in srgb, var(--tone) 45%, transparent);
}

/* The Group plan keeps the original site's berry accent. */
html[data-theme="dark"] .plan.tone-secondary {
  --tone: var(--records);
}

html[data-theme="dark"] .plan-badge {
  color: #081000;
  background: linear-gradient(96deg, #dcff4b, #c5ff25);
  box-shadow: 0 0 18px rgba(217, 255, 63, 0.28);
}

/* ---------- CTA band ---------- */

html[data-theme="dark"] .cta-band {
  border: 1px solid transparent;
  background:
    linear-gradient(155deg, #0a1523 0%, #060c15 100%) padding-box,
    linear-gradient(104deg, #2fe2ff 0%, #d9ff3f 38%, #a06bff 72%, #ff4fd8 100%) border-box;
  box-shadow: 0 0 70px rgba(120, 80, 255, 0.14);
}

html[data-theme="dark"] .cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -65% -10%;
  height: 130%;
  border-radius: 0;
  background:
    radial-gradient(closest-side at 28% 80%, rgba(47, 226, 255, 0.3), transparent 72%),
    radial-gradient(closest-side at 72% 88%, rgba(255, 79, 216, 0.26), transparent 72%),
    radial-gradient(closest-side at 52% 95%, rgba(217, 255, 63, 0.16), transparent 70%);
  filter: blur(26px);
  opacity: 1;
  pointer-events: none;
}

html[data-theme="dark"] .cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 62%);
  mask-image: linear-gradient(to top, #000 0%, transparent 62%);
  opacity: 0.12;
  pointer-events: none;
}

html[data-theme="dark"] .cta-band h2 {
  color: var(--on-surface);
}

html[data-theme="dark"] .cta-band p {
  color: var(--on-surface-variant);
}

html[data-theme="dark"] .cta-band .cta-note {
  color: var(--on-surface-muted);
}

html[data-theme="dark"] .cta-band .cta-note span + span::before {
  color: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .cta-band .btn-primary {
  color: #081000;
  background: linear-gradient(96deg, #dcff4b, #c5ff25);
  box-shadow:
    0 0 0 1px rgba(217, 255, 63, 0.35),
    0 10px 30px rgba(190, 255, 40, 0.16);
}

html[data-theme="dark"] .cta-band .btn-primary:hover {
  background: linear-gradient(96deg, #dcff4b, #c5ff25);
  box-shadow:
    0 0 0 1px rgba(217, 255, 63, 0.6),
    0 14px 38px rgba(190, 255, 40, 0.3);
}

html[data-theme="dark"] .cta-band .btn-primary:focus-visible {
  outline-color: #071000;
}

/* ---------- Forms, auth and contact ---------- */

html[data-theme="dark"] .form-card {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #0a1524, #070e18) padding-box,
    linear-gradient(130deg, #2fe2ff 0%, #a06bff 52%, #ff4fd8 100%) border-box;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 55px rgba(160, 107, 255, 0.08);
}

html[data-theme="dark"] .next-steps {
  border-color: rgba(160, 107, 255, 0.28);
  background: rgba(160, 107, 255, 0.05);
}

html[data-theme="dark"] .next-steps .step-dot {
  color: var(--tertiary);
  box-shadow: 0 0 12px rgba(160, 107, 255, 0.25);
}

html[data-theme="dark"] .form-success .success-icon {
  color: var(--primary);
  background: rgba(217, 255, 63, 0.12);
  border: 1px solid rgba(217, 255, 63, 0.5);
  box-shadow: 0 0 30px rgba(217, 255, 63, 0.12);
}

html[data-theme="dark"] .form-success .success-email {
  color: var(--primary);
}

html[data-theme="dark"] .form-alert {
  border: 1px solid rgba(217, 255, 63, 0.35);
  background: rgba(217, 255, 63, 0.06);
  color: #dcecb4;
}

html[data-theme="dark"] .contact-card {
  border-color: color-mix(in srgb, var(--tone) 35%, transparent);
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--tone) 8%, transparent), transparent 65%),
    rgba(255, 255, 255, 0.015);
}

html[data-theme="dark"] .contact-card:hover {
  border-color: color-mix(in srgb, var(--tone) 65%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--tone) 10%, transparent);
}

html[data-theme="dark"] .auth-visual {
  border-right-color: var(--outline-variant);
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(160, 107, 255, 0.2), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(47, 226, 255, 0.14), transparent 70%),
    #060b13;
}

html[data-theme="dark"] .auth-rooms span {
  color: #cdd9e7;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .auth-rooms span:first-child {
  color: #e9ffa7;
  border-color: rgba(217, 255, 63, 0.45);
  background: rgba(217, 255, 63, 0.07);
  box-shadow: 0 0 18px rgba(217, 255, 63, 0.1);
}

html[data-theme="dark"] .auth-panel {
  background: #050a12;
}

html[data-theme="dark"] .auth-note {
  border-color: rgba(47, 226, 255, 0.24);
  background: rgba(47, 226, 255, 0.04);
  color: #93a8bd;
}

html[data-theme="dark"] .auth-note strong {
  color: #eef4fb;
}

html[data-theme="dark"] .auth-card .form-alert.is-visible,
html[data-theme="dark"] #signin-alert.is-visible {
  box-shadow: 0 0 24px rgba(217, 255, 63, 0.08);
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus {
  box-shadow:
    0 0 0 1px var(--primary),
    0 0 0 4px rgba(217, 255, 63, 0.12),
    0 0 22px rgba(217, 255, 63, 0.08);
}

html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"] {
  accent-color: var(--primary);
}

/* ---------- Footer ---------- */

html[data-theme="dark"] .site-footer {
  background: #040810;
}

/* ---------- Product mockup ---------- */

html[data-theme="dark"] .laptop {
  filter: drop-shadow(0 32px 46px rgba(0, 0, 0, 0.55));
}

html[data-theme="dark"] .laptop-screen {
  background: linear-gradient(145deg, #43ecff 0%, #a06bff 42%, #ff4fd8 72%, #8fffd4 100%);
  box-shadow:
    0 0 38px rgba(160, 107, 255, 0.28),
    0 24px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Journey ---------- */

html[data-theme="dark"] .stage-canvas {
  background:
    radial-gradient(80% 70% at 50% 52%, rgba(47, 226, 255, 0.06), transparent 64%),
    radial-gradient(70% 60% at 82% 22%, rgba(160, 107, 255, 0.1), transparent 70%),
    var(--surface);
}

html[data-theme="dark"] .stage-canvas::before {
  background-image:
    linear-gradient(rgba(148, 178, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 214, 0.05) 1px, transparent 1px);
}

html[data-theme="dark"] .stage-live {
  background: rgba(217, 255, 63, 0.08);
  box-shadow: inset 0 0 0 1px rgba(217, 255, 63, 0.24);
  color: var(--primary);
}

html[data-theme="dark"] .stage-live i {
  box-shadow: 0 0 7px var(--primary);
}

html[data-theme="dark"] .stage-progress-track {
  background: #1c2838;
}

html[data-theme="dark"] .stage-progress-fill {
  background: linear-gradient(90deg, #2fe2ff, #d9ff3f);
  box-shadow: 0 0 10px rgba(217, 255, 63, 0.5);
}

html[data-theme="dark"] .journey-steps::before {
  background: linear-gradient(180deg, transparent, rgba(148, 178, 214, 0.26) 8%, rgba(148, 178, 214, 0.26) 88%, transparent);
}

html[data-theme="dark"] .journey-step {
  background: #070f1a;
}

html[data-theme="dark"] .journey-step.is-past {
  background: #0a1421;
}

html[data-theme="dark"] .journey-step.is-active {
  border-color: var(--primary);
  background:
    linear-gradient(96deg, rgba(217, 255, 63, 0.09), rgba(10, 18, 30, 0.9));
  box-shadow:
    inset 0 0 0 1px var(--primary),
    0 0 28px rgba(217, 255, 63, 0.15);
}

html[data-theme="dark"] .journey-step.is-active .journey-step-num {
  color: var(--on-primary);
  box-shadow: 0 0 12px rgba(217, 255, 63, 0.45);
}

html[data-theme="dark"] .journey-step-kicker,
html[data-theme="dark"] .journey-step > p {
  color: var(--on-surface-variant);
}

html[data-theme="dark"] .journey-step.is-active > p,
html[data-theme="dark"] .journey-step.is-active .journey-step-kicker {
  color: var(--on-surface);
}

html[data-theme="dark"] .journey-step-meta {
  border-top-color: var(--outline-variant);
}

html[data-theme="dark"] .journey-step.is-active .journey-step-meta {
  border-top-color: rgba(217, 255, 63, 0.28);
}

html[data-theme="dark"] .role-chip {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(148, 178, 214, 0.22);
  color: #9fb0c4;
}

html[data-theme="dark"] .journey-step-ai {
  background: rgba(160, 107, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(160, 107, 255, 0.24);
}

html[data-theme="dark"] .journey-step-ai .ai-tag {
  color: var(--tertiary);
}

html[data-theme="dark"] .journey-step-ai p {
  color: var(--on-tertiary-container);
}

html[data-theme="dark"] .journey-step-ai .ai-actions span:first-child {
  color: var(--on-primary);
  box-shadow: 0 0 10px rgba(217, 255, 63, 0.3);
}

html[data-theme="dark"] .journey-access {
  background: rgba(148, 178, 214, 0.16);
}

html[data-theme="dark"] .journey-access-head,
html[data-theme="dark"] .access-item {
  background: #080f1a;
}

html[data-theme="dark"] .journey-ai {
  border: 1px solid transparent;
  background:
    linear-gradient(155deg, #0b1322 0%, #080e18 100%) padding-box,
    linear-gradient(115deg, #d9ff3f, #ff4fd8 56%, #a06bff) border-box;
  box-shadow: 0 0 50px rgba(255, 79, 216, 0.08);
}

html[data-theme="dark"] .journey-ai h3,
html[data-theme="dark"] .journey-ai .lead {
  color: #eef4fb;
}

html[data-theme="dark"] .journey-ai .eyebrow {
  color: var(--tertiary);
}

html[data-theme="dark"] .journey-ai .link-arrow {
  color: var(--primary);
}

html[data-theme="dark"] .journey-ai .suggestion-card {
  border-color: rgba(160, 107, 255, 0.4);
  background:
    linear-gradient(100deg, rgba(160, 107, 255, 0.24), rgba(10, 18, 30, 0.72));
  box-shadow: inset 0 0 0 1px rgba(160, 107, 255, 0.24);
}

html[data-theme="dark"] .journey-ai .suggestion-card .btn {
  color: var(--on-primary);
  background: var(--primary);
  box-shadow: 0 0 16px rgba(217, 255, 63, 0.25);
}

/* Rooms and route glow */

html[data-theme="dark"] .iso-room {
  --room-top-fill: #14263c;
  --room-wall-left: #1b3048;
  --room-wall-right: #162942;
  --room-tone: 148, 178, 214;
  --room-tone-color: #94b2d6;
}

html[data-theme="dark"] .room--dept {
  --room-top-fill: #1b3a12;
  --room-wall-left: #20501f;
  --room-wall-right: #184318;
  --room-tone: 217, 255, 63;
  --room-tone-color: #d9ff3f;
}

html[data-theme="dark"] .room--clinic {
  --room-top-fill: #0a3f4a;
  --room-wall-left: #0e5a68;
  --room-wall-right: #0b4d59;
  --room-tone: 47, 226, 255;
  --room-tone-color: #2fe2ff;
}

html[data-theme="dark"] .room--visit,
html[data-theme="dark"] .room--waiting {
  --room-top-fill: #2a1b4f;
  --room-wall-left: #3d2b6e;
  --room-wall-right: #33245e;
  --room-tone: 160, 107, 255;
  --room-tone-color: #b997ff;
}

html[data-theme="dark"] .room--record {
  --room-top-fill: #451632;
  --room-wall-left: #5c2147;
  --room-wall-right: #4b1b3a;
  --room-tone: 255, 79, 216;
  --room-tone-color: #ff4fd8;
}

html[data-theme="dark"] .room-glow {
  display: block;
  fill: var(--room-tone-color);
  opacity: 0;
  filter: blur(13px);
  transition: opacity 0.45s var(--ease-emphasized);
}

html[data-theme="dark"] .iso-room .room-top {
  stroke: rgba(var(--room-tone), 0.34);
}

html[data-theme="dark"] .iso-room .room-wall--left,
html[data-theme="dark"] .iso-room .room-wall--right {
  stroke: rgba(var(--room-tone), 0.18);
}

html[data-theme="dark"] .iso-room.is-active .room-top {
  stroke: var(--room-tone-color);
  stroke-width: 1.6;
  filter: brightness(1.22) drop-shadow(0 0 13px rgba(var(--room-tone), 0.8));
}

html[data-theme="dark"] .iso-room.is-active .room-wall--left,
html[data-theme="dark"] .iso-room.is-active .room-wall--right {
  filter: brightness(1.28);
}

html[data-theme="dark"] .iso-room.is-active .room-glow {
  opacity: 0.34;
}

html[data-theme="dark"] .iso-room.is-active .room-line {
  stroke: rgba(255, 255, 255, 0.26);
}

html[data-theme="dark"] .iso-room.is-active .room-status {
  fill: #ffffff;
}

html[data-theme="dark"] .iso-room .room-status {
  fill: var(--room-tone-color);
}

html[data-theme="dark"] .iso-zone:not(.is-lit):not(.zone-ai) {
  opacity: 0.72;
}

html[data-theme="dark"] .iso-platform .platform-top {
  fill: #0a1522;
}

html[data-theme="dark"] .iso-platform .platform-face--left {
  fill: #08111c;
}

html[data-theme="dark"] .iso-platform .platform-face--right {
  fill: #06101a;
}

html[data-theme="dark"] .floor-grid line {
  stroke: rgba(148, 178, 214, 0.12);
}

html[data-theme="dark"] .zone-label {
  fill: #b8c8db;
}

html[data-theme="dark"] .zone-label--tone {
  fill: var(--primary);
  opacity: 0.9;
}

html[data-theme="dark"] .ai-hub .ai-core {
  filter: drop-shadow(0 0 8px rgba(217, 255, 63, 0.6));
}

html[data-theme="dark"] .ai-hub .ai-pulse {
  opacity: 0.2;
}

/* Stage gradients declared in how-it-works.html. */
html[data-theme="dark"] #ambientGlow stop {
  stop-color: #a06bff;
}

html[data-theme="dark"] #ambientGlow stop:first-child {
  stop-opacity: 0.45;
}

html[data-theme="dark"] #ambientGlow stop:nth-child(2) {
  stop-opacity: 0.22;
}

/* ---------- Small screens ---------- */

@media (max-width: 1000px) {
  html[data-theme="dark"] .nav-menu {
    background: #070e19;
    border-color: rgba(148, 178, 214, 0.18);
  }

  html[data-theme="dark"] .nav-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}
