/* ==========================================================================
   APPROD // NEURAL-OS 2099 — FUTURISTIC 3D HOLOGRAPHIC STYLESHEET
   Animated Conic Borders · 3D Tilt Physics · Orbital Coverflow · HUD Matrix
   ========================================================================== */

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg-void: #030408;
  --bg-deep: #070913;
  --bg-panel: rgba(11, 15, 28, 0.72);
  --bg-panel-solid: #0c101d;
  --bg-elevated: rgba(18, 24, 44, 0.85);

  --cyan: #00f0ff;
  --magenta: #ff007a;
  --volt: #b4ff00;
  --violet: #8b5cf6;
  --amber: #ffb800;

  --text-main: #f0f6ff;
  --text-dim: #8b9bb8;
  --text-muted: #52617e;

  --border-hud: rgba(0, 240, 255, 0.16);
  --border-bright: rgba(0, 240, 255, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-main);
  font-size: 16px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 240, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255, 0, 122, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.09) 0%, transparent 50%),
    var(--bg-void);
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
img { max-width: 100%; display: block; }
.mono-text { font-family: var(--font-mono); }
.cyan-txt { color: var(--cyan); }
.volt-txt { color: var(--volt); }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ── Background Canvas & 3D Perspective Grid ── */
.quantum-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
}

.cyber-horizon-grid {
  position: fixed;
  bottom: -15vh;
  left: -20vw;
  right: -20vw;
  height: 55vh;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(68deg);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 85%);
  animation: gridScroll 16s linear infinite;
}

.ambient-scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 240, 255, 0.012) 4px
  );
}

@keyframes gridScroll {
  from { background-position: 0 0; }
  to { background-position: 0 56px; }
}

@keyframes spinAngle {
  to { --border-angle: 360deg; }
}

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

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px var(--volt); }
  50% { transform: scale(1.45); opacity: 0.6; box-shadow: 0 0 20px var(--volt); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ==========================================================================
   FLOATING ORBITAL COMMAND DOCK
   ========================================================================== */
.orbital-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  margin-bottom: 18px;
}

.command-dock {
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--border-hud);
  border-radius: 16px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(0, 240, 255, 0.12);
  position: relative;
}

.command-dock::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-core {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.15rem;
  position: relative;
}

.core-ring {
  position: absolute;
  inset: -4px;
  border-radius: 13px;
  border: 1px dashed rgba(0, 240, 255, 0.45);
  animation: ringOrbit 12s linear infinite;
}

.brand-text h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1;
}

.brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--cyan);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.dock-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.dock-nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 9px;
  transition: all 0.42s var(--ease-spring);
  pointer-events: none;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.18);
}

.nav-link {
  position: relative;
  z-index: 2;
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active i { color: var(--cyan); }

.dock-telemetry {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--volt);
  background: rgba(180, 255, 0, 0.07);
  border: 1px solid rgba(180, 255, 0, 0.25);
  padding: 6px 12px;
  border-radius: 99px;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  animation: pulseBeacon 2s infinite;
}

.btn-cyber-cta {
  background: linear-gradient(135deg, var(--cyan), #3b82f6);
  color: #02050c;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 10px 16px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.2s, filter 0.2s;
}

.btn-cyber-cta:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.15);
}

/* ==========================================================================
   HOLOGRAPHIC STAGE HERO (INTERACTIVE SWITCHER)
   ========================================================================== */
.holo-hero-section { padding: 12px 0 22px; }

.holo-stage {
  position: relative;
  border-radius: 22px;
  min-height: 470px;
  background: var(--bg-deep);
  border: 1px solid var(--border-hud);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 34px 26px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.08);
}

/* Animated HUD Corner Brackets */
.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--cyan);
  border-style: solid;
  z-index: 6;
  pointer-events: none;
  transition: all 0.35s var(--ease-spring);
}
.hud-corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.holo-stage:hover .hud-corner.tl { transform: translate(-3px, -3px); }
.holo-stage:hover .hud-corner.tr { transform: translate(3px, -3px); }
.holo-stage:hover .hud-corner.bl { transform: translate(-3px, 3px); }
.holo-stage:hover .hud-corner.br { transform: translate(3px, 3px); }

.stage-telemetry-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tele-left, .tele-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
}

.tele-tag {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.7px;
}

.tele-code { color: var(--text-dim); }
.tele-right span { color: var(--text-dim); }

.stage-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stage-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.2);
  transition: transform 0.7s var(--ease-expo), opacity 0.35s ease, filter 0.35s ease;
}

.holo-stage.switching .stage-bg-img {
  opacity: 0.2;
  transform: scale(1.08);
  filter: blur(8px) hue-rotate(45deg);
}

.stage-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(3, 4, 8, 0.96) 0%, rgba(3, 4, 8, 0.72) 48%, rgba(3, 4, 8, 0.18) 100%),
    linear-gradient(0deg, rgba(3, 4, 8, 0.96) 0%, transparent 55%);
}

.stage-laser-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.16), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.holo-stage.switching .stage-laser-sweep {
  animation: stageSweep 0.6s ease-out;
}

@keyframes stageSweep {
  0% { left: -60%; }
  100% { left: 130%; }
}

.stage-content {
  position: relative;
  z-index: 4;
  max-width: 650px;
  margin: 30px 0 20px;
  transition: transform 0.35s var(--ease-expo), opacity 0.25s ease;
}

.holo-stage.switching .stage-content {
  opacity: 0;
  transform: translateX(-18px);
}

.stage-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cyber-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cyber-pill.hot { background: rgba(255, 0, 122, 0.16); border: 1px solid rgba(255, 0, 122, 0.4); color: #ff6eb4; }
.cyber-pill.rating { background: rgba(255, 184, 0, 0.15); border: 1px solid rgba(255, 184, 0, 0.4); color: var(--amber); }
.cyber-pill.size { background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); color: var(--cyan); }

.stage-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  background: linear-gradient(120deg, #ffffff 30%, var(--cyan) 75%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 20px rgba(0, 240, 255, 0.25));
}

.stage-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 560px;
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-quantum-launch {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--volt), var(--cyan));
  color: #02050a;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 13px 28px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.25s var(--ease-spring), filter 0.25s;
}

.btn-quantum-launch:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.12);
}

.btn-quantum-inspect {
  background: rgba(10, 16, 32, 0.72);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  border: 1px solid var(--border-bright);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 13px 24px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}

.btn-quantum-inspect:hover {
  background: rgba(0, 240, 255, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

/* Orbital Hero Switcher Nodes */
.stage-switcher-dock {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-end;
  background: rgba(6, 10, 20, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hud);
  border-radius: 14px;
  padding: 7px 10px;
}

.stage-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.stage-arrow-btn:hover { background: var(--cyan); color: #02050a; }

.stage-nodes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-node-thumb {
  width: 46px;
  height: 34px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  position: relative;
}

.stage-node-thumb img { width: 100%; height: 100%; object-fit: cover; }

.stage-node-thumb:hover { opacity: 0.9; transform: translateY(-2px); }

.stage-node-thumb.active {
  opacity: 1;
  width: 64px;
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}

/* ==========================================================================
   CYBER TELEMETRY STRIP
   ========================================================================== */
.telemetry-strip { padding-bottom: 24px; }

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tele-card {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hud);
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s;
}

.tele-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 10px 26px rgba(0, 240, 255, 0.12);
}

.tele-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.tele-card:nth-child(2) .tele-icon { color: var(--volt); background: rgba(180, 255, 0, 0.08); border-color: rgba(180, 255, 0, 0.25); }
.tele-card:nth-child(3) .tele-icon { color: var(--magenta); background: rgba(255, 0, 122, 0.08); border-color: rgba(255, 0, 122, 0.25); }
.tele-card:nth-child(4) .tele-icon { color: var(--violet); background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.25); }

.tele-label { font-size: 0.65rem; color: var(--text-muted); display: block; }
.tele-data h4 { font-family: var(--font-display); font-size: 0.98rem; color: #fff; }

/* ==========================================================================
   QUANTUM CONTROL DECK (MAGNETIC RAIL + 3-MODE SPATIAL SWITCHER)
   ========================================================================== */
.control-deck-section { margin-bottom: 24px; }

.control-deck-panel {
  background: rgba(10, 14, 28, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hud);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.deck-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.search-bar-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  background: rgba(4, 7, 15, 0.85);
  border: 1px solid var(--border-hud);
  border-radius: 10px;
  padding: 11px 40px 11px 42px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: all 0.25s;
}

.search-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  display: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #0a0f1f;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  z-index: 200;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}
.search-dropdown-item:hover { background: rgba(0, 240, 255, 0.08); }
.search-dropdown-item img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; }
.search-dropdown-info h5 { font-size: 0.92rem; color: #fff; }
.search-dropdown-info span { font-size: 0.74rem; color: var(--cyan); font-family: var(--font-mono); }

.deck-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cyber-select {
  background: rgba(4, 7, 15, 0.9);
  color: var(--text-main);
  border: 1px solid var(--border-hud);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* 3-Mode Spatial Switcher with Sliding Pill */
.spatial-switcher {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(4, 7, 15, 0.9);
  border: 1px solid var(--border-hud);
  border-radius: 10px;
  padding: 4px;
}

.spatial-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transition: all 0.42s var(--ease-spring);
  pointer-events: none;
}

.view-btn {
  position: relative;
  z-index: 2;
  padding: 7px 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s;
}

.view-btn.active { color: #02050a; }

/* Magnetic Elastic Category Rail */
.category-rail-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.category-chips {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  background: rgba(4, 7, 15, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.category-chips::-webkit-scrollbar { display: none; }

.category-rail-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(255, 0, 122, 0.22));
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.28);
  transition: all 0.48s var(--ease-spring);
  pointer-events: none;
}

.category-chip {
  position: relative;
  z-index: 2;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: color 0.25s;
}

.category-chip:hover { color: #fff; }
.category-chip.active { color: var(--cyan); text-shadow: 0 0 8px rgba(0, 240, 255, 0.45); }

.category-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.68rem;
}

.category-chip.active .category-count {
  background: var(--cyan);
  color: #02050a;
}

.matrix-counter { font-size: 0.78rem; color: var(--text-dim); }
.matrix-counter span { color: var(--volt); font-weight: 700; }

/* ==========================================================================
   WARP TRANSITION FLASH & ORBITAL CONTROLS
   ========================================================================== */
.catalog-section {
  position: relative;
  padding-bottom: 60px;
}

.warp-flash {
  position: absolute;
  inset: -10px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.22), transparent 65%);
}

.warp-flash.active {
  animation: warpPulse 0.45s ease-out;
}

@keyframes warpPulse {
  0% { opacity: 0.9; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.06); }
}

.orbital-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.orbital-controls.visible { display: flex; }

.orbital-nav-btn {
  background: rgba(11, 16, 32, 0.85);
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-spring);
}

.orbital-nav-btn:hover {
  background: var(--cyan);
  color: #02050a;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.orbital-readout {
  font-size: 0.85rem;
  color: var(--volt);
  background: rgba(180, 255, 0, 0.08);
  border: 1px solid rgba(180, 255, 0, 0.25);
  padding: 7px 16px;
  border-radius: 99px;
}

/* ==========================================================================
   GAME CARDS — HOLO MATRIX (3D TILT + CONIC LASER BORDER + SCANNER)
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

@keyframes quantumCardEnter {
  0% {
    opacity: 0;
    translate: 0 36px;
    scale: 0.88;
    filter: blur(6px) brightness(1.4);
  }
  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: blur(0) brightness(1);
  }
}

.game-card {
  position: relative;
  border-radius: 18px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    rgba(0, 240, 255, 0.18) 0deg,
    rgba(255, 255, 255, 0.05) 90deg,
    rgba(255, 0, 122, 0.18) 180deg,
    rgba(255, 255, 255, 0.05) 270deg,
    rgba(0, 240, 255, 0.18) 360deg
  );
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.22s ease-out, box-shadow 0.3s ease;
  animation: quantumCardEnter 0.55s var(--ease-spring) calc(var(--i, 0) * 50ms) both, spinAngle 3s linear infinite;
  animation-play-state: running, paused;
}

.game-card:hover {
  animation-play-state: running, running;
  background: conic-gradient(
    from var(--border-angle),
    var(--cyan) 0deg,
    transparent 80deg,
    var(--magenta) 180deg,
    transparent 260deg,
    var(--volt) 320deg,
    var(--cyan) 360deg
  );
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75), 0 0 32px rgba(0, 240, 255, 0.22);
  z-index: 10;
}

.card-inner-shell {
  position: relative;
  background: linear-gradient(165deg, rgba(14, 19, 36, 0.96), rgba(7, 10, 20, 0.98));
  border-radius: 16.5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-style: preserve-3d;
}

/* Interactive Holographic Foil Glare */
.card-holo-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 240, 255, 0.2),
    rgba(255, 0, 122, 0.08) 45%,
    transparent 75%
  );
  transition: opacity 0.25s;
}

.game-card:hover .card-holo-glare { opacity: 1; }

/* Card Media & Laser Scanner */
.card-media {
  position: relative;
  height: 185px;
  overflow: hidden;
  cursor: pointer;
  background: #04060c;
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo), filter 0.3s;
}

.game-card:hover .card-cover {
  transform: scale(1.1);
  filter: contrast(1.08) saturate(1.15);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,4,8,0.1) 0%, rgba(7,10,20,0.92) 100%);
}

/* Laser Sweep Line on Card Hover */
.card-scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: -10%;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--cyan), transparent);
  box-shadow: 0 0 14px var(--cyan), 0 0 28px var(--cyan);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.game-card:hover .card-scanner-line {
  opacity: 1;
  animation: cardScan 1.5s ease-in-out infinite;
}

@keyframes cardScan {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* HUD Reticles on Card Image */
.card-reticle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(0, 240, 255, 0.55);
  border-style: solid;
  z-index: 4;
  transition: all 0.35s var(--ease-spring);
}
.card-reticle.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.card-reticle.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.game-card:hover .card-reticle.tl { transform: translate(4px, 4px); border-color: var(--volt); }
.game-card:hover .card-reticle.br { transform: translate(-4px, -4px); border-color: var(--volt); }

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 16px;
  background: rgba(3, 5, 12, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  z-index: 4;
}

.card-rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(3, 5, 12, 0.85);
  border: 1px solid rgba(255, 184, 0, 0.4);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  transform: translateZ(14px);
}

.card-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-inline-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.18);
  flex-shrink: 0;
}

.card-title-group { min-width: 0; flex: 1; }

.card-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.card-title:hover { color: var(--cyan); }

.card-meta-line {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.card-subtitle {
  font-size: 0.88rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-telemetry-bars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-left: auto;
}

.signal-bars span {
  width: 3px;
  background: var(--cyan);
  border-radius: 2px;
  opacity: 0.6;
}
.signal-bars span:nth-child(1) { height: 4px; }
.signal-bars span:nth-child(2) { height: 7px; }
.signal-bars span:nth-child(3) { height: 10px; }
.signal-bars span:nth-child(4) { height: 12px; background: var(--volt); }

.game-card:hover .signal-bars span {
  opacity: 1;
  animation: barEqualizer 0.8s ease-in-out infinite alternate;
}
.game-card:hover .signal-bars span:nth-child(2) { animation-delay: 0.15s; }
.game-card:hover .signal-bars span:nth-child(3) { animation-delay: 0.3s; }
.game-card:hover .signal-bars span:nth-child(4) { animation-delay: 0.45s; }

@keyframes barEqualizer {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1); }
}

.card-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.btn-card-launch {
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  color: #02050c;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 10px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s;
}

.btn-card-launch:hover {
  background: linear-gradient(135deg, var(--volt), var(--cyan));
  transform: translateY(-2px);
}

.btn-card-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hud);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s;
}

.btn-card-info:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* ==========================================================================
   VIEW MODE 2: 3D ORBITAL DECK (TRUE SPATIAL COVERFLOW STAGE)
   ========================================================================== */
.games-deck-view {
  position: relative;
  height: 490px;
  perspective: 1600px;
  transform-style: preserve-3d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.games-deck-view .game-card {
  position: absolute;
  width: 340px;
  height: 415px;
  left: 50%;
  top: 50%;
  margin-left: -170px;
  margin-top: -207px;
  animation: none;
  transition: transform 0.65s var(--ease-expo), opacity 0.55s ease, filter 0.55s ease, box-shadow 0.55s ease;
  cursor: pointer;
}

.games-deck-view .game-card[data-offset="0"] {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 240, 255, 0.35);
}

.games-deck-view .game-card:not([data-offset="0"]) {
  filter: brightness(0.65) saturate(0.8);
}

.games-deck-view .game-card:not([data-offset="0"]):hover {
  filter: brightness(0.95);
}

/* ==========================================================================
   VIEW MODE 3: CYBER RACK (TELEMETRY LIST)
   ========================================================================== */
.games-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.games-list-view .game-card {
  animation: quantumCardEnter 0.45s var(--ease-spring) calc(var(--i, 0) * 40ms) both, spinAngle 3s linear infinite;
  animation-play-state: running, paused;
}

.games-list-view .game-card:hover {
  animation-play-state: running, running;
}

.games-list-view .card-inner-shell {
  flex-direction: row;
  align-items: center;
  padding: 12px 16px;
  gap: 18px;
}

.games-list-view .card-media {
  width: 170px;
  height: 98px;
  border-radius: 10px;
  flex-shrink: 0;
}

.games-list-view .card-body {
  padding: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transform: none;
}

.games-list-view .card-subtitle { display: none; }
.games-list-view .card-telemetry-bars { width: 175px; flex-shrink: 0; }
.games-list-view .card-actions { width: 225px; flex-shrink: 0; margin-top: 0; }

/* No Results */
.no-results { text-align: center; padding: 70px 20px; display: none; }
.no-results i { font-size: 3rem; color: var(--magenta); margin-bottom: 14px; }
.no-results h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.no-results p { color: var(--text-dim); margin-bottom: 22px; }

/* ==========================================================================
   CORE ARCHITECTURE & PROTOCOL FAQ
   ========================================================================== */
.core-section, .faqs-section { padding: 48px 0; }

.cyber-section-head { margin-bottom: 26px; }
.section-kicker { font-size: 0.74rem; color: var(--cyan); letter-spacing: 1.4px; }
.cyber-section-head h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  margin-top: 4px;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.core-module {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-hud);
  border-radius: 16px;
  padding: 24px 20px;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s;
}

.core-module:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 14px 35px rgba(0, 240, 255, 0.12);
}

.module-index {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.core-module h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 8px; }
.core-module p { font-size: 0.92rem; color: var(--text-dim); }

.faqs-wrap { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.active { border-color: var(--cyan); }

.faq-question {
  width: 100%;
  padding: 16px 20px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.faq-question span i { color: var(--cyan); margin-right: 10px; font-size: 0.85rem; }
.faq-arrow { color: var(--cyan); transition: transform 0.3s; }
.faq-item.active .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer { max-height: 220px; padding: 0 20px 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-hud);
  background: rgba(4, 6, 12, 0.85);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand span { color: var(--cyan); font-size: 0.82rem; font-weight: 700; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 3px; }

.footer-socials { display: flex; gap: 10px; }

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hud);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-spring);
}

.social-btn:hover {
  background: var(--cyan);
  color: #02050a;
  transform: translateY(-3px);
}

/* ==========================================================================
   HOLOGRAPHIC MODAL, LIGHTBOX, TOAST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active { opacity: 1; pointer-events: all; }

.modal-dialog {
  background: #080d1b;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 240, 255, 0.16);
  transform: perspective(1000px) rotateX(10deg) scale(0.92);
  transition: transform 0.4s var(--ease-spring);
}

.modal-backdrop.active .modal-dialog {
  transform: perspective(1000px) rotateX(0deg) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(3, 5, 12, 0.82);
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  z-index: 10;
  transition: all 0.25s;
}

.modal-close-btn:hover { background: var(--magenta); color: #fff; border-color: var(--magenta); transform: rotate(90deg); }

.modal-hero { position: relative; height: 290px; overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.modal-hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, #080d1b 0%, transparent 75%); }

.modal-header-info {
  position: absolute;
  bottom: 18px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.modal-logo { width: 80px; height: 80px; border-radius: 14px; border: 2px solid var(--cyan); object-fit: cover; }
.modal-badge-tag { font-size: 0.65rem; color: var(--volt); letter-spacing: 1.2px; }
.modal-title-wrap h2 { font-family: var(--font-display); font-size: 1.75rem; color: #fff; }
.modal-title-wrap p { color: var(--cyan); font-size: 0.95rem; }

.modal-body-content { padding: 22px 28px 34px; }

.modal-launch-strip {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-hud);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.modal-launch-info h4 { font-family: var(--font-display); font-size: 0.95rem; color: #fff; }
.modal-launch-info p { font-size: 0.85rem; color: var(--volt); }
.modal-launch-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-open-external { background: linear-gradient(135deg, var(--cyan), #38bdf8); color: #02050c; font-family: var(--font-display); font-size: 0.74rem; font-weight: 800; padding: 10px 18px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; }
.btn-download-android { background: linear-gradient(135deg, var(--volt), #22c55e); color: #02050c; font-family: var(--font-display); font-size: 0.74rem; font-weight: 800; padding: 10px 18px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; }
.btn-download-ios { background: #fff; color: #02050c; font-family: var(--font-display); font-size: 0.74rem; font-weight: 800; padding: 10px 18px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; }

.modal-section { margin-bottom: 26px; }
.modal-section-title { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; color: #fff; }
.modal-section-title i { color: var(--cyan); }
.modal-desc-text { color: var(--text-dim); font-size: 0.98rem; line-height: 1.65; }

.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
.spec-box { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 14px; }
.spec-box-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--cyan); text-transform: uppercase; }
.spec-box-val { font-size: 0.92rem; font-weight: 600; color: #fff; }

.features-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.feature-item { display: flex; gap: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle); padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; color: var(--text-dim); }
.feature-item i { color: var(--volt); margin-top: 3px; }

.screenshots-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.screen-thumb { height: 108px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid var(--border-hud); }
.screen-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.screen-thumb:hover img { transform: scale(1.1); }

.reviews-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.review-card-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px 16px; }
.review-item-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.review-item-author { font-weight: 700; color: #fff; }
.review-item-stars { color: var(--amber); font-size: 0.8rem; }
.review-item-text { color: var(--text-dim); font-size: 0.9rem; }

.add-review-form { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-hud); border-radius: 12px; padding: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.form-input, .form-textarea { width: 100%; background: #040711; border: 1px solid var(--border-hud); border-radius: 8px; padding: 10px 12px; color: #fff; font-family: inherit; }
.form-textarea { min-height: 76px; margin-bottom: 10px; resize: vertical; }

.lightbox-modal { position: fixed; inset: 0; background: rgba(2, 3, 8, 0.96); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; padding: 20px; }
.lightbox-modal.active { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 14px; border: 1px solid var(--border-bright); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 240, 255, 0.14); color: var(--cyan); font-size: 1.15rem; border: 1px solid var(--border-bright); }

.toast-notice { position: fixed; bottom: 24px; right: 24px; background: #080f22; border: 1px solid var(--cyan); border-radius: 12px; padding: 12px 20px; display: flex; align-items: center; gap: 10px; z-index: 5000; transform: translateY(100px); opacity: 0; transition: all 0.35s var(--ease-spring); box-shadow: 0 0 24px rgba(0, 240, 255, 0.25); }
.toast-notice.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--volt); }
.toast-msg { font-family: var(--font-mono); font-size: 0.78rem; }

.back-to-top { position: fixed; bottom: 24px; left: 24px; width: 42px; height: 42px; border-radius: 10px; background: #091021; color: var(--cyan); border: 1px solid var(--border-bright); opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 800; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--cyan); color: #02050c; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .dock-nav, .telemetry-badge { display: none; }
  .telemetry-grid { grid-template-columns: repeat(2, 1fr); }
  .stage-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .holo-stage { padding: 18px 18px 20px; min-height: 410px; }
  .stage-title { font-size: 1.75rem; }
  .stage-switcher-dock { align-self: center; max-width: 100%; overflow-x: auto; }
  .telemetry-grid { grid-template-columns: 1fr 1fr; }
  .games-list-view .card-inner-shell { flex-direction: column; align-items: stretch; }
  .games-list-view .card-media { width: 100%; height: 150px; }
  .games-list-view .card-body { flex-direction: column; align-items: stretch; }
  .games-list-view .card-telemetry-bars, .games-list-view .card-actions { width: 100%; }
  .games-deck-view { height: 440px; }
  .games-deck-view .game-card { width: 280px; margin-left: -140px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .telemetry-grid { grid-template-columns: 1fr; }
  .spatial-switcher .view-btn span { display: none; }
}
