/* ============================================================================
 * TEXT STACK WEB — FLUTTER MOBILE APP VISUAL PARITY THEME
 * Aligns exact AppColors, AppGradients, AppRadius, Home Cards, Frosted Mobile
 * Bottom Navigation, and Floating Gyan AI FAB with /lib/core/design/app_design.dart
 * ============================================================================ */

:root,
[data-theme="dark"] {
  --bg: #090D16;
  --bg-page: #090D16;
  --bg-card: #111827;
  --bg-card-hover: #1E293B;
  --bg-sidebar: #0E1525;
  --bg-topbar: rgba(9, 13, 22, 0.90);
  --bg-input: #1E293B;
  --text: #F8FAFC;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #1F2937;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --primary: #3B82F6;
  --primary-dark: #1D4ED8;
  --secondary: #4F46E5;
  --accent-indigo: #6366F1;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-rose: #EF4444;
  --card-radius: 14px;
  --hero-radius: 16px;
  --shadow-mobile-card: 0 4px 12px rgba(0, 0, 0, 0.20);
}

[data-theme="light"] {
  --bg: #F8FAFC;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-sidebar: #FFFFFF;
  --bg-topbar: rgba(255, 255, 255, 0.92);
  --bg-input: #F1F5F9;
  --text: #0F172A;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --secondary: #3B82F6;
  --accent-indigo: #2563EB;
  --accent-amber: #D97706;
  --accent-emerald: #059669;
  --accent-rose: #DC2626;
  --card-radius: 14px;
  --hero-radius: 16px;
  --shadow-mobile-card: 0 2px 8px rgba(14, 24, 60, 0.06);
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Tabular numbers across all metrics, counters, timers & ranks */
.app-metric-val,
.streak-flame-pill,
.coins-wallet-pill,
.district-league-pts,
.challenge-meta-row strong,
#topbarCoinsVal,
#streakCountText,
#resultScoreNumber {
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
 * 1. CLEAN MOBILE-ALIGNED TOPBAR & SIDEBAR
 * ============================================================================ */
.app-header.topbar {
  background: var(--bg-topbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 58px;
}

.app-drawer.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
}

.topbar-search-pill {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
}

.topbar-search-pill:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* Signature Flutter Streak Flame Pill (#FF6D00 -> #FF9E00) */
.streak-flame-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6D00, #FF9E00);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 109, 0, 0.30);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.streak-flame-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255, 109, 0, 0.38);
}

/* Coins Wallet Pill */
.coins-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #FBBF24;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease;
}

[data-theme="light"] .coins-wallet-pill {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #B45309;
}

.coins-wallet-pill:hover {
  transform: translateY(-1px);
  background: rgba(245, 158, 11, 0.24);
}

/* District Pill */
.district-topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease;
}

.district-topbar-pill:hover {
  border-color: var(--primary);
}

/* Gradient-ring Avatar matching HomeGreetingBar (#3B82F6 -> #8B5CF6) */
.user-avatar-sm,
#greetingAvatarLetter,
#headerUserAvatar,
#drawerUserAvatar {
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.30);
}

.greeting-avatar-ring {
  padding: 2.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.greeting-avatar-ring .user-avatar-sm {
  border: 2px solid var(--bg-card);
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

/* Remove decorative pulsing status dot per clean UI standards */
.status-dot {
  display: none !important;
}

/* ============================================================================
 * 2. STANDARD CARDS & HOME FEED RHYTHM
 * ============================================================================ */
#homeFeedContainer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-mobile-card);
}

.section-header-compact {
  margin-bottom: 10px;
}

.section-title-compact {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-action-compact {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ============================================================================
 * 3. MOBILE-STYLE GREETING BAR
 * ============================================================================ */
.greeting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-mobile-card);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.greeting-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.greeting-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.greeting-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.greeting-target {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.target-badge-sm {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
}

.progress-bar-sm {
  height: 7px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-sm .progress-fill {
  background: linear-gradient(90deg, #2563EB, #6366F1);
  border-radius: 999px;
}

/* ============================================================================
 * 4. PUNJAB EXAM PASS VIP BANNER (Exact HomePunjabPassBanner Emerald)
 * ============================================================================ */
.mobile-pass-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #065F46 0%, #047857 100%);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  font-family: inherit;
}

.mobile-pass-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(6, 95, 70, 0.36);
}

.mobile-pass-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.mobile-pass-body {
  flex: 1;
  min-width: 0;
}

.mobile-pass-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.mobile-pass-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
}

.mobile-pass-vip-tag {
  background: #FFFFFF;
  color: #065F46;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ============================================================================
 * 5. HERO DAILY CHALLENGE CARD (Exact HomeHeroChallenge Indigo Gradient)
 * ============================================================================ */
.hero-challenge-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--hero-radius);
  padding: 22px 24px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, #1E1B4B 0%, #2E2A72 52%, #0F172A 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(30, 27, 75, 0.34);
  margin-bottom: 0;
}

[data-theme="light"] .hero-challenge-card {
  background: linear-gradient(135deg, #3730A3 0%, #4F46E5 52%, #6366F1 100%);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.26);
}

.hero-challenge-card::before,
.hero-challenge-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-challenge-card::before {
  width: 210px;
  height: 210px;
  top: -70px;
  right: -50px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-challenge-card::after {
  width: 140px;
  height: 140px;
  bottom: -55px;
  left: -30px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-challenge-card > * {
  position: relative;
  z-index: 1;
}

.hero-challenge-card .challenge-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-challenge-card .challenge-subject-pill {
  background: rgba(245, 158, 11, 0.22);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.42);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-challenge-card .challenge-title {
  color: #FFFFFF;
  font-size: 1.38rem;
  font-weight: 800;
  margin: 10px 0 6px;
  line-height: 1.3;
}

.hero-challenge-card .challenge-desc {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero-challenge-card .challenge-meta-row {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-challenge-card .btn-start-challenge-sm {
  background: #FFFFFF;
  color: #3730A3;
  font-weight: 900;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.84rem;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hero-challenge-card .btn-start-challenge-sm:hover {
  background: #EEF2FF;
  transform: translateY(-1px);
}

.hero-challenge-card .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-challenge-card .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ============================================================================
 * 6. SIGNATURE 4-CARD GRADIENT RAPID PRACTICE (Exact HomeRapidPracticeGrid)
 * ============================================================================ */
.rapid-practice-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rapid-card.mobile-rapid-gradient {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--card-radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 128px;
  gap: 12px;
  color: #FFFFFF !important;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rapid-card.mobile-rapid-gradient::before {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  top: -28px;
  right: -24px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.rapid-card.mobile-rapid-gradient::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  bottom: -20px;
  right: 22px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.rapid-card.mobile-rapid-gradient:hover {
  transform: translateY(-2px);
}

.rapid-card.rapid-blue {
  background: linear-gradient(135deg, #0284C7 0%, #075985 100%);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

.rapid-card.rapid-purple {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.rapid-card.rapid-orange {
  background: linear-gradient(135deg, #EA580C 0%, #9A3412 100%);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}

.rapid-card.rapid-rose {
  background: linear-gradient(135deg, #E11D48 0%, #9F1239 100%);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28);
}

.rapid-card.mobile-rapid-gradient .rapid-icon-sm {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.rapid-card.mobile-rapid-gradient .rapid-info {
  position: relative;
  z-index: 1;
}

.rapid-card.mobile-rapid-gradient .rapid-info h4 {
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0 0 3px;
}

.rapid-card.mobile-rapid-gradient .rapid-info p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  margin: 0;
  line-height: 1.3;
}

/* ============================================================================
 * 7. PAPER-A COMPULSORY ARENA + STUDY NOTES BANNER (Mobile Exact Duo)
 * ============================================================================ */
.mobile-spotlight-duo {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}

/* Exact HomePaperACard Magenta-Crimson Gradient */
.mobile-paper-a-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--card-radius);
  padding: 20px 22px;
  background: linear-gradient(135deg, #831843 0%, #9D174D 52%, #BE185D 100%);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(131, 24, 67, 0.30);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  font-family: inherit;
}

.mobile-paper-a-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(131, 24, 67, 0.38);
}

.paper-a-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.paper-a-badge-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
}

.paper-a-mocks-pill {
  background: #F59E0B;
  color: #111827;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

.paper-a-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.28;
}

.paper-a-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.4;
}

.paper-a-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.paper-a-spec {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
}

.paper-a-cta {
  background: #FFFFFF;
  color: #831843;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 14px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* Exact _HomeStudyNotesBanner Royal Blue Gradient */
.mobile-notes-banner {
  border: none;
  border-radius: var(--card-radius);
  padding: 20px 22px;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  font-family: inherit;
}

.mobile-notes-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.36);
}

.mobile-notes-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-notes-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.mobile-notes-priority {
  display: inline-block;
  background: #F59E0B;
  color: #0F172A;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  margin-left: 6px;
  vertical-align: middle;
}

/* ============================================================================
 * 8. LIVE PUNJAB DISTRICT LEAGUE CARD (Exact HomeDistrictLeagueSection)
 * ============================================================================ */
.mobile-district-league-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(245, 158, 11, 0.42);
  border-radius: var(--card-radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-mobile-card);
}

.district-league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

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

.district-league-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.16);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.district-league-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  align-items: stretch;
}

.district-your-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.district-top3-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.district-top3-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.district-top3-row.is-mine {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.10);
}

.district-league-pts {
  font-weight: 800;
  color: #F59E0B;
  font-size: 0.8rem;
}

[data-theme="light"] .district-league-pts {
  color: #B45309;
}

/* ============================================================================
 * 9. QUICK ARENA TILES & PLATFORM METRICS
 * ============================================================================ */
.quick-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-tile {
  border-radius: var(--card-radius);
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mobile-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.feature-tile:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.app-metric-card {
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mobile-card);
}

/* ============================================================================
 * 10. FLOATING GYAN AI TUTOR FAB (Exact HomePage._buildGyanAiFab)
 * ============================================================================ */
.gyan-ai-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gyan-ai-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.52);
}

.gyan-ai-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================================================
 * 11. FROSTED GLASS iOS/FLUTTER BOTTOM NAVIGATION BAR (Mobile)
 * ============================================================================ */
.bottom-nav {
  background: rgba(15, 23, 42, 0.90) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
  height: 58px !important;
  padding: 4px 6px env(safe-area-inset-bottom, 4px) !important;
  z-index: 950;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.10) !important;
}

.bottom-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8E8E93 !important;
  font-size: 0.67rem !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.bottom-nav-item.active {
  color: #2563EB !important;
  font-weight: 800;
}

[data-theme="dark"] .bottom-nav-item.active {
  color: #60A5FA !important;
}

.bottom-nav-item.active::before {
  content: "";
  position: absolute;
  top: -4px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

/* ============================================================================
 * 12. RESPONSIVE BREAKPOINTS (Tablet & Mobile 390px)
 * ============================================================================ */
@media (max-width: 1024px) {
  .mobile-spotlight-duo,
  .district-league-body {
    grid-template-columns: 1fr;
  }

  .rapid-practice-row,
  .quick-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Keep combined topbar + bottom nav <= 15% of 844px mobile viewport */
  .app-header.topbar {
    height: 50px;
    padding: 0 10px;
    gap: 6px;
  }

  .topbar-left {
    gap: 6px;
    min-width: 0;
    flex-shrink: 0;
  }

  .topbar-brand-mini {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.86rem;
    gap: 6px;
  }

  .topbar-brand-mini img {
    width: 24px;
    height: 24px;
  }

  .topbar-right {
    gap: 5px !important;
    flex-shrink: 0;
  }

  .topbar-center,
  .district-topbar-pill,
  .drawer-toggle-text,
  .topbar-breadcrumb .breadcrumb-sep,
  .topbar-breadcrumb .breadcrumb-active,
  .user-account-chip .admin-meta,
  .topbar-action-btn[aria-label="Search Questions"] {
    display: none !important;
  }

  .streak-flame-pill,
  .coins-wallet-pill {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .container {
    padding: 12px 12px 132px !important;
  }

  .greeting-card {
    padding: 14px;
  }

  .greeting-text h2 {
    font-size: 1rem;
  }

  .greeting-target {
    width: 100%;
    min-width: 0;
  }

  .hero-challenge-card {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .hero-challenge-card .challenge-title {
    font-size: 1.12rem;
  }

  .rapid-practice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .rapid-card.mobile-rapid-gradient {
    padding: 14px 12px;
    min-height: 112px;
  }

  .rapid-card.mobile-rapid-gradient .rapid-info h4 {
    font-size: 0.88rem;
  }

  .rapid-card.mobile-rapid-gradient .rapid-info p {
    font-size: 0.71rem;
  }

  .quick-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-pass-banner {
    padding: 11px 13px;
    gap: 10px;
  }

  .mobile-pass-vip-tag {
    display: none;
  }

  .gyan-ai-fab {
    right: 14px;
    bottom: 70px;
    padding: 10px 15px;
    font-size: 0.8rem;
  }
}

/* ============================================================================
 * 13. EXAM BATCHES HUB & CLASSPLUS FOLDERS (#/batches)
 * ============================================================================ */
.mobile-pass-banner.is-promo {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  box-shadow: 0 8px 22px rgba(30, 58, 138, 0.34);
}

.mobile-pass-icon.is-gold {
  background: #F59E0B;
  color: #111827;
}

.mobile-pass-vip-tag.is-amber {
  background: #F59E0B;
  color: #0F172A;
}

.batches-pass-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.28);
}

.batches-pass-banner.is-active-vip {
  background: linear-gradient(135deg, #065F46 0%, #047857 100%);
  box-shadow: 0 8px 20px rgba(6, 95, 70, 0.28);
}

.batches-pass-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.batches-pass-cta {
  background: #F59E0B;
  color: #0F172A;
  border: none;
  border-radius: 11px;
  padding: 9px 15px;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.batches-pass-banner.is-active-vip .batches-pass-cta {
  background: #FFFFFF;
  color: #065F46;
}

.batches-folders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.batch-folder-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mobile-card);
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.batch-folder-tile:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.batch-folder-icon-tile {
  position: relative;
  width: 52px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.batch-folder-tab-bar {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 18px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
}

.batch-folder-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.batch-folder-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.16);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

[data-theme="light"] .batch-folder-badge {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

.batch-folder-badge.is-free {
  background: rgba(16, 185, 129, 0.16);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.38);
}

.batch-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.batch-item-row.is-locked {
  border-color: rgba(245, 158, 11, 0.25);
}

.batch-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.batch-item-icon.is-test {
  background: rgba(37, 99, 235, 0.16);
  color: #60A5FA;
}

.batch-item-icon.is-pdf {
  background: rgba(220, 38, 38, 0.16);
  color: #F87171;
  font-size: 1.1rem;
}

.batch-status-pill {
  font-size: 0.64rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
}

.batch-status-pill.is-free {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
}

.batch-status-pill.is-vip {
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
}

.batch-status-pill.is-locked {
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
}

/* ============================================================================
 * 14. PUNJAB EXAM PASS & UPI QR PAYMENT CENTER (#/pass)
 * ============================================================================ */
.pass-hero-header {
  border-radius: 22px;
  padding: 20px 22px 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #4F46E5 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.34);
}

.pass-hero-header .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.30);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.pass-hero-header .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.50);
}

#passMethodSelector .config-mode-card {
  color: var(--text);
  font-family: inherit;
}

#passMethodSelector .config-mode-card.active {
  color: #60A5FA;
  border-color: #2563EB;
  background: rgba(37, 99, 235, 0.16);
}

[data-theme="light"] #passMethodSelector .config-mode-card.active {
  color: #1D4ED8;
  background: #EFF6FF;
}

.pass-tabs-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.28);
}

.pass-tab-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.80);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.pass-tab-btn.active {
  background: #FFFFFF;
  color: #1E3A8A;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.pass-checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

.pass-plans-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pass-plan-card {
  position: relative;
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.16s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pass-plan-card:hover {
  border-color: rgba(37, 99, 235, 0.65);
}

.pass-plan-card.active {
  border-color: #2563EB;
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
}

.pass-radio-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pass-plan-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pass-plan-badge.popular {
  background: #F59E0B;
  color: #0F172A;
}

.pass-plan-badge.lifetime {
  background: #7C3AED;
  color: #FFFFFF;
}

.pass-plan-badge.discount {
  background: #10B981;
  color: #FFFFFF;
}

.qr-plan-chip {
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
}

.qr-plan-chip:hover {
  border-color: #2563EB;
}

.qr-plan-chip.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.pass-qr-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.qr-card-frame {
  display: inline-block;
  padding: 16px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

@media (max-width: 960px) {
  .batches-folders-grid,
  .pass-checkout-grid,
  .pass-qr-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pass-hero-header {
    padding: 16px 14px 12px;
  }

  .pass-tab-btn {
    font-size: 0.75rem;
    padding: 8px 6px;
  }

  .batch-item-row {
    flex-direction: column;
    align-items: stretch;
  }

  .batch-item-row > div:last-child button {
    width: 100%;
  }
}

/* ============================================================================
 * 15. MOBILE-PARITY AUTH SCAFFOLD (Matches Flutter AuthScaffold / Login / Register)
 * ============================================================================ */
.auth-gate-wrapper {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0B0F19;
}

[data-theme="light"] .auth-gate-wrapper {
  background: #F1F5F9;
}

.auth-ambient-orb {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.auth-orb-top {
  top: -110px;
  right: -90px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, transparent 70%);
}

.auth-orb-bottom {
  bottom: -110px;
  left: -90px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
}

[data-theme="light"] .auth-orb-top {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, transparent 70%);
}

[data-theme="light"] .auth-orb-bottom {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.11) 0%, transparent 70%);
}

.auth-scaffold-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #161E2E;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  margin: auto;
}

[data-theme="light"] .auth-scaffold-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}

/* Left Brand Panel (Matches Flutter _BrandPanel) */
.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 38px;
  background: linear-gradient(135deg, #312E81 0%, #4338CA 52%, #4F46E5 100%);
  color: #FFFFFF;
  overflow: hidden;
}

.auth-brand-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-decor-tr {
  width: 180px;
  height: 180px;
  top: -50px;
  right: -50px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-decor-bl {
  width: 140px;
  height: 140px;
  bottom: 30px;
  left: -40px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.auth-brand-logo-img {
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.auth-brand-wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.15;
}

.auth-brand-subword {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2px;
}

.auth-hero-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.auth-hero-illustration {
  width: 100%;
  max-width: 310px;
  max-height: 196px;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
}

.auth-hero-headline {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-wrap: balance;
}

.auth-hero-subheadline {
  margin: -10px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.auth-feature-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
}

.auth-feature-list svg {
  flex-shrink: 0;
}

/* Right Form Panel (Matches Flutter _Form) */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 38px 30px;
  color: var(--text);
}

.auth-form-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
}

.auth-mobile-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.auth-mobile-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.auth-theme-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.auth-theme-toggle:hover {
  border-color: var(--primary);
}

.auth-segmented-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 13px;
  background: #0F172A;
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-bottom: 22px;
}

[data-theme="light"] .auth-segmented-tabs {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.auth-seg-btn {
  min-height: 40px;
  padding: 8px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.auth-seg-btn.active {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

.auth-heading-block {
  margin-bottom: 20px;
}

.auth-heading-block h2 {
  margin: 0;
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.22;
}

.auth-heading-block p {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-field-group {
  margin-bottom: 14px;
}

.auth-field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
  border-radius: 13px;
  border: 1.5px solid rgba(148, 163, 184, 0.22);
  background: #1E293B;
  color: #F8FAFC;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-input.has-suffix {
  padding-right: 46px;
}

.auth-input::placeholder {
  color: #64748B;
}

.auth-input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22);
}

[data-theme="light"] .auth-input {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}

[data-theme="light"] .auth-input::placeholder {
  color: #94A3B8;
}

[data-theme="light"] .auth-input:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.auth-eye-btn {
  position: absolute;
  right: 6px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-eye-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 14px;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #4F46E5;
  cursor: pointer;
}

.auth-text-link {
  border: none;
  background: none;
  padding: 4px 2px;
  color: #60A5FA;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.auth-text-link:hover {
  text-decoration: underline;
}

[data-theme="light"] .auth-text-link {
  color: #2563EB;
}

.auth-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

[data-theme="light"] .auth-error-banner {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

.auth-primary-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.36);
  transition: transform 0.14s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.auth-primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.46);
}

.auth-primary-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  animation: authSpin 0.7s linear infinite;
}

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

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, rgba(148, 163, 184, 0.2));
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  background: #E2E8F0;
}

.auth-google-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.24));
  border-radius: 13px;
  background: var(--bg-card, #1E293B);
  color: var(--text-primary, #F8FAFC);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

[data-theme="light"] .auth-google-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #1E293B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-google-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #60A5FA;
  box-shadow: 0 6px 16px rgba(96, 165, 250, 0.25);
}

[data-theme="light"] .auth-google-btn:hover:not(:disabled) {
  background: #F8FAFC;
  border-color: #94A3B8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.auth-google-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-switch-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.auth-gate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.74rem;
  color: var(--text-muted);
}

[data-theme="light"] .auth-gate-footer {
  border-top-color: #E2E8F0;
}

.auth-admin-link {
  color: #60A5FA;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

[data-theme="light"] .auth-admin-link {
  color: #2563EB;
}

.auth-admin-link:hover {
  text-decoration: underline;
}

@media (max-width: 780px) {
  .auth-gate-wrapper {
    padding: 16px 14px;
    align-items: flex-start;
  }

  .auth-scaffold-card {
    grid-template-columns: 1fr;
    max-width: 460px;
    border-radius: 22px;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-mobile-brand {
    display: flex;
  }

  .auth-form-panel {
    padding: 24px 20px 22px;
  }

  .auth-heading-block h2 {
    font-size: 1.32rem;
  }
}

