:root {
  --bg: #0a0e1a;
  --bg-elevated: #0f1525;
  --bg-card: rgba(15, 21, 37, 0.6);
  --bg-input: rgba(20, 28, 48, 0.5);
  --bg-hover: rgba(30, 42, 69, 0.5);
  --border: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(59, 130, 246, 0.5);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --glow-blue: rgba(59,130,246,0.2);
  --glow-green: rgba(16,185,129,0.2);
  --glow-yellow: rgba(245,158,11,0.2);
  --glow-red: rgba(239,68,68,0.2);
  --glass-bg: rgba(15, 21, 37, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 700px; height: 700px; background: var(--accent-blue); top: -20%; left: -15%; animation: orbFloat 22s ease-in-out infinite; }
.orb-2 { width: 600px; height: 600px; background: var(--accent-purple); bottom: -20%; right: -10%; animation: orbFloat 28s ease-in-out infinite reverse; }
.orb-3 { width: 500px; height: 500px; background: var(--accent-cyan); top: 40%; left: 60%; animation: orbFloat 18s ease-in-out infinite 5s; }
.orb-4 { width: 400px; height: 400px; background: var(--accent-pink); top: 60%; left: 10%; animation: orbFloat 25s ease-in-out infinite 8s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -60px) scale(1.15); }
  50% { transform: translate(-40px, 70px) scale(0.9); }
  75% { transform: translate(60px, 40px) scale(1.05); }
}

.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleAnim 18s linear infinite;
  box-shadow: 0 0 6px var(--accent-blue);
}
@keyframes particleAnim {
  0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10% { opacity: 0.4; transform: translateY(90vh) translateX(20px) scale(1); }
  90% { opacity: 0.4; transform: translateY(10vh) translateX(80px) scale(1); }
  100% { transform: translateY(-10vh) translateX(100px) scale(0); opacity: 0; }
}

/* ===== GLASSMORPHISM BASE ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.card-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.glass-card:hover .card-shine {
  left: 150%;
}

.glass-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.glass-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--glow-blue), 0 0 30px rgba(59,130,246,0.15);
  background: rgba(20, 28, 48, 0.7);
}

.glass-btn {
  background: linear-gradient(135deg, rgba(59,130,246,0.8), rgba(6,182,212,0.8));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.glass-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glass-btn:hover::before { opacity: 1; }
.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.4), 0 0 0 1px rgba(59,130,246,0.2);
}

.glass-btn-danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(220,38,38,0.1));
  border: 1px solid rgba(239,68,68,0.2);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
}
.glass-btn-danger:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(239,68,68,0.1);
  box-shadow: 0 8px 24px rgba(239,68,68,0.2);
}

.glass-btn-sm {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}
.glass-btn-sm:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.glass-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(239,68,68,0.05));
  border: 1px solid rgba(245,158,11,0.2);
  backdrop-filter: blur(12px);
}

.glass-track {
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}

.glass-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.glass-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.glass-stat:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.2);
}

.glass-header {
  background: rgba(15, 21, 37, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 24px;
}

/* ===== INPUT GLOW EFFECT ===== */
.input-glass-wrapper {
  position: relative;
}
.input-glow {
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}
.input-field:focus ~ .input-glow {
  opacity: 0.4;
}

/* ===== GLASS TOGGLE ===== */
.glass-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glass-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 20px rgba(6,182,212,0.2);
}
.glass-toggle.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6,182,212,0.15);
  box-shadow: 0 0 20px rgba(6,182,212,0.3);
}

/* ===== APP LAYOUT ===== */
.app {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  text-align: center; margin-bottom: 8px;
  animation: fadeInDown 0.8s ease-out;
}
.header-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  color: var(--accent-blue); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
}
.header-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent-blue); border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
.header h1 {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, #f1f5f9 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}

/* ===== TOP ROW ===== */
.top-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-muted); margin-bottom: 8px; padding-left: 4px;
}

/* ===== COLUMNS ===== */
.left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInLeft 0.8s ease-out 0.1s both;
}

.center-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== SCORE RING ===== */
.score-ring-section {
  display: flex; justify-content: center; padding: 20px 0;
  border-radius: 20px;
}
.score-ring-wrapper { position: relative; width: 260px; height: 260px; }
.score-ring-svg { transform: rotate(-90deg); width: 100%; height: 100%; filter: drop-shadow(0 0 15px var(--glow-blue)); transition: filter 0.5s ease; }
.score-ring-svg.pass { filter: drop-shadow(0 0 20px var(--glow-green)); }
.score-ring-svg.warning { filter: drop-shadow(0 0 20px var(--glow-yellow)); }
.score-ring-svg.fail { filter: drop-shadow(0 0 20px var(--glow-red)); }
.score-ring-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 12; }
.score-ring-fill { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease; }
.score-ring-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.score-ring-percentage { font-family: 'JetBrains Mono', monospace; font-size: 3.2rem; font-weight: 700; line-height: 1; transition: color 0.5s ease; }
.score-ring-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }
.score-ring-status { font-size: 0.8rem; font-weight: 600; margin-top: 8px; padding: 4px 16px; border-radius: 100px; display: inline-block; transition: all 0.5s ease; }

.ring-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
}
.ring-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  opacity: 0;
}
@keyframes ringParticleFloat {
  0% { opacity: 1; transform: scale(0) translate(0, 0); }
  50% { opacity: 0.8; transform: scale(1.2) translate(-10px, -20px); }
  100% { opacity: 0; transform: scale(0) translate(-20px, -40px); }
}

/* ===== CARDS ===== */
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.card-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.glass-card:hover .card-icon { transform: scale(1.1) rotate(5deg); }
.icon-blue { background: rgba(59,130,246,0.12); }
.icon-green { background: rgba(16,185,129,0.12); }
.icon-purple { background: rgba(139,92,246,0.12); }
.icon-cyan { background: rgba(6,182,212,0.12); }
.icon-yellow { background: rgba(245,158,11,0.12); }

/* ===== INPUTS ===== */
.input-group { margin-bottom: 14px; }
.input-group:last-child { margin-bottom: 0; }
.input-label { display: block; font-size: 0.7rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-field {
  width: 100%; border-radius: 12px; padding: 14px 16px; padding-left: 44px;
  color: var(--text); font-family: 'JetBrains Mono', monospace;
  font-size: 1rem; font-weight: 500; outline: none;
}
.input-field::placeholder { color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 400; }
.input-field.auto-calculated { border-color: rgba(16,185,129,0.4); box-shadow: 0 0 0 2px rgba(16,185,129,0.1); }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; opacity: 0.6; pointer-events: none; transition: opacity 0.2s ease, transform 0.3s ease; }
.input-field:focus ~ .input-icon { opacity: 1; transform: translateY(-50%) scale(1.15); }
.input-suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 0.7rem; color: var(--text-muted); font-weight: 600; pointer-events: none; }
.auto-badge { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 0.6rem; color: var(--accent-green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; pointer-events: none; display: none; animation: fadeIn 0.3s ease; }
.auto-calculated ~ .auto-badge { display: block; }
.auto-calculated ~ .input-suffix { display: none; }

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.stat-item {
  border-radius: 16px; padding: 24px 12px; text-align: center;
  transition: all 0.3s ease; position: relative; overflow: hidden; cursor: pointer;
}
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan)); opacity: 0; transition: opacity 0.3s ease;
}
.stat-item:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(59,130,246,0.3); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.stat-item:hover::before { opacity: 1; }
.stat-item:active { transform: translateY(-2px) scale(0.98); }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 2.2rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 8px; transition: all 0.3s ease; }
.stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 12px; }
.stat-controls { display: flex; gap: 8px; justify-content: center; }
.stat-btn { width: 32px; height: 32px; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; line-height: 1; }
.stat-btn.minus { color: var(--text-secondary); }
.stat-btn.minus:hover { background: rgba(255,255,255,0.1); transform: scale(1.15); }
.stat-btn.plus { color: white; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.stat-btn.plus:hover { transform: scale(1.2); }
.stat-btn.plus:active { transform: scale(0.95); }
.stat-btn.plus.release { background: linear-gradient(135deg, #10b981, #059669); }
.stat-btn.plus.release:hover { box-shadow: 0 4px 16px rgba(16,185,129,0.5); }
.stat-btn.plus.drop { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-btn.plus.drop:hover { box-shadow: 0 4px 16px rgba(239,68,68,0.5); }
.stat-btn.plus.calls { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-btn.plus.calls:hover { box-shadow: 0 4px 16px rgba(139,92,246,0.5); }

/* ===== TARGET BOX ===== */
.target-box { text-align: center; padding: 24px; border-radius: 16px; border: 2px solid; transition: all 0.5s ease; position: relative; overflow: hidden; }
.target-box::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: rotate 8s linear infinite; opacity: 0; transition: opacity 0.5s ease;
}
.target-box:hover::after { opacity: 1; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.target-box.on-track { border-color: var(--accent-green); background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02)); }
.target-box.needs-work { border-color: var(--accent-yellow); background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02)); }
.target-box.critical { border-color: var(--accent-red); background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02)); }
.target-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; font-weight: 600; }
.target-value { font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 700; margin: 10px 0; line-height: 1.3; position: relative; z-index: 1; }
.target-box.on-track .target-value { color: var(--accent-green); }
.target-box.needs-work .target-value { color: var(--accent-yellow); }
.target-box.critical .target-value { color: var(--accent-red); }
.target-detail { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; position: relative; z-index: 1; }

/* ===== STREAK ===== */
.streak-banner { display: none; align-items: center; gap: 10px; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; animation: fadeInUp 0.5s ease-out, glowPulse 2s ease-in-out infinite; }
.streak-banner.active { display: flex; }
.streak-icon { font-size: 1.4rem; animation: float 2s ease-in-out infinite; }
.streak-count { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; font-weight: 700; color: var(--accent-yellow); }
.streak-label { font-size: 0.7rem; color: var(--text-secondary); }

/* ===== PROGRESS BAR ===== */
.progress-track { width: 100%; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 12px; position: relative; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease; position: relative; overflow: hidden; }
.progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shimmer 2s infinite; }

/* ===== RESET BUTTON ===== */
.reset-btn {
  width: 100%; padding: 16px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px;
}
.reset-btn:hover { transform: translateY(-2px); }
.reset-btn:active { transform: translateY(0); }

/* ===== CONFETTI ===== */
.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti-piece { position: absolute; width: 8px; height: 8px; top: -10px; animation: confettiFall linear forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

/* ===== APP GLOW ===== */
.app-glow { position: fixed; inset: -20px; border-radius: 30px; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1s ease, box-shadow 1s ease, border-color 1s ease; border: 2px solid transparent; }
.app-glow.active-pass { opacity: 1; box-shadow: 0 0 60px rgba(16,185,129,0.15), inset 0 0 60px rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.2); animation: glowPulse 3s ease-in-out infinite; }
.app-glow.active-warning { opacity: 1; box-shadow: 0 0 60px rgba(245,158,11,0.15), inset 0 0 60px rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.2); animation: glowPulse 3s ease-in-out infinite; }
.app-glow.active-fail { opacity: 1; box-shadow: 0 0 60px rgba(239,68,68,0.15), inset 0 0 60px rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.2); animation: glowPulse 3s ease-in-out infinite; }

/* ===== PARTICLE BURST ===== */
.particle-burst {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
}
.burst-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: burstFly 0.6s ease-out forwards;
}
@keyframes burstFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ===== GLASSMORPHISM MODE ===== */
body.glass-mode .glass-card {
  background: rgba(21, 28, 44, 0.6) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
body.glass-mode .bg-orb {
  opacity: 0.25;
}
body.glass-mode .score-ring-svg {
  filter: drop-shadow(0 0 15px var(--glow-blue));
}
body.glass-mode .input-field {
  background: rgba(26, 35, 56, 0.5) !important;
  backdrop-filter: blur(8px);
}
body.glass-mode .stat-item {
  background: rgba(26, 35, 56, 0.5) !important;
  backdrop-filter: blur(8px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes countUp { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cardFloatIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  60% { transform: translateY(-5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 5px rgba(59,130,246,0.2); } 50% { box-shadow: 0 0 20px rgba(59,130,246,0.4); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.animate-number { animation: countUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

.orb-pass { background: var(--accent-green); }
.orb-warning { background: var(--accent-yellow); }
.orb-fail { background: var(--accent-red); }
.orb-start { background: var(--accent-blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .top-row { grid-template-columns: 320px 1fr; }
  .score-ring-wrapper { width: 220px; height: 220px; }
  .score-ring-percentage { font-size: 2.8rem; }
}

@media (max-width: 900px) {
  .app { padding: 24px 20px; }
  .top-row { grid-template-columns: 1fr; }
  .score-ring-wrapper { width: 200px; height: 200px; }
  .score-ring-percentage { font-size: 2.4rem; }
  .stat-value { font-size: 1.8rem; }
}

@media (max-width: 640px) {
  .app { padding: 20px 16px; }
  .header h1 { font-size: 1.6rem; }
  .score-ring-wrapper { width: 180px; height: 180px; }
  .score-ring-percentage { font-size: 2.2rem; }
  .stats-grid { gap: 8px; }
  .stat-value { font-size: 1.4rem; }
  .glass-card { padding: 18px; }
  .glass-toggle { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
}
/* ===== NPS STAT INPUTS ===== */
.stat-input {
  width: 100%;
  max-width: 100px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}
.stat-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--glow-blue), 0 0 20px rgba(59,130,246,0.15);
  background: rgba(20, 28, 48, 0.7);
}
.stat-item:hover .stat-input {
  border-color: rgba(59,130,246,0.2);
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ===== NPS RULES BOX ===== */
.rules-box { display: flex; flex-direction: column; gap: 12px; }
.rule-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); transition: all 0.2s ease; }
.rule-row:hover { background: rgba(255,255,255,0.05); }
.rule-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rule-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }
.rule-text strong { color: var(--text); }

/* ===== NPS ROW SPACING ===== */
.nps-row { margin-top: 8px; }
