/* ==========================================================================
   DEVCAATS — Under Construction / Coming Soon Stylesheet
   Modern Glassmorphism, Cyber Dark Mode & Interactive Animations
   ========================================================================== */

:root {
  /* Core Cyber Palette */
  --bg-primary: #08090d;
  --bg-secondary: #0e111a;
  --bg-card: rgba(18, 22, 34, 0.72);
  --bg-card-hover: rgba(24, 30, 48, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 245, 160, 0.35);
  
  --text-main: #f3f5f9;
  --text-muted: #8b95a5;
  --text-dim: #545e6f;
  
  --accent-primary: #00f5a0;
  --accent-secondary: #00d2ff;
  --accent-amber: #ffb703;
  --accent-pink: #ff2a85;
  --accent-purple: #7928ca;

  --glow-primary: rgba(0, 245, 160, 0.25);
  --glow-secondary: rgba(0, 210, 255, 0.25);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme Variations */
[data-theme="matrix"] {
  --bg-primary: #040804;
  --bg-secondary: #071008;
  --bg-card: rgba(8, 24, 12, 0.8);
  --bg-card-hover: rgba(12, 36, 18, 0.9);
  --border-subtle: rgba(0, 255, 100, 0.15);
  --border-accent: rgba(0, 255, 100, 0.5);
  --accent-primary: #00ff66;
  --accent-secondary: #39ff14;
  --glow-primary: rgba(0, 255, 100, 0.3);
}

[data-theme="tokyo"] {
  --bg-primary: #090614;
  --bg-secondary: #120c24;
  --bg-card: rgba(26, 16, 48, 0.75);
  --bg-card-hover: rgba(38, 24, 70, 0.88);
  --border-subtle: rgba(255, 42, 133, 0.15);
  --border-accent: rgba(255, 42, 133, 0.5);
  --accent-primary: #ff2a85;
  --accent-secondary: #00d2ff;
  --glow-primary: rgba(255, 42, 133, 0.3);
}

[data-theme="amber"] {
  --bg-primary: #0e0904;
  --bg-secondary: #171007;
  --bg-card: rgba(32, 20, 10, 0.78);
  --bg-card-hover: rgba(48, 30, 15, 0.9);
  --border-subtle: rgba(255, 183, 3, 0.18);
  --border-accent: rgba(255, 183, 3, 0.5);
  --accent-primary: #ffb703;
  --accent-secondary: #fb8500;
  --glow-primary: rgba(255, 183, 3, 0.3);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ==========================================================================
   Background Ambient Elements
   ========================================================================== */

#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.glow-1 {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.glow-2 {
  bottom: 5%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

.glow-3 {
  top: 40%;
  left: -150px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
  opacity: 0.2;
}

/* ==========================================================================
   App Shell Layout
   ========================================================================== */

.app-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 2.5rem;
  position: sticky;
  top: 1.25rem;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: rotate(8deg) scale(1.08);
}

.nav-brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-accent {
  color: var(--accent-primary);
}

.build-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

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

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.laser-trigger {
  background: rgba(255, 42, 133, 0.12);
  border-color: rgba(255, 42, 133, 0.35);
  color: #ff85b6;
}

.laser-trigger:hover {
  background: rgba(255, 42, 133, 0.25);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.4);
}

.key-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-accent);
  transform: scale(1.06);
}

/* ==========================================================================
   Hero Section
   ========================================================================= */

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem 3.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.25);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.12);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  display: inline-block;
  animation: pulse-ring 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-primary); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* 3D Mascot Stage */
.mascot-stage-container {
  perspective: 1200px;
  margin-bottom: 2.25rem;
  cursor: pointer;
  user-select: none;
}

.mascot-card {
  position: relative;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, rgba(30, 36, 56, 0.8) 0%, rgba(14, 17, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 35px var(--glow-primary);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.3s ease;
}

.mascot-card:hover {
  box-shadow: 
    0 30px 60px -10px rgba(0, 0, 0, 0.8),
    0 0 45px var(--glow-primary);
}

.mascot-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent-primary), transparent 40%, var(--accent-secondary) 80%, transparent);
  opacity: 0.4;
  z-index: -1;
  filter: blur(4px);
  transition: opacity 0.3s ease;
}

.mascot-card:hover .mascot-glow-ring {
  opacity: 0.8;
}

.mascot-visual-wrapper {
  position: relative;
  width: 175px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(35px);
  transition: transform 0.18s ease;
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.65));
  pointer-events: none;
  transition: transform 0.15s ease;
}

/* Eye Pupil Tracker Overlay */
.cat-eyes-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.eye {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Position calibrated to the mascot's eyes in logo.png */
.left-eye {
  top: 43.5%;
  left: 38.5%;
}

.right-eye {
  top: 43.5%;
  left: 59%;
}

.pupil {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.4), 0 0 2px rgba(0, 0, 0, 0.9);
  transform: translate(0, 0);
  transition: transform 0.05s ease-out;
}

/* Mascot Speech Bubble */
.mascot-bubble {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.85);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-accent);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s var(--transition-bounce);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.mascot-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.mascot-caption {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.mascot-card:hover .mascot-caption {
  opacity: 1;
  color: var(--accent-primary);
}

/* Mascot Burst Particles */
.mascot-burst-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.burst-emoji {
  position: absolute;
  font-size: 1.35rem;
  user-select: none;
  pointer-events: none;
  animation: float-away 0.85s forwards ease-out;
}

@keyframes float-away {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(var(--rot));
  }
}

/* Typography */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 2.75rem;
}

/* ==========================================================================
   Flip Countdown Ticker
   ========================================================================== */

.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.flip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  min-width: 78px;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.flip-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.flip-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.flip-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}

.unit-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.cd-divider {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: -1.2rem;
  opacity: 0.6;
  animation: blink-divider 1.5s infinite;
}

@keyframes blink-divider {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.2; }
}

/* ==========================================================================
   Early Access Form
   ========================================================================== */

.early-access-box {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notify-form {
  width: 100%;
  position: relative;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.45rem 0.4rem 1.15rem;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(0, 245, 160, 0.05);
  backdrop-filter: blur(14px);
  transition: all var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 25px var(--glow-primary);
}

.input-icon {
  font-size: 1.1rem;
  margin-right: 0.5rem;
  opacity: 0.8;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #fff;
}

.input-group input::placeholder {
  color: var(--text-dim);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-primary) 0%, #00d984 100%);
  color: #08090d;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px var(--glow-primary);
}

.submit-btn:active {
  transform: scale(0.98);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.form-feedback {
  font-size: 0.82rem;
  margin-top: 0.6rem;
  min-height: 1.2rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-feedback.error {
  color: #ff5e7e;
}

.form-feedback.success {
  color: var(--accent-primary);
}

.early-access-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* ==========================================================================
   Bento Grid Section
   ========================================================================== */

.bento-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* Bento Card 1: Interactive Terminal */
.card-terminal {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
}

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

.terminal-dots {
  display: flex;
  gap: 0.35rem;
}

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

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

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.25);
  color: var(--accent-primary);
}

.terminal-body {
  flex: 1;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  word-break: break-word;
}

.system-welcome {
  color: var(--accent-primary);
  font-weight: 700;
}

.term-hl {
  color: var(--accent-amber);
  font-weight: 600;
}

.term-cmd {
  color: var(--accent-secondary);
  background: rgba(0, 210, 255, 0.1);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.term-prompt {
  color: var(--accent-primary);
  font-weight: 600;
  white-space: nowrap;
}

.terminal-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fff;
  caret-color: var(--accent-primary);
}

.card-footer-tip {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Bento Card 2: Progress Tracker */
.card-progress {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-icon-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-icon {
  font-size: 1.2rem;
}

.live-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-primary);
  background: rgba(0, 245, 160, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 245, 160, 0.2);
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 0.4rem;
}

.task-name {
  color: var(--text-main);
  font-weight: 500;
}

.task-pct {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 600;
}

.progress-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: var(--target-pct, 0%);
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--glow-primary);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.treat-fill {
  background: linear-gradient(90deg, var(--accent-amber), #ffd166);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.4);
}

.build-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.55rem 0.4rem;
  border-radius: var(--radius-sm);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Bento Card 3: Audio & Lofi Synth */
.card-audio-panel {
  grid-column: span 6;
}

.audio-state-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.audio-state-tag.playing {
  color: var(--accent-primary);
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.25);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.synth-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.synth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.synth-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-accent);
}

.synth-btn.active {
  background: rgba(0, 245, 160, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 15px var(--glow-primary);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-control input[type="range"] {
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.visualizer-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.viz-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: height 0.08s ease, background-color 0.2s ease;
}

.visualizer-container.playing .viz-bar {
  background: var(--accent-primary);
  animation: equalizer 0.6s infinite alternate ease-in-out;
}

.visualizer-container.playing .viz-bar:nth-child(2n) { animation-delay: 0.12s; }
.visualizer-container.playing .viz-bar:nth-child(3n) { animation-delay: 0.24s; }
.visualizer-container.playing .viz-bar:nth-child(4n) { animation-delay: 0.36s; }

@keyframes equalizer {
  0% { height: 6px; }
  100% { height: 32px; }
}

/* Bento Card 4: Laser Pointer Mini-Banner */
.card-laser-banner {
  grid-column: span 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.08) 0%, rgba(18, 22, 34, 0.85) 100%);
  border-color: rgba(255, 42, 133, 0.25);
}

.laser-card-content {
  flex: 1;
}

.laser-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #ff5e9e;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.laser-card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.laser-card-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  max-width: 320px;
}

.btn-laser-start {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff2a85 0%, #ff5e9e 100%);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-laser-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 42, 133, 0.5);
}

.laser-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 90px;
  height: 90px;
}

.art-paw {
  font-size: 3.5rem;
  opacity: 0.4;
  animation: paw-wiggle 2.5s infinite ease-in-out;
}

.art-laser-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff0055;
  box-shadow: 0 0 15px #ff0055, 0 0 30px #ff0055;
  animation: laser-circle 3s infinite ease-in-out;
}

@keyframes paw-wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(10deg); }
}

@keyframes laser-circle {
  0% { transform: translate(-20px, -20px); }
  33% { transform: translate(25px, -15px); }
  66% { transform: translate(15px, 25px); }
  100% { transform: translate(-20px, -20px); }
}

/* ==========================================================================
   Keyboard Shortcuts Strip
   ========================================================================== */

.shortcuts-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.shortcuts-container {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  justify-content: center;
}

.shortcuts-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
}

.shortcut-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.shortcut-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Laser Game Layer & Paw Physics
   ========================================================================== */

.laser-game-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9990;
  pointer-events: none;
}

body.laser-mode-active,
body.laser-mode-active * {
  cursor: none !important;
}

.laser-game-layer.hidden {
  display: none;
}

.laser-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff0055;
  box-shadow: 
    0 0 10px #ff0055,
    0 0 25px #ff0055,
    0 0 50px rgba(255, 0, 85, 0.8);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.laser-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 0, 85, 0.6);
  border-radius: 50%;
  animation: spin-reticle 4s linear infinite;
}

@keyframes spin-reticle {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cat-paw-swat {
  position: absolute;
  width: 130px;
  height: 240px;
  pointer-events: none;
  z-index: 9995;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Laser HUD */
.laser-hud {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: auto;
}

.laser-hud.hidden {
  display: none;
}

.hud-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(14, 17, 26, 0.9);
  border: 1px solid rgba(255, 42, 133, 0.5);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  box-shadow: 0 10px 30px rgba(255, 42, 133, 0.3);
  backdrop-filter: blur(14px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.hud-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ff5e9e;
  font-weight: 700;
}

.hud-score {
  font-weight: 700;
  color: var(--accent-primary);
}

.hud-combo {
  color: var(--accent-amber);
}

.hud-exit-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hud-exit-btn:hover {
  background: #ff2a85;
  border-color: #ff2a85;
}

/* Score Popups */
.score-popup {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 245, 160, 0.8);
  pointer-events: none;
  z-index: 9998;
  animation: float-score 0.75s forwards ease-out;
}

@keyframes float-score {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50px) scale(1.2);
  }
}

/* ==========================================================================
   VIP Ticket Modal Dialog
   ========================================================================== */

.ticket-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99990;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ticket-modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop-close {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-dialog-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  width: 100%;
}

.modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ff5e7e;
  border-color: #ff5e7e;
}

/* Ticket Card */
.ticket-card {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, #161b2b 0%, #0d101a 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 245, 160, 0.2);
  overflow: hidden;
}

.ticket-holo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.08) 35%, rgba(0, 245, 160, 0.12) 50%, rgba(255, 42, 133, 0.12) 65%, transparent 80%);
  background-size: 200% 200%;
  animation: holo-sweep 4s infinite linear;
  pointer-events: none;
}

@keyframes holo-sweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  margin-bottom: 1.5rem;
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticket-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ticket-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.ticket-tier {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
}

.ticket-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.ticket-user-info {
  margin-bottom: 1.25rem;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.info-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.m-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}

.priority-val {
  color: var(--accent-amber);
}

.active-status {
  color: var(--accent-primary);
}

.ticket-barcode-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.barcode-lines {
  width: 100%;
  height: 38px;
  background: repeating-linear-gradient(
    90deg,
    #fff,
    #fff 2px,
    transparent 2px,
    transparent 5px,
    #fff 5px,
    #fff 8px,
    transparent 8px,
    transparent 10px
  );
  opacity: 0.75;
}

.barcode-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.ticket-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.25rem;
}

.modal-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background: var(--accent-primary);
  color: #08090d;
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--glow-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Confetti Canvas
   ========================================================================== */

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  opacity: 0.8;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: #fff;
  border-color: var(--border-accent);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
  .card-terminal {
    grid-column: span 12;
  }
  .card-progress {
    grid-column: span 12;
  }
  .card-audio-panel {
    grid-column: span 12;
  }
  .card-laser-banner {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .app-wrapper {
    padding: 1rem 0.75rem 2rem;
  }
  .navbar {
    margin-bottom: 1.5rem;
    padding: 0.6rem 0.85rem;
  }
  .build-badge {
    display: none;
  }
  .btn-text, .key-hint {
    display: none;
  }
  .nav-pill-btn {
    padding: 0.45rem 0.6rem;
  }
  .countdown-container {
    gap: 0.4rem;
  }
  .flip-card {
    min-width: 62px;
    padding: 0.65rem 0.8rem;
  }
  .flip-number {
    font-size: 1.7rem;
  }
  .cd-divider {
    font-size: 1.4rem;
    margin-top: -0.8rem;
  }
  .input-group {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 0.85rem;
    gap: 0.75rem;
  }
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-left {
    flex-direction: column;
  }
  .modal-actions {
    flex-direction: column;
  }
}
