/* Quizzalo CSS Module: 01_core_nav_home.css - Design System Tokens, Navbar, Hero, Categories, Hotseat Base, Leaderboard, Modals & Footer */

/* SPA Instant Route Restoration: prevents home screen flash on page refresh */
html.route-loading #view-home {
  display: none !important;
}

/* Quizzalo Edu-KBC Design System */
:root {
  --primary: #c9182b; /* KBC Signature Red / Crimson */
  --primary-dark: #960f1e;
  --primary-light: #fff0f1;
  --secondary: #eab308; /* KBC Gold */
  --secondary-dark: #ca8a04;
  --navy: #0f172a;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-kbc: 0 0 25px rgba(201, 24, 43, 0.25);
}

/* Hotseat Dark Mode Theme */
body.hotseat-mode {
  --bg-main: #070b19;
  --bg-card: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --primary-light: rgba(201, 24, 43, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.kbc-gradient {
  background: linear-gradient(135deg, #c9182b 0%, #b01222 50%, #830b17 100%);
}

.gold-gradient {
  background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
}

.kbc-hotseat-bg {
  background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 60%, #030712 100%);
}

/* Top Navbar */
.navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1rem;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

.mobile-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.mobile-hamburger-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Anti-Copy / Anti-Selection Shield on Active Quiz Sprint & 1v1 Battle Question Areas */
#sprint-quiz-view,
#duel-view-playing {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Mobile Slide-Left Navigation Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(295px, 84vw);
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  transform: translateX(-104%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}

.mobile-nav-close-btn:hover {
  background: rgba(201, 24, 43, 0.1);
  border-color: rgba(201, 24, 43, 0.45);
  color: var(--primary);
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(201, 24, 43, 0.16);
}

.mobile-nav-close-btn:active {
  transform: scale(0.92);
  background: rgba(201, 24, 43, 0.18);
  box-shadow: none;
}

.mobile-nav-close-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(201, 24, 43, 0.1);
  color: var(--primary);
}

.mobile-nav-live-pill {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 900;
  background: #ef4444;
  color: #ffffff;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
}

.mobile-nav-drawer-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.9rem 0;
}

.mobile-nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: -0.025em;
  flex-shrink: 0;
  user-select: none;
}

.brand-logo-icon {
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

body.hotseat-mode .brand-logo-icon,
[data-theme="dark"] .brand-logo-icon {
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.32));
}

.brand-logo:hover .brand-logo-icon {
  transform: scale(1.1) translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.55));
}

.brand-badge {
  font-size: 0.65rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(254, 202, 202, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex-shrink: 1;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  white-space: nowrap !important;
  padding: 0.4rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(202, 138, 4, 0.1);
  border-color: rgba(202, 138, 4, 0.25);
}

.nav-link.active {
  color: var(--text-main);
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.45);
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  flex-shrink: 0;
}

/* Daily Sprint Navbar CTA Button */
#nav-daily-sprint-btn,
.nav-actions .btn-primary {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0 0.88rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid rgba(254, 202, 202, 0.35);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

#nav-daily-sprint-btn:hover,
.nav-actions .btn-primary:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

/* Coin Wallet Badge */
.coin-badge {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1.5px solid #f59e0b;
  color: #92400e;
  padding: 0 0.85rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.coin-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.coin-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Settings button in Top Multi-Language Bar */
.btn-top-qc {
  background: rgba(202, 138, 4, 0.2);
  border: 1px solid rgba(254, 240, 138, 0.4);
  color: #fef08a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 9999px;
  height: 32px;
  min-height: 32px;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.btn-top-qc:hover {
  background: rgba(202, 138, 4, 0.4);
  border-color: #fef08a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Universal Design Hierarchy: Unified Themed Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  user-select: none;
}

/* Primary Action Button: Signature KBC Crimson with White Bold Text */
.btn-primary {
  background-color: #c9182b !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(201, 24, 43, 0.3) !important;
}

.btn-primary:hover {
  background-color: #a51322 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(201, 24, 43, 0.45) !important;
  transform: translateY(-1.5px);
}

.btn-primary:active {
  background-color: #880e1b !important;
  transform: translateY(0);
}

/* Secondary Button: Crisp Solid White Card with Slate Border & Crimson Hover */
.btn-secondary {
  background-color: var(--bg-card) !important;
  border: 1.5px solid #cbd5e1 !important;
  color: var(--text-main) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  border-color: #c9182b !important;
  color: #c9182b !important;
  background-color: #fff1f2 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(201, 24, 43, 0.15) !important;
}

.btn-secondary:active {
  transform: translateY(0);
}

body.hotseat-mode .btn-secondary,
[data-theme="dark"] .btn-secondary {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
  color: #f1f5f9 !important;
}

body.hotseat-mode .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:hover {
  background-color: rgba(201, 24, 43, 0.2) !important;
  border-color: #fb7185 !important;
  color: #ffffff !important;
}

/* Gold Milestone / Sprint Button */
.btn-gold {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(202, 138, 4, 0.3) !important;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%) !important;
  color: #0f172a !important;
  box-shadow: 0 6px 16px rgba(202, 138, 4, 0.45) !important;
  transform: translateY(-1.5px);
}

.btn-sm {
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.kbc-trophy-card {
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #eab308;
  border-radius: 16px;
  padding: 2rem;
  color: white;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 0 30px rgba(234, 179, 8, 0.15);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(201, 24, 43, 0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Category Cards */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.cat-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.45rem;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cat-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.cat-tag-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  white-space: nowrap;
}

.cat-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.cat-card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex: 1;
}

.cat-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-color);
}

.cat-meta-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.cat-meta-levels {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-meta-prize {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.cat-play-btn {
  white-space: nowrap !important;
  flex-shrink: 0;
  font-weight: 700;
  padding: 0.48rem 0.9rem;
}

/* KBC Hotseat Interactive Arena */
.kbc-arena {
  background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 70%, #030712 100%);
  color: #f8fafc;
  border-radius: 20px;
  border: 2px solid #ca8a04;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 50px rgba(234, 179, 8, 0.2);
}

.arena-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.hotseat-main {
  display: flex;
  flex-direction: column;
}

/* Lifeline Bar */
.lifelines-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.lifeline-buttons {
  display: flex;
  gap: 0.75rem;
}

.lifeline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #ca8a04;
  color: #fef08a;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lifeline-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.5);
  border-color: #fef08a;
  color: #ffffff;
}

.lifeline-btn:disabled, .lifeline-btn.used {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(1);
  border-color: #475569;
  color: #94a3b8;
  text-decoration: line-through;
}

.lifeline-btn.used::after {
  display: none;
}

/* 30s Countdown Timer */
.kbc-timer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.timer-circle {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 4px solid #ca8a04;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fef08a;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
  transition: all 0.3s ease;
}

.timer-circle.warning {
  border-color: #f59e0b;
  color: #f59e0b;
  animation: pulse 1s infinite;
}

.timer-circle.danger {
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
  animation: pulse 0.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Question Banner */
.question-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #ca8a04;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

/* Scoped Anti-AI & Anti-Copy Shield (Active Quiz / Duel / CBT Question Surfaces Only) */
.quiz-anti-copy-zone,
.quiz-anti-copy-zone * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

.quiz-proctor-watermark {
  position: absolute;
  inset: -20% -15%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 2.25rem 3.5rem;
  transform: rotate(-16deg);
  opacity: 0.055;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
}

.question-banner > *:not(.quiz-proctor-watermark) {
  position: relative;
  z-index: 2;
}

.quiz-proctor-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.45rem !important;
  height: 1.45rem !important;
  min-width: 1.45rem !important;
  padding: 0 !important;
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  color: #6ee7b7 !important;
  font-size: 0.85rem !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.25) !important;
  cursor: help !important;
  flex-shrink: 0 !important;
}

.question-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.25rem !important;
  width: 100% !important;
  margin-bottom: 0.45rem !important;
  font-size: 0.78rem !important;
  color: #ca8a04;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-sizing: border-box !important;
}

.question-meta-left,
.question-meta-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.question-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

/* 4 Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

.option-btn {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #475569;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  word-break: break-word;
}

.option-badge {
  background-color: #334155;
  color: #ca8a04;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.option-btn:hover:not(:disabled) {
  border-color: #eab308;
  background: #334155;
  transform: translateY(-2px);
}

.option-btn.selected {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.option-btn.locked {
  border-color: #f59e0b;
  background: #b45309;
  animation: pulse 0.8s infinite;
}

.option-btn.correct {
  border-color: #22c55e !important;
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.7) !important;
  color: #fff !important;
}

.option-btn.wrong {
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%) !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7) !important;
  color: #fff !important;
}

.option-btn.eliminated {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
  filter: blur(1px);
}

/* Lock Answer & Quit Bar */
.action-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn-lock {
  flex: 1;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #fed7aa;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
  transition: all 0.2s ease;
}

.btn-lock:hover:not(:disabled) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6);
}

.btn-lock:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Ladder Tree (Money / Prize Ladder) */
.ladder-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #ca8a04;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ladder-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.ladder-step.safe-haven {
  color: #fef08a;
  background: rgba(202, 138, 4, 0.15);
  border-left: 3px solid #ca8a04;
}

.ladder-step.grand-winner-step {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.18) 0%, rgba(202, 138, 4, 0.08) 100%) !important;
  border: 1.5px solid #eab308 !important;
  color: #fef08a !important;
  border-radius: 8px !important;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.25) !important;
}

.safe-tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  font-weight: 800;
  border-radius: 4px;
  font-size: 0.65rem;
  padding: 2px 7px;
  line-height: 1.2;
}

.safe-tag.grand-winner-tag {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.5);
}

.safe-tag.safe-zone-tag {
  background: #ca8a04;
  color: #ffffff;
  font-weight: 800;
}

.ladder-step.active {
  background: linear-gradient(90deg, #ea580c 0%, #ca8a04 100%);
  color: #ffffff !important;
  font-weight: 800;
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.ladder-step.completed {
  color: #22c55e;
}

/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.article-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.article-img-box {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-img-box img {
  transform: scale(1.05);
}

.article-img-box {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .article-img-box img {
  transform: scale(1.05);
}

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  color: var(--text-main);
}

.article-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Academic Hub Banner & Interactive Chips */
.academic-hub-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 27, 75, 0.96) 55%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-left: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  position: relative;
}

.academic-chip-btn {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.academic-chip-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.academic-chip-btn:active {
  transform: translateY(0);
}

/* AdSense Mock Containers */
.adsense-slot {
  background: #f1f5f9;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.adsense-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  background: #94a3b8;
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  font-weight: 700;
}

/* Rewards Store */
.reward-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.reward-card:hover {
  border-color: #ca8a04;
  box-shadow: 0 10px 15px -3px rgba(202, 138, 4, 0.1);
}

/* Leaderboard - Unified 5-Tab Merit & CBT Ranking Hub */
.lb-hero-header {
  background: linear-gradient(135deg, #0b1329 0%, #172554 55%, #1e1b4b 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  color: #f8fafc;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.lb-hero-main {
  flex: 1;
  min-width: 260px;
}

.lb-hero-title {
  font-size: 1.85rem;
  font-weight: 900;
  margin: 0 0 0.35rem 0;
  color: #f8fafc;
}

.lb-hero-desc {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
  max-width: 640px;
  line-height: 1.5;
}

.lb-summary-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lb-stat-chip {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  min-width: 110px;
  text-align: center;
}

.lb-stat-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fde047;
  line-height: 1.2;
}

.lb-stat-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.lb-my-standing-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(202, 138, 4, 0.5);
  border-left: 5px solid #ca8a04;
  border-radius: 14px;
  padding: 1rem 1.35rem;
  margin-bottom: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.lb-standing-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.lb-standing-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.lb-standing-info {
  min-width: 0;
  flex: 1;
}

.lb-standing-metrics {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.lb-standing-pill {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
}

.lb-tabs-bar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--border-color);
}

.lb-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lb-tab-btn:hover {
  border-color: #ca8a04;
  color: var(--text-main);
  transform: translateY(-1px);
}

.lb-tab-btn.active {
  background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
  color: #0f172a;
  border-color: #facc15;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}

.lb-tab-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  color: inherit;
}

.lb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.lb-subfilter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.lb-global-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.lb-fairplay-strip {
  margin-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.lb-fairplay-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.5;
}

.lb-fairplay-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.lb-weekly-modal-card {
  padding: 1.75rem;
}

.lb-weekly-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.lb-weekly-modal-title {
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 0.25rem;
}

.lb-mobile-prefix {
  display: none;
}

.lb-pill-filter {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.lb-pill-filter:hover {
  border-color: #38bdf8;
  color: var(--text-main);
}

.lb-pill-filter.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.lb-search-input {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.84rem;
  min-width: 210px;
  outline: none;
  font-family: inherit;
}

.lb-search-input:focus {
  border-color: #ca8a04;
}

.lb-mock-select {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1.5px solid #0284c7;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  max-width: 100%;
}

/* Victory Podium (Top 3 Champions) */
.lb-podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.lb-podium-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.lb-podium-card.rank-1 {
  background: linear-gradient(160deg, rgba(234, 179, 8, 0.16) 0%, var(--bg-card) 70%);
  border: 2px solid #eab308;
  padding-top: 1.65rem;
  padding-bottom: 1.5rem;
  box-shadow: 0 12px 28px rgba(234, 179, 8, 0.18);
}

.lb-podium-card.rank-2 {
  border-color: #94a3b8;
  background: linear-gradient(160deg, rgba(148, 163, 184, 0.12) 0%, var(--bg-card) 70%);
}

.lb-podium-card.rank-3 {
  border-color: #d97706;
  background: linear-gradient(160deg, rgba(217, 119, 6, 0.12) 0%, var(--bg-card) 70%);
}

.lb-podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.lb-podium-card.rank-1 .lb-podium-avatar {
  width: 62px;
  height: 62px;
  font-size: 1.45rem;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #0f172a;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.5);
}

.lb-jackpot-hall {
  background: linear-gradient(135deg, #0b1329 0%, #1e1b4b 60%, #0f172a 100%);
  border: 2px solid #eab308;
  border-radius: 16px;
  padding: 1.5rem;
  color: #f8fafc;
  margin-bottom: 1.35rem;
}

.lb-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.lb-upcoming-item {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.lb-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
  min-width: 650px;
  table-layout: fixed;
}

.leaderboard-table th, .leaderboard-table td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
}

/* Fixed column dimensions on desktop so column widths NEVER shift across pages */
.leaderboard-table th.lb-th-rank,
.leaderboard-table td.lb-col-rank {
  width: 75px;
  min-width: 75px;
  max-width: 75px;
  text-align: center;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-user,
.leaderboard-table td.lb-col-user {
  width: 27%;
  min-width: 165px;
  overflow: hidden;
}

.leaderboard-table td.lb-col-user .lb-user-cell-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  overflow: hidden;
}

.leaderboard-table td.lb-col-user .lb-user-text {
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.leaderboard-table td.lb-col-user .lb-user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-table td.lb-col-user .lb-user-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-table th.lb-th-primary,
.leaderboard-table td.lb-col-primary {
  width: 145px;
  min-width: 135px;
  max-width: 160px;
  text-align: right;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-track,
.leaderboard-table td.lb-col-meta[data-label="Exam Track"],
.leaderboard-table td.lb-col-meta[data-label="Top Arena"],
.leaderboard-table td.lb-col-meta[data-label="Qualifier Status"] {
  width: 20%;
  min-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-activities,
.leaderboard-table td.lb-col-meta[data-label="Quizzes / Mocks / Duels"],
.leaderboard-table td.lb-col-meta[data-label="CBT + Quizzes"] {
  width: 185px;
  min-width: 160px;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-streak,
.leaderboard-table td.lb-col-meta[data-label*="Streak"] {
  width: 85px;
  min-width: 80px;
  max-width: 95px;
  text-align: center;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-stat-sm,
.leaderboard-table td.lb-col-meta[data-label="Quizzes"],
.leaderboard-table td.lb-col-meta[data-label="Duels Played"],
.leaderboard-table td.lb-col-meta[data-label="Avg Speed"],
.leaderboard-table td.lb-col-meta[data-label="Level Reached"] {
  width: 105px;
  min-width: 90px;
  text-align: center;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-duel-wins,
.leaderboard-table td.lb-col-meta[data-label="Wins (Win %)"] {
  width: 155px;
  min-width: 140px;
  white-space: nowrap;
}

/* CBT Mock Test specific columns */
.leaderboard-table th.lb-th-cbt-score,
.leaderboard-table td.lb-col-primary.lb-col-cbt-score {
  width: 110px;
  min-width: 100px;
  text-align: right;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-cbt-sessions,
.leaderboard-table td.lb-col-meta[data-label="S1 / S2 Marks"] {
  width: 150px;
  min-width: 135px;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-cbt-accuracy,
.leaderboard-table td.lb-col-meta[data-label="Accuracy"] {
  width: 90px;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-cbt-percentile,
.leaderboard-table td.lb-col-meta[data-label="Percentile"] {
  width: 95px;
  min-width: 85px;
  text-align: center;
  white-space: nowrap;
}

.leaderboard-table th.lb-th-cbt-time,
.leaderboard-table td.lb-col-meta[data-label="Time"] {
  width: 90px;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

.leaderboard-table th {
  background-color: rgba(201, 24, 43, 0.05);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.leaderboard-table tr:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tr.lb-row-me {
  background: rgba(234, 179, 8, 0.12) !important;
}

.lb-benchmark-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.75rem;
}

.lb-bench-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lb-gate-card {
  position: relative;
  border-radius: 16px;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, #0b1329 0%, #172554 60%, #1e1b4b 100%);
  padding: 1.85rem 1.5rem;
  text-align: center;
  color: #f8fafc;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.35);
  overflow: hidden;
}

.lb-pill-filter.goal-recommended {
  border: 1.5px solid #d97706;
  background: #fef3c7;
  color: #92400e !important;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1);
}

body.hotseat-mode .lb-pill-filter.goal-recommended,
[data-theme="dark"] .lb-pill-filter.goal-recommended {
  background: rgba(202, 138, 4, 0.22);
  color: #fef08a !important;
  border-color: #ca8a04;
}

.lb-pill-filter.goal-recommended.active {
  background: #ca8a04;
  color: #0f172a;
}

@media (max-width: 768px) {
  .lb-mobile-prefix {
    display: inline;
  }
  .lb-hero-header {
    padding: 1rem 0.95rem;
    gap: 0.9rem;
    margin-bottom: 1rem;
  }
  .lb-hero-main {
    min-width: 0;
    width: 100%;
  }
  .lb-hero-title {
    font-size: 1.28rem;
    line-height: 1.24;
  }
  .lb-hero-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .lb-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }
  .lb-stat-chip {
    min-width: 0;
    padding: 0.5rem 0.3rem;
    border-radius: 10px;
  }
  .lb-stat-val {
    font-size: 0.96rem;
  }
  .lb-stat-lbl {
    font-size: 0.61rem;
    letter-spacing: 0.02em;
  }
  .lb-my-standing-card {
    padding: 0.9rem;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .lb-standing-signin-btn {
    width: 100%;
    justify-content: center;
  }
  .lb-standing-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }
  .lb-standing-pill {
    padding: 0.42rem 0.6rem;
    min-width: 0;
  }
  .lb-tabs-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
    gap: 0.4rem !important;
    padding-bottom: 0.55rem;
    margin-bottom: 0.85rem;
    scrollbar-width: none !important;
  }
  .lb-tabs-bar::-webkit-scrollbar {
    display: none !important;
  }
  .lb-tab-btn {
    flex: unset !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    padding: 0.45rem 0.35rem !important;
    gap: 0.25rem !important;
    font-size: 0.72rem !important;
    text-align: center !important;
    justify-content: center !important;
    height: 100% !important;
    min-height: 40px !important;
    line-height: 1.25 !important;
  }
  .lb-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  .lb-subfilter-group {
    width: 100%;
    min-width: 0;
    gap: 0.4rem;
  }
  .lb-mock-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 0.82rem;
  }
  .lb-filter-divider {
    display: none;
  }
  .lb-global-controls {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  #lb-participated-toggle-btn {
    width: 100%;
    text-align: center;
  }
  .lb-period-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.4rem;
  }
  .lb-period-pills .lb-pill-filter {
    text-align: center;
    padding: 0.4rem 0.25rem;
    font-size: 0.76rem;
  }
  .lb-search-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .lb-benchmark-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .lb-bench-pill {
    padding: 0.55rem 0.65rem;
    min-width: 0;
  }
  .lb-bench-pill-wide {
    grid-column: 1 / -1;
  }
  .lb-gate-card {
    padding: 1.15rem 0.9rem;
  }
  .lb-gate-title {
    font-size: 1.06rem !important;
  }
  .lb-gate-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .lb-gate-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .lb-jackpot-hall {
    padding: 1rem 0.9rem;
  }
  .lb-jackpot-title {
    font-size: 1.16rem !important;
    line-height: 1.25;
  }
  .lb-jackpot-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem !important;
  }
  .lb-jackpot-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.52rem 0.45rem;
    font-size: 0.76rem;
  }
  .lb-upcoming-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .lb-podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
    margin-bottom: 1.1rem;
  }
  .lb-podium-grid.lb-podium-count-1,
  .lb-podium-grid.lb-podium-count-2 {
    grid-template-columns: 1fr;
  }
  .lb-podium-card {
    padding: 0.82rem 0.58rem;
    border-radius: 13px;
    min-width: 0;
  }
  .lb-podium-card.rank-1 {
    grid-column: 1 / -1;
    order: -1;
    padding: 0.95rem 0.85rem;
  }
  .lb-podium-card:not(.rank-1) .lb-podium-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  .lb-podium-card.rank-1 .lb-podium-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
  }
  .lb-podium-medal {
    font-size: 0.64rem !important;
    margin-bottom: 0.35rem !important;
    letter-spacing: 0.03em !important;
  }
  .lb-podium-name {
    font-size: 0.86rem !important;
    overflow-wrap: anywhere;
  }
  .lb-podium-card.rank-1 .lb-podium-name {
    font-size: 0.98rem !important;
  }
  .lb-podium-track {
    font-size: 0.68rem !important;
    margin-bottom: 0.45rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lb-podium-statbox {
    padding: 0.38rem 0.4rem !important;
  }
  .lb-podium-stat-primary {
    font-size: 0.84rem !important;
  }
  .lb-podium-stat-secondary {
    font-size: 0.66rem !important;
  }
  .lb-table-wrapper {
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .lb-responsive-table {
    min-width: 0 !important;
    width: 100%;
    display: block;
    background: transparent !important;
  }
  .lb-responsive-table thead {
    display: block;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    margin-bottom: 0.65rem;
    overflow: hidden;
  }
  .lb-responsive-table thead tr {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.58rem 0.78rem;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(201, 24, 43, 0.05);
  }
  .lb-responsive-table thead th {
    padding: 0;
    background: transparent;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
  .lb-responsive-table thead th.lb-th-rank {
    order: 1;
    flex: 0 0 46px;
    width: 46px;
  }
  .lb-responsive-table thead th.lb-th-user {
    order: 2;
    flex: 1 1 0%;
    min-width: 0;
  }
  .lb-responsive-table thead th.lb-th-primary,
  .lb-responsive-table thead th.lb-th-cbt-score {
    order: 3;
    flex: 0 0 100px;
    width: 100px;
    margin-left: auto;
    text-align: right;
  }
  .lb-responsive-table thead th.lb-th-meta,
  .lb-responsive-table thead th.lb-th-track,
  .lb-responsive-table thead th.lb-th-activities,
  .lb-responsive-table thead th.lb-th-streak,
  .lb-responsive-table thead th.lb-th-stat-sm,
  .lb-responsive-table thead th.lb-th-duel-wins,
  .lb-responsive-table thead th.lb-th-cbt-sessions,
  .lb-responsive-table thead th.lb-th-cbt-accuracy,
  .lb-responsive-table thead th.lb-th-cbt-percentile,
  .lb-responsive-table thead th.lb-th-cbt-time {
    display: none !important;
  }
  .lb-responsive-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    width: 100%;
  }
  .lb-responsive-table tbody tr:not(.lb-row-empty) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.42rem 0.5rem;
    padding: 0.8rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color) !important;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
  }
  .lb-responsive-table tbody tr.lb-row-me:not(.lb-row-empty) {
    border-color: #ca8a04 !important;
    border-left: 4px solid #ca8a04 !important;
  }
  .lb-responsive-table tbody tr:not(.lb-row-empty)::after {
    content: "";
    order: 4;
    flex-basis: 100%;
    height: 1px;
    background: var(--border-color);
    opacity: 0.65;
    margin: 0.12rem 0;
  }
  .lb-responsive-table tbody tr.lb-row-empty {
    display: block;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
    border-radius: 14px;
  }
  .lb-responsive-table tbody tr.lb-row-empty td {
    display: block;
    width: 100%;
    padding: 1.5rem 0.75rem;
  }
  .lb-responsive-table td {
    padding: 0;
    border: none;
  }
  .lb-responsive-table td.lb-col-rank {
    order: 1;
    flex: 0 0 46px;
    width: 46px;
    display: inline-flex;
    align-items: center;
    align-self: center;
    white-space: nowrap;
    font-size: 0.88rem !important;
  }
  .lb-responsive-table td.lb-col-user {
    order: 2;
    flex: 1 1 0%;
    min-width: 0;
    align-self: center;
  }
  .lb-responsive-table td.lb-col-user .lb-row-avatar {
    width: 1.9rem !important;
    height: 1.9rem !important;
    font-size: 0.78rem !important;
  }
  .lb-responsive-table td.lb-col-user .lb-user-name {
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }
  .lb-responsive-table td.lb-col-user .lb-user-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lb-responsive-table td.lb-col-primary {
    order: 3;
    flex: 0 0 100px;
    width: 100px;
    margin-left: auto;
    align-self: center;
    text-align: right;
    font-size: 0.88rem !important;
    white-space: nowrap;
  }
  .lb-responsive-table td.lb-col-primary small {
    display: block;
    font-size: 0.66rem;
    font-weight: 600;
  }
  .lb-responsive-table td.lb-col-meta {
    order: 5;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 0.72rem !important;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.32rem 0.45rem;
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lb-responsive-table td.lb-col-meta.lb-col-meta-wide,
  .lb-responsive-table td.lb-col-meta[data-label="Exam Track"],
  .lb-responsive-table td.lb-col-meta[data-label="Top Arena"] {
    flex: 1.15 1 0;
    width: auto;
  }
  .lb-responsive-table td.lb-col-meta[data-label="Quizzes / Mocks / Duels"],
  .lb-responsive-table td.lb-col-meta[data-label="Wins (Win %)"],
  .lb-responsive-table td.lb-col-meta[data-label="S1 / S2 Marks"] {
    flex: 1.25 1 0;
  }
  .lb-responsive-table td.lb-col-meta[data-label*="Streak"],
  .lb-responsive-table td.lb-col-meta[data-label="Time"],
  .lb-responsive-table td.lb-col-meta[data-label="Percentile"] {
    flex: 0.7 1 0;
    text-align: center;
    align-items: center;
  }
  .lb-responsive-table td.lb-col-meta[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.54rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.12rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lb-responsive-table td.lb-col-meta > span,
  .lb-responsive-table td.lb-col-meta > div {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: inherit !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
  }
  .lb-fairplay-strip {
    padding: 0.9rem;
    gap: 0.75rem;
  }
  .lb-fairplay-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.45rem;
  }
  .lb-fairplay-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .lb-weekly-modal-card {
    padding: 1.1rem 0.9rem !important;
  }
  .lb-weekly-modal-title {
    font-size: 1.15rem !important;
    padding-right: 1.8rem;
  }
  .lb-weekly-table-wrap {
    max-height: 55vh !important;
    overflow-x: hidden !important;
    overflow-y: auto;
    border: none;
    background: transparent;
  }
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display: block"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-overlay[style*="display: none"],
.modal-overlay[style*="display:none"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.modal-close {
  position: absolute;
  top: 14px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(30, 41, 59, 0.92) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #f1f5f9 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 60 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 0 !important;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.32) !important;
  border-color: rgba(239, 68, 68, 0.65) !important;
  color: #fca5a5 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35) !important;
}

.modal-close:active {
  transform: scale(0.92) !important;
}

/* Sleek Dark Scrollbar for all modals and popup content */
.modal-content,
.modal-overlay,
#duel-history-items-list,
#ca-detail-modal .modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.modal-content::-webkit-scrollbar,
#duel-history-items-list::-webkit-scrollbar,
#ca-detail-modal .modal-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.modal-content::-webkit-scrollbar-track,
#duel-history-items-list::-webkit-scrollbar-track,
#ca-detail-modal .modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb,
#duel-history-items-list::-webkit-scrollbar-thumb,
#ca-detail-modal .modal-content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
#duel-history-items-list::-webkit-scrollbar-thumb:hover,
#ca-detail-modal .modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.65);
}

/* Audience Poll Bar Chart */
.poll-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #0f172a;
  border-radius: 12px;
}

.poll-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
}

.poll-bar {
  width: 100%;
  background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
  border-radius: 6px 6px 0 0;
  transition: height 1s ease-out;
  min-height: 4px;
}

.poll-pct {
  color: #fef08a;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.poll-label {
  color: white;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 1.25rem;
  left: auto;
  max-width: min(440px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999999;
  pointer-events: none;
  box-sizing: border-box;
}

.toast {
  background: #0f172a;
  color: white;
  padding: 0.8rem 1.05rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: slideIn 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--primary);
  pointer-events: auto;
}

.toast > div {
  min-width: 0;
  flex: 1;
}

body.hotseat-gameplay-active #toast-container,
body.cbt-exam-active #toast-container {
  top: 0.75rem;
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(540px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  align-items: center;
}

body.hotseat-gameplay-active .toast,
body.cbt-exam-active .toast {
  width: 100%;
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
  animation: slideDownToast 0.25s ease;
}

@media (max-width: 768px) {
  #toast-container {
    right: 0.75rem;
    left: 0.75rem;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    width: auto;
  }
  body.hotseat-gameplay-active #toast-container,
  body.cbt-exam-active #toast-container {
    top: 0.6rem;
    bottom: auto;
    left: 0.65rem;
    right: 0.65rem;
    transform: none;
    width: auto;
    max-width: none;
  }
}

@keyframes slideDownToast {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile App Mockup Frame Mode */
.app-simulator-wrapper {
  max-width: 420px;
  margin: 2rem auto;
  border: 14px solid #1e293b;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  background: var(--bg-main);
  position: relative;
}

.app-phone-notch {
  width: 140px;
  height: 22px;
  background: #1e293b;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
}

/* Footer - Enterprise 5-Column Aspirant Portal */
.footer {
  margin-top: auto;
  background-color: var(--bg-card);
  border-top: 1.5px solid var(--border-color);
  padding: 3.25rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.35fr 1.05fr 1fr 1.25fr;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.01em;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.footer-link-icon {
  width: 1.25rem;
  min-width: 1.25rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
}

.footer-link:hover {
  color: #ca8a04;
  transform: translateX(3px);
}

.footer-link-gold {
  color: #ca8a04 !important;
  font-weight: 700 !important;
}

.footer-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.footer-mini-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

body.hotseat-mode .footer-mini-pill,
[data-theme="dark"] .footer-mini-pill {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

.footer-store-cta {
  width: 100%;
  justify-content: center;
  margin-top: 0.9rem;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  white-space: nowrap;
}

.footer-jackpot-widget {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  margin: 1.25rem 0 0;
  color: #f8fafc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 1200px) and (min-width: 993px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Responsive Breakpoints */
/* Intermediate Laptop / Tablet Screens (993px to 1220px) */
@media (min-width: 993px) and (max-width: 1220px) {
  .nav-content {
    gap: 0.65rem;
  }
  .nav-links {
    gap: 0.1rem;
  }
  .nav-link {
    font-size: 0.81rem;
    padding: 0.34rem 0.42rem;
  }
  .nav-links .btn-nav-cbt-badge {
    padding: 0.28rem 0.56rem;
    font-size: 0.77rem;
    gap: 0.28rem;
  }
  .nav-links .cbt-badge-pulse {
    font-size: 0.58rem;
    padding: 0.08rem 0.34rem;
  }
  .nav-actions {
    gap: 0.38rem;
  }
  .nav-actions #nav-daily-sprint-btn,
  .nav-actions .btn-primary,
  .nav-actions #nav-login-btn,
  #quick-settings-toggle-btn,
  .coin-badge {
    height: 34px;
    min-height: 34px;
    padding: 0 0.72rem;
    font-size: 0.77rem;
  }
  .nav-user-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  .brand-logo {
    font-size: 1.22rem;
    gap: 0.4rem;
  }
  .brand-logo-icon {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 993px) and (max-width: 1080px) {
  .brand-logo {
    font-size: 1.15rem;
    gap: 0.32rem;
  }
  .brand-logo-icon {
    width: 26px;
    height: 26px;
  }
  .nav-link {
    font-size: 0.76rem;
    padding: 0.3rem 0.4rem;
  }
  .nav-links .btn-nav-cbt-badge {
    padding: 0.24rem 0.52rem;
    font-size: 0.74rem;
    gap: 0.25rem;
  }
  .nav-sprint-full,
  .nav-login-extra {
    display: none;
  }
}

/* Responsive Breakpoints (<= 992px) */
@media (max-width: 992px) {
  .hero-banner-grid {
    grid-template-columns: 1fr;
  }
  .arena-layout {
    grid-template-columns: 1fr;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none !important;
  }
}

/* Floating Simulated Android Push Notification */
.sim-push-banner {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  background: #1e293b;
  color: white;
  border: 1.5px solid #ca8a04;
  border-radius: 16px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: min(440px, calc(100vw - 24px));
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(234, 179, 8, 0.4);
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-push-banner.active {
  transform: translateX(-50%) translateY(0);
}

/* Interactive Calculator Sliders */
.calc-slider {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0.5rem 0;
}

.calc-metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.calc-metric-box:hover {
  transform: translateY(-2px);
  border-color: #ca8a04;
}

/* Mobile Simulator Phone Chrome */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  background: #0f172a;
}

/* Daily Sprint Action Strip Layout */
.dock-sprint-action-strip {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.55rem;
  width: 100%;
  box-sizing: border-box;
}

.dock-sprint-start-btn {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.48rem 0.75rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.dock-sprint-icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  border-radius: 8px;
}

/* Home Page Study Notes Header Responsive Stack */
.home-study-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .home-study-notes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .home-study-notes-header h2 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }
  .home-study-notes-header p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }
  .home-study-notes-all-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
  }
}


