@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --purple-darkest:  #07030f;
  --purple-dark:     #120626;
  --purple-mid:      #271050;
  --purple-accent:   #6b21d0;
  --purple-bright:   #9b4dff;

  --gold:            #FFD700;
  --gold-light:      #FFF5B0;
  --gold-dark:       #C9960A;
  --gold-glow:       rgba(255, 215, 0, 0.30);

  --pink:            #FF6B9D;
  --pink-bright:     #FF1493;
  --pink-dark:       #C41E6B;
  --pink-glow:       rgba(255, 107, 157, 0.35);

  --silver:          #C8C8D8;
  --silver-light:    #E8E8F0;
  --silver-glow:     rgba(200, 200, 216, 0.25);

  --bronze:          #CD7F32;
  --bronze-light:    #E8A55A;
  --bronze-glow:     rgba(205, 127, 50, 0.25);

  --white:           #ffffff;
  --text-light:      rgba(255, 255, 255, 0.92);
  --text-muted:      rgba(255, 255, 255, 0.55);

  --glass:           rgba(255, 255, 255, 0.055);
  --glass-border:    rgba(255, 255, 255, 0.11);
  --glass-hover:     rgba(255, 255, 255, 0.095);

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  30px;
  --radius-full: 9999px;

  --transition:      0.28s ease;
  --transition-slow: 0.55s ease;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--purple-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; }

code {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.09);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.85em;
  color: var(--gold-light);
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--purple-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ═══════════════════════════════════════════════
   BACKGROUND
═══════════════════════════════════════════════ */
.bg-layer {
  position: fixed;
  inset: 0;
  background-image: url('../assests/purplebg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 3, 15, 0.75)  0%,
    rgba(18, 6, 38, 0.55) 45%,
    rgba(7, 3, 15, 0.82) 100%
  );
  z-index: -1;
}

/* ═══════════════════════════════════════════════
   FLOATING STARS
═══════════════════════════════════════════════ */
.star {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation:
    starBlink var(--blink-dur,  2s) ease-in-out infinite var(--blink-delay,  0s),
    starFloat var(--float-dur, 7s) ease-in-out infinite var(--float-delay,  0s);
}

@keyframes starBlink {
  0%, 100% { opacity: 0; }
  40%, 60% { opacity: var(--opacity, 0.75); }
}

@keyframes starFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25%       { transform: translateY(-10px) rotate(18deg); }
  75%       { transform: translateY(6px) rotate(-12deg); }
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.header {
  position: relative;
  z-index: 10;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 3, 15, 0.45);
  border-bottom: 1px solid var(--glass-border);
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-logos img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.header-divider {
  width: 1px;
  height: 38px;
  background: var(--glass-border);
}

/* ═══════════════════════════════════════════════
   DRIP BUTTON
═══════════════════════════════════════════════ */
.drip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #FF6B9D 0%, #E91E8C 100%);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  letter-spacing: 3px;
  padding: 10px 26px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 22px rgba(233, 30, 140, 0.45);
  transition: all var(--transition);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.drip-btn::before {
  content: '💧';
  font-size: 1.1rem;
  display: inline-block;
  transition: transform var(--transition);
}

.drip-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-15deg);
  transition: left 0.55s ease;
}

.drip-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 32px rgba(233, 30, 140, 0.65);
}

.drip-btn:hover::after { left: 150%; }
.drip-btn:hover::before { transform: translateY(-2px) rotate(-10deg); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 44px 20px 16px;
}

.hero-title-img {
  max-width: min(720px, 92vw);
  height: auto;
  filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.28))
          drop-shadow(0 0 20px rgba(255, 107, 157, 0.2));
  animation: titleFloat 4.5s ease-in-out infinite;
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.hero-subtitle {
  display: inline-block;
  background: linear-gradient(135deg, #FF1493, #FF6B9D);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  letter-spacing: 4px;
  padding: 9px 30px;
  border-radius: var(--radius-full);
  margin-top: 14px;
  box-shadow: 0 4px 22px var(--pink-glow);
}

/* ═══════════════════════════════════════════════
   COUNTDOWN
═══════════════════════════════════════════════ */
.countdown-section {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 28px 20px 24px;
}

.countdown-label {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--pink);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  animation: pulseOpacity 2.2s ease-in-out infinite;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.countdown-sep {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--gold);
  opacity: 0.6;
  animation: sepBlink 1s step-start infinite;
  margin-bottom: 20px;
}

@keyframes sepBlink {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 0; }
}

.countdown-unit {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  min-width: 78px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}

.countdown-unit:hover { transform: translateY(-3px); }

.countdown-unit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--pink), var(--purple-bright));
}

.countdown-number {
  font-family: 'Fredoka One', cursive;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 24px var(--gold-glow);
  transition: transform 0.15s ease;
}

.countdown-number.flip {
  animation: numFlip 0.2s ease;
}

@keyframes numFlip {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

.countdown-text {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 700;
}

.countdown-event-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT GRID
═══════════════════════════════════════════════ */
.main-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 70px;
  align-items: start;
}

/* ═══════════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════════ */
.section-header {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 0 24px var(--gold-glow);
}

.section-subheader {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   LEADERBOARD PANEL
═══════════════════════════════════════════════ */
.leaderboard-panel {
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
}

.hype-banner {
  background: linear-gradient(135deg,
    rgba(255, 20, 147, 0.14),
    rgba(107, 33, 208, 0.14)
  );
  border: 1px solid rgba(255, 107, 157, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--pink);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════
   RANK LIST
═══════════════════════════════════════════════ */
.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.rank-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: transparent;
  transition: background var(--transition);
}

.rank-row:hover {
  transform: translateX(5px);
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.18);
}

/* ── Rank 1 ── */
.rank-row.rank-1 {
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.14) 0%,
    rgba(255, 140, 0, 0.07) 100%
  );
  border-color: rgba(255, 215, 0, 0.42);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.12);
  animation: glowGold 3.5s ease-in-out infinite;
}

.rank-row.rank-1::before { background: var(--gold); }

@keyframes glowGold {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.10); }
  50%       { box-shadow: 0 0 44px rgba(255, 215, 0, 0.32); }
}

/* ── Rank 2 ── */
.rank-row.rank-2 {
  background: linear-gradient(135deg,
    rgba(200, 200, 216, 0.12) 0%,
    rgba(180, 180, 200, 0.04) 100%
  );
  border-color: rgba(200, 200, 216, 0.32);
  box-shadow: 0 0 18px rgba(200, 200, 216, 0.08);
}

.rank-row.rank-2::before { background: var(--silver); }

/* ── Rank 3 ── */
.rank-row.rank-3 {
  background: linear-gradient(135deg,
    rgba(205, 127, 50, 0.13) 0%,
    rgba(180, 100, 30, 0.05) 100%
  );
  border-color: rgba(205, 127, 50, 0.32);
  box-shadow: 0 0 18px rgba(205, 127, 50, 0.08);
}

.rank-row.rank-3::before { background: var(--bronze); }

/* ── Rank Elements ── */
.rank-number {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  min-width: 34px;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.rank-row.rank-1 .rank-number { color: var(--gold); font-size: 1.45rem; }
.rank-row.rank-2 .rank-number { color: var(--silver); }
.rank-row.rank-3 .rank-number { color: var(--bronze-light); }

.rank-crown {
  font-size: 1.3rem;
  flex-shrink: 0;
  animation: crownBounce 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0px) rotate(-5deg); }
  50%       { transform: translateY(-5px) rotate(6deg); }
}

.rank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rank-username {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row.rank-1 .rank-username { font-size: 1.05rem; }

.rank-title-badge {
  font-family: 'Fredoka One', cursive;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
}

.rank-title-badge.gold {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.rank-title-badge.silver {
  background: rgba(200, 200, 216, 0.12);
  color: var(--silver);
  border: 1px solid rgba(200, 200, 216, 0.3);
}

.rank-title-badge.bronze {
  background: rgba(205, 127, 50, 0.12);
  color: var(--bronze-light);
  border: 1px solid rgba(205, 127, 50, 0.32);
}

.rank-droplets {
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.rank-row.rank-1 .rank-droplets { color: var(--gold); font-size: 1.05rem; }
.rank-row.rank-2 .rank-droplets { color: var(--silver); }
.rank-row.rank-3 .rank-droplets { color: var(--bronze-light); }

/* ── Loading State ── */
.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════════ */
.search-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.search-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 11px;
  display: block;
  text-align: center;
}

.search-form { display: flex; gap: 8px; }

.search-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  outline: none;
  min-width: 0;
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  border-color: var(--pink);
  background: rgba(255, 107, 157, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

.search-btn {
  background: linear-gradient(135deg, var(--pink-bright), var(--pink));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px var(--pink-glow);
}

.search-result {
  margin-top: 11px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.87rem;
  display: none;
  line-height: 1.5;
}

.search-result.found {
  background: rgba(107, 33, 208, 0.18);
  border: 1px solid rgba(155, 77, 255, 0.3);
  color: var(--white);
  display: block;
}

.search-result.not-found {
  background: rgba(255, 107, 157, 0.08);
  border: 1px solid rgba(255, 107, 157, 0.2);
  color: var(--text-muted);
  display: block;
}

.found-rank {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════
   REWARDS PANEL
═══════════════════════════════════════════════ */
.rewards-panel {
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
}

.rewards-intro {
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.10),
    rgba(255, 107, 157, 0.10)
  );
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.5;
}

/* ── Reward Cards ── */
.reward-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.reward-card:last-of-type { margin-bottom: 8px; }

.reward-card:hover { transform: translateY(-4px); }

.reward-card.gold {
  background: linear-gradient(135deg,
    rgba(255, 215, 0, 0.16) 0%,
    rgba(255, 140, 0, 0.08) 100%
  );
  border: 1px solid rgba(255, 215, 0, 0.42);
  animation: rewardGlowGold 3s ease-in-out infinite;
}

.reward-card.gold:hover {
  box-shadow: 0 0 55px rgba(255, 215, 0, 0.35);
}

@keyframes rewardGlowGold {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.12); }
  50%       { box-shadow: 0 0 40px rgba(255, 215, 0, 0.28); }
}

.reward-card.silver {
  background: linear-gradient(135deg,
    rgba(200, 200, 216, 0.12) 0%,
    rgba(180, 180, 200, 0.05) 100%
  );
  border: 1px solid rgba(200, 200, 216, 0.3);
  box-shadow: 0 0 18px rgba(200, 200, 216, 0.08);
}

.reward-card.bronze {
  background: linear-gradient(135deg,
    rgba(205, 127, 50, 0.12) 0%,
    rgba(180, 100, 30, 0.05) 100%
  );
  border: 1px solid rgba(205, 127, 50, 0.3);
  box-shadow: 0 0 18px rgba(205, 127, 50, 0.08);
}

/* Shimmer line on top of gold card */
.reward-card.gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: auto;
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: shimmerLine 3.5s ease-in-out infinite;
}

@keyframes shimmerLine {
  0%   { left: -60%; }
  100% { left: 160%; }
}

.reward-rank {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 5px;
}

.reward-title {
  font-family: 'Fredoka One', cursive;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reward-card.gold   .reward-title { color: var(--gold-light); }
.reward-card.silver .reward-title { color: var(--silver); }
.reward-card.bronze .reward-title { color: var(--bronze-light); }

.reward-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reward-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.3;
}

.reward-item::before {
  content: '✦';
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.7rem;
}

.reward-card.gold   .reward-item::before { color: var(--gold); }
.reward-card.silver .reward-item::before { color: var(--silver); }
.reward-card.bronze .reward-item::before { color: var(--bronze-light); }

/* Scarcity badge */
.scarcity-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-bright), #C41E6B);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  animation: scarcityPulse 2s ease-in-out infinite;
}

@keyframes scarcityPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.78; transform: scale(0.96); }
}

/* Rewards CTA */
.rewards-cta {
  text-align: center;
  padding: 14px 10px 4px;
  border-top: 1px solid var(--glass-border);
  margin-top: 6px;
}

.cta-text {
  color: var(--pink);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.cta-subtext {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   CHARACTER HYPE BUBBLE
═══════════════════════════════════════════════ */
.character-hype {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.character-hype.visible {
  opacity: 1;
  transform: translateY(0px);
}

.character-pfp {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pink);
  box-shadow: 0 0 22px var(--pink-glow);
  flex-shrink: 0;
  animation: charBob 2s ease-in-out infinite;
}

@keyframes charBob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

.character-bubble {
  background: rgba(14, 7, 30, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 2px solid var(--pink);
  border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
  padding: 13px 17px;
  max-width: 255px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 22px var(--pink-glow);
  position: relative;
}

/* Little tail */
.character-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px; right: 18px;
  border: 5px solid transparent;
  border-top-color: var(--pink);
}

.character-name {
  font-family: 'Fredoka One', cursive;
  font-size: 0.7rem;
  color: var(--pink);
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.character-dialog {
  font-size: 0.83rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.page-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.8px;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   ADMIN PAGE STYLES
═══════════════════════════════════════════════ */
.admin-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 60px;
  position: relative;
  z-index: 5;
}

.admin-card {
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 38px;
  width: 100%;
  max-width: 480px;
}

.admin-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.75rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 0 20px var(--gold-glow);
}

.admin-subtitle {
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
}

/* Tab switcher */
.tab-switcher {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 26px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--pink-bright), var(--pink));
  color: white;
  box-shadow: 0 2px 12px var(--pink-glow);
}

/* Form elements */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--pink);
  background: rgba(255, 107, 157, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

.form-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--pink-bright), var(--pink));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.08rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.form-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--pink-glow);
}

.form-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Auth messages */
.auth-message {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.5;
  display: none;
}

.auth-message.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff9090;
  display: block;
}

.auth-message.success {
  background: rgba(100, 220, 140, 0.1);
  border: 1px solid rgba(100, 220, 140, 0.3);
  color: #90ffb4;
  display: block;
}

/* Admin dashboard */
.admin-dashboard {
  display: none;
  width: 100%;
  max-width: 680px;
}

.admin-dashboard.visible { display: block; }

.admin-welcome {
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 30px;
  margin-bottom: 20px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 0;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--pink);
  background: rgba(255, 107, 157, 0.05);
}

.upload-icon { font-size: 2.8rem; margin-bottom: 10px; }

.upload-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.upload-text strong { color: var(--pink); }

#csv-file-input { display: none; }

/* Preview table */
.preview-section { display: none; margin-top: 20px; }
.preview-section.visible { display: block; }

.preview-table-wrapper {
  max-height: 280px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.preview-table th {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  font-family: 'Fredoka One', cursive;
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 10px 14px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}

.preview-table td {
  padding: 8px 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--glass-border);
  font-weight: 600;
}

.preview-table tr:last-child td { border-bottom: none; }
.preview-table tbody tr:hover td { background: var(--glass); }

.upload-confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 16px;
  letter-spacing: 0.5px;
}

.upload-confirm-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(76, 175, 80, 0.35);
}

.upload-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status messages */
.status-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  text-align: center;
  margin-top: 14px;
  display: none;
  font-weight: 700;
  line-height: 1.5;
}

.status-msg.show { display: block; }

.status-msg.success {
  background: rgba(100, 220, 140, 0.1);
  border: 1px solid rgba(100, 220, 140, 0.3);
  color: #90ffb4;
}

.status-msg.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff9090;
}

.status-msg.loading {
  background: rgba(107, 33, 208, 0.1);
  border: 1px solid rgba(107, 33, 208, 0.3);
  color: var(--text-muted);
}

/* Logout btn */
.logout-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.logout-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 920px) {
  .main-content {
    grid-template-columns: 1fr;
    padding: 16px 16px 60px;
    max-width: 600px;
    margin: 0 auto;
  }

  .header {
    padding: 14px 20px;
    gap: 12px;
  }

  .header-logos img { height: 34px; }
}

@media (max-width: 600px) {
  .countdown-number { font-size: 2rem; }
  .countdown-unit { min-width: 62px; padding: 12px 14px; }
  .countdown-sep { font-size: 1.6rem; margin-bottom: 16px; }

  .search-form { flex-direction: column; }
  .search-btn { width: 100%; }

  .character-hype {
    bottom: 16px;
    right: 14px;
  }

  .character-bubble { max-width: 210px; }
  .character-pfp { width: 58px; height: 58px; }

  .hero-title-img { max-width: 96vw; }

  .admin-card { padding: 26px 20px; }
  .admin-welcome { padding: 22px 18px; }
}
