/* ==========================================================================
   AL AMEEN SPORTS WING - ULTRA MODERN ELECTION STYLESHEET
   100% Self-Contained, Zero CDN dependency, Ultra-Responsive & Animated
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Noto+Sans+Malayalam:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

/* --- CSS Reset & Variables --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #060c18;
  --bg-surface: #0c182c;
  --bg-surface-elevated: #11223e;
  --bg-card: rgba(17, 34, 62, 0.7);
  --bg-card-hover: rgba(23, 45, 82, 0.85);
  
  --primary-emerald: #10b981;
  --primary-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-red: #ef4444;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.6);
  --border-focus: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-ml: 'Noto Sans Malayalam', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(15, 23, 42, 0.8) 0px, transparent 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 100px;
}

.font-ml {
  font-family: var(--font-ml);
}

/* --- Container & Layout --- */
.app-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-container-wide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Header Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}

.brand-text p {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-emerald);
  font-family: var(--font-ml);
}

.btn-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-admin-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Hero & Status Banners --- */
.hero-section {
  text-align: center;
  padding: 28px 0 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.status-pill.upcoming {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.status-pill.live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.status-pill.counting {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}

.status-pill.result {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

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

.pulse-indicator.red {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.hero-emblem-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* --- Digital Countdown Timer --- */
.countdown-box {
  background: linear-gradient(180deg, rgba(17, 34, 62, 0.8), rgba(12, 24, 44, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 28px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.8), transparent);
}

.countdown-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}

.timer-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
  max-width: 240px;
}

.timer-segment {
  background: rgba(6, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  position: relative;
}

.timer-num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  color: #34d399;
  line-height: 1;
  display: block;
  text-shadow: 0 0 20px var(--primary-emerald-glow);
}

.timer-unit {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-top: 6px;
  display: block;
}

/* --- Notice / Guidelines Card --- */
.notice-card {
  background: rgba(12, 24, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 28px;
  text-align: left;
}

.notice-card h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.notice-card h4 i {
  color: var(--accent-cyan);
}

.notice-list {
  list-style: none;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.7;
}

.notice-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.notice-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--primary-emerald);
  font-size: 16px;
  line-height: 1;
}

/* --- Modern Glass Card System --- */
.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.section-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-emerald);
  display: block;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.section-subtitle {
  font-size: 11px;
  color: var(--text-dim);
}

.badge-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* --- Form Fields & Inputs --- */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-box {
  width: 100%;
  padding: 13px 16px;
  background: rgba(6, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.input-box:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: rgba(11, 22, 42, 0.95);
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-emerald);
  font-family: var(--font-mono);
  pointer-events: none;
}

.input-with-prefix .input-box {
  padding-left: 48px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* --- Candidate Cards (2 Cards in One Row Grid - Mobile & Desktop) --- */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px;
}

.candidate-card, .candidate-preview-card {
  position: relative;
  background: rgba(11, 22, 42, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-width: 0;
}

.candidate-card:hover {
  background: rgba(17, 34, 62, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.candidate-card:active {
  transform: scale(0.97);
}

.candidate-card.selected {
  border-color: var(--primary-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(11, 22, 42, 0.95) 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.candidate-info-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.candidate-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.candidate-card.selected .candidate-avatar {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-avatar .initials {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-emerald);
  letter-spacing: 0.5px;
}

.candidate-text {
  width: 100%;
  text-align: center;
}

.candidate-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 3px;
  word-break: break-word;
  display: block;
}

.candidate-order {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-ml);
  display: block;
}

/* Radio Check Circle in Top Right Corner */
.candidate-radio {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 12, 24, 0.6);
  transition: all 0.2s ease;
}

.candidate-card.selected .candidate-radio {
  border-color: var(--primary-emerald);
  background: var(--primary-emerald);
  color: #060c18;
}

.candidate-radio i {
  font-size: 10px;
  font-weight: 900;
  display: none;
}

.candidate-card.selected .candidate-radio i {
  display: block;
}

/* --- Floating Bottom Bar for Mobile Submission --- */
.floating-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(6, 12, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.floating-bar-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-info {
  flex: 1;
  min-width: 80px;
  max-width: 130px;
}

.progress-text {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
  display: block;
}

.progress-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top: 5px;
  overflow: hidden;
}

.floating-bottom-bar .btn-primary {
  flex-shrink: 0;
  padding: 11px 16px;
  font-size: 12px;
  gap: 6px;
}


.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.5);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Review Confirmation Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-dialog {
  background: #0c182c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 26px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-ml);
}

.modal-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.review-voter-chip {
  background: rgba(6, 12, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 16px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.review-item {
  background: rgba(17, 34, 62, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-item .pos-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-emerald);
}

.review-item .cand-chosen {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.warning-chip {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 11px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-ml);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-secondary {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

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

/* --- Digital Voter Receipt --- */
.receipt-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  max-width: 420px;
  margin: 20px auto 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  text-align: center;
}

.receipt-card::before, .receipt-card::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--bg-dark);
  border-radius: 50%;
  top: 55%;
}
.receipt-card::before { left: -12px; }
.receipt-card::after { right: -12px; }

.receipt-header {
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.receipt-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.receipt-header h3 {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  color: #0f172a;
}

.receipt-header p {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  font-family: var(--font-ml);
}

.receipt-details {
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.receipt-row .r-label {
  color: #64748b;
}

.receipt-row .r-val {
  font-weight: 700;
  color: #0f172a;
}

.receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ecfdf5;
  color: #047857;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.btn-whatsapp-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #25d366;
  color: #ffffff;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
  font-family: var(--font-ml);
}

.btn-whatsapp-share:hover {
  background: #1eb855;
  transform: translateY(-1px);
}

/* --- Winner Celebration Cards (Public Result) --- */
.winner-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(12, 24, 44, 0.95) 100%);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.winner-card .trophy-watermark {
  position: absolute;
  right: -15px;
  bottom: -20px;
  font-size: 130px;
  color: rgba(245, 158, 11, 0.08);
  pointer-events: none;
}

.winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.winner-profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(6, 12, 24, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
}

.winner-photo {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  object-fit: cover;
  flex-shrink: 0;
}

.winner-name-text {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

.winner-sub-text {
  font-size: 12px;
  color: #34d399;
  font-family: var(--font-ml);
  margin-top: 2px;
}

/* --- Admin Specific Tables & Controls --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.stat-card .s-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-card .s-val {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 4px;
}

.stat-card .s-sub {
  font-size: 11px;
  color: var(--primary-emerald);
  margin-top: 4px;
}

.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.data-table th {
  background: rgba(6, 12, 24, 0.9);
  padding: 12px 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

#vote-form {
  padding-bottom: 40px;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-emerald { color: var(--primary-emerald); }
.text-gold { color: var(--accent-gold); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }

/* --- Additional Admin Dashboard Styles --- */
.admin-header-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0 0;
  margin-bottom: 24px;
}

.admin-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab-item:hover {
  color: #fff;
}

.admin-tab-item.active {
  color: var(--primary-emerald);
  border-bottom-color: var(--primary-emerald);
}

.admin-cand-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.admin-cand-item {
  background: rgba(11, 22, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
}

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

.btn-icon.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .admin-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.danger-zone {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.btn-danger {
  width: 100%;
  padding: 12px 20px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #dc2626;
}

.alert-box {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.alert-box.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.alert-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* --- Preview Candidate Card (Upcoming Phase) --- */
.candidate-preview-card .badge-pill {
  margin-top: 6px;
  font-size: 10px;
}

/* --- Ultra-Premium Winner Podium & Poster Studio --- */
.result-studio-box {
  background: linear-gradient(155deg, rgba(17, 29, 53, 0.92) 0%, rgba(7, 14, 28, 0.98) 100%);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 28px;
  padding: 24px 18px;
  margin-bottom: 28px;
  box-shadow: 0 24px 60px -12px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.result-studio-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, #10b981, transparent);
}

.poster-canvas-frame {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  background: #050c18;
  position: relative;
}

.poster-canvas-frame canvas {
  width: 100%;
  height: auto;
  display: block;
}

.poster-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .poster-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-gold-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #060c18;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.5);
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-gold-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(245, 158, 11, 0.65);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-gold-download:active {
  transform: scale(0.98);
}

.btn-individual-poster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-individual-poster:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #ffffff;
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.winner-card-ultra {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.08) 50%, rgba(10, 20, 38, 0.96) 100%);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 26px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 20px 45px -12px rgba(245, 158, 11, 0.28);
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.winner-card-ultra:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -10px rgba(245, 158, 11, 0.38);
}

.winner-avatar-ring {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, #fbbf24, #10b981, #f59e0b);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
  flex-shrink: 0;
}

.winner-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  overflow: hidden;
  background: #091326;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winner-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

