:root {
  --bg-dark: #070B14;
  --bg-card: rgba(13, 21, 38, 0.85);
  --card-border: rgba(255, 255, 255, 0.14);
  --primary-blue: #1A56DB;
  --cyan-accent: #38BDF8;
  --purple-glow: #7C3AED;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* FULLSCREEN CAMPUS BACKGROUND IMAGE & OVERLAYS */
.hero-bg-image {
  position: fixed;
  inset: 0;
  background-image: url('assets/bg.jpg'), url('https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.55);
  transform: scale(1.04);
  pointer-events: none;
  z-index: 0;
}

.hero-bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(7, 11, 20, 0.65) 0%, rgba(7, 11, 20, 0.88) 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid-overlay {
  position: fixed;
  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: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

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

.orb-1 {
  width: 450px;
  height: 450px;
  background: var(--primary-blue);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--cyan-accent);
  bottom: -80px;
  left: 10%;
}

/* SINGLE VIEWPORT CONTAINER (RESPONSIVE) */
.single-viewport-container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* MAIN 3D GLASS PANEL */
.main-card-3d {
  width: 100%;
  max-width: 800px;
  perspective: 1200px;
}

.card-glass-panel {
  background: linear-gradient(135deg, rgba(13, 21, 38, 0.92) 0%, rgba(7, 11, 20, 0.96) 100%);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 36px 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 
    0 28px 80px rgba(0, 0, 0, 0.7),
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
}

.top-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan-accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 5px 14px;
  border-radius: 999px;
}

.insta-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.insta-link-badge:hover {
  transform: translateY(-2px);
  background: rgba(225, 48, 108, 0.22);
  color: #FF758C;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan-accent);
  box-shadow: 0 0 8px var(--cyan-accent);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.main-headline {
  font-size: clamp(30px, 6vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #FFFFFF;
}

.text-gradient {
  background: linear-gradient(135deg, #38BDF8 0%, #1A56DB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(56, 189, 248, 0.35));
}

/* COUNTDOWN GRID & CARDS */
.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  perspective: 1000px;
  margin-bottom: 22px;
  width: 100%;
  max-width: 520px;
}

.card-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.card-3d {
  position: relative;
  width: 100%;
  max-width: 96px;
  aspect-ratio: 1 / 0.94;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 
    0 16px 36px -4px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 600px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.card-top-shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.card-hover-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cyan-accent);
  box-shadow: 0 0 14px var(--cyan-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.card-3d:hover {
  transform: translateY(-4px) rotateX(8deg) scale(1.03);
  box-shadow: 0 20px 40px -4px rgba(56, 189, 248, 0.25);
}

.card-3d:hover .card-hover-glow {
  opacity: 1;
}

.digit {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  display: inline-block;
  transform-origin: center center;
  backface-visibility: hidden;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

@keyframes flip3d {
  0% { transform: rotateX(-70deg) scale(0.9); opacity: 0.4; }
  100% { transform: rotateX(0deg) scale(1); opacity: 1; }
}

.digit.flip {
  animation: flip3d 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.colon-sep {
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.4;
  height: 100%;
  display: flex;
  align-items: center;
  user-select: none;
  padding-bottom: 20px;
}

.unit-label {
  margin-top: 8px;
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* PROGRESS BAR CONTAINER */
.progress-container {
  width: 100%;
  max-width: 380px;
  margin-bottom: 20px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1A56DB 0%, #38BDF8 100%);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  transition: width 0.8s ease;
}

/* FEATURE REQUEST SECTION ONLY */
.feature-section-wrapper {
  width: 100%;
  max-width: 480px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-section-title {
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.feature-form {
  width: 100%;
}

.feature-form-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-input {
  width: 100%;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.feature-input::placeholder {
  color: #64748B;
}

.feature-textarea {
  width: 100%;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: none;
}

.feature-textarea::placeholder {
  color: #64748B;
}

.feature-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #38BDF8 0%, #1A56DB 100%);
  color: #FFFFFF;
  border: none;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
}

.notify-success-msg {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan-accent);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
  animation: fadeIn 0.3s ease;
}

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

/* BOTTOM STATUS ROW */
.bottom-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan-accent);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 8px var(--cyan-accent);
}

.footer-insta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(225, 48, 108, 0.08);
  border: 1px solid rgba(225, 48, 108, 0.25);
  font-size: 11px;
  font-weight: 600;
  color: #FF758C;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-insta-link:hover {
  transform: translateY(-2px);
  background: rgba(225, 48, 108, 0.18);
}

/* FLOATING AUDIO FAB */
.audio-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.audio-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1A56DB 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.audio-fab:hover .audio-btn {
  transform: scale(1.08);
}

.music-icon { font-size: 18px; }

.sound-wave {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.sound-wave span {
  width: 3px;
  background: #FFFFFF;
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite alternate;
}

.sound-wave span:nth-child(1) { height: 60%; }
.sound-wave span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.sound-wave span:nth-child(3) { height: 40%; animation-delay: 0.4s; }

@keyframes wave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.audio-fab.playing .music-icon { display: none; }
.audio-fab.playing .sound-wave { display: flex; }

.audio-tooltip {
  background: rgba(15, 23, 42, 0.9);
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* MOBILE RESPONSIVE MEDIA QUERIES */
@media (max-width: 600px) {
  .single-viewport-container {
    padding: 16px 10px;
  }

  .card-glass-panel {
    padding: 24px 16px;
    border-radius: 22px;
  }

  .top-tag-row {
    gap: 6px;
    margin-bottom: 14px;
  }

  .top-tag, .insta-link-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .main-headline {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .countdown-grid {
    gap: 4px;
    margin-bottom: 16px;
  }

  .card-3d {
    border-radius: 12px;
  }

  .colon-sep {
    font-size: 18px;
    padding-bottom: 14px;
  }

  .unit-label {
    font-size: 9px;
    margin-top: 4px;
  }

  .feature-form-inner {
    padding: 10px;
    border-radius: 14px;
  }

  .feature-input, .feature-textarea {
    font-size: 12px;
    padding: 8px 10px;
  }

  .feature-btn {
    padding: 10px;
    font-size: 11px;
  }

  .status-pill, .footer-insta-link {
    font-size: 10px;
    padding: 5px 12px;
  }

  .audio-fab {
    bottom: 14px;
    right: 14px;
  }

  .audio-btn {
    width: 42px;
    height: 42px;
  }

  .audio-tooltip {
    display: none;
  }
}
