@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&family=Orbitron:wght@600;700;800;900&display=swap');

:root {
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-light: #fef08a;
  --gold-dark: #b45309;
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gold-neon-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.2);
  --red: #ef4444;
  --red-dark: #991b1b;
  --red-glow: 0 0 20px rgba(239, 68, 68, 0.6);
  --safe: #10b981;
  --safe-glow: 0 0 20px rgba(16, 185, 129, 0.5);
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --dark-bg: #07090e;
  --card-bg: rgba(14, 18, 28, 0.94);
  --card-hover-bg: rgba(19, 25, 40, 0.98);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--dark-bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 90px;
}

/* Background Atmosphere Glows */
.bg-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  opacity: 0.15;
  z-index: 0;
}
.bg-gold { top: -160px; left: 50%; transform: translateX(-50%); background: #f59e0b; }
.bg-red { bottom: 0; right: -120px; background: #dc2626; }
.bg-blue { bottom: 20%; left: -120px; background: #2563eb; }

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
  pointer-events: none;
}

.toast-msg {
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid var(--gold);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--gold-neon-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1), fadeOutToast 0.5s ease 3.5s forwards;
  pointer-events: auto;
}

.toast-msg.toast-success {
  border-color: var(--safe);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--safe-glow);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 5;
}

/* ========================================================
   STICKY LUXURY NAVBAR
   ======================================================== */
.site-header {
  background: rgba(8, 11, 19, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-eye-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-eye {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px #f59e0b);
  z-index: 2;
}

.eye-radar-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.5);
  animation: radarPulse 2.5s infinite linear;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0.2; }
  100% { transform: scale(1.6); opacity: 0; }
}

.brand-text h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: 1.5px;
}

.brand-text span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #cbd5e1;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-voter-chip {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-live-stream {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.7);
  color: #6ee7b7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

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

/* ========================================================
   HERO BANNER (LIVE VOTING OPEN)
   ======================================================== */
.alert-closed-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(180, 83, 9, 0.25) 50%, rgba(10, 14, 24, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.15);
  text-align: center;
}

.alert-banner-open {
  border-color: rgba(245, 158, 11, 0.7);
}

.alert-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 680px) {
  .alert-top-row {
    flex-direction: column;
    align-items: center;
  }
}

.badge-open-live {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.7);
}

.pulse-beacon {
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulseBeacon 1.2s infinite;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.countdown-clock-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 5px 12px;
  border-radius: 10px;
}

.countdown-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fde68a;
}

.timer-countdown {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 1px;
}

.alert-closed-banner h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1.5px;
}

.alert-closed-banner p {
  font-size: 0.82rem;
  color: #cbd5e1;
  max-width: 850px;
  margin: 0 auto;
}

/* Quick Summary Hero Stats Strip */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 6px;
  gap: 10px;
}

@media (max-width: 768px) {
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stat-divider {
    display: none;
  }
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #94a3b8;
  text-transform: uppercase;
}

.hero-stat-val {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
}

.hero-stat-val.leader-text {
  color: #fbbf24;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.hero-stat-val.danger-text {
  color: #f87171;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.hero-stat-val.active-text {
  color: #6ee7b7;
}

.hero-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================================
   LIVE VOTE SHARE & PERCENTAGE COMPARISON METER
   ======================================================== */
.leaderboard-meter-section {
  background: rgba(14, 18, 28, 0.92);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.meter-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meter-fire-icon {
  font-size: 1.3rem;
  background: rgba(245, 158, 11, 0.2);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--gold);
}

.meter-title-wrap h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.98rem;
  font-weight: 900;
  color: #fde68a;
  letter-spacing: 1px;
}

.meter-title-wrap p {
  font-size: 0.72rem;
  color: #94a3b8;
}

.meter-live-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  padding: 3px 8px;
  border-radius: 6px;
}

.multi-percent-track {
  width: 100%;
  height: 26px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
}

.meter-segment {
  height: 100%;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 900;
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  cursor: pointer;
}

.meter-segment:hover {
  filter: brightness(1.2);
}

.meter-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meter-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.meter-legend-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-name {
  color: #ffffff;
}

.legend-pct {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  color: #fde68a;
}

/* ========================================================
   VIEW MODE TABS & TOOLBAR
   ======================================================== */
.view-tabs-container {
  display: flex;
  gap: 12px;
  margin: 20px 0 14px;
}

@media (max-width: 600px) {
  .view-tabs-container {
    flex-direction: column;
  }
}

.view-tab-btn {
  flex: 1;
  background: rgba(14, 18, 28, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  color: #cbd5e1;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.view-tab-btn:hover {
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.view-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fef08a;
  color: #000000;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
}

.toolbar-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(10, 13, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.chip-btn.active {
  background: #f59e0b;
  border-color: #fde68a;
  color: #000000;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.search-sort-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 680px) {
  .search-sort-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #94a3b8;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  padding: 8px 34px;
  font-size: 0.84rem;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
}

.sort-dropdown {
  background: #111624;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

/* ========================================================
   CONTESTANTS GRID & CARDS
   ======================================================== */
.contestants-section {
  margin: 20px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 8px;
}

@media (max-width: 680px) {
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.section-title h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-title span {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  color: #94a3b8;
}

.voting-instruction-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.contestant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contestant-grid.grid-16 {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1080px) {
  .contestant-grid.grid-16 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .contestant-grid,
  .contestant-grid.grid-16 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .contestant-grid,
  .contestant-grid.grid-16 {
    grid-template-columns: 1fr;
  }
}

/* Contestant Card */
.pub-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  border: 2px solid var(--border-gold);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pub-card:hover {
  transform: translateY(-4px);
  background: var(--card-hover-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.25);
}

.pub-card.card-rank-1 {
  border-color: rgba(234, 179, 8, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(234, 179, 8, 0.3);
}

.pub-card.card-rank-2 {
  border-color: rgba(16, 185, 129, 0.8);
}

.pub-card.card-rank-3 {
  border-color: rgba(245, 158, 11, 0.8);
}

.pub-card.card-danger {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.35);
  animation: dangerPulseBorder 2.5s infinite;
}

@keyframes dangerPulseBorder {
  0%, 100% { border-color: rgba(239, 68, 68, 0.9); }
  50% { border-color: rgba(239, 68, 68, 0.4); }
}

/* Card Header Badges */
.pub-card-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.badge-crown-gold {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  padding: 4px 10px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-rank-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.85);
  color: #fde68a;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-status-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 10px;
}

.status-safe { background: #059669; color: #fff; box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
.status-borderline { background: #d97706; color: #fff; box-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }
.status-danger { background: #dc2626; color: #fff; box-shadow: 0 0 12px rgba(220, 38, 38, 0.8); }

/* Contestant Image Wrap */
.pub-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  background: #090d16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.pub-card:hover .pub-img {
  transform: scale(1.05);
}

/* Fallback Monogram Avatar */
.pub-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  position: relative;
}

.pub-avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.pub-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(10, 13, 22, 1) 0%, transparent 100%);
  pointer-events: none;
}

/* Card Content */
.pub-card-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(10, 13, 22, 0.95);
  margin-top: -24px;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  position: relative;
  z-index: 2;
}

.pub-name-box h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.pub-name-box span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* BIG PERCENTAGE DISPLAY */
.pub-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pub-percent {
  font-family: 'Orbitron', monospace;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fde68a;
  line-height: 1;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.pub-percent.pct-leader {
  color: #fbbf24;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
}

.pub-percent.pct-danger {
  color: #f87171;
  text-shadow: 0 0 14px rgba(248, 113, 113, 0.6);
}

.pub-votes-count {
  font-family: 'Orbitron', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

/* Glowing Progress Bar */
.pub-progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.pub-progress-bar {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fef08a);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.card-rank-1 .pub-progress-bar {
  background: linear-gradient(90deg, #059669, #10b981, #6ee7b7);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.card-danger .pub-progress-bar {
  background: linear-gradient(90deg, #991b1b, #ef4444, #fca5a5);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

/* Like & Dislike Reactions */
.card-reactions-row {
  display: flex;
  gap: 8px;
}

.btn-reaction {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  padding: 6px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-reaction:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn-reaction:active {
  transform: scale(0.95);
}

.btn-like:hover {
  border-color: #10b981;
}

.btn-dislike:hover {
  border-color: #ef4444;
}

/* VOTE NOW BUTTON */
.btn-pub-vote {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-pub-vote::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-pub-vote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.7);
}

.btn-pub-vote:hover::after {
  left: 100%;
}

.btn-pub-vote:active {
  transform: scale(0.97);
}

/* Floating +1 VOTE animation */
.floating-vote-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #10b981;
  color: #ffffff;
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 0 20px #10b981;
  pointer-events: none;
  z-index: 50;
  animation: floatUpVote 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUpVote {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  30% { transform: translate(-50%, -40px) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -100px) scale(0.9); opacity: 0; }
}

/* ========================================================
   LIVE FAN CHAT & COMMENTS SECTION
   ======================================================== */
.chat-section {
  background: var(--card-bg);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 30px 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.chat-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-badge-chat {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 1px;
}

.chat-live-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.76rem;
}

@media (max-width: 600px) {
  .chat-live-stats-bar {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}

.stats-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
}

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

.live-pill-count {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
}

.real-audience-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.form-row {
  display: flex;
  gap: 10px;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

.chat-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  flex: 1;
}

.chat-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.select-contestant {
  background: #111624;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-send-chat {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-send-chat:hover {
  background: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.form-sub-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: -4px;
}

.chat-feed-box {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.chat-feed-box::-webkit-scrollbar {
  width: 5px;
}

.chat-feed-box::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}

.chat-msg-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease;
}

.chat-msg-item.real-audience-vote {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.msg-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.msg-author {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fde68a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-city {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.msg-contestant-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.msg-text {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.msg-time {
  font-size: 0.68rem;
  color: #64748b;
  align-self: flex-end;
}

/* ========================================================
   MOBILE QUICK-VOTE FLOATING BAR
   ======================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 13, 22, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1.5px solid rgba(245, 158, 11, 0.4);
  padding: 8px 12px;
  display: none;
  justify-content: space-around;
  gap: 8px;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
}

.quick-vote-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 6px 4px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-vote-btn small {
  font-size: 0.62rem;
  color: #fde68a;
}

.quick-vote-scout {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}

.quick-vote-aasif {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.quick-vote-rohed {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  text-align: center;
  padding: 30px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-eye-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-eye {
  width: 24px;
  height: 24px;
}

.footer-eye-wrap span {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 1px;
}

.footer-sub {
  font-size: 0.72rem;
  color: #64748b;
}

/* ========================================================
   VOTING CLOSED & EVICTED CONTESTANT STYLES
   ======================================================== */
.badge-stream-closed {
  background: rgba(71, 85, 105, 0.35) !important;
  border-color: #64748b !important;
  color: #e2e8f0 !important;
  box-shadow: 0 0 12px rgba(100, 116, 139, 0.4) !important;
}

.closed-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #94a3b8;
  box-shadow: 0 0 8px #94a3b8;
  display: inline-block;
}

.alert-banner-closed {
  border-color: rgba(100, 116, 139, 0.8) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 0 25px rgba(71, 85, 105, 0.3) !important;
}

.badge-closed-status {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #f1f5f9;
  border: 1px solid #64748b;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.pulse-beacon.beacon-red {
  background: #94a3b8;
  box-shadow: 0 0 8px #94a3b8;
}

.status-evicted,
.status-evicted-gray {
  background: linear-gradient(135deg, #475569, #334155) !important;
  color: #f8fafc !important;
  border: 1px solid #94a3b8 !important;
  box-shadow: 0 0 12px rgba(100, 116, 139, 0.5) !important;
}

.pub-card.card-evicted {
  border-color: #475569 !important;
  background: #090c14 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 20px rgba(71, 85, 105, 0.3) !important;
  animation: none !important;
}

.pub-card.card-evicted:hover {
  transform: none !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 20px rgba(71, 85, 105, 0.3) !important;
}

.pub-card.card-evicted .pub-img {
  filter: grayscale(100%) contrast(1.05) brightness(0.48) !important;
}

.pub-card.card-evicted .pub-percent.pct-danger {
  color: #94a3b8 !important;
  text-shadow: none !important;
}

.pub-card.card-evicted .pub-progress-fill {
  background: linear-gradient(90deg, #334155, #475569, #64748b) !important;
}

.pub-evicted-stamp,
.pub-evicted-stamp.gray-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: rgba(15, 23, 42, 0.94) !important;
  border: 3.5px solid #94a3b8 !important;
  color: #f1f5f9 !important;
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 3px;
  padding: 6px 20px;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.08) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  z-index: 15;
  pointer-events: none;
  white-space: nowrap;
}

.btn-pub-vote:disabled,
.btn-pub-vote.btn-pub-closed {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.quick-vote-btn:disabled,
.quick-vote-btn.quick-vote-closed {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.7;
}

.quick-vote-btn.quick-vote-evicted {
  background: rgba(51, 65, 85, 0.45) !important;
  border-color: #64748b !important;
  color: #94a3b8 !important;
}


