/* ============================================
   VoteGuide AI — Page-Specific Styles
   Hero, Quiz, AI Chat, EVM Demo, Maps, etc.
   ============================================ */

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
  overflow-x: clip;
  padding: var(--space-20) 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.25);
  border-radius: var(--radius-full);
  color: var(--saffron-400);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.6s ease;
}

.hero h1 {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  color: #ffffff;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.7s ease;
  line-height: 1.1;
}

.hero h1 .text-saffron { color: var(--saffron-400); }
.hero h1 .text-emerald { color: var(--emerald-400); }

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-400);
  margin-bottom: var(--space-8);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
  animation: fadeInUp 0.8s ease;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-16);
  animation: fadeInUp 1s ease;
}

.hero-stat-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-base);
}

.hero-stat-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: var(--saffron-500);
}

.hero-stat-icon { font-size: 28px; margin-bottom: var(--space-2); }
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: #ffffff;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-1);
}

/* ── Why Vote Section ── */
.why-vote {
  background: var(--white);
  padding: var(--space-20) 0;
}

.why-vote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.why-vote-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition-base);
}

.why-vote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--saffron-300);
}

.why-vote-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto var(--space-4);
  background: var(--saffron-glow);
}

/* ── AI Chat Page V2 ── */
.chat-page-v2 {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding: var(--space-6) 0 var(--space-16);
  overflow: hidden;
}

.chat-bg-gradient {
  background: var(--gray-50);
  z-index: 0;
}

/* Two Column Layout */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-6);
  align-items: start;
}

/* Left Column — Chat */
.chat-left-col {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.chat-box-header {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.chat-box-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron-500), var(--emerald-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.chat-box-status {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--gray-500); margin-top: 2px;
}

/* Right Column — Sidebar */
.chat-right-col {
  display: flex; flex-direction: column; gap: var(--space-5);
}

.chat-sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.chat-sidebar-title {
  font-size: var(--text-base); font-weight: var(--font-bold);
  color: var(--navy-800); margin-bottom: var(--space-4);
}

.chat-sidebar-link {
  display: block; padding: var(--space-2) 0;
  font-size: var(--text-sm); color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.chat-sidebar-link:last-child { border-bottom: none; }
.chat-sidebar-link:hover { color: var(--saffron-400); }

.chat-sidebar-info {
  font-size: var(--text-sm); color: var(--gray-600);
  margin-bottom: var(--space-2); line-height: var(--leading-relaxed);
}

.chat-sidebar-info:last-child { margin-bottom: 0; }

.chat-sidebar-info a {
  color: var(--saffron-400); text-decoration: none;
}

.chat-sidebar-info a:hover { text-decoration: underline; }

.chat-messages-area {
  min-height: 380px; max-height: 500px; overflow-y: auto;
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4);
}

.chat-bubble { display: flex; gap: var(--space-3); max-width: 90%; animation: fadeInUp 0.3s ease; }

.chat-bubble-ai { align-self: flex-start; }

.chat-bubble-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,153,51,0.15); display: flex; align-items: center;
  justify-content: center; font-size: 16px;
}

.chat-bubble-content {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg);
  font-size: var(--text-sm); line-height: var(--leading-relaxed);
  background: transparent; border: none;
  color: var(--gray-800); word-wrap: break-word;
}

.chat-bubble-user {
  align-self: flex-end; flex-direction: row-reverse;
}

.chat-bubble-user .chat-bubble-avatar {
  background: rgba(255,153,51,0.2);
}

.chat-bubble-user .chat-bubble-content {
  background: var(--gradient-saffron); color: var(--white);
  border: none; border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
}

/* Quick Questions */
.chat-quick-area {
  padding: var(--space-3) var(--space-5); border-top: 1px solid var(--gray-200);
}

.chat-quick-label {
  font-size: var(--text-xs); color: var(--gray-500); font-weight: var(--font-semibold);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); display: block;
}

.chat-quick-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.quick-chip {
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--gray-100); border: 1px solid var(--gray-200);
  color: var(--gray-800); font-size: var(--text-xs); cursor: pointer;
  transition: all var(--transition-fast); font-family: var(--font-body);
}

.quick-chip:hover {
  background: rgba(255,153,51,0.15); border-color: var(--saffron-500);
  color: var(--saffron-400); transform: translateY(-1px);
}

/* Input Bar */
.chat-input-bar {
  display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.chat-input-v2 {
  flex: 1; padding: var(--space-3) var(--space-5);
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-full); color: var(--gray-800);
  font-size: var(--text-sm); font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}

.chat-input-v2::placeholder { color: var(--gray-500); }
.chat-input-v2:focus { border-color: var(--saffron-500); outline: none; }

.chat-send-v2 {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-saffron); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(255,153,51,0.3);
}

.chat-send-v2:hover { transform: scale(1.08); box-shadow: 0 0 30px rgba(255,153,51,0.5); }

/* ── Old chat classes kept for sidebar compatibility ── */
.chat-sidebar { display: flex; flex-direction: column; gap: var(--space-4); }

/* ── Quiz Page ── */
.quiz-container {
  max-width: 800px; margin: 0 auto;
}

.quiz-progress-bar {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.quiz-progress-text {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--navy-700);
  white-space: nowrap;
}

.quiz-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
}

.quiz-question {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--navy-800);
  margin-bottom: var(--space-6);
  line-height: var(--leading-snug);
}

.quiz-options {
  display: flex; flex-direction: column; gap: var(--space-3);
}

.quiz-option {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  cursor: pointer; transition: all var(--transition-fast);
  font-size: var(--text-base); color: var(--gray-700);
  background: #f8fafc;
}

.quiz-option:hover { border-color: var(--saffron-400); background: var(--saffron-glow); }

.quiz-option.selected { border-color: var(--saffron-500); background: var(--saffron-glow); color: var(--navy-800); font-weight: var(--font-medium); }

.quiz-option.correct { border-color: var(--emerald-500); background: var(--emerald-glow); color: var(--emerald-700); }

.quiz-option.wrong { border-color: var(--error); background: rgba(220,38,38,0.08); color: var(--error); }

.quiz-option-letter {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--font-semibold); font-size: var(--text-sm);
  flex-shrink: 0;
}

.quiz-explanation {
  margin-top: var(--space-5); padding: var(--space-4);
  background: var(--gray-50); border-radius: var(--radius-lg);
  border-left: 4px solid var(--saffron-500);
  font-size: var(--text-sm); color: var(--gray-600);
  line-height: var(--leading-relaxed);
  animation: fadeInUp 0.3s ease;
}

.quiz-result {
  text-align: center; padding: var(--space-10);
}

.quiz-result-score {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-saffron);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-leaderboard {
  margin-top: var(--space-8);
}

.leaderboard-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-100);
}

.leaderboard-rank {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--font-bold); font-size: var(--text-sm);
  color: var(--navy-700);
}

.leaderboard-rank.gold { background: #fef3c7; color: #d97706; }
.leaderboard-rank.silver { background: #e5e7eb; color: #6b7280; }
.leaderboard-rank.bronze { background: #fed7aa; color: #c2410c; }

/* ── EVM Demo ── */
.evm-container {
  max-width: 700px; margin: 0 auto;
}

.evm-machine {
  background: var(--gray-100);
  border-radius: var(--radius-2xl);
  border: 3px solid var(--gray-300);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.evm-header {
  background: var(--navy-800);
  color: var(--white);
  padding: var(--space-4) var(--space-6);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
}

.evm-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.evm-ballot {
  padding: var(--space-6);
  border-right: 2px solid var(--gray-300);
}

.evm-candidate {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-300);
  background: var(--white);
}

.evm-candidate-info {
  display: flex; align-items: center; gap: var(--space-3);
}

.evm-candidate-symbol {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--gray-100);
}

.evm-vote-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--navy-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: all var(--transition-fast);
  font-size: 14px;
}

.evm-vote-btn:hover { background: var(--saffron-500); transform: scale(1.1); }
.evm-vote-btn.voted { background: var(--emerald-500); }

.evm-vvpat {
  padding: var(--space-6);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--gray-50);
}

.vvpat-slip {
  width: 200px; background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  animation: slideUp 0.5s ease;
  box-shadow: var(--shadow-md);
}

.vvpat-slip-header {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
  border-bottom: 1px dashed var(--gray-300);
  padding-bottom: var(--space-2);
}

.vvpat-slip-symbol { font-size: 32px; margin: var(--space-2) 0; }
.vvpat-slip-name { font-weight: var(--font-bold); color: var(--navy-800); }

/* ── Map Section ── */
.map-container {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%; height: 450px; border: none;
}

/* ── Translate Page ── */
.translate-container {
  max-width: 900px; margin: 0 auto;
}

.translate-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: start;
}

.translate-swap {
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--space-10);
}

.translate-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.translate-box-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.translate-box textarea {
  width: 100%; min-height: 200px;
  padding: var(--space-4);
  border: none; resize: vertical;
  font-size: var(--text-base); font-family: var(--font-body);
  color: var(--gray-800);
}

.translate-box textarea:focus { outline: none; }

.translate-box-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--gray-100);
}

/* ── Booth Finder ── */
.booth-finder {
  max-width: 700px;
  margin: 0 auto;
}

.booth-finder-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

/* ── First Time Voter ── */
.ftv-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.ftv-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--saffron-500), var(--emerald-500));
  border-radius: var(--radius-full);
}

.ftv-step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  position: relative;
}

.ftv-step-dot {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--gray-50), var(--shadow-glow-saffron);
}

.ftv-step-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--gray-200);
  flex: 1;
  transition: all var(--transition-base);
}

.ftv-step-content:hover {
  border-color: var(--saffron-300);
  box-shadow: var(--shadow-md);
}

.ftv-step-content h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.ftv-step-content p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ── Myth vs Fact ── */
.myth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.myth-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.myth-header {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(220,38,38,0.04);
  border-bottom: 1px solid var(--gray-100);
}

.myth-tag {
  padding: var(--space-1) var(--space-3);
  background: rgba(220,38,38,0.1);
  color: var(--error);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
}

.fact-section {
  padding: var(--space-4) var(--space-5);
  background: var(--emerald-glow);
}

.fact-tag {
  padding: var(--space-1) var(--space-3);
  background: rgba(19,136,8,0.1);
  color: var(--emerald-600);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: inline-block;
}

/* ── Chat Bubbles ── */
.chat-bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  animation: fadeInUp 0.3s ease;
  word-wrap: break-word;
}

.chat-bubble-ai {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--gradient-saffron);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-saffron);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
  min-width: 4px;
}

/* ── Fact Cards (Chat Sidebar) ── */
.fact-card {
  background: var(--navy-800);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.06);
}

.fact-card-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--saffron-400);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.fact-card-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-1);
}

.fact-card-desc {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin: 0;
}

/* ── API Status & Usage Card ── */
.api-status-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.api-status-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.api-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, rgba(255,153,51,0.04) 0%, rgba(19,136,8,0.04) 100%);
}

.api-status-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.api-status-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--saffron-500), var(--emerald-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(255,153,51,0.25);
}

.api-status-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--navy-800);
  margin: 0;
}

.api-status-subtitle {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin: 2px 0 0 0;
}

.api-status-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(19,136,8,0.1);
  border: 1px solid rgba(19,136,8,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--emerald-600);
}

.api-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(19,136,8,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(19,136,8,0); }
}

/* API Key Cards Grid */
.api-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
}

.api-key-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  transition: all var(--transition-base);
}

.api-key-card:hover {
  border-color: var(--saffron-300);
  box-shadow: var(--shadow-sm);
}

.api-key-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.api-key-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--navy-800);
}

/* Status Badges */
.api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.02em;
}

.api-status-active {
  background: rgba(19,136,8,0.1);
  color: var(--emerald-600);
  border: 1px solid rgba(19,136,8,0.2);
}

.api-status-limited {
  background: rgba(255,153,51,0.1);
  color: var(--saffron-600);
  border: 1px solid rgba(255,153,51,0.2);
}

.api-status-exhausted {
  background: rgba(220,38,38,0.08);
  color: var(--error);
  border: 1px solid rgba(220,38,38,0.15);
}

/* Meter / Progress Bar */
.api-key-meter {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.api-key-meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-300));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

.api-key-meter-fill-alt {
  background: linear-gradient(90deg, var(--saffron-500), var(--saffron-300));
}

.api-key-stats {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.api-key-stats strong {
  color: var(--navy-800);
  font-weight: var(--font-semibold);
}

/* Meta Info Grid */
.api-status-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.api-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
}

.api-meta-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.api-meta-label {
  display: block;
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: var(--font-semibold);
  line-height: 1.3;
}

.api-meta-value {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--navy-800);
  line-height: 1.4;
}

.api-meta-enabled {
  color: var(--emerald-600);
}

/* Footer */
.api-status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--gray-200);
  font-size: 11px;
  color: var(--gray-400);
}

/* ── Responsive Page Overrides ── */
@media (max-width: 1024px) {
  .hero h1 { font-size: var(--text-4xl); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-right-col { display: none; }
  .evm-body { grid-template-columns: 1fr; }
  .evm-ballot { border-right: none; border-bottom: 2px solid var(--gray-300); }
  .translate-grid { grid-template-columns: 1fr; }
  .translate-swap { padding: 0; }
  .why-vote-grid { grid-template-columns: repeat(2, 1fr); }
  .booth-finder-form { grid-template-columns: 1fr 1fr; }
  .api-status-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { min-height: 80vh; padding: var(--space-12) 0; }
  .hero h1 { font-size: var(--text-3xl); }
  .hero-content {
    max-width: 100%;
    padding: 0 var(--space-4);
  }
  .hero-stats { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  /* Countdown widget mobile */
  .countdown-widget {
    width: 100% !important;
    padding: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .countdown-widget h4 {
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
  }
  #election-countdown {
    gap: 10px !important;
  }
  #election-countdown > div > div:first-child {
    font-size: 1.8rem !important;
  }
  #election-countdown > div[style*="2.5rem"] {
    font-size: 1.8rem !important;
  }
  .booth-finder-form { grid-template-columns: 1fr; }
  .why-vote-grid { grid-template-columns: 1fr; }
  .quiz-card { padding: var(--space-5); }
  .chat-hero-title { font-size: var(--text-3xl); }
  .chat-avatar-inner { width: 64px; height: 64px; font-size: 28px; }
  .chat-avatar-ring { width: 64px; height: 64px; }
  .chat-stats-row { flex-direction: column; align-items: center; }
  .chat-messages-area { min-height: 300px; padding: var(--space-4); }
  .api-status-grid { grid-template-columns: 1fr; }
  .api-status-meta { grid-template-columns: 1fr; }
  .api-status-header { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
  .api-status-footer { flex-direction: column; gap: var(--space-1); text-align: center; }
}
