/* ==========================================================================
   Stream Command Center - Sovereign Creator HQ Theme
   Executive 90s Cyber-Terminal Aesthetic with Dynamic Dark-to-Light Gradients
   Palette: Deep Midnight Obsidian/Slate (#040711, #080d1a, #0e172a)
   Electric Teals (#00f5ff, #00ffd5, #38bdf8) & Subtle Violet Accents (#a855f7)
   ========================================================================== */

:root {
  --bg-deep: #040711;
  --bg-dark: #080d1a;
  --bg-slate: #0e172a;
  --bg-card: rgba(16, 25, 46, 0.92);
  --bg-card-hover: rgba(24, 38, 68, 0.96);
  --border-cyan: rgba(0, 245, 255, 0.35);
  --border-cyan-glow: rgba(0, 245, 255, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --cyan: #00f5ff;
  --cyan-bright: #00ffd5;
  --cyan-muted: #38bdf8;
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-glow: rgba(168, 85, 247, 0.25);
  --emerald: #34d399;
  --gold: #fbbf24;
  --crimson: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-mono: 'Cascadia Code', 'Fira Code', Consolas, 'Courier New', monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  /* Luminous Dark-to-Light Vertical Canvas Gradient with Subtle CRT Scanline Texture */
  background-image: 
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(0, 245, 255, 0.12) 0%, rgba(145, 70, 255, 0.05) 45%, transparent 80%),
    linear-gradient(180deg, #0d1527 0%, #080d19 35%, #040711 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 3px);
  background-attachment: scroll;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-container {
  width: 100%;
  max-width: min(1680px, 94vw);
  margin: 0 auto;
  padding: 18px clamp(16px, 2.5vw, 36px) 80px clamp(16px, 2.5vw, 36px);
  box-sizing: border-box;
}

.font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   TOP TERMINAL STATUS STRIP & NAVIGATION BAR
   ========================================================================== */
.terminal-top-strip {
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.98) 0%, rgba(8, 13, 24, 0.98) 100%);
  border-bottom: 1px solid rgba(0, 245, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  padding: 6px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.terminal-top-inner {
  width: 100%;
  max-width: min(1680px, 94vw);
  margin: 0 auto;
  padding: 0 clamp(4px, 1.5vw, 16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  box-sizing: border-box;
}

.top-strip-left, .top-strip-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-led-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  display: inline-block;
}

.top-strip-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.top-strip-divider {
  color: rgba(255, 255, 255, 0.2);
}

.top-strip-tag {
  color: var(--cyan-bright);
}

.top-strip-operator {
  color: var(--cyan-muted);
  font-weight: 700;
}

.top-strip-pill {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.18) 0%, rgba(0, 245, 255, 0.05) 100%);
  border: 1px solid var(--border-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

/* TOP NAVIGATION BAR */
.terminal-nav-bar {
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.97) 0%, rgba(8, 14, 26, 0.98) 100%);
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 29px;
  z-index: 999;
  backdrop-filter: blur(16px);
}

.terminal-nav-inner {
  width: 100%;
  max-width: min(1800px, 98vw);
  margin: 0 auto;
  padding: 6px clamp(8px, 1.5vw, 18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
}

.terminal-brand-link {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.terminal-brand-link .brand-bracket {
  color: var(--cyan);
}

.terminal-brand-link .brand-text {
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.terminal-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 1;
  min-width: 0;
  padding: 2px 0;
}

.terminal-nav-links::-webkit-scrollbar {
  display: none;
}

.tnav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(8, 16, 30, 0.88) 0%, rgba(4, 20, 32, 0.84) 100%);
  border: 1px solid rgba(0, 245, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.06), inset 0 0 6px rgba(0, 245, 255, 0.03);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  letter-spacing: 0.05em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.tnav-link:hover {
  background: linear-gradient(135deg, rgba(12, 28, 52, 0.95) 0%, rgba(6, 36, 54, 0.9) 100%);
  border-color: rgba(0, 245, 255, 0.6);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.25), inset 0 0 8px rgba(0, 245, 255, 0.08);
}

.tnav-link.active {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.18) 0%, rgba(8, 32, 54, 0.95) 100%);
  border-color: #00f5ff;
  color: #00f5ff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.35), inset 0 0 10px rgba(0, 245, 255, 0.12);
  font-weight: 900;
}

.tnav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  margin-right: 4px;
}

/* Responsive Auto-Collapsing Overflow Dropdown */
.tnav-more-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.tnav-more-btn {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(8, 16, 30, 0.95) 0%, rgba(4, 20, 32, 0.9) 100%);
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.tnav-more-btn:hover {
  border-color: #00f5ff;
}

.tnav-more-btn.has-active {
  border-color: #00f5ff;
  color: #00f5ff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
}

.tnav-more-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 9px;
  margin-left: 2px;
}

.tnav-more-btn[aria-expanded="true"] .tnav-more-arrow {
  transform: rotate(180deg);
}

.tnav-more-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.98) 0%, rgba(4, 8, 16, 0.99) 100%);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 245, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  flex-direction: column;
  gap: 4px;
}

.tnav-more-dropdown.show {
  display: flex;
  animation: sccDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sccDropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tnav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 5px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tnav-dropdown-item:hover {
  background: rgba(0, 245, 255, 0.1);
  color: #00f5ff;
  border-color: rgba(0, 245, 255, 0.25);
  transform: translateX(2px);
}

.tnav-dropdown-item.active {
  background: rgba(0, 245, 255, 0.18);
  color: #00f5ff;
  border-color: #00f5ff;
  font-weight: 900;
}

.terminal-nav-rack {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Responsive Nav Rack Compactness */
@media (max-width: 1450px) {
}

@media (max-width: 1180px) {
  #btnOpenBandwidthApply .cyber-btn-text,
  #btnOpenNotifications .cyber-btn-text {
    display: none;
  }
}

/* Cyber Nav Action Buttons */
.cyber-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(8, 16, 30, 0.94) 0%, rgba(4, 24, 36, 0.9) 100%);
  border: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.12), inset 0 0 8px rgba(0, 245, 255, 0.05);
  border-radius: 4px;
  padding: 5px 9px;
  cursor: pointer;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  position: relative;
  outline: none;
  white-space: nowrap;
}

.cyber-nav-btn:hover {
  border-color: #00f5ff;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.28), inset 0 0 10px rgba(0, 245, 255, 0.1);
  transform: translateY(-1px);
}

.cyber-nav-btn:active {
  transform: translateY(0);
}

.cyber-btn-emerald {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.12), inset 0 0 8px rgba(16, 185, 129, 0.05);
}
.cyber-btn-emerald:hover {
  border-color: #10b981;
  color: #a7f3d0;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3), inset 0 0 10px rgba(16, 185, 129, 0.12);
}

.cyber-btn-purple {
  border-color: rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.12), inset 0 0 8px rgba(168, 85, 247, 0.05);
}
.cyber-btn-purple:hover {
  border-color: #a855f7;
  color: #f3e8ff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3), inset 0 0 10px rgba(168, 85, 247, 0.12);
}

.cyber-btn-violet {
  border-color: rgba(145, 71, 255, 0.45);
  color: #c084fc;
  box-shadow: 0 0 12px rgba(145, 71, 255, 0.12), inset 0 0 8px rgba(145, 71, 255, 0.05);
}
.cyber-btn-violet:hover {
  border-color: #a855f7;
  color: #e9d5ff;
  box-shadow: 0 0 16px rgba(145, 71, 255, 0.3), inset 0 0 10px rgba(145, 71, 255, 0.12);
}

.cyber-btn-amber {
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde047;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15), inset 0 0 8px rgba(245, 158, 11, 0.06);
}
.cyber-btn-amber:hover {
  border-color: #fbbf24;
  color: #fef08a;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3), inset 0 0 10px rgba(245, 158, 11, 0.12);
}

.cyber-btn-cyan {
  border-color: rgba(0, 245, 255, 0.45);
  color: #67e8f9;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.15), inset 0 0 8px rgba(0, 245, 255, 0.06);
}
.cyber-btn-cyan:hover {
  border-color: #00f5ff;
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.35), inset 0 0 10px rgba(0, 245, 255, 0.12);
}

.cyber-bracket {
  color: #475569;
  font-weight: 900;
  transition: color 0.2s;
}
.cyber-nav-btn:hover .cyber-bracket,
.tnav-link:hover .cyber-bracket {
  color: #00f5ff;
}

.cyber-btn-glyph {
  font-size: 10px;
}
.cyber-btn-text {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cyber-close-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11px;
  padding: 0 2px;
  margin-left: 3px;
  font-family: inherit;
}
.cyber-close-btn:hover {
  color: #ef4444;
}

.cyber-inner-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.cyber-inner-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.cyber-inner-admin {
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}
.cyber-inner-admin:hover {
  border-color: #38bdf8;
  color: #fff;
  background: rgba(56, 189, 248, 0.2);
}

.cyber-tag-pill {
  font-size: 9px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.cyber-notif-pill {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 14px;
  text-align: center;
  margin-left: 3px;
}

/* ==========================================================================
   PAGE HERO & TERMINAL CHASSIS HEADERS
   ========================================================================== */
.page-hero {
  margin-top: 24px;
  margin-bottom: 24px;
  text-align: left;
  border-left: 3px solid var(--cyan);
  padding-left: 16px;
}

.terminal-prompt-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.15) 0%, rgba(0, 245, 255, 0.04) 100%);
  border: 1px solid rgba(0, 245, 255, 0.3);
  padding: 2px 10px;
  border-radius: 4px;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 45%, #38bdf8 80%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  color: var(--text-muted);
  max-width: min(960px, 95%);
}

/* ==========================================================================
   TERMINAL CHASSIS & CARDS (Dark-to-Light Luminous Depth)
   ========================================================================== */
.terminal-card {
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.9) 0%, rgba(9, 15, 28, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-top: 2px solid;
  border-image: linear-gradient(90deg, rgba(0,245,255,0.2) 0%, #00f5ff 35%, #38bdf8 70%, rgba(168,85,247,0.3) 100%) 1;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  margin-bottom: 28px;
  position: relative;
}

.terminal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.terminal-card-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.18) 0%, rgba(0, 245, 255, 0.05) 100%);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.terminal-tag-purple {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0.06) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--purple-light);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 0;
}

.btn-cyan {
  background: linear-gradient(180deg, #5ef7ff 0%, #00d4eb 50%, #009eb0 100%);
  color: #040711;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 18px rgba(0, 245, 255, 0.35);
}
.btn-cyan:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 26px rgba(0, 245, 255, 0.6);
  transform: translateY(-1px);
}

.btn-purple {
  background: linear-gradient(180deg, #c084fc 0%, #a855f7 50%, #7928ca 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 18px rgba(168, 85, 247, 0.35);
}
.btn-purple:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 26px rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
}

.btn-terminal {
  background: linear-gradient(180deg, rgba(28, 44, 76, 0.8) 0%, rgba(12, 20, 36, 0.95) 100%);
  border: 1px solid rgba(0, 245, 255, 0.35);
  color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-terminal:hover {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.25) 0%, rgba(18, 30, 52, 0.95) 100%);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.35);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

/* ==========================================================================
   LIVE BROADCAST STAGE & SPOTLIGHT CAROUSEL
   ========================================================================== */
.offline-hero-slate {
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.8) 0%, rgba(8, 14, 26, 0.9) 100%);
  border: 1px dashed rgba(0, 245, 255, 0.35);
  border-radius: 8px;
  padding: 36px 20px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.slate-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.offline-hero-slate h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.offline-hero-slate p {
  color: var(--text-muted);
  max-width: min(850px, 90%);
  margin: 0 auto 20px auto;
  font-size: 0.95rem;
}

.slate-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SPOTLIGHT 3D CAROUSEL */
.spotlight-carousel-section {
  margin-bottom: 28px;
}

.spotlight-carousel-inner {
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.9) 0%, rgba(9, 15, 28, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-top: 2px solid #00f5ff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.spotlight-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.spotlight-carousel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.spotlight-title-text {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.carousel-viewport {
  position: relative;
  height: 180px;
  perspective: 1000px;
  overflow: hidden;
  margin: 10px 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.spotlight-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 320px;
  height: 165px;
  margin-left: -160px;
  background: linear-gradient(180deg, rgba(22, 34, 60, 0.95) 0%, rgba(10, 16, 30, 0.98) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.spotlight-card.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 10;
  border-color: var(--cyan-bright);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.35);
}

.spotlight-card.is-prev {
  transform: translateX(-180px) scale(0.82);
  opacity: 0.55;
  z-index: 5;
}

.spotlight-card.is-next {
  transform: translateX(180px) scale(0.82);
  opacity: 0.55;
  z-index: 5;
}

.spotlight-card.is-hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.spotlight-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 8px;
}

.spotlight-card .live-badge {
  color: var(--emerald);
  font-weight: 800;
}

.spotlight-card .streamer-tag {
  color: var(--cyan-muted);
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.spotlight-card .streamer-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.spotlight-card .streamer-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

.spotlight-card .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(20, 32, 56, 0.9) 0%, rgba(8, 14, 26, 0.9) 100%);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-nav-btn:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 16px var(--cyan);
}
.carousel-nav-btn.btn-prev { left: 10px; }
.carousel-nav-btn.btn-next { right: 10px; }

.carousel-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ==========================================================================
   CLIP ARCHIVE GRID
   ========================================================================== */
.clip-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover, .tab-btn.active {
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.25) 0%, rgba(12, 22, 42, 0.95) 100%);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.35);
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}

.clip-card {
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.85) 0%, rgba(9, 15, 28, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.clip-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 245, 255, 0.25);
}

.clip-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #162442 0%, #090e1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clip-play-icon {
  font-size: 28px;
  color: var(--cyan);
  opacity: 0.8;
  transition: all 0.2s;
}
.clip-card:hover .clip-play-icon {
  transform: scale(1.15);
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 16px var(--cyan);
}

.clip-badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.clip-views {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.clip-body {
  padding: 12px;
}

.clip-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}

.clip-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   SOVEREIGN LINK-IN-BIO MATRIX
   ========================================================================== */
.bio-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
}

.bio-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.85) 0%, rgba(10, 16, 30, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bio-link-card:hover {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(28, 46, 82, 0.92) 0%, rgba(14, 22, 40, 0.98) 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.25);
}

.bio-link-icon {
  font-size: 22px;
}

.bio-link-info {
  flex: 1;
}

.bio-link-info strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 2px;
}

.bio-link-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.bio-link-arrow {
  color: var(--cyan);
  font-weight: 900;
  font-family: var(--font-mono);
}

/* ==========================================================================
   REPUTATION & DIGITAL PASSPORT
   ========================================================================== */
.reputation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
}

.rep-stat-box {
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.8) 0%, rgba(9, 15, 28, 0.92) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rep-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rep-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #ffffff 15%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rep-sub {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.store-item-card {
  background: linear-gradient(180deg, rgba(18, 28, 50, 0.85) 0%, rgba(9, 15, 28, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.store-item-card.highlight-card {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(24, 40, 72, 0.95) 0%, rgba(12, 20, 36, 0.98) 100%);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.store-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.store-item-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.store-item-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-bottom: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 48px;
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .terminal-top-inner { flex-direction: column; align-items: flex-start; }
  .terminal-nav-links { overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .tnav-link { font-size: 0.72rem; padding: 5px 8px; }
}

@media (min-width: 1200px) {
  .carousel-viewport {
    height: 195px;
  }
  .spotlight-card {
    width: 360px;
    height: 175px;
    margin-left: -180px;
  }
  .spotlight-card.is-prev {
    transform: translateX(-240px) scale(0.85);
  }
  .spotlight-card.is-next {
    transform: translateX(240px) scale(0.85);
  }
}

@media (min-width: 1920px) {
  .site-container,
  .terminal-top-inner,
  .terminal-nav-inner {
    max-width: min(1880px, 92vw);
  }
}

@media (min-width: 2560px) {
  .site-container,
  .terminal-top-inner,
  .terminal-nav-inner {
    max-width: min(2200px, 90vw);
  }
}



/* ==========================================================================
   LIVE TWITCH THEATER & CREATOR PANELS SYSTEM
   ========================================================================== */
.live-theater-section {
  margin: 18px 0 28px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.96) 0%, rgba(14, 10, 30, 0.96) 100%);
  border: 1px solid rgba(145, 70, 255, 0.45);
  box-shadow: 0 0 35px rgba(145, 70, 255, 0.18), inset 0 0 20px rgba(0, 245, 255, 0.05);
  overflow: hidden;
}

.theater-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(24, 14, 46, 0.95));
  border-bottom: 1px solid rgba(145, 70, 255, 0.3);
}

.theater-status-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ef4444;
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  text-transform: uppercase;
}

.live-pulse-ring {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff;
}

.theater-viewer-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.theater-uptime-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.theater-category-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.theater-grid {
  display: flex;
  gap: 0;
  min-height: 520px;
  background: #000;
}

.theater-stream-col {
  flex: 1 1 72%;
  display: flex;
  flex-direction: column;
  background: #000;
  min-width: 0;
}

.theater-chat-col {
  flex: 0 0 28%;
  min-width: 330px;
  display: flex;
  flex-direction: column;
  background: #0e0e10;
  border-left: 1px solid rgba(145, 70, 255, 0.35);
  min-height: 480px;
}

.chat-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #18181b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: system-ui, sans-serif;
}

.chat-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #efeff1;
  font-size: 13px;
  font-weight: 700;
}

.chat-commands-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #121216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-commands-bar::-webkit-scrollbar { display: none; }

.chat-cmd-chip {
  background: rgba(145, 70, 255, 0.18);
  border: 1px solid rgba(145, 70, 255, 0.5);
  color: #d8b4fe;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.chat-cmd-chip:hover {
  background: #9146ff;
  color: #fff;
  box-shadow: 0 0 8px rgba(145, 70, 255, 0.6);
}

.stream-meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #101424 0%, #090c18 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.streamer-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streamer-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, #1f1035, #082530);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stream-title-text {
  color: #fff;
  margin: 0 0 3px 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stream-author-sub {
  color: #94a3b8;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   TWITCH CREATOR PANELS GRID
   ========================================================================== */
.twitch-panels-section {
  margin-top: 24px;
}

.twitch-panels-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
  padding-bottom: 10px;
}

.twitch-panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.twitch-panel-card {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.94) 0%, rgba(9, 14, 26, 0.98) 100%);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(0, 245, 255, 0.03);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.twitch-panel-card:hover {
  border-color: #00f5ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 245, 255, 0.2);
  transform: translateY(-2px);
}

.twitch-panel-header {
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(8, 25, 48, 0.9), rgba(28, 12, 52, 0.85));
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.twitch-panel-header h3 {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.twitch-panel-body {
  padding: 16px;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
}

@media (max-width: 980px) {
  .theater-grid {
    flex-direction: column;
  }
  .theater-chat-col {
    min-height: 440px;
    border-left: none;
    border-top: 1px solid rgba(145, 70, 255, 0.35);
  }
}

/* ==========================================================================
   SOVEREIGN STREAMER CHRONICLES // MISSION DEBRIEFS & AI BRAIN DUMP STUDIO
   ========================================================================== */

.chronicles-admin-deck {
  background: linear-gradient(135deg, rgba(10, 16, 32, 0.95) 0%, rgba(18, 12, 38, 0.95) 100%);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 245, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.deck-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
}

.deck-title {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.deck-login-tag {
  color: #fde047;
  font-weight: 900;
  font-size: 12px;
}

.deck-badge {
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid rgba(0, 245, 255, 0.4);
  color: #00f5ff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.deck-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Analytics Retrospective Ribbon */
.chronicles-analytics-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-card {
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}

.analytics-num {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: ui-monospace, "SF Mono", monospace;
  color: #00f5ff;
  line-height: 1.2;
}

.analytics-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 4px;
  font-family: ui-monospace, monospace;
}

/* Stream Debrief Cards & Highs / Lows */
.debrief-card {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.95) 0%, rgba(9, 13, 24, 0.98) 100%);
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-left: 4px solid #00f5ff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  margin-bottom: 24px;
}

.debrief-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 255, 0.55);
  box-shadow: 0 12px 40px rgba(0, 245, 255, 0.12);
}

.debrief-card.grade-s { border-left-color: #f59e0b; }
.debrief-card.grade-a { border-left-color: #10b981; }
.debrief-card.grade-b { border-left-color: #00f5ff; }
.debrief-card.grade-c { border-left-color: #94a3b8; }

.debrief-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.debrief-badges-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.debrief-grade-pill {
  font-size: 11px;
  font-weight: 900;
  font-family: ui-monospace, monospace;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.debrief-grade-pill.grade-s {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fde047;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}
.debrief-grade-pill.grade-a {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}
.debrief-grade-pill.grade-b {
  background: rgba(0, 245, 255, 0.18);
  border: 1px solid #00f5ff;
  color: #67e8f9;
}
.debrief-grade-pill.grade-c {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid #64748b;
  color: #cbd5e1;
}

.debrief-game-pill {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.debrief-title {
  color: #fff;
  font-size: 1.4rem;
  margin: 4px 0 12px 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* The Highs & Lows Structured Blocks */
.debrief-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 840px) {
  .debrief-duo-grid { grid-template-columns: 1fr; }
}

.debrief-apex-box {
  background: linear-gradient(135deg, rgba(6, 32, 22, 0.85) 0%, rgba(3, 20, 14, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

.debrief-box-label {
  font-size: 10.5px;
  font-weight: 900;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.debrief-box-label.apex-lbl { color: #6ee7b7; }
.debrief-box-label.friction-lbl { color: #f87171; }
.debrief-box-label.takeaway-lbl { color: #38bdf8; }

.debrief-box-title {
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.debrief-box-desc {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.debrief-friction-box {
  background: linear-gradient(135deg, rgba(38, 12, 16, 0.85) 0%, rgba(24, 8, 10, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08);
}

.debrief-takeaway-box {
  background: linear-gradient(135deg, rgba(8, 24, 40, 0.85) 0%, rgba(4, 16, 28, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.debrief-story-body {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 16px;
  white-space: pre-line;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 14px;
}

/* Modals for Brain Dump & Debrief Editor */
.cyber-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cyber-modal-box {
  background: linear-gradient(135deg, #070c18 0%, #100b22 100%);
  border: 1px solid #00f5ff;
  border-radius: 14px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 245, 255, 0.25);
  color: #fff;
  position: relative;
  box-sizing: border-box;
}

.modal-header {
  position: relative;
  border-bottom: 1px solid rgba(0, 245, 255, 0.25);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.modal-header-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-badge-cyan {
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid #00f5ff;
  color: #00f5ff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.modal-badge-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #a855f7;
  color: #d8b4fe;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.modal-title {
  margin: 4px 0 6px 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.modal-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.modal-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.modal-close-btn:hover { color: #fff; }

.voice-dictation-strip {
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cyber-btn-dictate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid #a855f7;
  color: #f3e8ff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: ui-monospace, monospace;
}

.cyber-btn-dictate:hover {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

.cyber-btn-dictate.recording {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border-color: #f87171;
  color: #fff;
  animation: pulseRecording 1.4s infinite alternate;
}

@keyframes pulseRecording {
  from { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  to { box-shadow: 0 0 25px rgba(239, 68, 68, 0.9); }
}

.voice-pulse {
  color: #f87171;
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-align: center;
}

.voice-help-tip {
  color: #64748b;
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  box-sizing: border-box;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #00f5ff;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}

.cyber-btn-transform {
  background: linear-gradient(135deg, #00f5ff 0%, #0284c7 100%);
  border: 1px solid #38bdf8;
  color: #020617;
  font-weight: 900;
  font-size: 13.5px;
  font-family: ui-monospace, monospace;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cyber-btn-transform:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00f5ff 100%);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
  transform: translateY(-1px);
}

.cyber-btn-cancel {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.cyber-btn-cancel:hover {
  color: #fff;
  border-color: #64748b;
}

.synthesis-progress {
  margin-top: 14px;
  padding: 12px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px dashed #00f5ff;
  border-radius: 6px;
  color: #67e8f9;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

