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

:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --border: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.3);
  --amber: #f59e0b;
}

html, body {
  min-height: 100%;
  background: radial-gradient(ellipse at center top, #111827 0%, var(--bg) 70%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 3.5rem;
}

/* Live Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 9999px;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  animation: fadeInUp 0.8s ease-out both, badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3), 0 0 30px rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5), 0 0 50px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.7);
  }
}

.badge__dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--red-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 60px var(--red-glow), 0 0 120px rgba(239, 68, 68, 0.15); }
  50% { text-shadow: 0 0 80px var(--red-glow), 0 0 160px rgba(239, 68, 68, 0.25); }
}

@keyframes glowAmber {
  0%, 100% { text-shadow: 0 0 40px rgba(245, 158, 11, 0.3); }
  50% { text-shadow: 0 0 60px rgba(245, 158, 11, 0.5); }
}

@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Main Debt Section */
.main-debt {
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.main-debt__label {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.main-debt__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
  animation: glow 3s ease-in-out infinite;
}

.main-debt__currency {
  font-size: 0.5em;
  vertical-align: top;
  margin-right: 0.05em;
}

.main-debt__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Interest Section */
.interest-section {
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.interest-section__label {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.interest-section__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--red);
  animation: glow 3s ease-in-out infinite;
}

/* Session Counters */
.session-counters {
  display: flex;
  gap: 6rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.session-item {
  text-align: center;
}

.session-item__label {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.session-item__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
}

.session-item__value--debt {
  color: var(--red);
  animation: glow 3s ease-in-out infinite;
}

.session-item__value--interest {
  color: var(--amber);
  animation: glowAmber 3s ease-in-out infinite;
}

.session-item__time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Comparison Section */
.comparison-section {
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.comparison-section__label {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.comparison-counters {
  display: flex;
  gap: 4rem;
  justify-content: center;
}

.comparison-item {
  text-align: center;
}

.comparison-item__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #22c55e;
  animation: glowGreen 3s ease-in-out infinite;
}

.comparison-item__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comparison-item__sub {
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

@keyframes glowGreen {
  0%, 100% { text-shadow: 0 0 40px rgba(34, 197, 94, 0.3); }
  50% { text-shadow: 0 0 60px rgba(34, 197, 94, 0.5); }
}

/* Footer */
.footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.authorisation {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -2rem;
  opacity: 0.7;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

@media (max-width: 768px) {
  .authorisation {
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .authorisation {
    margin-top: 0.25rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  .main-debt__label {
    font-size: 1rem;
  }

  .main-debt__value {
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .interest-section__label {
    font-size: 0.9rem;
  }

  .interest-section__value {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .session-counters {
    flex-direction: column;
    gap: 2rem;
  }

  .session-item__label {
    font-size: 0.85rem;
  }

  .session-item__value {
    font-size: clamp(1.25rem, 4vw, 2rem);
  }

  .comparison-section__label {
    font-size: 0.9rem;
  }

  .comparison-counters {
    gap: 2rem;
  }

  .comparison-item__value {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .comparison-item__label {
    font-size: 0.75rem;
  }

  .comparison-item__sub {
    font-size: 0.45rem;
  }

  .footer {
    font-size: 0.6rem;
    padding: 0 1rem;
  }

  .authorisation {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 0.75rem;
    gap: 1.5rem;
  }

  .badge {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
  }

  .main-debt__label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .main-debt__value {
    font-size: clamp(1.5rem, 7vw, 3rem);
  }

  .main-debt__note {
    font-size: 0.65rem;
  }

  .interest-section__label {
    font-size: 0.75rem;
  }

  .interest-section__value {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  .session-item__label {
    font-size: 0.7rem;
  }

  .session-item__value {
    font-size: clamp(1.1rem, 4vw, 1.75rem);
  }

  .session-item__time {
    font-size: 0.7rem;
  }

  .comparison-section__label {
    font-size: 0.7rem;
  }

  .comparison-counters {
    gap: 1.5rem;
  }

  .comparison-item__value {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .comparison-item__label {
    font-size: 0.6rem;
  }

  .comparison-item__sub {
    font-size: 0.4rem;
  }

  .footer {
    font-size: 0.5rem;
  }

  .authorisation {
    font-size: 0.45rem;
  }
}
