/* CSS Reset & Variables */
:root {
  --bg-dark: #0a0d14;
  --card-bg: rgba(18, 24, 38, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
  --input-bg: rgba(15, 23, 42, 0.85);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 1.5rem;
}

/* Background Glowing Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  animation: float 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #6366f1, #3b82f6);
  top: -100px;
  left: -80px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ec4899, #a855f7);
  bottom: -150px;
  right: -100px;
  animation-duration: 18s;
  animation-delay: -5s;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #06b6d4, #10b981);
  top: 40%;
  left: 60%;
  animation-duration: 22s;
  animation-delay: -9s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
  100% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

/* Main Container & Card */
.container {
  width: 100%;
  max-width: 680px;
  z-index: 1;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

/* Status Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Typography */
.title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

/* Progress Indicator */
.progress-container {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

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

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  padding: 1px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--accent-gradient);
  transition: width 1s ease-in-out;
}

/* Countdown Grid */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.time-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1rem 0.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.time-block:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.time-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.time-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* Form Styles */
.notify-wrapper {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.notify-form {
  display: flex;
  gap: 8px;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-form:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.notify-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.notify-form input::placeholder {
  color: #64748b;
}

.notify-form button {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.notify-form button:hover {
  opacity: 0.92;
  transform: translateX(1px);
}

.arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.notify-form button:hover .arrow-icon {
  transform: translateX(3px);
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  min-height: 1.25rem;
  transition: opacity 0.3s;
}

.form-message.success {
  color: #34d399;
}

.form-message.error {
  color: #f87171;
}

/* Footer & Socials */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright {
  font-size: 0.85rem;
  color: #64748b;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

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

/* Responsiveness */
@media (max-width: 600px) {
  .card {
    padding: 2.25rem 1.5rem;
    border-radius: 20px;
  }

  .title {
    font-size: 2.1rem;
  }

  .countdown-grid {
    gap: 0.5rem;
  }

  .time-value {
    font-size: 1.5rem;
  }

  .time-label {
    font-size: 0.65rem;
  }

  .notify-form {
    flex-direction: column;
    padding: 8px;
  }

  .notify-form button {
    justify-content: center;
    width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
  }
}
