:root {
  color-scheme: dark;
  --bg: #02060a;
  --panel: rgba(4, 17, 27, 0.72);
  --panel-strong: rgba(2, 12, 20, 0.9);
  --cyan: #28d7ff;
  --cyan-soft: rgba(40, 215, 255, 0.18);
  --cyan-line: rgba(40, 215, 255, 0.32);
  --red: #ff345d;
  --green: #40ffb0;
  --amber: #ffbc42;
  --text: #eefaff;
  --muted: rgba(203, 239, 255, 0.62);
  --dim: rgba(168, 225, 255, 0.38);
  --mono: "Share Tech Mono", "JetBrains Mono", ui-monospace, monospace;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hud-cut: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px));
}

/* v36 cinematic command-center lift */
@media (min-width: 981px) {
  .app-shell {
    background:
      radial-gradient(circle at 50% 40%, rgba(40, 215, 255, 0.11), transparent 36rem),
      radial-gradient(circle at 77% 42%, rgba(255, 52, 93, 0.08), transparent 28rem),
      linear-gradient(180deg, rgba(1, 6, 12, 0.98), rgba(0, 2, 6, 1));
  }

  .app-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
      repeating-linear-gradient(180deg, rgba(210, 252, 255, 0.032) 0 1px, transparent 1px 4px),
      radial-gradient(circle at 50% 44%, transparent 0 26rem, rgba(0, 0, 0, 0.2) 37rem, rgba(0, 0, 0, 0.56) 100%);
    mix-blend-mode: screen;
    opacity: 0.45;
  }

  .topbar,
  .module-rail,
  .intel-rail,
  .hero-stage,
  .bottom-panels {
    border-color: rgba(150, 245, 255, 0.25);
    box-shadow:
      inset 0 0 0 1px rgba(220, 255, 255, 0.035),
      inset 0 0 44px rgba(40, 215, 255, 0.055),
      0 0 52px rgba(0, 0, 0, 0.36);
  }

  .hero-stage {
    background:
      radial-gradient(circle at 50% 45%, rgba(200, 255, 255, 0.13), transparent 9rem),
      radial-gradient(circle at 52% 50%, rgba(40, 215, 255, 0.2), transparent 26rem),
      radial-gradient(circle at 72% 38%, rgba(255, 52, 93, 0.12), transparent 22rem),
      repeating-linear-gradient(90deg, rgba(40, 215, 255, 0.035) 0 1px, transparent 1px 44px),
      linear-gradient(180deg, rgba(0, 10, 18, 0.78), rgba(0, 3, 7, 0.98));
  }

  .hero-stage::before {
    opacity: 0.95;
    background-image:
      linear-gradient(rgba(40, 215, 255, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(40, 215, 255, 0.07) 1px, transparent 1px),
      linear-gradient(120deg, transparent 0 48%, rgba(40, 215, 255, 0.055) 49% 51%, transparent 52% 100%);
  }

  .hero-stage::after {
    left: 6%;
    right: 6%;
    bottom: 6%;
    height: 185px;
    background:
      radial-gradient(ellipse at center, rgba(160, 252, 255, 0.34), rgba(40, 215, 255, 0.12) 36%, transparent 70%),
      linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.38), transparent);
    filter: blur(10px);
    opacity: 0.96;
  }

  .globe-wrap {
    inset: 84px -8% 166px;
  }

  .globe-wrap::before,
  .globe-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 64%;
    pointer-events: none;
    transform: translate(-50%, -50%) rotateX(70deg);
  }

  .globe-wrap::before {
    z-index: 1;
    width: min(900px, 80vw);
    height: min(900px, 80vw);
    border-radius: 50%;
    border: 1px solid rgba(120, 245, 255, 0.2);
    background:
      repeating-radial-gradient(circle, transparent 0 34px, rgba(40, 215, 255, 0.11) 35px 36px, transparent 37px 70px),
      conic-gradient(from 0deg, transparent, rgba(40, 215, 255, 0.18), transparent, rgba(255, 52, 93, 0.14), transparent);
    box-shadow: 0 0 72px rgba(40, 215, 255, 0.16);
    animation: commandDisc 28s linear infinite;
  }

  .globe-wrap::after {
    z-index: 6;
    width: min(630px, 55vw);
    height: min(630px, 55vw);
    border-radius: 50%;
    border: 1px dashed rgba(190, 252, 255, 0.28);
    box-shadow: inset 0 0 34px rgba(40, 215, 255, 0.08), 0 0 28px rgba(40, 215, 255, 0.18);
    animation: commandDisc 18s linear reverse infinite;
  }

  #globeCanvas {
    position: relative;
    z-index: 5;
    width: min(114%, 1240px);
    filter:
      drop-shadow(0 0 28px rgba(185, 252, 255, 0.28))
      drop-shadow(0 0 74px rgba(40, 215, 255, 0.45))
      saturate(1.28);
  }

  .threat-lock {
    z-index: 9;
    border-color: rgba(200, 255, 255, 0.22);
    box-shadow: inset 0 0 42px rgba(40, 215, 255, 0.07), 0 0 34px rgba(40, 215, 255, 0.12);
  }

  .core-readout span,
  .city-tag,
  .platform-label {
    clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(5, 19, 30, 0.84), rgba(0, 7, 13, 0.76)),
      repeating-linear-gradient(90deg, rgba(160, 245, 255, 0.035) 0 1px, transparent 1px 10px);
  }

  .city-tag::after,
  .platform-label::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.74));
    box-shadow: 0 0 12px rgba(40, 215, 255, 0.7);
  }

  .metric-stack article {
    border-color: rgba(150, 245, 255, 0.28);
    background:
      linear-gradient(180deg, rgba(4, 17, 28, 0.92), rgba(0, 7, 13, 0.86)),
      repeating-linear-gradient(180deg, rgba(185, 252, 255, 0.035) 0 1px, transparent 1px 8px),
      radial-gradient(circle at 100% 0, rgba(40, 215, 255, 0.18), transparent 7rem);
  }

  .metric-stack article::before {
    content: "";
    position: absolute;
    inset: 8px 8px auto auto;
    width: 34px;
    height: 12px;
    border-top: 1px solid rgba(150, 245, 255, 0.34);
    border-right: 1px solid rgba(150, 245, 255, 0.34);
    opacity: 0.85;
  }

  .module-button {
    clip-path: polygon(0 9px, 9px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
    border-color: rgba(95, 226, 255, 0.14);
  }

  .module-button:hover,
  .module-button.active {
    transform: translateX(0);
    border-color: rgba(170, 252, 255, 0.56);
    box-shadow: inset 0 0 18px rgba(40, 215, 255, 0.1), 0 0 22px rgba(40, 215, 255, 0.16);
  }

  .terminal-panel,
  .ai-panel,
  .holo-card,
  .threat-feed,
  .quick-actions,
  .support-line {
    background:
      linear-gradient(180deg, rgba(4, 17, 28, 0.86), rgba(0, 7, 13, 0.82)),
      repeating-linear-gradient(180deg, rgba(185, 252, 255, 0.035) 0 1px, transparent 1px 7px),
      linear-gradient(90deg, rgba(40, 215, 255, 0.055), transparent 58%, rgba(255, 52, 93, 0.04));
  }

  .ai-visual {
    filter: drop-shadow(0 0 16px rgba(40, 215, 255, 0.3));
  }

  .ai-visual::before {
    animation: aiFramePulse 3.8s ease-in-out infinite;
  }

  .ai-visual::after {
    animation: aiFramePulse 3.8s ease-in-out infinite reverse;
  }

  .infra-hologram {
    background:
      radial-gradient(circle at 50% 64%, rgba(190, 252, 255, 0.16), transparent 32%),
      repeating-linear-gradient(90deg, rgba(40, 215, 255, 0.045) 0 1px, transparent 1px 22px),
      repeating-linear-gradient(180deg, rgba(40, 215, 255, 0.035) 0 1px, transparent 1px 18px),
      linear-gradient(180deg, rgba(40, 215, 255, 0.055), transparent 62%, rgba(255, 52, 93, 0.045));
  }

  .infra-hologram::before {
    width: 276px;
    height: 96px;
    background: radial-gradient(ellipse at center, rgba(185, 252, 255, 0.34), rgba(40, 215, 255, 0.16) 42%, transparent 72%);
  }

  .feed-row {
    border-bottom: 1px solid rgba(95, 226, 255, 0.075);
  }

  .platform-label {
    z-index: 11;
    bottom: 31%;
    border-color: rgba(170, 252, 255, 0.46);
    box-shadow: 0 0 26px rgba(40, 215, 255, 0.2), inset 0 0 18px rgba(40, 215, 255, 0.09);
  }

  .sector-node {
    min-width: 78px;
    min-height: 34px;
    border-radius: 0;
    clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
    background: linear-gradient(180deg, rgba(3, 14, 23, 0.86), rgba(0, 7, 13, 0.78));
    font-size: 0.7rem;
  }
}

@keyframes commandDisc {
  from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

@keyframes aiFramePulse {
  0%, 100% { opacity: 0.72; filter: drop-shadow(0 0 12px rgba(40, 215, 255, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 24px rgba(40, 215, 255, 0.72)); }
}

/* v40 tail override: final cascade layer */
@media (min-width: 981px) {
  .hero-stage.module-open .hero-copy {
    max-width: min(520px, calc(100% - 252px)) !important;
    margin: 18px 26px 0 auto !important;
    padding: 0 !important;
  }

  .hero-stage.module-open .hero-copy h1 {
    font-size: clamp(2.1rem, 2.6vw, 3.25rem) !important;
    line-height: 0.94 !important;
  }

  .hero-stage.module-open .hero-copy p {
    max-width: 520px !important;
    font-size: 0.84rem !important;
    line-height: 1.34 !important;
  }

  .metric-stack {
    left: 14px !important;
    top: 102px !important;
    width: 176px !important;
    gap: 8px !important;
  }

  .metric-stack article {
    min-height: 76px !important;
    padding: 10px 11px !important;
  }

  .metric-stack strong {
    font-size: 1.18rem !important;
    line-height: 0.92 !important;
  }

  .command-layout {
    grid-template-columns: 300px minmax(0, 1fr) 360px !important;
    height: calc(100vh - 74px) !important;
    overflow: hidden !important;
  }

  .module-rail,
  .intel-rail,
  .hero-stage {
    height: calc(100vh - 98px) !important;
    max-height: calc(100vh - 98px) !important;
    overflow: hidden !important;
  }
}

/* v40 final override: must stay at end of file */
body {
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 43, 91, 0.35) 0%, rgba(0, 8, 18, 1) 75%),
    #000812 !important;
}

.app-shell {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 43, 91, 0.35) 0%, rgba(0, 8, 18, 1) 75%),
    linear-gradient(180deg, rgba(0, 8, 18, 1), rgba(0, 2, 7, 1)) !important;
}

.module-rail,
.intel-rail,
.terminal-panel,
.ai-panel,
.threat-feed,
.quick-actions,
.support-line,
.holo-card,
.metric-stack article {
  background:
    linear-gradient(180deg, rgba(4, 18, 36, 0.45), rgba(1, 9, 20, 0.48)),
    repeating-linear-gradient(180deg, rgba(160, 245, 255, 0.028) 0 1px, transparent 1px 8px) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.15) !important;
  box-shadow:
    inset 0 0 15px rgba(0, 150, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

.topbar,
.module-button,
.feed-row,
.terminal-panel li,
.ai-lines li,
.dossier-panel li,
.metric-stack small,
.metric-stack em,
.feed-row span,
.feed-row strong {
  text-shadow: none !important;
}

.danger-text,
.feed-row.high strong,
.confidence.critical span {
  color: var(--red) !important;
  text-shadow: 0 0 14px rgba(255, 52, 93, 0.72), 0 0 28px rgba(255, 52, 93, 0.24) !important;
}

.module-button.active .module-label,
.system-state strong,
.platform-label strong,
.confidence.optimal span {
  color: var(--ice) !important;
  text-shadow: 0 0 12px rgba(40, 215, 255, 0.64), 0 0 26px rgba(40, 215, 255, 0.22) !important;
}

.feed-row.mid strong {
  color: var(--amber) !important;
  text-shadow: 0 0 12px rgba(255, 188, 66, 0.62), 0 0 24px rgba(255, 188, 66, 0.2) !important;
}

.terminal-panel li,
.ai-lines li,
.feed-row span,
.dossier-panel li,
.metric-stack small,
.metric-stack em {
  color: rgba(0, 255, 255, 0.48) !important;
}

.confidence.critical {
  border-color: rgba(255, 52, 93, 0.38) !important;
  background: linear-gradient(90deg, rgba(255, 52, 93, 0.13), rgba(255, 188, 66, 0.06), transparent) !important;
}

.confidence.optimal {
  border-color: rgba(64, 255, 176, 0.32) !important;
  background: linear-gradient(90deg, rgba(64, 255, 176, 0.1), rgba(40, 215, 255, 0.07), transparent) !important;
}

@media (min-width: 981px) {
  .command-layout {
    grid-template-columns: 300px minmax(0, 1fr) 360px !important;
    height: calc(100vh - 74px) !important;
    max-height: calc(100vh - 74px) !important;
    overflow: hidden !important;
  }

  .module-rail,
  .intel-rail,
  .hero-stage {
    height: calc(100vh - 98px) !important;
    max-height: calc(100vh - 98px) !important;
    overflow: hidden !important;
  }

  .hero-stage {
    background:
      radial-gradient(circle at 50% 44%, rgba(0, 210, 255, 0.22), transparent 12rem),
      radial-gradient(circle at 51% 44%, rgba(0, 43, 91, 0.35) 0%, rgba(0, 8, 18, 0.94) 75%),
      repeating-linear-gradient(90deg, rgba(0, 210, 255, 0.036) 0 1px, transparent 1px 46px),
      repeating-linear-gradient(180deg, rgba(0, 210, 255, 0.024) 0 1px, transparent 1px 38px),
      linear-gradient(180deg, rgba(0, 7, 16, 0.76), rgba(0, 3, 9, 0.96)) !important;
    border-color: rgba(0, 210, 255, 0.18) !important;
    backdrop-filter: blur(9px);
  }

  .hero-stage.module-open .hero-copy {
    max-width: min(520px, calc(100% - 252px)) !important;
    margin: 18px 26px 0 auto !important;
    padding: 0 !important;
  }

  .hero-stage.module-open .hero-copy h1 {
    font-size: clamp(2.1rem, 2.6vw, 3.25rem) !important;
    line-height: 0.94 !important;
  }

  .hero-stage.module-open .hero-copy p {
    max-width: 520px !important;
    font-size: 0.84rem !important;
    line-height: 1.34 !important;
  }

  .metric-stack {
    left: 14px !important;
    top: 102px !important;
    width: 176px !important;
    gap: 8px !important;
  }

  .metric-stack article {
    min-height: 76px !important;
    padding: 10px 11px !important;
  }

  .metric-stack strong {
    font-family: "Share Tech Mono", "Fira Code", monospace !important;
    margin: 6px 0 !important;
    font-size: 1.18rem !important;
    line-height: 0.92 !important;
    letter-spacing: 0 !important;
  }

  .bottom-panels {
    bottom: 12px !important;
    left: 318px !important;
    right: 378px !important;
    max-height: 206px !important;
  }

  .module-button:hover,
  .module-button.active {
    background:
      linear-gradient(90deg, rgba(0, 210, 255, 0.22), rgba(4, 18, 36, 0.44) 48%, rgba(0, 210, 255, 0.08)) !important;
    box-shadow:
      inset 0 0 16px rgba(0, 210, 255, 0.12),
      0 0 18px rgba(0, 210, 255, 0.14) !important;
  }
}

@media (max-width: 980px) {
  body,
  .app-shell {
    overflow: auto !important;
    height: auto !important;
  }
}

/* v40 cinematic depth pass */
body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 43, 91, 0.35) 0%, rgba(0, 8, 18, 1) 75%),
    #000812;
}

.app-shell {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 43, 91, 0.35) 0%, rgba(0, 8, 18, 1) 75%),
    linear-gradient(180deg, rgba(0, 8, 18, 1), rgba(0, 2, 7, 1));
}

.app-shell,
.module-rail,
.intel-rail,
.hero-stage,
.terminal-panel,
.ai-panel,
.threat-feed,
.quick-actions,
.support-line,
.holo-card,
.metric-stack article {
  will-change: transform, opacity;
}

.module-rail,
.intel-rail,
.terminal-panel,
.ai-panel,
.threat-feed,
.quick-actions,
.support-line,
.holo-card,
.metric-stack article {
  background:
    linear-gradient(180deg, rgba(4, 18, 36, 0.45), rgba(1, 9, 20, 0.48)),
    repeating-linear-gradient(180deg, rgba(160, 245, 255, 0.028) 0 1px, transparent 1px 8px) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.15) !important;
  box-shadow:
    inset 0 0 15px rgba(0, 150, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

.topbar,
.module-button,
.feed-row,
.terminal-panel li,
.ai-lines li,
.dossier-panel li,
.metric-stack small,
.metric-stack em,
.feed-row span,
.feed-row strong {
  text-shadow: none !important;
}

.neon-critical,
.danger-text,
.feed-row.high strong,
.confidence.critical span {
  color: var(--red) !important;
  text-shadow: 0 0 14px rgba(255, 52, 93, 0.72), 0 0 28px rgba(255, 52, 93, 0.24) !important;
}

.neon-active,
.module-button.active .module-label,
.system-state strong,
.platform-label strong,
.confidence.optimal span {
  color: var(--ice) !important;
  text-shadow: 0 0 12px rgba(40, 215, 255, 0.64), 0 0 26px rgba(40, 215, 255, 0.22) !important;
}

.neon-warning,
.feed-row.mid strong {
  color: var(--amber) !important;
  text-shadow: 0 0 12px rgba(255, 188, 66, 0.62), 0 0 24px rgba(255, 188, 66, 0.2) !important;
}

.terminal-panel li,
.ai-lines li,
.feed-row span,
.dossier-panel li,
.metric-stack small,
.metric-stack em {
  color: rgba(0, 255, 255, 0.48) !important;
}

.feed-row.low strong,
.terminal-panel b,
.ai-lines b {
  color: rgba(145, 255, 230, 0.72);
}

.confidence {
  transition: border-color 180ms ease, background 180ms ease;
}

.confidence.critical {
  border-color: rgba(255, 52, 93, 0.38);
  background: linear-gradient(90deg, rgba(255, 52, 93, 0.13), rgba(255, 188, 66, 0.06), transparent);
}

.confidence.optimal {
  border-color: rgba(64, 255, 176, 0.32);
  background: linear-gradient(90deg, rgba(64, 255, 176, 0.1), rgba(40, 215, 255, 0.07), transparent);
}

@media (min-width: 981px) {
  .command-layout {
    grid-template-columns: 300px minmax(0, 1fr) 360px !important;
    height: calc(100vh - 74px);
    max-height: calc(100vh - 74px);
    overflow: hidden;
  }

  .module-rail,
  .intel-rail,
  .hero-stage {
    height: calc(100vh - 98px);
    max-height: calc(100vh - 98px);
    overflow: hidden;
  }

  .hero-stage {
    background:
      radial-gradient(circle at 50% 44%, rgba(0, 210, 255, 0.22), transparent 12rem),
      radial-gradient(circle at 51% 44%, rgba(0, 43, 91, 0.35) 0%, rgba(0, 8, 18, 0.94) 75%),
      repeating-linear-gradient(90deg, rgba(0, 210, 255, 0.036) 0 1px, transparent 1px 46px),
      repeating-linear-gradient(180deg, rgba(0, 210, 255, 0.024) 0 1px, transparent 1px 38px),
      linear-gradient(180deg, rgba(0, 7, 16, 0.76), rgba(0, 3, 9, 0.96)) !important;
    border-color: rgba(0, 210, 255, 0.18) !important;
    backdrop-filter: blur(9px);
  }

  .metric-stack {
    width: 214px;
  }

  .metric-stack article {
    min-height: 82px;
    padding: 16px 16px 14px;
  }

  .metric-stack strong {
    font-family: "Share Tech Mono", "Fira Code", monospace;
    line-height: 0.92;
    letter-spacing: 0;
  }

  .module-button {
    min-height: 48px;
    background:
      linear-gradient(90deg, rgba(0, 210, 255, 0.08), rgba(4, 18, 36, 0.3) 44%, rgba(4, 18, 36, 0.14)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018) !important;
  }

  .module-button:hover,
  .module-button.active {
    background:
      linear-gradient(90deg, rgba(0, 210, 255, 0.22), rgba(4, 18, 36, 0.44) 48%, rgba(0, 210, 255, 0.08)) !important;
    box-shadow:
      inset 0 0 16px rgba(0, 210, 255, 0.12),
      0 0 18px rgba(0, 210, 255, 0.14) !important;
  }

  .bottom-panels {
    bottom: 14px;
    left: 318px;
    right: 378px;
    max-height: 212px;
  }
}

@media (max-width: 980px) {
  body,
  .app-shell {
    overflow: auto;
    height: auto;
  }
}

@media (min-width: 981px) {
  .globe-wrap,
  .service-hologram,
  .holo-blueprint,
  .bp-node,
  .bp-line,
  .confidence i {
    will-change: transform, opacity;
  }

  .hero-stage.module-open .globe-wrap {
    opacity: 0.38;
    transform: scale(0.72) translateY(-18px);
    transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease;
  }

  .hero-stage:not(.module-open) .globe-wrap {
    transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease;
  }

  .service-hologram {
    position: absolute;
    inset: 130px 205px 198px;
    z-index: 13;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition: opacity 480ms ease, transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .service-hologram.active {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .holo-blueprint {
    position: relative;
    width: min(430px, 42vw);
    min-height: 270px;
    padding: 18px;
    border: 1px solid rgba(170, 252, 255, 0.44);
    clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
    background:
      linear-gradient(180deg, rgba(4, 18, 30, 0.78), rgba(0, 8, 14, 0.66)),
      repeating-linear-gradient(90deg, rgba(185, 252, 255, 0.045) 0 1px, transparent 1px 18px),
      repeating-linear-gradient(180deg, rgba(185, 252, 255, 0.035) 0 1px, transparent 1px 14px);
    backdrop-filter: blur(10px);
  }

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

  .holo-blueprint::before {
    inset: -36px;
    border: 1px dashed rgba(40, 215, 255, 0.26);
    border-radius: 50%;
    transform: rotateX(66deg);
    animation: commandDisc 14s linear infinite;
  }

  .holo-blueprint::after {
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 52, 93, 0.8), rgba(40, 215, 255, 0.8), transparent);
    animation: blueprintSweep 2.4s ease-in-out infinite;
  }

  .blueprint-kicker,
  .holo-blueprint h2,
  .holo-blueprint p,
  .bp-node {
    font-family: var(--mono);
    text-transform: uppercase;
  }

  .blueprint-kicker {
    color: rgba(120, 245, 255, 0.74);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .holo-blueprint h2 {
    margin: 8px 0 12px;
    color: #eaffff;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    text-shadow: 0 0 18px rgba(40, 215, 255, 0.56);
  }

  .holo-blueprint p {
    margin: 12px 0 0;
    color: rgba(210, 252, 255, 0.76);
    font-size: 0.62rem;
    line-height: 1.45;
  }

  .blueprint-grid {
    position: relative;
    height: 150px;
    border: 1px solid rgba(95, 226, 255, 0.16);
    background: radial-gradient(circle at 50% 50%, rgba(40, 215, 255, 0.12), transparent 62%);
  }

  .bp-node {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 78px;
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid rgba(170, 252, 255, 0.5);
    color: #eaffff;
    background: rgba(0, 10, 18, 0.84);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  }

  .bp-core {
    left: 50%;
    top: 50%;
    color: #001017;
    background: linear-gradient(90deg, #a8fbff, #28d7ff);
    transform: translate(-50%, -50%);
  }

  .bp-edge { left: 6%; top: 16%; }
  .bp-client { right: 6%; top: 18%; }
  .bp-log { left: 50%; bottom: 8%; transform: translateX(-50%); border-color: rgba(64, 255, 176, 0.48); }

  .bp-line {
    position: absolute;
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(40, 215, 255, 0), rgba(40, 215, 255, 0.86), rgba(255, 52, 93, 0.62), rgba(40, 215, 255, 0));
    transform-origin: left center;
    animation: blueprintFlow 1.4s linear infinite;
  }

  .line-a { left: 25%; top: 32%; width: 28%; transform: rotate(14deg); }
  .line-b { left: 51%; top: 34%; width: 28%; transform: rotate(-13deg); }
  .line-c { left: 32%; top: 65%; width: 26%; transform: rotate(-28deg); }
  .line-d { left: 51%; top: 65%; width: 24%; transform: rotate(28deg); }

  .confidence i {
    width: 98.3%;
    transition: width 260ms ease, background 260ms ease;
  }
}

@keyframes blueprintFlow {
  from { opacity: 0.38; filter: brightness(0.9); }
  50% { opacity: 1; filter: brightness(1.45); }
  to { opacity: 0.38; filter: brightness(0.9); }
}

@keyframes blueprintSweep {
  0%, 100% { transform: translateY(-66px); opacity: 0; }
  45%, 55% { opacity: 1; }
  100% { transform: translateY(66px); }
}

@media (max-width: 980px) {
  .service-hologram {
    display: none !important;
  }
}

/* v38 cinematic polish: service canvas, restrained typography glow, performance hints */
@media (min-width: 981px) {
  #serviceHoloCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0.96;
    will-change: transform, opacity;
  }

  .bp-node,
  .bp-line,
  .blueprint-kicker,
  .holo-blueprint h2,
  .holo-blueprint p {
    position: relative;
    z-index: 2;
  }

  .terminal-lines,
  .terminal-lines div,
  .ai-panel li,
  .holo-blueprint p,
  .feed-row span,
  .module-button span span,
  .city-tag span,
  .metric-stack em {
    color: rgba(188, 235, 245, 0.68);
    text-shadow: none;
  }

  .feed-row span:nth-child(3) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .terminal-lines {
    opacity: 0.82;
  }

  .terminal-lines div::before {
    opacity: 0.72;
    box-shadow: none;
  }

  .holo-blueprint h2,
  .rail-title,
  .holo-card h2,
  .threat-feed h2,
  .quick-actions h2,
  .terminal-panel h2,
  .ai-panel h2 {
    text-shadow: none;
  }

  .danger-text,
  .feed-row.high strong,
  .feed-row.high .dot,
  .alert-action,
  .city-tag.danger b,
  .city-tag.danger span {
    text-shadow: 0 0 12px rgba(255, 52, 93, 0.72);
  }

  .module-button.active,
  .nav-strip a.active,
  .system-state strong,
  .platform-label,
  .service-hologram.active .holo-blueprint h2,
  .bp-core {
    text-shadow: 0 0 12px rgba(40, 215, 255, 0.58);
  }

  .module-button,
  .nav-strip a,
  .feed-row,
  .quick-actions a {
    will-change: transform, opacity;
  }
}

/* v39 audio and premium hierarchy pass */
.audio-toggle {
  position: relative;
  z-index: 60;
  display: grid;
  place-items: center;
  align-content: center;
  width: 74px;
  min-height: 48px;
  border: 1px solid rgba(64, 255, 176, 0.28);
  border-radius: 0;
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  color: rgba(215, 255, 242, 0.86);
  background:
    linear-gradient(180deg, rgba(4, 18, 24, 0.82), rgba(0, 8, 12, 0.68)),
    radial-gradient(circle at 50% 0, rgba(64, 255, 176, 0.12), transparent 70%);
  font-family: var(--mono);
  cursor: pointer;
  will-change: transform, opacity;
}

.audio-toggle span,
.audio-toggle strong {
  display: block;
  line-height: 1.1;
}

.audio-toggle span {
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  opacity: 0.68;
}

.audio-toggle strong {
  margin-top: 3px;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(64, 255, 176, 0.48);
}

.audio-toggle.muted {
  border-color: rgba(255, 52, 93, 0.3);
  color: rgba(255, 220, 226, 0.76);
}

.audio-toggle.muted strong {
  color: var(--red);
  text-shadow: 0 0 12px rgba(255, 52, 93, 0.54);
}

@media (min-width: 981px) {
  .topbar {
    grid-template-columns: 210px minmax(0, 1fr) 170px 78px;
  }

  .audio-toggle {
    justify-self: end;
  }

  .holo-blueprint {
    box-shadow: none;
  }

  .bp-node {
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .audio-toggle {
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 68px;
    min-height: 44px;
  }
}

/* v39 final placement override */
@media (min-width: 981px) {
  .topbar {
    grid-template-columns: 210px minmax(0, 1fr) 170px 78px !important;
    grid-template-rows: 1fr;
    align-items: center;
    overflow: hidden;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-strip {
    grid-column: 2;
    grid-row: 1;
  }

  .system-state {
    grid-column: 3;
    grid-row: 1;
  }

  .audio-toggle {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 50% 0%, rgba(38, 170, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 46%, rgba(255, 30, 80, 0.12), transparent 30rem),
    linear-gradient(180deg, #02060a 0%, #030912 42%, #010306 100%);
}

.boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 8vw;
  background:
    radial-gradient(circle at 50% 42%, rgba(40, 215, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, #010307, #02070d 62%, #000);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.boot-sequence.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-core {
  display: flex;
  align-items: center;
  gap: 18px;
}

.boot-mark {
  display: grid;
  width: 88px;
  height: 98px;
  place-items: center;
  border-radius: 22px;
  background: radial-gradient(circle at center, rgba(40, 215, 255, 0.18), transparent 70%);
  box-shadow: 0 0 70px rgba(40, 215, 255, 0.28);
}

.boot-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(40, 215, 255, 0.35));
}

.boot-copy span,
.boot-copy strong,
.boot-lines div {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
}

.boot-copy span {
  color: var(--cyan);
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-shadow: 0 0 38px rgba(40, 215, 255, 0.5);
}

.boot-copy strong {
  margin-top: 10px;
  color: rgba(238, 250, 255, 0.78);
  letter-spacing: 0.18em;
}

.boot-lines {
  display: grid;
  gap: 9px;
  max-width: 720px;
  min-height: 152px;
}

.boot-lines div {
  color: #79ffd0;
  font-size: 0.9rem;
  text-shadow: 0 0 16px rgba(64, 255, 176, 0.48);
}

.boot-lines div::before {
  content: "> ";
  color: var(--cyan);
}

.boot-progress {
  width: min(720px, 100%);
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(40, 215, 255, 0.32);
  border-radius: 999px;
  background: rgba(40, 215, 255, 0.08);
}

.boot-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green), white);
  box-shadow: 0 0 28px rgba(40, 215, 255, 0.72);
  transform-origin: left center;
  animation: bootLoad 3s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.app-shell::before {
  background:
    radial-gradient(circle at 44% 10%, rgba(120, 230, 255, 0.18), transparent 18rem),
    radial-gradient(circle at 76% 52%, rgba(255, 52, 93, 0.1), transparent 20rem),
    linear-gradient(90deg, rgba(40, 215, 255, 0.08), transparent 18%, transparent 82%, rgba(40, 215, 255, 0.07));
  mix-blend-mode: screen;
}

.app-shell::after {
  box-shadow:
    inset 0 0 180px rgba(0, 0, 0, 0.78),
    inset 0 0 70px rgba(40, 215, 255, 0.06);
}

#matrixRain,
.ambient-grid,
.scan-beam {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#matrixRain {
  z-index: -3;
  opacity: 0.35;
}

.ambient-grid {
  z-index: -2;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(40, 215, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 215, 255, 0.2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

.scan-beam {
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(40, 215, 255, 0.16) 50%, transparent 100%);
  height: 22vh;
  animation: scan 7s linear infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: center;
  min-height: 86px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(40, 215, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(6, 16, 26, 0.82), rgba(1, 5, 10, 0.76)),
    radial-gradient(circle at 50% 0%, rgba(40, 215, 255, 0.08), transparent 34rem);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(155, 242, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(40, 215, 255, 0.08);
  border-radius: 8px;
  background: radial-gradient(circle at 20% 50%, rgba(40, 215, 255, 0.12), transparent 78%);
}

.brand-logo {
  display: block;
  width: clamp(170px, 15vw, 230px);
  height: 62px;
  object-fit: contain;
  object-position: left center;
  filter:
    drop-shadow(0 0 14px rgba(40, 215, 255, 0.24))
    saturate(1.16)
    brightness(1.08);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 54px;
  place-items: center;
  clip-path: polygon(50% 0, 92% 18%, 82% 74%, 50% 100%, 18% 74%, 8% 18%);
  background: linear-gradient(145deg, #42dfff, #0b5590 48%, #0a1825);
  box-shadow: 0 0 28px rgba(40, 215, 255, 0.45);
}

.shield-core {
  display: grid;
  width: 30px;
  height: 35px;
  place-items: center;
  clip-path: polygon(50% 0, 90% 18%, 80% 72%, 50% 96%, 20% 72%, 10% 18%);
  border: 1px solid rgba(230, 252, 255, 0.75);
  color: #eafcff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 0.92;
  letter-spacing: 0.08em;
}

.brand strong {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.brand small {
  margin-top: 5px;
  font-size: 0.8rem;
  color: rgba(238, 250, 255, 0.8);
  letter-spacing: 0.34em;
}

.nav-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-strip::-webkit-scrollbar {
  display: none;
}

.nav-strip a {
  flex: 0 0 auto;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(238, 250, 255, 0.78);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-strip a.active,
.nav-strip a:hover {
  border-color: rgba(40, 215, 255, 0.58);
  color: #dffbff;
  background: rgba(40, 215, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(40, 215, 255, 0.08), 0 0 26px rgba(40, 215, 255, 0.18);
}

.system-state {
  justify-self: end;
  font-family: var(--mono);
  text-transform: uppercase;
}

.system-state span,
.system-state small {
  display: block;
  color: var(--dim);
  font-size: 0.72rem;
}

.system-state strong {
  display: block;
  margin: 4px 0;
  color: var(--green);
  font-size: 1rem;
}

.command-layout {
  display: grid;
  grid-template-columns: 220px minmax(480px, 1fr) 320px;
  gap: 14px;
  min-height: calc(100vh - 86px);
  padding: 14px;
}

.module-rail,
.intel-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.rail-title,
.holo-card h2,
.threat-feed h2,
.quick-actions h2,
.terminal-panel h2,
.ai-panel h2 {
  margin: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.module-rail,
.holo-card,
.threat-feed,
.quick-actions,
.support-line,
.terminal-panel,
.ai-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(95, 226, 255, 0.22);
  border-radius: 0;
  clip-path: var(--hud-cut);
  background:
    linear-gradient(180deg, rgba(7, 20, 32, 0.72), rgba(1, 7, 13, 0.86)),
    linear-gradient(135deg, rgba(95, 226, 255, 0.1), transparent 24%, transparent 72%, rgba(255, 52, 93, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(210, 250, 255, 0.1),
    inset 0 0 54px rgba(40, 215, 255, 0.045),
    0 0 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.module-rail::before,
.holo-card::before,
.threat-feed::before,
.quick-actions::before,
.support-line::before,
.terminal-panel::before,
.ai-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(160, 245, 255, 0.76), transparent 14%, transparent 86%, rgba(160, 245, 255, 0.48)) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(40, 215, 255, 0.35), transparent 18%, transparent 82%, rgba(255, 52, 93, 0.2)) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(160, 245, 255, 0.45), transparent 32%, transparent 72%, rgba(40, 215, 255, 0.18)) left / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(40, 215, 255, 0.18), transparent 32%, transparent 72%, rgba(255, 52, 93, 0.22)) right / 1px 100% no-repeat;
  opacity: 0.86;
}

.module-rail::after,
.holo-card::after,
.threat-feed::after,
.quick-actions::after,
.terminal-panel::after,
.ai-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.045) 42%, transparent 58%);
  transform: translateX(-120%);
  animation: panelSheen 8s ease-in-out infinite;
}

.module-rail {
  padding: 18px 14px;
}

.module-list {
  display: grid;
  gap: 8px;
}

.module-button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 9px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(95, 226, 255, 0.14);
  border-radius: 0;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  color: rgba(238, 250, 255, 0.82);
  background:
    linear-gradient(90deg, rgba(40, 215, 255, 0.055), rgba(255, 255, 255, 0.014)),
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent);
  cursor: pointer;
}

.module-button:hover,
.module-button.active {
  border-color: rgba(160, 245, 255, 0.62);
  background:
    linear-gradient(90deg, rgba(40, 215, 255, 0.2), rgba(40, 215, 255, 0.04)),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
  box-shadow: inset 3px 0 0 rgba(160, 245, 255, 0.78), 0 0 28px rgba(40, 215, 255, 0.2);
}

.module-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(40, 215, 255, 0.32);
  border-radius: 7px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 800;
}

.module-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  filter: drop-shadow(0 0 8px rgba(40, 215, 255, 0.65));
}

.module-button strong,
.module-button span {
  display: block;
}

.module-button strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.module-button span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.module-button i {
  color: var(--dim);
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.mini-scope {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(40, 215, 255, 0.12);
}

.mini-scope span,
.mini-scope strong {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
}

.mini-scope span {
  color: var(--cyan);
  font-size: 0.72rem;
}

.mini-scope strong {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
}

.mini-scope svg {
  width: 100%;
  height: 52px;
  overflow: visible;
}

.mini-scope polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 18 10;
  animation: defenseTrace 2.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(40, 215, 255, 0.8));
}

@keyframes defenseTrace {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -84; }
}

.hero-stage {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  border: 1px solid rgba(95, 226, 255, 0.22);
  border-radius: 0;
  clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
  background:
    linear-gradient(180deg, rgba(2, 10, 18, 0.08), rgba(2, 8, 13, 0.92)),
    radial-gradient(circle at center, rgba(40, 215, 255, 0.22), transparent 38rem),
    radial-gradient(circle at 68% 54%, rgba(255, 52, 93, 0.08), transparent 28rem);
  box-shadow:
    inset 0 1px 0 rgba(210, 250, 255, 0.08),
    inset 0 0 90px rgba(40, 215, 255, 0.045),
    0 0 70px rgba(0, 0, 0, 0.28);
}

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

.cinematic-beams {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.cinematic-beams i {
  position: absolute;
  top: -8%;
  width: 2px;
  height: 74%;
  background: linear-gradient(180deg, transparent, rgba(96, 226, 255, 0.5), transparent);
  box-shadow: 0 0 26px rgba(40, 215, 255, 0.42);
  opacity: 0.48;
  animation: beamPulse 5.5s ease-in-out infinite;
}

.cinematic-beams i:nth-child(1) { left: 18%; animation-delay: 0.2s; }
.cinematic-beams i:nth-child(2) { left: 32%; height: 92%; animation-delay: 1.1s; }
.cinematic-beams i:nth-child(3) { left: 52%; height: 84%; animation-delay: 0.7s; }
.cinematic-beams i:nth-child(4) { right: 24%; height: 88%; animation-delay: 1.8s; background: linear-gradient(180deg, transparent, rgba(255, 52, 93, 0.38), transparent); }
.cinematic-beams i:nth-child(5) { right: 11%; animation-delay: 2.6s; }

.anomaly-flare {
  position: absolute;
  right: 18%;
  top: 32%;
  z-index: 1;
  width: 180px;
  height: 180px;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 52, 93, 0.55), rgba(255, 52, 93, 0.16) 18%, transparent 58%),
    linear-gradient(90deg, transparent 48%, rgba(255, 52, 93, 0.55) 50%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 52, 93, 0.5) 50%, transparent 52%);
  filter: blur(0.2px) drop-shadow(0 0 22px rgba(255, 52, 93, 0.55));
  opacity: 0.55;
  animation: anomalyPulse 2.9s ease-in-out infinite;
}

.hero-stage::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(40, 215, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 215, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 72%);
}

.hero-stage::after {
  inset: auto 10% 12% 10%;
  height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(40, 215, 255, 0.24);
  background: radial-gradient(ellipse at center, rgba(40, 215, 255, 0.2), transparent 66%);
  box-shadow: 0 0 70px rgba(40, 215, 255, 0.22);
  transform: perspective(600px) rotateX(70deg);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 740px;
  margin: 20px auto 0;
  padding: 0 32px;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.25vw, 4.05rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(40, 215, 255, 0.38), 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-copy p {
  max-width: 720px;
  margin: 12px auto 0;
  color: rgba(238, 250, 255, 0.78);
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  line-height: 1.45;
}

.command-coordinates {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: rgba(130, 245, 255, 0.84);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.command-coordinates b {
  color: rgba(230, 255, 255, 0.92);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 0;
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  font-weight: 800;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-action {
  background: linear-gradient(90deg, #7eefff, #28d7ff 58%, #2ce6c8);
  color: #001017;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 0 28px rgba(40, 215, 255, 0.38);
}

.ghost-action {
  border: 1px solid rgba(40, 215, 255, 0.36);
  color: var(--cyan);
  background: rgba(40, 215, 255, 0.06);
}

.globe-wrap {
  position: absolute;
  inset: 134px 0 250px;
  z-index: 2;
  display: grid;
  place-items: center;
}

#globeCanvas {
  width: min(99%, 1180px);
  height: auto;
  filter: drop-shadow(0 0 48px rgba(40, 215, 255, 0.44));
}

.core-orbit {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 3;
  border: 1px solid rgba(40, 215, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotateX(68deg);
  box-shadow: 0 0 24px rgba(40, 215, 255, 0.16);
}

.orbit-1 { width: 520px; height: 520px; animation: orbitSpin 24s linear infinite; }
.orbit-2 { width: 640px; height: 640px; border-color: rgba(255, 52, 93, 0.2); animation: orbitSpin 32s linear reverse infinite; }
.orbit-3 { width: 760px; height: 760px; animation: orbitSpin 44s linear infinite; opacity: 0.65; }

.sector-node {
  position: absolute;
  z-index: 7;
  min-width: 86px;
  min-height: 38px;
  border: 1px solid rgba(40, 215, 255, 0.42);
  border-radius: 999px;
  color: #eaffff;
  background: rgba(2, 12, 20, 0.7);
  box-shadow: 0 0 26px rgba(40, 215, 255, 0.22);
  font-family: var(--mono);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.sector-node:hover {
  border-color: white;
  background: rgba(40, 215, 255, 0.22);
}

.node-hotel { left: 31%; top: 36%; }
.node-health { right: 27%; top: 38%; }
.node-office { left: 25%; bottom: 31%; }
.node-campus { right: 20%; bottom: 29%; }

.threat-lock {
  position: absolute;
  left: 50%;
  top: 57%;
  z-index: 8;
  width: min(560px, 54vw);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(40, 215, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: threatLockBreath 3.2s ease-in-out infinite;
}

.threat-lock::before,
.threat-lock::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(40, 215, 255, 0.14);
}

.threat-lock::after {
  inset: 23%;
  border-color: rgba(255, 52, 93, 0.18);
  animation: threatLockSpin 10s linear infinite;
}

.threat-lock span {
  position: absolute;
  width: 64px;
  height: 64px;
  border-color: rgba(40, 215, 255, 0.78);
  filter: drop-shadow(0 0 12px rgba(40, 215, 255, 0.65));
}

.threat-lock span:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.threat-lock span:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.threat-lock span:nth-child(3) {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.threat-lock span:nth-child(4) {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.threat-lock b {
  position: absolute;
  left: 50%;
  top: 4%;
  padding: 5px 10px;
  border: 1px solid rgba(255, 52, 93, 0.32);
  border-radius: 999px;
  color: rgba(255, 205, 216, 0.88);
  background: rgba(255, 52, 93, 0.08);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  transform: translateX(-50%);
  text-shadow: 0 0 12px rgba(255, 52, 93, 0.5);
}

.core-readout {
  position: absolute;
  left: 50%;
  top: 29%;
  z-index: 9;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.core-readout span {
  padding: 7px 10px;
  border: 1px solid rgba(40, 215, 255, 0.24);
  border-radius: 4px;
  color: rgba(212, 250, 255, 0.9);
  background: rgba(3, 14, 22, 0.55);
  box-shadow: 0 0 18px rgba(40, 215, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.city-tag,
.platform-label {
  position: absolute;
  z-index: 4;
  min-width: 126px;
  padding: 10px 12px;
  border: 1px solid rgba(40, 215, 255, 0.32);
  border-radius: 6px;
  background: rgba(2, 12, 20, 0.72);
  box-shadow: 0 0 28px rgba(40, 215, 255, 0.12);
  font-family: var(--mono);
  text-transform: uppercase;
}

.city-tag b,
.city-tag span,
.platform-label span {
  display: block;
}

.city-tag b {
  color: #dffbff;
  font-size: 0.72rem;
}

.city-tag span {
  margin-top: 4px;
  color: var(--green);
  font-size: 0.64rem;
}

.city-tag.danger {
  border-color: rgba(255, 52, 93, 0.46);
}

.city-tag.danger span,
.danger-text {
  color: var(--red) !important;
}

.tag-istanbul {
  left: 27%;
  top: 22%;
}

.tag-london {
  left: 13%;
  top: 43%;
}

.tag-moscow {
  right: 19%;
  top: 31%;
}

.tag-dubai {
  right: 12%;
  top: 52%;
}

.platform-label {
  left: 50%;
  bottom: 9%;
  min-width: 220px;
  color: var(--cyan);
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.platform-label span {
  margin-top: 4px;
  color: var(--green);
  font-size: 0.68rem;
}

.metric-stack {
  position: absolute;
  z-index: 5;
  left: 20px;
  top: 118px;
  display: grid;
  width: 180px;
  gap: 10px;
}

.metric-stack article {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(95, 226, 255, 0.24);
  border-radius: 0;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(5, 18, 28, 0.82), rgba(1, 9, 16, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(40, 215, 255, 0.12), transparent 7rem);
  backdrop-filter: blur(15px);
  box-shadow: inset 0 1px 0 rgba(220, 252, 255, 0.08), 0 0 26px rgba(0, 0, 0, 0.18);
}

.metric-stack article::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.7));
  box-shadow: 0 0 12px rgba(40, 215, 255, 0.5);
}

.metric-stack span,
.metric-stack em {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
  text-transform: uppercase;
}

.metric-stack strong {
  display: block;
  margin: 8px 0;
  color: #a9f4ff;
  font-family: var(--mono);
  font-size: 1.42rem;
  line-height: 1;
}

.metric-stack small {
  margin-left: 5px;
  color: rgba(238, 250, 255, 0.72);
  font-size: 0.72rem;
}

.bottom-panels {
  position: absolute;
  z-index: 12;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.48fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(95, 226, 255, 0.16);
  clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
  background:
    linear-gradient(90deg, rgba(3, 13, 22, 0.72), rgba(7, 24, 36, 0.55), rgba(3, 13, 22, 0.72)),
    radial-gradient(circle at 50% 0%, rgba(40, 215, 255, 0.14), transparent 34rem);
  box-shadow: inset 0 0 42px rgba(40, 215, 255, 0.045), 0 0 42px rgba(0, 0, 0, 0.28);
}

.mission-console {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
  margin: 890px 22px 22px;
  padding: 20px;
  border: 1px solid rgba(95, 226, 255, 0.22);
  border-radius: 0;
  clip-path: var(--hud-cut);
  background: linear-gradient(135deg, rgba(2, 12, 20, 0.88), rgba(5, 22, 34, 0.72));
  box-shadow: 0 0 60px rgba(40, 215, 255, 0.08);
}

.operation-dossier {
  position: relative;
  z-index: 8;
  margin: 18px 22px 24px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(95, 226, 255, 0.22);
  border-radius: 0;
  clip-path: var(--hud-cut);
  background:
    linear-gradient(180deg, rgba(9, 26, 40, 0.78), rgba(1, 8, 14, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(40, 215, 255, 0.12), transparent 26rem);
  box-shadow:
    inset 0 1px 0 rgba(210, 250, 255, 0.08),
    inset 0 0 44px rgba(40, 215, 255, 0.05),
    0 0 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.operation-dossier::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(40, 215, 255, 0.5), transparent 20%, transparent 80%, rgba(40, 215, 255, 0.28)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(40, 215, 255, 0.35), transparent 40%, rgba(255, 52, 93, 0.16)) left / 1px 100% no-repeat;
}

.dossier-header {
  max-width: 920px;
}

.dossier-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
  text-transform: uppercase;
}

.dossier-header p {
  margin: 10px 0 0;
  color: rgba(226, 252, 255, 0.78);
  line-height: 1.55;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 14px;
  margin-top: 18px;
}

.dossier-grid article {
  min-height: 170px;
  padding: 16px;
  border: 1px solid rgba(40, 215, 255, 0.14);
  border-radius: 0;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  background: rgba(40, 215, 255, 0.045);
}

.dossier-grid h3 {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dossier-grid li,
.dossier-grid p {
  color: rgba(232, 252, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.5;
}

.dossier-grid li::before {
  content: ">";
  margin-right: 8px;
  color: var(--green);
  font-family: var(--mono);
}

.mission-console h2,
.mission-console p {
  margin: 0;
}

.mission-console h2 {
  font-size: 1.45rem;
  text-transform: uppercase;
}

.mission-console p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

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

#missionForm label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(40, 215, 255, 0.13);
  border-radius: 6px;
  background: rgba(40, 215, 255, 0.05);
  color: rgba(238, 250, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 700;
}

#missionForm input {
  accent-color: var(--cyan);
}

#missionForm button {
  grid-column: 1 / -1;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  color: #001017;
  font-weight: 900;
  cursor: pointer;
}

#missionOutput {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(64, 255, 176, 0.24);
  border-radius: 6px;
  color: #7affc8;
  background: rgba(64, 255, 176, 0.05);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-line;
}

.terminal-panel,
.ai-panel {
  min-height: 184px;
  padding: 13px;
  background:
    repeating-linear-gradient(180deg, rgba(160, 245, 255, 0.035) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(5, 18, 28, 0.58), rgba(1, 8, 14, 0.64)),
    linear-gradient(90deg, rgba(40, 215, 255, 0.04), transparent 54%, rgba(255, 52, 93, 0.035));
}

.bottom-panels::before {
  content: "LIVE OPS DOCK // REAL-TIME INFRASTRUCTURE INTELLIGENCE";
  position: absolute;
  left: 16px;
  top: -20px;
  color: rgba(130, 245, 255, 0.58);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(40, 215, 255, 0.45);
}

.bottom-panels::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.75), rgba(64, 255, 176, 0.7), transparent);
  box-shadow: 0 0 18px rgba(40, 215, 255, 0.6);
  pointer-events: none;
}

.terminal-lines {
  margin-top: 10px;
  color: #8affd3;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.5;
  text-shadow: 0 0 12px rgba(64, 255, 176, 0.34);
}

.terminal-lines div {
  position: relative;
  min-height: 1.5em;
  padding-left: 14px;
  white-space: nowrap;
}

.terminal-lines div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.ai-panel {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.ai-visual {
  position: relative;
  display: grid;
  width: 174px;
  height: 174px;
  place-items: center;
  justify-self: center;
  isolation: isolate;
}

.ai-visual::before,
.ai-visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(40, 215, 255, 0.28);
  clip-path: polygon(50% 0, 91% 22%, 91% 78%, 50% 100%, 9% 78%, 9% 22%);
  filter: drop-shadow(0 0 16px rgba(40, 215, 255, 0.5));
}

.ai-visual::after {
  inset: 28px;
  border-color: rgba(255, 52, 93, 0.2);
  transform: rotate(30deg);
}

.ai-holo {
  position: relative;
  z-index: 3;
  width: 164px;
  height: 164px;
  justify-self: center;
  border-radius: 0;
  clip-path: polygon(50% 0, 92% 22%, 92% 78%, 50% 100%, 8% 78%, 8% 22%);
  filter:
    drop-shadow(0 0 18px rgba(40, 215, 255, 0.56))
    drop-shadow(0 0 34px rgba(40, 215, 255, 0.24));
}

.ai-ring,
.ai-axis {
  position: absolute;
  pointer-events: none;
}

.ai-ring {
  left: 50%;
  top: 50%;
  width: 142px;
  height: 42px;
  border: 1px solid rgba(40, 215, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(40, 215, 255, 0.24);
  transform: translate(-50%, -50%) rotateX(64deg) rotateZ(0deg);
  animation: aiRingSpin 9s linear infinite;
}

.ring-b {
  width: 118px;
  height: 34px;
  border-color: rgba(255, 52, 93, 0.26);
  animation-duration: 6s;
  animation-direction: reverse;
}

.ai-axis {
  left: 50%;
  top: 50%;
  width: 1px;
  height: 168px;
  background: linear-gradient(180deg, transparent, rgba(40, 215, 255, 0.48), transparent);
  box-shadow: 0 0 14px rgba(40, 215, 255, 0.5);
  transform: translate(-50%, -50%);
}

.axis-b {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0.68;
}

.ai-tag {
  position: absolute;
  z-index: 4;
  padding: 3px 6px;
  border: 1px solid rgba(40, 215, 255, 0.24);
  color: rgba(210, 250, 255, 0.76);
  background: rgba(2, 10, 18, 0.62);
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(40, 215, 255, 0.55);
}

.tag-a {
  left: 0;
  top: 24px;
}

.tag-b {
  right: 0;
  bottom: 28px;
  border-color: rgba(255, 52, 93, 0.26);
}

.ai-panel ul {
  display: grid;
  gap: 6px;
  margin: 9px 0;
  padding: 0;
  list-style: none;
}

.ai-panel li {
  color: rgba(226, 252, 255, 0.84);
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.42;
}

.ai-panel li::before {
  content: "> ";
  color: var(--cyan);
}

.confidence {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.confidence i {
  display: block;
  height: 5px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--green), var(--cyan), white);
  box-shadow: 0 0 18px rgba(40, 215, 255, 0.7);
}

.holo-card,
.threat-feed,
.quick-actions {
  padding: 14px;
}

.holo-card h2,
.threat-feed h2,
.quick-actions h2,
.terminal-panel h2,
.ai-panel h2,
.rail-title {
  text-shadow: 0 0 14px rgba(40, 215, 255, 0.48);
}

.ai-panel h2 small,
.terminal-panel h2 small {
  display: block;
  margin-top: 3px;
  color: rgba(130, 245, 255, 0.54);
  font-size: 0.66em;
  font-weight: 700;
}

.infra-hologram {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  perspective: 760px;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 50% 58%, rgba(40, 215, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(40, 215, 255, 0.04), transparent 62%, rgba(255, 52, 93, 0.035));
}

#infraCanvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(40, 215, 255, 0.46));
}

.infra-hologram::before,
.infra-hologram::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.infra-hologram::before {
  bottom: 20px;
  width: 230px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(40, 215, 255, 0.28), transparent 68%);
  filter: blur(6px);
}

.infra-hologram::after {
  bottom: 34px;
  width: 238px;
  height: 238px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(40, 215, 255, 0.18) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(40, 215, 255, 0.14) 50%, transparent 51%);
  opacity: 0.34;
  transform: translateX(-50%) rotateX(62deg) rotateZ(45deg);
  animation: holoRotate 12s linear infinite;
}

.infra-depth,
.infra-shell,
.holo-scan {
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.infra-depth {
  z-index: 2;
  bottom: 22px;
  width: 246px;
  height: 172px;
  border: 1px solid rgba(40, 215, 255, 0.18);
  transform: translateX(-50%) rotateX(62deg) rotateZ(45deg);
  box-shadow: inset 0 0 28px rgba(40, 215, 255, 0.08), 0 0 26px rgba(40, 215, 255, 0.12);
}

.infra-depth i {
  position: absolute;
  border: 1px solid rgba(40, 215, 255, 0.14);
  inset: calc(var(--i, 0) * 12px);
}

.infra-depth i:nth-child(1) { --i: 1; }
.infra-depth i:nth-child(2) { --i: 2; }
.infra-depth i:nth-child(3) { --i: 3; border-color: rgba(255, 52, 93, 0.16); }
.infra-depth i:nth-child(4) { --i: 4; }

.depth-b {
  bottom: 86px;
  width: 176px;
  height: 122px;
  opacity: 0.5;
  animation: floorPulse 3.4s ease-in-out infinite;
}

.infra-shell {
  z-index: 4;
  bottom: 45px;
  width: 182px;
  height: 182px;
  border: 1px solid rgba(40, 215, 255, 0.28);
  transform: translateX(-50%) rotateX(62deg) rotateZ(45deg);
  box-shadow: 0 0 26px rgba(40, 215, 255, 0.16);
}

.shell-b {
  bottom: 82px;
  width: 126px;
  height: 126px;
  border-color: rgba(255, 52, 93, 0.2);
  animation: holoRotate 14s linear infinite reverse;
}

.holo-scan {
  z-index: 6;
  bottom: 28px;
  width: 260px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.9), rgba(255, 52, 93, 0.45), transparent);
  box-shadow: 0 0 18px rgba(40, 215, 255, 0.65);
  transform: translateX(-50%) rotateX(62deg) rotateZ(45deg);
  animation: holoScanLift 3.2s ease-in-out infinite;
}

.scan-b {
  width: 180px;
  animation-delay: 1.1s;
  opacity: 0.58;
}

.holo-floor {
  position: absolute;
  z-index: 3;
  left: 50%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(40, 215, 255, 0.52);
  background:
    linear-gradient(90deg, rgba(40, 215, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(40, 215, 255, 0.22) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(40, 215, 255, 0.11), rgba(255, 52, 93, 0.06) 58%, transparent 72%);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 0 28px rgba(40, 215, 255, 0.12), 0 0 28px rgba(40, 215, 255, 0.18);
  transform: translateX(-50%) rotateX(64deg) rotateZ(45deg);
  opacity: 0.32;
}

.floor-1 { bottom: 22px; opacity: 0.7; }
.floor-2 { bottom: 70px; width: 152px; height: 152px; opacity: 0.55; animation: floorPulse 3.6s ease-in-out infinite; }
.floor-3 { bottom: 118px; width: 108px; height: 108px; opacity: 0.38; animation: floorPulse 3.6s ease-in-out 1.1s infinite; }

.holo-tower {
  position: absolute;
  z-index: 4;
  bottom: 72px;
  width: 48px;
  height: 112px;
  border: 1px solid rgba(40, 215, 255, 0.66);
  background:
    linear-gradient(90deg, rgba(40, 215, 255, 0.18), transparent 28%, rgba(40, 215, 255, 0.1) 72%, rgba(40, 215, 255, 0.2)),
    linear-gradient(180deg, rgba(40, 215, 255, 0.18), rgba(255, 52, 93, 0.08));
  box-shadow: inset 0 0 26px rgba(40, 215, 255, 0.12), 0 0 22px rgba(40, 215, 255, 0.2);
  transform: skewY(-18deg);
}

.holo-tower span {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 1px;
  background: rgba(40, 215, 255, 0.54);
  box-shadow: 0 0 8px rgba(40, 215, 255, 0.7);
}

.holo-tower span:nth-child(1) { top: 28%; }
.holo-tower span:nth-child(2) { top: 52%; }
.holo-tower span:nth-child(3) { top: 76%; }

.tower-a { left: 36%; height: 130px; bottom: 64px; }
.tower-b { left: 52%; height: 164px; bottom: 58px; border-color: rgba(255, 52, 93, 0.45); }
.tower-c { left: 66%; height: 92px; bottom: 70px; }
.tower-d { left: 24%; height: 78px; bottom: 76px; opacity: 0.8; }

.data-link {
  position: absolute;
  z-index: 7;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.88), rgba(255, 52, 93, 0.55), transparent);
  box-shadow: 0 0 12px rgba(40, 215, 255, 0.58);
  transform-origin: left center;
  animation: dataBlink 1.8s ease-in-out infinite;
}

.link-1 { left: 31%; top: 50%; width: 150px; transform: rotate(-16deg); }
.link-2 { left: 39%; top: 63%; width: 128px; transform: rotate(24deg); animation-delay: 0.4s; }
.link-3 { left: 25%; top: 72%; width: 170px; transform: rotate(-2deg); animation-delay: 0.9s; }

.holo-pulse {
  position: absolute;
  z-index: 8;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan), 0 0 34px rgba(40, 215, 255, 0.6);
  animation: nodePulse 1.7s ease-in-out infinite;
}

.pulse-1 { left: 36%; top: 56%; }
.pulse-2 { left: 57%; top: 44%; animation-delay: 0.5s; background: var(--red); box-shadow: 0 0 18px var(--red), 0 0 34px rgba(255, 52, 93, 0.5); }
.pulse-3 { left: 69%; top: 65%; animation-delay: 1s; }

#threatFeed {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.feed-row {
  display: grid;
  grid-template-columns: 10px 58px 1fr 58px;
  gap: 10px;
  align-items: center;
  color: rgba(218, 250, 255, 0.78);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(95, 226, 255, 0.06);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px currentColor;
}

.feed-row.high .dot,
.feed-row.high strong {
  color: var(--red);
  background: var(--red);
}

.feed-row.mid .dot,
.feed-row.mid strong {
  color: var(--amber);
  background: var(--amber);
}

.feed-row.low .dot,
.feed-row.low strong {
  color: var(--cyan);
  background: var(--cyan);
}

.feed-row strong {
  justify-self: end;
  background: transparent !important;
  text-transform: uppercase;
}

.quick-actions div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.quick-actions a {
  display: grid;
  min-height: 52px;
  align-content: center;
  padding: 11px;
  border: 1px solid rgba(95, 226, 255, 0.16);
  border-radius: 0;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  color: #ddfaff;
  background: rgba(40, 215, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 18px rgba(0,0,0,0.16);
}

.quick-actions a::after {
  content: "Sistem Kontrolü";
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
}

.quick-actions .alert-action {
  border-color: rgba(255, 52, 93, 0.32);
  color: #ffdbe2;
  background: rgba(255, 52, 93, 0.1);
}

.support-line {
  display: block;
  padding: 16px;
}

.support-line span,
.support-line strong {
  display: block;
}

.support-line span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.support-line strong {
  margin-top: 5px;
  color: #eaffff;
  font-size: 1rem;
}

.reference-command {
  display: none;
}

@media (min-width: 981px) {
  .boot-sequence {
    display: none;
  }

  .app-shell {
    display: none;
  }

  .reference-command {
    position: relative;
    z-index: 30;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 48%, rgba(40, 215, 255, 0.1), transparent 42rem),
      linear-gradient(180deg, #000308, #01050b 48%, #000);
  }

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

  .reference-command::before {
    background:
      linear-gradient(90deg, rgba(40, 215, 255, 0.08), transparent 16%, transparent 84%, rgba(40, 215, 255, 0.06)),
      repeating-linear-gradient(0deg, rgba(180, 250, 255, 0.035) 0 1px, transparent 1px 5px);
    mix-blend-mode: screen;
    opacity: 0.56;
  }

  .reference-command::after {
    box-shadow:
      inset 0 0 160px rgba(0, 0, 0, 0.9),
      inset 0 0 70px rgba(40, 215, 255, 0.08);
  }

  .reference-frame {
    position: relative;
    width: min(100vw, calc(100vh * 1.5));
    aspect-ratio: 1536 / 1024;
    overflow: hidden;
    background-image: url("/biga-os-assets/reference-command-center.jpeg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    box-shadow:
      0 0 90px rgba(40, 215, 255, 0.16),
      0 0 180px rgba(0, 0, 0, 0.9);
    isolation: isolate;
  }

  .reference-frame::before,
  .reference-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  .reference-frame::before {
    background:
      radial-gradient(circle at 49% 39%, rgba(40, 215, 255, 0.12), transparent 20%),
      radial-gradient(circle at 66% 32%, rgba(255, 52, 93, 0.12), transparent 11%),
      linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%, rgba(0,0,0,0.08) 100%);
    mix-blend-mode: screen;
  }

  .reference-frame::after {
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(180, 250, 255, 0.04) 3px 4px);
    opacity: 0.32;
  }

  .ref-atmosphere,
  .ref-hotspots,
  .ref-icon-layer,
  .ref-feed-canvas,
  .ref-holo-canvas {
    position: absolute;
    inset: 0;
  }

  .ref-feed-canvas {
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 1;
  }

  .ref-holo-canvas {
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.98;
  }

  .ref-icon-layer {
    display: none;
  }

  .ref-live-brand {
    position: absolute;
    left: 1.25%;
    top: 1.15%;
    z-index: 6;
    display: flex;
    align-items: center;
    width: 11.7%;
    height: 8.2%;
    padding: 0.45% 0.7%;
    border: 1px solid rgba(40, 215, 255, 0.24);
    clip-path: polygon(0 10%, 8% 0, 100% 0, 100% 82%, 92% 100%, 0 100%);
    background:
      linear-gradient(90deg, rgba(1, 6, 12, 0.96), rgba(2, 12, 21, 0.88)),
      radial-gradient(circle at 12% 50%, rgba(40, 215, 255, 0.16), transparent 72%);
    box-shadow:
      0 0 24px rgba(0, 0, 0, 0.78),
      inset 0 0 22px rgba(40, 215, 255, 0.08);
  }

  .ref-live-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    filter:
      drop-shadow(0 0 11px rgba(40, 215, 255, 0.32))
      brightness(1.08)
      saturate(1.08);
  }

  .ref-live-support {
    position: absolute;
    left: 84.35%;
    top: 92.15%;
    z-index: 6;
    display: grid;
    width: 10.9%;
    min-height: 3.75%;
    align-content: center;
    padding: 0.2% 0.48% 0.22%;
    border: 0;
    clip-path: none;
    color: rgba(238, 250, 255, 0.98);
    background:
      linear-gradient(90deg, rgba(1, 7, 13, 0.98), rgba(1, 10, 18, 0.96) 72%, rgba(1, 10, 18, 0.72));
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.58);
    font-family: var(--mono);
    text-decoration: none;
  }

  .ref-live-support::before {
    content: none;
  }

  .ref-live-support span {
    color: rgba(130, 245, 255, 0.72);
    font-size: clamp(6px, 0.41vw, 9px);
    line-height: 1;
    text-transform: uppercase;
  }

  .ref-live-support strong {
    margin-top: 0.2vw;
    color: rgba(238, 250, 255, 0.98);
    font-size: clamp(9px, 0.68vw, 14px);
    line-height: 1;
    text-shadow: 0 0 12px rgba(40, 215, 255, 0.48);
    white-space: nowrap;
  }

  .ref-telemetry {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    font-family: var(--mono);
    color: rgba(140, 245, 255, 0.82);
    mix-blend-mode: screen;
  }

  .telemetry-chip {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    min-width: 5.5%;
    padding: 0.32% 0.52%;
    border: 1px solid rgba(40, 215, 255, 0.2);
    background: rgba(2, 12, 20, 0.52);
    box-shadow: 0 0 16px rgba(40, 215, 255, 0.18);
    font-size: clamp(7px, 0.48vw, 10px);
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(40, 215, 255, 0.6);
    animation: telemetryBlink 2.8s ease-in-out infinite;
  }

  .telemetry-chip b {
    display: block;
    color: rgba(235, 255, 255, 0.94);
    font-size: 1.18em;
  }

  .ref-metric-stream {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    font-family: var(--mono);
  }

  .ref-metric-chip {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    display: grid;
    width: 9.15%;
    height: calc(var(--h) * 1%);
    align-content: center;
    padding: 0.2% 0.42% 0.18%;
    border-left: 0;
    clip-path: none;
    color: rgba(230, 252, 255, 0.96);
    background:
      linear-gradient(90deg, rgba(0, 4, 8, 1), rgba(1, 8, 14, 0.99) 74%, rgba(1, 8, 14, 0.9)),
      repeating-linear-gradient(180deg, rgba(120, 245, 255, 0.026) 0 1px, transparent 1px 5px);
    box-shadow:
      0 0 14px rgba(0, 0, 0, 0.88),
      inset 0 0 10px rgba(40, 215, 255, 0.025);
    text-shadow: 0 0 10px rgba(40, 215, 255, 0.5);
    animation: metricFlicker 1.5s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }

  .ref-metric-chip .value {
    display: flex;
    align-items: baseline;
    gap: 0.16vw;
    color: rgba(130, 245, 255, 0.98);
    font-size: clamp(11px, 0.92vw, 18px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0;
  }

  .ref-metric-chip .unit {
    color: rgba(235, 250, 255, 0.8);
    font-size: 0.45em;
    font-weight: 500;
  }

  .ref-metric-chip .sub {
    margin-top: 0.26vw;
    color: rgba(64, 255, 176, 0.84);
    font-size: clamp(5px, 0.34vw, 7px);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .ref-metric-chip.risk .value,
  .ref-metric-chip.risk .sub {
    color: rgba(255, 52, 93, 0.96);
  }

  .ref-metric-chip.performance .value {
    color: rgba(105, 255, 196, 0.96);
  }

  .ref-grid-status {
    position: absolute;
    left: 44.9%;
    top: 61.65%;
    z-index: 6;
    display: grid;
    width: 11.45%;
    min-height: 4.8%;
    place-items: center;
    padding: 0.42% 0.55%;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
    color: rgba(120, 245, 255, 0.98);
    background:
      linear-gradient(180deg, rgba(1, 8, 15, 0.72), rgba(1, 10, 18, 0.86)),
      radial-gradient(circle at 50% 100%, rgba(40, 215, 255, 0.2), transparent 70%);
    font-family: var(--mono);
    text-align: center;
    text-shadow: 0 0 12px rgba(40, 215, 255, 0.72);
    box-shadow:
      0 0 18px rgba(0, 0, 0, 0.48),
      inset 0 0 18px rgba(40, 215, 255, 0.08);
    animation: gridStatusPulse 2.4s ease-in-out infinite;
  }

  .ref-grid-status::before,
  .ref-grid-status::after {
    content: "";
    position: absolute;
    inset: -42% -28%;
    border: 1px solid rgba(40, 215, 255, 0.16);
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
    pointer-events: none;
    animation: gridDiagramOrbit 3.2s linear infinite;
  }

  .ref-grid-status::after {
    inset: -68% -54%;
    border-color: rgba(64, 255, 176, 0.12);
    animation-duration: 5.4s;
    animation-direction: reverse;
  }

  .ref-grid-status span,
  .ref-grid-status strong {
    position: relative;
    z-index: 1;
    line-height: 1.05;
    white-space: nowrap;
  }

  .ref-grid-status span {
    font-size: clamp(7px, 0.62vw, 12px);
    font-weight: 800;
  }

  .ref-grid-status strong {
    color: rgba(64, 255, 176, 0.9);
    font-size: clamp(6px, 0.56vw, 11px);
    font-weight: 700;
  }

  .ref-grid-status i {
    position: absolute;
    left: 13%;
    right: 13%;
    bottom: 9%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.98), rgba(64, 255, 176, 0.88), transparent);
    box-shadow: 0 0 14px rgba(40, 215, 255, 0.78);
    animation: gridStatusSweep 1.65s ease-in-out infinite;
  }

  .ref-threat-stream {
    position: absolute;
    left: 78.1%;
    top: 47.25%;
    z-index: 6;
    display: grid;
    width: 19.45%;
    gap: 0.42vw;
    padding: 0.34vw 0.28vw 0.28vw;
    pointer-events: none;
    font-family: var(--mono);
    mix-blend-mode: normal;
    isolation: isolate;
  }

  .ref-threat-stream::before {
    content: "";
    position: absolute;
    inset: -0.28vw -0.72vw -0.24vw -0.24vw;
    z-index: 0;
    border: 1px solid rgba(40, 215, 255, 0.12);
    clip-path: polygon(0 8%, 4% 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
    background:
      linear-gradient(90deg, rgba(0, 5, 10, 0.99), rgba(1, 8, 14, 0.97) 62%, rgba(1, 8, 14, 0.94)),
      repeating-linear-gradient(180deg, rgba(120, 245, 255, 0.035) 0 1px, transparent 1px 6px);
    box-shadow:
      0 0 18px rgba(0, 0, 0, 0.72),
      inset 0 0 22px rgba(40, 215, 255, 0.06);
  }

  .ref-threat-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.42vw 2.8vw 4.35vw minmax(0, 1fr) 2.45vw;
    gap: 0.32vw;
    align-items: center;
    min-height: 1.22vw;
    padding: 0.12vw 0.18vw;
    color: rgba(226, 252, 255, 0.82);
    background:
      linear-gradient(90deg, rgba(2, 10, 18, 0.94), rgba(2, 10, 18, 0.72)),
      linear-gradient(180deg, rgba(120, 245, 255, 0.04), transparent);
    border-bottom: 1px solid rgba(40, 215, 255, 0.11);
    font-size: clamp(6px, 0.43vw, 9px);
    line-height: 1;
    text-shadow: 0 0 8px rgba(40, 215, 255, 0.42);
    animation: threatRowPulse 1.8s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }

  .ref-threat-row span,
  .ref-threat-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ref-threat-row i {
    width: 0.34vw;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px currentColor;
  }

  .ref-threat-row strong {
    justify-self: end;
    color: var(--cyan);
    text-transform: uppercase;
  }

  .ref-threat-row.high i {
    color: var(--red);
    background: var(--red);
  }

  .ref-threat-row.high strong {
    color: var(--red);
    background: transparent;
  }

  .ref-threat-row.mid i {
    color: var(--amber);
    background: var(--amber);
  }

  .ref-threat-row.mid strong {
    color: var(--amber);
    background: transparent;
  }

  .ref-threat-row.low i {
    color: var(--cyan);
    background: var(--cyan);
  }

  .ref-threat-row.low strong {
    color: var(--cyan);
    background: transparent;
  }

  .ref-menu-glyph {
    display: none;
  }

  .ref-menu-glyph svg {
    width: 58%;
    height: 58%;
    stroke: currentColor;
    filter: drop-shadow(0 0 7px rgba(40, 215, 255, 0.72));
  }

  body[data-mode="ana-sayfa"] .ref-menu-glyph[data-page="ana-sayfa"],
  body[data-mode="firewall"] .ref-menu-glyph[data-page="firewall"],
  body[data-mode="fiber"] .ref-menu-glyph[data-page="fiber"],
  body[data-mode="hotspot"] .ref-menu-glyph[data-page="hotspot"],
  body[data-mode="sunucu"] .ref-menu-glyph[data-page="sunucu"],
  body[data-mode="zayif-akim"] .ref-menu-glyph[data-page="zayif-akim"],
  body[data-mode="wifi"] .ref-menu-glyph[data-page="wifi"],
  body[data-mode="hakkimizda"] .ref-menu-glyph[data-page="hakkimizda"],
  body[data-mode="referanslar"] .ref-menu-glyph[data-page="referanslar"],
  body[data-mode="blog"] .ref-menu-glyph[data-page="blog"],
  body[data-mode="iletisim"] .ref-menu-glyph[data-page="iletisim"],
  body[data-mode="kvkk"] .ref-menu-glyph[data-page="kvkk"],
  body[data-mode="kariyer"] .ref-menu-glyph[data-page="kariyer"],
  body[data-mode="destek"] .ref-menu-glyph[data-page="destek"] {
    color: #eaffff;
    border-color: rgba(120, 245, 255, 0.82);
    background:
      radial-gradient(circle at 50% 50%, rgba(40, 215, 255, 0.32), transparent 64%),
      rgba(5, 31, 48, 0.7);
    box-shadow:
      0 0 22px rgba(40, 215, 255, 0.7),
      inset 0 0 18px rgba(40, 215, 255, 0.2);
  }

  .ref-atmosphere {
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: screen;
  }

  .ref-beam {
    position: absolute;
    top: 8%;
    width: 1px;
    height: 70%;
    background: linear-gradient(180deg, transparent, rgba(80, 230, 255, 0.78), transparent);
    box-shadow: 0 0 18px rgba(40, 215, 255, 0.62);
    opacity: 0.54;
    animation: refBeam 4.8s ease-in-out infinite;
  }

  .beam-a { left: 33.9%; }
  .beam-b { left: 66.9%; animation-delay: 1.2s; }
  .beam-c { left: 81.6%; height: 58%; background: linear-gradient(180deg, transparent, rgba(255, 52, 93, 0.65), transparent); animation-delay: 2.4s; }

  .ref-pulse {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 52, 93, 0.9);
    box-shadow: 0 0 20px rgba(255, 52, 93, 0.95), 0 0 45px rgba(255, 52, 93, 0.45);
    animation: refPulse 1.8s ease-in-out infinite;
  }

  .pulse-a { left: 60.5%; top: 28.6%; }
  .pulse-b { left: 31.7%; top: 50.2%; animation-delay: 0.85s; }

  .ref-sweep {
    position: absolute;
    left: 19%;
    right: 18%;
    top: 70.9%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.95), rgba(64, 255, 176, 0.82), transparent);
    box-shadow: 0 0 18px rgba(40, 215, 255, 0.7);
    transform-origin: center;
    animation: refSweep 3.2s ease-in-out infinite;
  }

  .ref-terminal-cursor {
    position: absolute;
    left: 25.8%;
    top: 95.4%;
    width: 7px;
    height: 12px;
    background: rgba(120, 255, 205, 0.9);
    box-shadow: 0 0 14px rgba(64, 255, 176, 0.9);
    animation: cursorBlink 1s steps(2, end) infinite;
  }

  .ref-live-phone {
    position: absolute;
    left: 84.1%;
    top: 96.2%;
    z-index: 6;
    display: block;
    min-width: 8.4%;
    padding: 0.25% 0.35%;
    color: rgba(238, 250, 255, 0.98);
    background:
      linear-gradient(90deg, rgba(1, 8, 15, 0.96), rgba(2, 16, 26, 0.9)),
      radial-gradient(circle at 0 50%, rgba(40, 215, 255, 0.14), transparent 70%);
    font-family: var(--mono);
    font-size: 0.82vw;
    line-height: 1;
    text-shadow: 0 0 12px rgba(40, 215, 255, 0.46);
    white-space: nowrap;
  }

  .ref-live-phone {
    display: none;
  }

  .ref-hotspots {
    z-index: 7;
  }

  .ref-hotspot {
    position: absolute;
    display: block;
    border: 1px solid transparent;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    outline: none;
  }

  .ref-hotspot:hover,
  .ref-hotspot:focus,
  .ref-hotspot:focus-visible,
  .ref-hotspot:active {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .ref-hotspot::before,
  .ref-hotspot::after {
    content: "" !important;
    display: none !important;
    opacity: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .ref-hotspot:hover::after,
  .ref-hotspot:focus-visible::after {
    border-color: rgba(120, 240, 255, 0.72);
    background: rgba(40, 215, 255, 0.04);
    box-shadow: 0 0 22px rgba(40, 215, 255, 0.38), inset 0 0 18px rgba(40, 215, 255, 0.08);
  }

  body[data-mode="ana-sayfa"] .ref-hotspot[data-page="ana-sayfa"]::after,
  body[data-mode="firewall"] .ref-hotspot[data-page="firewall"]::after,
  body[data-mode="fiber"] .ref-hotspot[data-page="fiber"]::after,
  body[data-mode="hotspot"] .ref-hotspot[data-page="hotspot"]::after,
  body[data-mode="sunucu"] .ref-hotspot[data-page="sunucu"]::after,
  body[data-mode="zayif-akim"] .ref-hotspot[data-page="zayif-akim"]::after,
  body[data-mode="wifi"] .ref-hotspot[data-page="wifi"]::after,
  body[data-mode="hakkimizda"] .ref-hotspot[data-page="hakkimizda"]::after,
  body[data-mode="referanslar"] .ref-hotspot[data-page="referanslar"]::after,
  body[data-mode="blog"] .ref-hotspot[data-page="blog"]::after,
  body[data-mode="iletisim"] .ref-hotspot[data-page="iletisim"]::after,
  body[data-mode="kvkk"] .ref-hotspot[data-page="kvkk"]::after,
  body[data-mode="kariyer"] .ref-hotspot[data-page="kariyer"]::after,
  body[data-mode="destek"] .ref-hotspot[data-page="destek"]::after {
    display: none !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .ref-logo { left: 1.2%; top: 1.2%; width: 10.7%; height: 7.8%; }
  .nav-home { left: 13.1%; top: 1.9%; width: 6.2%; height: 5.3%; }
  .nav-firewall { left: 20.2%; top: 2.5%; width: 4.8%; height: 4%; }
  .nav-fiber { left: 25.7%; top: 2.5%; width: 8.2%; height: 4%; }
  .nav-hotspot { left: 35.2%; top: 2.5%; width: 5.6%; height: 4%; }
  .nav-server { left: 41.4%; top: 2.5%; width: 8.2%; height: 4%; }
  .nav-low { left: 50.5%; top: 2.5%; width: 5.9%; height: 4%; }
  .nav-wifi { left: 57.1%; top: 2.5%; width: 3.5%; height: 4%; }
  .nav-about { left: 61.2%; top: 2.5%; width: 6.4%; height: 4%; }
  .nav-ref { left: 68.2%; top: 2.5%; width: 7%; height: 4%; }
  .nav-blog { left: 76%; top: 2.5%; width: 4.2%; height: 4%; }
  .nav-contact { left: 80.8%; top: 2.5%; width: 5%; height: 4%; }

  .rail-home { left: 1.2%; top: 15%; width: 12.8%; height: 4.8%; }
  .rail-firewall { left: 1.2%; top: 20.8%; width: 12.8%; height: 4.7%; }
  .rail-fiber { left: 1.2%; top: 26.6%; width: 12.8%; height: 4.7%; }
  .rail-hotspot { left: 1.2%; top: 32.4%; width: 12.8%; height: 4.7%; }
  .rail-server { left: 1.2%; top: 38.2%; width: 12.8%; height: 4.7%; }
  .rail-low { left: 1.2%; top: 44%; width: 12.8%; height: 4.7%; }
  .rail-wifi { left: 1.2%; top: 49.8%; width: 12.8%; height: 4.7%; }
  .rail-about { left: 1.2%; top: 55.6%; width: 12.8%; height: 4.7%; }
  .rail-ref { left: 1.2%; top: 61.4%; width: 12.8%; height: 4.7%; }
  .rail-blog { left: 1.2%; top: 67.2%; width: 12.8%; height: 4.7%; }
  .rail-contact { left: 1.2%; top: 73%; width: 12.8%; height: 4.7%; }
  .rail-kvkk { left: 1.2%; top: 78.8%; width: 12.8%; height: 4.7%; }
  .rail-career { left: 1.2%; top: 84.6%; width: 12.8%; height: 4.7%; }
  .rail-support { left: 1.2%; top: 90.4%; width: 12.8%; height: 4.7%; }

  .ref-globe { left: 32%; top: 23%; width: 34%; height: 45%; border-radius: 50%; }
  .ref-ai { left: 40%; top: 73%; width: 37%; height: 21%; }
  .ref-terminal { left: 16.4%; top: 73%; width: 22%; height: 23%; }
  .ref-phone { left: 81.5%; top: 94.4%; width: 14%; height: 4.5%; }

  .topbar {
    grid-template-columns: 250px minmax(0, 1fr) 180px;
    gap: 18px;
    min-height: 80px;
    padding: 10px 22px;
  }

  .brand {
    padding: 5px 8px;
    background: radial-gradient(circle at 16% 50%, rgba(40, 215, 255, 0.08), transparent 72%);
  }

  .brand-logo {
    width: 230px;
    height: 56px;
  }

  .nav-strip a {
    padding: 12px 15px;
    font-size: 0.68rem;
  }

  .system-state strong {
    font-size: 0.96rem;
  }

  .command-layout {
    grid-template-columns: 250px minmax(760px, 1fr) 360px;
    gap: 12px;
    min-height: calc(100vh - 80px);
    padding: 12px;
  }

  .module-rail,
  .intel-rail {
    height: calc(100vh - 104px);
    min-height: 760px;
    max-height: 960px;
    gap: 12px;
    overflow: hidden;
  }

  .module-rail {
    padding: 14px 12px;
  }

  .module-list {
    gap: 5px;
  }

  .module-button {
    grid-template-columns: 32px 1fr auto;
    gap: 9px;
    min-height: 47px;
    padding: 7px;
  }

  .module-icon {
    width: 29px;
    height: 29px;
    border-radius: 5px;
    font-size: 0.72rem;
  }

  .module-button strong {
    font-size: 0.69rem;
  }

  .module-button span span {
    margin-top: 2px;
    font-size: 0.59rem;
  }

  .mini-scope {
    margin-top: auto;
    padding-top: 10px;
  }

  .mini-scope svg {
    height: 42px;
  }

  .hero-stage {
    min-height: 1560px;
    background:
      linear-gradient(180deg, rgba(1, 5, 10, 0.78), rgba(1, 6, 11, 0.9) 52%, rgba(0, 2, 5, 0.97) 100%),
      radial-gradient(circle at 50% 36%, rgba(40, 215, 255, 0.2), transparent 31rem),
      radial-gradient(circle at 69% 48%, rgba(255, 52, 93, 0.12), transparent 25rem),
      url("/biga-os-assets/reference-command-center.jpeg");
    background-size: auto, auto, auto, cover;
    background-position: center top;
    background-blend-mode: normal, screen, screen, soft-light;
  }

  .hero-stage::before {
    background-size: 34px 34px;
    opacity: 0.72;
  }

  .hero-stage::after {
    inset: auto 14% 595px 14%;
    height: 145px;
    opacity: 0.76;
  }

  .hero-copy {
    max-width: 760px;
    margin-top: 26px;
    padding: 0 24px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 2.75vw, 3.4rem);
    line-height: 0.96;
  }

  .hero-copy p {
    max-width: 650px;
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.38;
  }

  .command-coordinates {
    margin-top: 9px;
    font-size: 0.7rem;
  }

  .hero-actions {
    display: none;
  }

  .globe-wrap {
    inset: auto 0 auto;
    top: 120px;
    height: 610px;
  }

  #globeCanvas {
    width: min(96%, 1040px);
  }

  .threat-lock {
    top: 54%;
    width: min(455px, 38vw);
  }

  .core-readout {
    top: 34%;
  }

  .orbit-1 { width: 430px; height: 430px; }
  .orbit-2 { width: 535px; height: 535px; }
  .orbit-3 { width: 635px; height: 635px; }

  .node-hotel { left: 31%; top: 46%; }
  .node-health { right: 28%; top: 48%; }
  .node-office { left: 24%; bottom: 25%; }
  .node-campus { right: 20%; bottom: 24%; }

  .tag-istanbul { left: 31%; top: 19%; }
  .tag-london { left: 15%; top: 42%; }
  .tag-moscow { right: 19%; top: 31%; }
  .tag-dubai { right: 12%; top: 52%; }

  .platform-label {
    bottom: 8%;
  }

  .metric-stack {
    left: 20px;
    top: 104px;
    width: 178px;
    gap: 8px;
  }

  .metric-stack article {
    min-height: 82px;
    padding: 11px 12px;
    background:
      linear-gradient(180deg, rgba(4, 16, 27, 0.88), rgba(1, 8, 14, 0.78)),
      linear-gradient(90deg, rgba(40, 215, 255, 0.08), transparent 72%);
  }

  .metric-stack strong {
    margin: 7px 0;
    font-size: 1.32rem;
  }

  .metric-stack span,
  .metric-stack em {
    font-size: 0.62rem;
  }

  .bottom-panels {
    top: 660px;
    bottom: auto;
    left: 18px;
    right: 18px;
    min-height: 210px;
    grid-template-columns: minmax(320px, 0.96fr) minmax(500px, 1.45fr);
  }

  .terminal-panel,
  .ai-panel {
    min-height: 188px;
  }

  .terminal-lines {
    font-size: 0.62rem;
    line-height: 1.42;
  }

  .ai-panel {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .ai-visual {
    width: 166px;
    height: 166px;
  }

  .ai-holo {
    width: 156px;
    height: 156px;
  }

  .ai-panel li {
    font-size: 0.61rem;
    line-height: 1.35;
  }

  .mission-console {
    margin-top: 940px;
  }

  .holo-card,
  .threat-feed,
  .quick-actions {
    padding: 12px;
  }

  .holo-card {
    flex: 0 0 300px;
  }

  .infra-hologram {
    min-height: 250px;
  }

  .threat-feed {
    flex: 0 0 258px;
  }

  #threatFeed {
    gap: 9px;
    margin-top: 12px;
  }

  .feed-row {
    grid-template-columns: 9px 54px 1fr 54px;
    gap: 8px;
    font-size: 0.62rem;
    padding: 5px 0;
  }

  .quick-actions {
    flex: 0 0 178px;
  }

  .quick-actions div {
    gap: 8px;
    margin-top: 12px;
  }

  .quick-actions a {
    min-height: 48px;
    padding: 10px;
    font-size: 0.72rem;
  }

  .support-line {
    margin-top: auto;
    padding: 14px;
  }
}

@keyframes refBeam {
  0%, 100% { opacity: 0.18; transform: translateY(-2%); }
  50% { opacity: 0.78; transform: translateY(3%); }
}

@keyframes refPulse {
  0%, 100% { opacity: 0.42; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.24); }
}

@keyframes refSweep {
  0%, 100% { opacity: 0.28; transform: scaleX(0.88); }
  50% { opacity: 0.95; transform: scaleX(1.02); }
}

@keyframes telemetryBlink {
  0%, 100% { opacity: 0.42; filter: brightness(0.9); }
  50% { opacity: 0.92; filter: brightness(1.35); }
}

@keyframes metricFlicker {
  0%, 100% { opacity: 0.76; filter: brightness(0.95); }
  48% { opacity: 1; filter: brightness(1.28); }
  52% { opacity: 0.86; filter: brightness(1.05); }
}

@keyframes gridStatusPulse {
  0%, 100% {
    filter: brightness(0.92);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.32);
    transform: translateY(-0.08vw);
  }
}

@keyframes gridStatusSweep {
  0%, 100% {
    opacity: 0.42;
    transform: scaleX(0.58) translateX(-12%);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.04) translateX(12%);
  }
}

@keyframes gridDiagramOrbit {
  from {
    opacity: 0.34;
    transform: rotate(0deg) scale(0.92);
  }
  50% {
    opacity: 0.88;
    transform: rotate(180deg) scale(1.04);
  }
  to {
    opacity: 0.34;
    transform: rotate(360deg) scale(0.92);
  }
}

@keyframes threatRowPulse {
  0%, 100% { opacity: 0.64; transform: translateX(0); filter: brightness(0.9); }
  50% { opacity: 1; transform: translateX(0.22vw); filter: brightness(1.35); }
}

@keyframes scan {
  0% { transform: translateY(-28vh); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(112vh); opacity: 0; }
}

@keyframes panelSheen {
  0%, 42% { transform: translateX(-120%); opacity: 0; }
  52% { opacity: 1; }
  68%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes bootLoad {
  from { transform: scaleX(0.02); }
  to { transform: scaleX(1); }
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); }
}

@keyframes threatLockBreath {
  0%, 100% { opacity: 0.42; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes threatLockSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes beamPulse {
  0%, 100% { opacity: 0.22; transform: translateY(-3%); }
  50% { opacity: 0.82; transform: translateY(5%); }
}

@keyframes anomalyPulse {
  0%, 100% { opacity: 0.34; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 0.78; transform: scale(1.08) rotate(8deg); }
}

@keyframes holoRotate {
  from { transform: translateX(-50%) rotateX(62deg) rotateZ(45deg); }
  to { transform: translateX(-50%) rotateX(62deg) rotateZ(405deg); }
}

@keyframes floorPulse {
  0%, 100% { opacity: 0.36; filter: brightness(0.9); }
  50% { opacity: 0.72; filter: brightness(1.5); }
}

@keyframes dataBlink {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 1; }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(0.75); opacity: 0.62; }
  50% { transform: scale(1.45); opacity: 1; }
}

@keyframes aiRingSpin {
  from { transform: translate(-50%, -50%) rotateX(64deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(64deg) rotateZ(360deg); }
}

@keyframes holoScanLift {
  0%, 100% { opacity: 0; bottom: 28px; }
  18% { opacity: 0.92; }
  72% { opacity: 0.48; }
  100% { bottom: 168px; }
}

@media (max-width: 1480px) {
  .command-layout {
    grid-template-columns: 210px minmax(470px, 1fr) 300px;
    gap: 12px;
    padding: 12px;
  }

  .metric-stack {
    width: 168px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 190px 1fr;
  }

  .system-state {
    display: none;
  }

  .command-layout {
    grid-template-columns: 1fr;
  }

  .module-rail,
  .intel-rail {
    order: 2;
  }

  .module-list,
  .intel-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-scope,
  .support-line {
    grid-column: 1 / -1;
  }

  .hero-stage {
    min-height: 780px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: relative;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .brand {
    width: max-content;
    padding: 6px 8px;
  }

  .brand-logo {
    width: 180px;
    height: 54px;
  }

  .nav-strip a {
    padding: 12px;
    font-size: 0.68rem;
  }

  .command-layout {
    padding: 10px;
  }

  .module-list,
  .intel-rail,
  .bottom-panels,
  .ai-panel {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 1210px;
  }

  .hero-copy {
    margin-top: 24px;
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .command-coordinates {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.58rem;
  }

  .anomaly-flare {
    right: 10%;
    top: 42%;
    width: 110px;
    height: 110px;
  }

  .cinematic-beams i {
    opacity: 0.36;
  }

  .globe-wrap {
    inset: 330px -55px auto -55px;
    height: 330px;
    align-items: start;
  }

  #globeCanvas {
    width: 104%;
    max-width: none;
    margin-top: -28px;
  }

  .city-tag {
    display: none;
  }

  .metric-stack {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 500px 14px 0;
  }

  .metric-stack article {
    min-height: 90px;
    padding: 12px;
  }

  .metric-stack strong {
    font-size: 1.25rem;
  }

  .bottom-panels {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 720px;
    bottom: auto;
    margin: 0;
    gap: 10px;
  }

  .terminal-panel,
  .ai-panel {
    min-height: 150px;
    padding: 11px;
  }

  .terminal-lines {
    font-size: 0.58rem;
    line-height: 1.35;
  }

  .ai-panel {
    grid-template-columns: 122px 1fr;
  }

  .ai-panel ul {
    gap: 5px;
    margin: 8px 0;
  }

  .ai-panel li {
    font-size: 0.56rem;
  }

  .confidence {
    font-size: 0.58rem;
  }

  .mission-console {
    grid-template-columns: 1fr;
    margin: 1060px 14px 14px;
  }

  .operation-dossier {
    margin: 14px;
    padding: 16px;
  }

  .dossier-grid {
    grid-template-columns: 1fr;
  }

  #missionForm {
    grid-template-columns: 1fr;
  }

  .core-orbit,
  .sector-node {
    display: none;
  }

  .threat-lock {
    top: 55%;
    width: 78vw;
    opacity: 0.68;
  }

  .threat-lock b {
    font-size: 0.54rem;
  }

  .core-readout {
    top: 23%;
    flex-wrap: wrap;
    justify-content: center;
    width: 86%;
  }

  .core-readout span {
    padding: 5px 7px;
    font-size: 0.54rem;
  }

  .terminal-lines div {
    white-space: normal;
  }

  .ai-visual {
    width: 118px;
    height: 118px;
  }

  .ai-holo {
    width: 112px;
    height: 112px;
    margin: 0 auto;
  }

  .ai-tag {
    display: none;
  }

  .ai-ring {
    width: 104px;
  }

  .ai-axis {
    height: 118px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
    background: #00050a;
  }

  .boot-sequence {
    display: none;
  }

  .app-shell {
    display: block;
    min-height: 100svh;
    padding-bottom: 24px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: grid;
    gap: 10px;
    min-height: auto;
    padding: 10px;
    border-bottom: 1px solid rgba(40, 215, 255, 0.18);
    background: rgba(0, 6, 12, 0.94);
    backdrop-filter: blur(16px);
  }

  .brand-logo {
    width: 168px;
    height: 46px;
  }

  .nav-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .nav-strip::-webkit-scrollbar {
    display: none;
  }

  .nav-strip a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .command-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 10px;
  }

  .hero-stage {
    order: 1;
    height: 760px;
    min-height: 0;
    border: 1px solid rgba(40, 215, 255, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(0, 7, 14, 0.92), rgba(0, 4, 8, 0.98) 72%),
      linear-gradient(135deg, rgba(40, 215, 255, 0.14), transparent 42%),
      linear-gradient(315deg, rgba(255, 52, 93, 0.1), transparent 48%);
  }

  .hero-copy {
    margin-top: 16px;
    padding: 0 14px;
    text-align: left;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(1.85rem, 9vw, 2.7rem);
    line-height: 0.96;
  }

  .hero-copy p {
    max-width: 28rem;
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .globe-wrap {
    position: absolute;
    inset: 190px -34% auto -34%;
    height: 330px;
    align-items: start;
  }

  #globeCanvas {
    width: 106%;
    max-width: none;
    margin-top: -16px;
  }

  .core-readout {
    top: 168px;
    width: 92%;
  }

  .platform-label {
    bottom: 188px;
  }

  .metric-stack {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 500px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    margin: 0;
    gap: 8px;
  }

  .metric-stack article {
    min-height: 78px;
    padding: 10px;
    border-radius: 6px;
  }

  .metric-stack strong {
    font-size: 1.08rem;
  }

  .bottom-panels {
    display: none;
  }

  .terminal-panel,
  .ai-panel {
    min-height: auto;
  }

  .ai-panel {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .ai-visual,
  .ai-holo {
    width: 102px;
    height: 102px;
  }

  .module-rail,
  .intel-rail {
    order: 2;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 12px;
  }

  .module-list,
  .intel-rail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .module-button {
    min-height: 50px;
  }

  .holo-card,
  .threat-feed,
  .quick-actions {
    flex: none;
  }

  .mission-console,
  .operation-dossier {
    display: none;
  }
}

@media (min-width: 981px) {
  body {
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 42%, rgba(40, 215, 255, 0.13), transparent 32rem),
      radial-gradient(circle at 82% 48%, rgba(255, 52, 93, 0.1), transparent 24rem),
      #00040a;
  }

  .reference-command {
    display: none;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    overflow: hidden;
  }

  .app-shell::before {
    background:
      radial-gradient(circle at 48% 16%, rgba(120, 230, 255, 0.2), transparent 20rem),
      radial-gradient(circle at 74% 48%, rgba(255, 52, 93, 0.14), transparent 24rem),
      linear-gradient(90deg, rgba(40, 215, 255, 0.12), transparent 14%, transparent 84%, rgba(40, 215, 255, 0.1));
  }

  .topbar {
    position: relative;
    z-index: 50;
    grid-template-columns: 210px minmax(0, 1fr) 170px;
    height: 74px;
    min-height: 74px;
    padding: 8px 14px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(2, 10, 18, 0.96), rgba(0, 4, 8, 0.86)),
      radial-gradient(circle at 45% 0, rgba(40, 215, 255, 0.16), transparent 32rem);
    box-shadow: 0 1px 0 rgba(120, 245, 255, 0.14), 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  .brand-logo {
    width: 198px;
    height: 50px;
  }

  .nav-strip {
    flex-wrap: nowrap;
    gap: 3px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
  }

  .nav-strip a {
    min-height: 34px;
    padding: 8px 7px;
    border-color: rgba(40, 215, 255, 0.14);
    background: linear-gradient(180deg, rgba(40, 215, 255, 0.055), rgba(0, 8, 14, 0.22));
    font-size: 0.56rem;
    white-space: nowrap;
  }

  .nav-strip a.active,
  .nav-strip a:hover {
    border-color: rgba(120, 245, 255, 0.7);
    background:
      linear-gradient(180deg, rgba(40, 215, 255, 0.2), rgba(0, 18, 28, 0.54)),
      radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.12), transparent 72%);
    box-shadow: 0 0 24px rgba(40, 215, 255, 0.28), inset 0 0 16px rgba(40, 215, 255, 0.08);
  }

  .system-state {
    justify-self: end;
    width: 164px;
    padding: 7px 10px;
    border: 1px solid rgba(64, 255, 176, 0.18);
    background: rgba(0, 12, 12, 0.42);
  }

  .command-layout {
    display: grid;
    grid-template-columns: 248px minmax(720px, 1fr) 336px;
    gap: 12px;
    height: calc(100vh - 74px);
    min-height: 0;
    padding: 12px;
  }

  .module-rail,
  .intel-rail {
    height: calc(100vh - 98px);
    min-height: 0;
    max-height: none;
    overflow: hidden;
    gap: 8px;
    border-color: rgba(95, 226, 255, 0.18);
    background:
      linear-gradient(180deg, rgba(2, 11, 18, 0.9), rgba(0, 5, 9, 0.8)),
      radial-gradient(circle at 50% 0, rgba(40, 215, 255, 0.12), transparent 18rem);
    box-shadow: inset 0 0 34px rgba(40, 215, 255, 0.035), 0 0 46px rgba(0, 0, 0, 0.26);
  }

  .module-rail {
    padding: 12px 10px;
  }

  .module-list {
    gap: 5px;
  }

  .module-button {
    min-height: 46px;
    padding: 7px;
    grid-template-columns: 32px 1fr auto;
    background: linear-gradient(90deg, rgba(40, 215, 255, 0.035), transparent 78%);
  }

  .module-button.active {
    background:
      linear-gradient(90deg, rgba(40, 215, 255, 0.24), rgba(40, 215, 255, 0.055)),
      radial-gradient(circle at 0 50%, rgba(120, 245, 255, 0.22), transparent 66%);
  }

  .module-button strong {
    font-size: 0.68rem;
  }

  .module-button span span {
    font-size: 0.57rem;
  }

  .hero-stage {
    height: calc(100vh - 98px);
    min-height: 0;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 42%, rgba(40, 215, 255, 0.22), transparent 23rem),
      radial-gradient(circle at 66% 43%, rgba(255, 52, 93, 0.13), transparent 20rem),
      linear-gradient(180deg, rgba(0, 9, 18, 0.72), rgba(0, 3, 7, 0.96));
    box-shadow:
      inset 0 0 86px rgba(40, 215, 255, 0.065),
      inset 0 0 0 1px rgba(160, 245, 255, 0.08),
      0 0 70px rgba(0, 0, 0, 0.32);
  }

  .hero-stage::before {
    background-size: 36px 36px;
    opacity: 0.78;
  }

  .hero-stage::after {
    inset: auto 10% 10% 10%;
    height: 150px;
    opacity: 0.82;
  }

  .hero-copy {
    z-index: 14;
    max-width: 760px;
    margin-top: 18px;
    padding: 0 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 3vw, 3.75rem);
    letter-spacing: 0;
  }

  .hero-copy p {
    max-width: 660px;
    font-size: 0.92rem;
  }

  .hero-actions {
    margin-top: 10px;
  }

  .globe-wrap {
    inset: 100px -4% 180px;
    z-index: 4;
  }

  #globeCanvas {
    width: min(108%, 1180px);
    transform: translateY(-14px);
  }

  .threat-lock {
    width: min(500px, 42vw);
    top: 52%;
  }

  .core-readout {
    top: 23%;
  }

  .city-tag {
    padding: 8px 10px;
    min-width: 112px;
  }

  .tag-istanbul { left: 26%; top: 20%; }
  .tag-london { left: 12%; top: 41%; }
  .tag-moscow { right: 17%; top: 29%; }
  .tag-dubai { right: 10%; top: 49%; }

  .platform-label {
    bottom: 10%;
    min-width: 210px;
    padding: 9px 12px;
    background:
      linear-gradient(180deg, rgba(1, 8, 15, 0.82), rgba(2, 15, 24, 0.72)),
      radial-gradient(circle at 50% 100%, rgba(40, 215, 255, 0.22), transparent 72%);
    animation: gridStatusPulse 2.4s ease-in-out infinite;
  }

  .metric-stack {
    left: 14px;
    top: 96px;
    width: 172px;
    gap: 7px;
  }

  .metric-stack article {
    min-height: 74px;
    padding: 10px 11px;
    background:
      linear-gradient(180deg, rgba(3, 13, 22, 0.9), rgba(0, 7, 13, 0.82)),
      linear-gradient(90deg, rgba(40, 215, 255, 0.08), transparent 72%);
  }

  .metric-stack strong {
    margin: 6px 0;
    font-size: 1.18rem;
  }

  .metric-stack span,
  .metric-stack em {
    font-size: 0.58rem;
  }

  .bottom-panels {
    position: absolute;
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 12px;
    grid-template-columns: minmax(280px, 0.88fr) minmax(430px, 1.5fr);
    min-height: 0;
    padding: 8px;
  }

  .terminal-panel,
  .ai-panel {
    min-height: 144px;
    max-height: 156px;
    padding: 10px;
    overflow: hidden;
  }

  .terminal-lines {
    font-size: 0.58rem;
    line-height: 1.35;
  }

  .ai-panel {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .ai-visual,
  .ai-holo {
    width: 126px;
    height: 126px;
  }

  .ai-panel li {
    font-size: 0.58rem;
    line-height: 1.3;
  }

  .mission-console,
  .operation-dossier {
    display: none;
  }

  .holo-card,
  .threat-feed,
  .quick-actions {
    padding: 10px;
  }

  .holo-card {
    flex: 0 0 210px;
  }

  .infra-hologram {
    min-height: 168px;
  }

  .threat-feed {
    flex: 0 0 198px;
  }

  .feed-row {
    grid-template-columns: 8px 48px 1fr 50px;
    gap: 7px;
    font-size: 0.58rem;
  }

  .quick-actions {
    flex: 0 0 116px;
  }

  .quick-actions div {
    gap: 6px;
  }

  .quick-actions a {
    min-height: 32px;
    padding: 6px;
    font-size: 0.55rem;
  }

  .support-line {
    flex: 0 0 48px;
    margin-top: 0;
    padding: 8px 12px;
  }

  .support-line span {
    font-size: 0.55rem;
  }

  .support-line strong {
    font-size: 0.78rem;
  }
}

/* v36 final override: cinematic density pass */
@media (min-width: 981px) {
  .app-shell {
    background:
      radial-gradient(circle at 50% 40%, rgba(40, 215, 255, 0.11), transparent 36rem),
      radial-gradient(circle at 77% 42%, rgba(255, 52, 93, 0.08), transparent 28rem),
      linear-gradient(180deg, rgba(1, 6, 12, 0.98), rgba(0, 2, 6, 1));
  }

  .app-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
      repeating-linear-gradient(180deg, rgba(210, 252, 255, 0.032) 0 1px, transparent 1px 4px),
      radial-gradient(circle at 50% 44%, transparent 0 26rem, rgba(0, 0, 0, 0.2) 37rem, rgba(0, 0, 0, 0.56) 100%);
    mix-blend-mode: screen;
    opacity: 0.45;
  }

  .topbar,
  .module-rail,
  .intel-rail,
  .hero-stage,
  .bottom-panels {
    border-color: rgba(150, 245, 255, 0.25);
    box-shadow:
      inset 0 0 0 1px rgba(220, 255, 255, 0.035),
      inset 0 0 44px rgba(40, 215, 255, 0.055),
      0 0 52px rgba(0, 0, 0, 0.36);
  }

  .hero-stage {
    background:
      radial-gradient(circle at 50% 45%, rgba(200, 255, 255, 0.13), transparent 9rem),
      radial-gradient(circle at 52% 50%, rgba(40, 215, 255, 0.2), transparent 26rem),
      radial-gradient(circle at 72% 38%, rgba(255, 52, 93, 0.12), transparent 22rem),
      repeating-linear-gradient(90deg, rgba(40, 215, 255, 0.035) 0 1px, transparent 1px 44px),
      linear-gradient(180deg, rgba(0, 10, 18, 0.78), rgba(0, 3, 7, 0.98));
  }

  .hero-stage::before {
    opacity: 0.95;
    background-image:
      linear-gradient(rgba(40, 215, 255, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(40, 215, 255, 0.07) 1px, transparent 1px),
      linear-gradient(120deg, transparent 0 48%, rgba(40, 215, 255, 0.055) 49% 51%, transparent 52% 100%);
  }

  .hero-stage::after {
    left: 6%;
    right: 6%;
    bottom: 6%;
    height: 185px;
    background:
      radial-gradient(ellipse at center, rgba(160, 252, 255, 0.34), rgba(40, 215, 255, 0.12) 36%, transparent 70%),
      linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.38), transparent);
    filter: blur(10px);
    opacity: 0.96;
  }

  .globe-wrap {
    inset: 84px -8% 166px;
  }

  .globe-wrap::before,
  .globe-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 64%;
    pointer-events: none;
    transform: translate(-50%, -50%) rotateX(70deg);
  }

  .globe-wrap::before {
    z-index: 1;
    width: min(900px, 80vw);
    height: min(900px, 80vw);
    border-radius: 50%;
    border: 1px solid rgba(120, 245, 255, 0.2);
    background:
      repeating-radial-gradient(circle, transparent 0 34px, rgba(40, 215, 255, 0.11) 35px 36px, transparent 37px 70px),
      conic-gradient(from 0deg, transparent, rgba(40, 215, 255, 0.18), transparent, rgba(255, 52, 93, 0.14), transparent);
    box-shadow: 0 0 72px rgba(40, 215, 255, 0.16);
    animation: commandDisc 28s linear infinite;
  }

  .globe-wrap::after {
    z-index: 6;
    width: min(630px, 55vw);
    height: min(630px, 55vw);
    border-radius: 50%;
    border: 1px dashed rgba(190, 252, 255, 0.28);
    box-shadow: inset 0 0 34px rgba(40, 215, 255, 0.08), 0 0 28px rgba(40, 215, 255, 0.18);
    animation: commandDisc 18s linear reverse infinite;
  }

  #globeCanvas {
    position: relative;
    z-index: 5;
    width: min(114%, 1240px);
    filter:
      drop-shadow(0 0 28px rgba(185, 252, 255, 0.28))
      drop-shadow(0 0 74px rgba(40, 215, 255, 0.45))
      saturate(1.28);
  }

  .threat-lock {
    z-index: 9;
    border-color: rgba(200, 255, 255, 0.22);
    box-shadow: inset 0 0 42px rgba(40, 215, 255, 0.07), 0 0 34px rgba(40, 215, 255, 0.12);
  }

  .core-readout span,
  .city-tag,
  .platform-label {
    clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(5, 19, 30, 0.84), rgba(0, 7, 13, 0.76)),
      repeating-linear-gradient(90deg, rgba(160, 245, 255, 0.035) 0 1px, transparent 1px 10px);
  }

  .city-tag::after,
  .platform-label::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.74));
    box-shadow: 0 0 12px rgba(40, 215, 255, 0.7);
  }

  .metric-stack article {
    border-color: rgba(150, 245, 255, 0.28);
    background:
      linear-gradient(180deg, rgba(4, 17, 28, 0.92), rgba(0, 7, 13, 0.86)),
      repeating-linear-gradient(180deg, rgba(185, 252, 255, 0.035) 0 1px, transparent 1px 8px),
      radial-gradient(circle at 100% 0, rgba(40, 215, 255, 0.18), transparent 7rem);
  }

  .metric-stack article::before {
    content: "";
    position: absolute;
    inset: 8px 8px auto auto;
    width: 34px;
    height: 12px;
    border-top: 1px solid rgba(150, 245, 255, 0.34);
    border-right: 1px solid rgba(150, 245, 255, 0.34);
    opacity: 0.85;
  }

  .module-button {
    clip-path: polygon(0 9px, 9px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
    border-color: rgba(95, 226, 255, 0.14);
  }

  .module-button:hover,
  .module-button.active {
    transform: translateX(0);
    border-color: rgba(170, 252, 255, 0.56);
    box-shadow: inset 0 0 18px rgba(40, 215, 255, 0.1), 0 0 22px rgba(40, 215, 255, 0.16);
  }

  .terminal-panel,
  .ai-panel,
  .holo-card,
  .threat-feed,
  .quick-actions,
  .support-line {
    background:
      linear-gradient(180deg, rgba(4, 17, 28, 0.86), rgba(0, 7, 13, 0.82)),
      repeating-linear-gradient(180deg, rgba(185, 252, 255, 0.035) 0 1px, transparent 1px 7px),
      linear-gradient(90deg, rgba(40, 215, 255, 0.055), transparent 58%, rgba(255, 52, 93, 0.04));
  }

  .ai-visual {
    filter: drop-shadow(0 0 16px rgba(40, 215, 255, 0.3));
  }

  .ai-visual::before {
    animation: aiFramePulse 3.8s ease-in-out infinite;
  }

  .ai-visual::after {
    animation: aiFramePulse 3.8s ease-in-out infinite reverse;
  }

  .infra-hologram {
    background:
      radial-gradient(circle at 50% 64%, rgba(190, 252, 255, 0.16), transparent 32%),
      repeating-linear-gradient(90deg, rgba(40, 215, 255, 0.045) 0 1px, transparent 1px 22px),
      repeating-linear-gradient(180deg, rgba(40, 215, 255, 0.035) 0 1px, transparent 1px 18px),
      linear-gradient(180deg, rgba(40, 215, 255, 0.055), transparent 62%, rgba(255, 52, 93, 0.045));
  }

  .infra-hologram::before {
    width: 276px;
    height: 96px;
    background: radial-gradient(ellipse at center, rgba(185, 252, 255, 0.34), rgba(40, 215, 255, 0.16) 42%, transparent 72%);
  }

  .feed-row {
    border-bottom: 1px solid rgba(95, 226, 255, 0.075);
  }

  .platform-label {
    z-index: 11;
    bottom: 31%;
    border-color: rgba(170, 252, 255, 0.46);
    box-shadow: 0 0 26px rgba(40, 215, 255, 0.2), inset 0 0 18px rgba(40, 215, 255, 0.09);
  }

  .sector-node {
    min-width: 78px;
    min-height: 34px;
    border-radius: 0;
    clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
    background: linear-gradient(180deg, rgba(3, 14, 23, 0.86), rgba(0, 7, 13, 0.78));
    font-size: 0.7rem;
  }
}

@keyframes commandDisc {
  from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

@keyframes aiFramePulse {
  0%, 100% { opacity: 0.72; filter: drop-shadow(0 0 12px rgba(40, 215, 255, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 24px rgba(40, 215, 255, 0.72)); }
}

/* v40 true tail override */
@media (min-width: 981px) {
  .hero-stage.module-open .hero-copy {
    max-width: min(520px, calc(100% - 252px)) !important;
    margin: 18px 26px 0 auto !important;
    padding: 0 !important;
  }

  .hero-stage.module-open .hero-copy h1 {
    font-size: clamp(2.1rem, 2.6vw, 3.25rem) !important;
    line-height: 0.94 !important;
  }

  .hero-stage.module-open .hero-copy p {
    max-width: 520px !important;
    font-size: 0.84rem !important;
    line-height: 1.34 !important;
  }

  .metric-stack {
    left: 14px !important;
    top: 102px !important;
    width: 176px !important;
    gap: 8px !important;
  }

  .metric-stack article {
    min-height: 76px !important;
    padding: 10px 11px !important;
  }

  .metric-stack strong {
    font-size: 1.18rem !important;
    line-height: 0.92 !important;
  }

  .command-layout {
    grid-template-columns: 300px minmax(0, 1fr) 360px !important;
    height: calc(100vh - 74px) !important;
    overflow: hidden !important;
  }

  .module-rail,
  .intel-rail,
  .hero-stage {
    height: calc(100vh - 98px) !important;
    max-height: calc(100vh - 98px) !important;
    overflow: hidden !important;
  }
}