/* --------------------------------------------------------------------------
   Gavinder Singh - Machine Learning Engineer Interactive Showcase Style
   Aesthetic: Deep Space Cyberpunk / Precision Neural HUD / Glassmorphic
-------------------------------------------------------------------------- */

:root {
  --bg-dark: #07090e;
  --bg-surface: rgba(14, 18, 27, 0.7);
  --bg-card: rgba(19, 24, 38, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --green: #10b981;
  --red: #f43f5e;
  --purple: #a855f7;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
  min-height: 100vh;
  position: relative;
}

/* Custom Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  transition: transform 0.08s ease-out, opacity 0.3s ease;
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.glow-2 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#matrixCanvas.active {
  opacity: 0.28;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-symbol {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.85rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.accent-dot {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cyber-btn-sm {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.cyber-btn-sm:hover {
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 15px var(--primary-glow);
}

.github-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.github-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* --------------------------------------------------------------------------
   Sticky Frame Motion Scroller
-------------------------------------------------------------------------- */
.scroller-container {
  position: relative;
  width: 100%;
  height: 400vh; /* 4 virtual stages to drive smooth scrubbing */
  z-index: 10;
}

.sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#neuralCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
}

#neuralCanvas:active {
  cursor: grabbing;
}

/* HUD Overlay */
.hud-top-left {
  position: absolute;
  top: 5.5rem;
  left: 2.5rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  pointer-events: none;
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  width: fit-content;
  color: var(--text-muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hud-metric-row {
  display: flex;
  gap: 0.6rem;
  background: rgba(14, 18, 27, 0.7);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border-left: 2px solid var(--primary);
  width: fit-content;
}

.metric-label {
  color: var(--text-dim);
}

.accent-cyan { color: var(--cyan); }
.accent-purple { color: var(--purple); font-weight: 700; }
.accent-green { color: var(--green); font-weight: 700; }
.accent-red { color: var(--red); font-weight: 700; }

.hud-top-right {
  position: absolute;
  top: 5.5rem;
  right: 2.5rem;
  z-index: 20;
  pointer-events: none;
}

.hud-card {
  display: flex;
  gap: 1.5rem;
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-mono);
}

.hud-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hud-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.hud-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Center Dynamic Annotation */
.frame-annotation {
  position: absolute;
  bottom: 5.5rem;
  left: 2.5rem;
  max-width: 580px;
  z-index: 20;
  pointer-events: none;
  background: rgba(10, 14, 22, 0.8);
  backdrop-filter: blur(14px);
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--cyan);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.annotation-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.annotation-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.annotation-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Controls Hint */
.controls-hint {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
}

.key-badge-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.key-cap {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}

/* Progress Bar Track */
.progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 30;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
  transition: width 0.08s ease-out;
}

/* --------------------------------------------------------------------------
   Content Wrapper & Sections
-------------------------------------------------------------------------- */
.content-wrapper {
  position: relative;
  z-index: 20;
  background: linear-gradient(to bottom, transparent, var(--bg-dark) 8%, var(--bg-dark));
  padding-top: 5rem;
}

.section-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 650px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow);
}

.stat-box .stat-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.stat-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.icon-link {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.icon-link:hover {
  color: var(--text-main);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.project-summary {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.card-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Skills Category Grid */
.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.cat-header i {
  font-size: 1.5rem;
}

.cat-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Interactive In-Browser Terminal
-------------------------------------------------------------------------- */
.terminal-window {
  background: #0b0f19;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  background: #111726;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.term-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 250px;
  max-height: 380px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.term-line {
  color: var(--text-muted);
}

.term-line.output {
  color: #cbd5e1;
}

.term-line .highlight {
  color: var(--cyan);
  font-weight: 600;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.prompt-text {
  color: var(--primary);
  font-weight: 700;
}

#termInput {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-grow: 1;
}

.terminal-footer {
  background: #0e1422;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quick-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.term-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.term-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 2rem 2rem;
  background: #05070a;
}

.footer-content {
  max-width: 1250px;
  margin: 0 auto;
}

.footer-main {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.footer-main h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}

.footer-main p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hud-top-right { display: none; }
  .controls-hint { display: none; }
  .frame-annotation {
    left: 1rem;
    right: 1rem;
    bottom: 3.5rem;
    max-width: none;
  }
  .ai-lab-container {
    flex-direction: column !important;
  }
}

/* --------------------------------------------------------------------------
   Matrix Canvas Data Stream
-------------------------------------------------------------------------- */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#matrixCanvas.active {
  opacity: 0.35;
}

.highlight-link {
  color: var(--cyan) !important;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Interactive In-Browser AI Lab
-------------------------------------------------------------------------- */
.ai-lab-container {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem;
}

.lab-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.pad-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.pad-title {
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pad-status {
  color: var(--green);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.canvas-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.8);
  background: #05070c;
}

#drawCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  cursor: crosshair;
  z-index: 5;
}

.canvas-grid-guide {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 2;
}

.pad-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.lab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.lab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.brush-size-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: auto;
}

.brush-size-control input[type="range"] {
  accent-color: var(--cyan);
  width: 70px;
}

/* Lab Right - Telemetry & Meters */
.lab-right {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.prediction-hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.prediction-card {
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  text-align: center;
  min-width: 170px;
}

.pred-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.pred-digit {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.4rem 0;
  color: var(--green);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.pred-confidence {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.telemetry-mini {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.telemetry-item {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.tel-label {
  color: var(--text-dim);
}

.probability-meters {
  background: rgba(10, 14, 22, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1.25rem;
}

.meters-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.meter-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem 1.25rem;
}

.meter-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meter-label-wrap {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.meter-class {
  color: var(--text-main);
  font-weight: 700;
}

.meter-pct {
  color: var(--text-dim);
}

.meter-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 3px;
  transition: width 0.15s ease-out, background 0.2s ease;
}

.meter-fill.winner {
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 10px var(--green);
}

