/* ============================================================
   दिप्र फ़ाउंडेशन — Unified Master Stylesheet
   Dipra Foundation — Complete Style Sheet
   Version: 7.0 (Responsive, Accessible, App-Ready)

   FIXED IN v6.0:
   ✓ Extra closing brace removed (syntax fixed)
   ✓ Toast display:none bug permanently removed
   ✓ body::before drawer overlay restored
   ✓ Tricolor restored on desktop only
   ✓ bottom-nav dark mode conflict resolved
   ✓ Print @media properly closed (Uplift CSS rescued)
   ✓ Duplicate .benefits-grid, .thoughts-slider, .free-card removed
   ✓ .bn-fab duplicate rules consolidated
   ✓ .tier-head dark mode
   ✓ .uplift-note / .donate-section dark mode
   ✓ .hl-icon mobile override restored
   ✓ .tu-dur float bug fixed (flex layout)
   ✓ .ebook-link underline improved
   ✓ :has() @supports wrapped for print
   ✓ .career-grid removed (unused)
   ✓ Landscape body padding-bottom fixed
   ✓ No red boxes, no red scroll lines anywhere

   RED BOX / RED LINE FIXES:
   ✓ No .tricolor on mobile
   ✓ No FAB glow/red animation
   ✓ No fixed scroll-progress red bar
   ✓ Bottom-nav border subtle gray only
   ✓ Toast green (success), red only on .toast-error
   ============================================================ */

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

/* ============================================================
   01. RESET & ROOT VARIABLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --saffron: #FF7A00;
  --saffron-2: #FFA940;
  --saffron-3: #B34700;
  --saffron-soft: #FFF1E0;

  --green: #0D7A3A;
  --green-2: #16A34A;
  --green-3: #075A2A;
  --green-soft: #E7F6EC;

  --gold: #B8860B;
  --gold-2: #D4A017;

  --maroon: #8B1538;
  --maroon-2: #B91C48;
  --maroon-deep: #5A0F23;

  /* Neutrals */
  --cream: #FFFBF5;
  --cream-2: #FFF6E8;
  --ink: #2A1810;
  --ink-2: #4A3320;
  --muted: #6B5540;

  /* Borders */
  --border: #F0DCBC;
  --border-2: #E6C89C;

  /* Status */
  --success: #16A34A;
  --success-soft: #E7F6EC;
  --error: #B91C1C;
  --error-soft: #FEF2F2;
  --info: #1E40AF;
  --info-soft: #EEF4FB;
  --warning: #92400E;
  --warning-soft: #FEF3C7;

  /* Radius */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow: 0 4px 16px rgba(255, 122, 0, 0.12);
  --shadow-md: 0 6px 22px rgba(139, 21, 56, 0.12);
  --shadow-lg: 0 12px 40px rgba(139, 21, 56, 0.18);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t: 0.2s ease;
  --t-slow: 0.35s ease;

  /* Fonts */
  --font-body: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  --font-heading: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif;
  --font-mono: 'SF Mono', 'Consolas', 'Liberation Mono', 'Courier New', monospace;

  /* Burger */
  --burger-line-h: 2.5px;
  --burger-gap: 5px;

  /* Layout */
  --appbar-h: 60px;
  --bottom-nav-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --bottom-nav-total: calc(var(--bottom-nav-h) + var(--safe-bottom));

  /* Z-Index Scale */
  --z-base: 1;
  --z-hero: 2;
  --z-header: 100;
  --z-dropdown: 200;
  --z-bottom-nav: 900;
  --z-modal: 1200;
  --z-toast: 1500;
  --z-drawer: 2000;
  --z-skip: 9999;
}

/* ============================================================
   02. BASE TYPOGRAPHY
   ============================================================ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #FFFBF5 0%, #FFF6E8 100%);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a {
  color: var(--maroon);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--saffron-3); }
a:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.28;
  font-weight: 800;
  color: var(--maroon);
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; }

p { color: var(--ink-2); line-height: 1.75; }

/* Language toggle helpers */
body.lang-hi .t-en { display: none !important; }
body.lang-en .t-hi { display: none !important; }

/* Screen reader */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   02b. SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--maroon);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  z-index: var(--z-skip);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  color: #fff;
  outline: 3px solid var(--saffron);
}

/* ============================================================
   03. LAYOUT CONTAINERS
   ============================================================ */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: var(--z-hero);
}
.container-narrow {
  width: min(900px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: var(--z-hero);
}
.container-wide {
  width: min(1400px, 96%);
  margin-inline: auto;
  position: relative;
  z-index: var(--z-hero);
}

main { flex: 1; padding: 40px 0 60px; }

section {
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  line-height: 1.35;
  word-break: break-word;
}
.section-head p {
  color: var(--ink-2);
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.75;
}

/* ============================================================
   04. TRICOLOR — Desktop only, hidden on mobile
   ============================================================ */
.tricolor {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--saffron) 0%, var(--saffron) 33.33%,
    #fff 33.33%, #fff 66.66%,
    var(--green) 66.66%, var(--green) 100%
  );
}

/* ============================================================
   05. TOPBAR
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, var(--saffron-soft), #fff, var(--green-soft));
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.topbar a { font-weight: 600; color: var(--maroon); }
.topbar a:hover { color: var(--saffron-3); }
.topbar-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================================
   06. HEADER & NAVIGATION
   ============================================================ */
header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 14px rgba(139, 21, 56, 0.06);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: box-shadow var(--t-slow);
}
header.scrolled { box-shadow: 0 6px 22px rgba(139, 21, 56, 0.12); }

.header-inner,
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex: 0 1 auto;
  min-width: 0;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--saffron-soft), var(--green-soft));
  border: 2px solid var(--saffron);
  display: grid;
  place-items: center;
  padding: 5px;
  flex: none;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
  overflow: hidden;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.brand-text { min-width: 0; }
.brand-text b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--maroon);
  line-height: 1.15;
  font-family: var(--font-heading);
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  display: block;
}

/* Nav */
nav.desktop-nav { flex: 1 1 auto; }
nav ul,
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
nav a,
nav .nav-link-btn,
.nav-links a {
  padding: 9px 12px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: all var(--t-fast);
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
nav a:hover,
nav a.active,
nav .nav-link-btn:hover,
.nav-links a:hover,
.nav-links a.active {
  background: var(--saffron-soft);
  color: var(--saffron-3);
}

/* Header Actions */
.header-actions,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Language Switch */
.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  background: transparent;
  border-radius: 7px;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-width: 44px;
  min-height: 36px;
  line-height: 1;
}
.lang-btn:hover {
  background: var(--saffron-soft);
  color: var(--maroon);
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(139, 21, 56, 0.25);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: var(--burger-gap, 5px);
  padding: 10px;
  background: rgba(255, 122, 0, 0.08);
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 22px;
  height: var(--burger-line-h, 2.5px);
  background: var(--maroon);
  border-radius: 2px;
  transition: transform var(--t-slow), opacity var(--t-fast);
}
.burger.open span:nth-child(1) {
  transform: translateY(calc(var(--burger-line-h, 2.5px) + var(--burger-gap, 5px))) rotate(45deg);
}
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) {
  transform: translateY(calc(-1 * (var(--burger-line-h, 2.5px) + var(--burger-gap, 5px)))) rotate(-45deg);
}

/* ============================================================
   07. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--t);
  border: 1px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  min-height: 50px;
  line-height: 1.2;
  font-family: inherit;
  text-align: center;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 21, 56, 0.28);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(139, 21, 56, 0.4);
  color: #fff;
}
.btn-saffron {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.32);
}
.btn-saffron:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 122, 0, 0.45);
  color: #fff;
}
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-3));
  color: #fff;
  box-shadow: 0 6px 20px rgba(13, 122, 58, 0.28);
}
.btn-green:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(13, 122, 58, 0.4);
  color: #fff;
}
.btn-outline {
  background: #fff;
  border: 2px solid var(--border-2);
  color: var(--maroon);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--saffron);
  background: var(--saffron-soft);
  color: var(--saffron-3);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  border-color: #fff;
}
.btn-sm { padding: 10px 18px; font-size: 0.9rem; min-height: 44px; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; min-height: 56px; }
.btn-block { width: 100%; }

.btn.is-loading {
  color: transparent !important;
  position: relative;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   08. GRID SYSTEM
   ============================================================ */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   09. CARDS
   ============================================================ */
.card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold-2), var(--green));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.card:hover {
  border-color: var(--saffron-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  color: var(--saffron-3);
  border: 1.5px solid var(--saffron-2);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.15);
}
.card.green .ico {
  background: linear-gradient(135deg, var(--green-soft), #fff);
  color: var(--green-3);
  border-color: var(--green-2);
}
.card h3 {
  margin-bottom: 9px;
  font-size: 1.06rem;
  color: var(--maroon);
  font-family: var(--font-heading);
  font-weight: 400;
}
.card p {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ============================================================
   10. HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #FFF8F0 0%, var(--saffron-soft) 35%, #FFFBF5 60%, var(--green-soft) 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 0, 0.18) 0, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(13, 122, 58, 0.14) 0, transparent 45%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: var(--z-hero);
}
.hero h1 {
  color: var(--maroon);
  margin-bottom: 20px;
  line-height: 1.18;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--saffron), var(--maroon-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--saffron-3);
  font-weight: 800;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 600px;
  margin-bottom: 26px;
  line-height: 1.85;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.hero-badges span {
  background: #fff;
  border: 1.5px solid var(--border-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(139, 21, 56, 0.05);
}
.hero-badges span:nth-child(odd) {
  border-color: var(--saffron-2);
  color: var(--saffron-3);
}
.hero-badges span:nth-child(even) {
  border-color: var(--green-2);
  color: var(--green-3);
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card {
  background: #fff;
  border: 2px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), #fff, var(--green));
  border-radius: 0 0 4px 4px;
}
.hero-card h3 {
  color: var(--maroon);
  font-size: 1.02rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 400;
}
.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.hero-card li:last-child { border-bottom: none; }
.hero-card li b {
  color: var(--maroon);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ============================================================
   11. PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #FFF8F0 0%, var(--saffron-soft) 35%, #FFFBF5 60%, var(--green-soft) 100%);
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 0, 0.18) 0, transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(13, 122, 58, 0.14) 0, transparent 45%);
  z-index: 0;
}
.page-hero .container,
.page-hero .container-narrow {
  position: relative;
  z-index: var(--z-hero);
}
.page-hero h1 {
  color: var(--maroon);
  margin-bottom: 16px;
  line-height: 1.18;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.85;
}
.page-hero .hero-icon {
  font-size: 3.4rem;
  margin-bottom: 14px;
  display: inline-block;
  animation: heroFlicker 3s ease-in-out infinite;
}
@keyframes heroFlicker {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 122, 0, 0.4)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(255, 122, 0, 0.6)); }
}

.page-head {
  text-align: center;
  margin-bottom: 32px;
  padding: 40px 0 20px;
}
.page-head h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--maroon);
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.2;
}
.page-head p {
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   12. EYEBROW BADGE
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-3);
  margin-bottom: 14px;
  background: var(--saffron-soft);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--saffron-2);
}

/* ============================================================
   13. STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--saffron-soft);
  opacity: 0.6;
}
.stat b {
  display: block;
  font-size: 2rem;
  color: var(--maroon);
  font-weight: 800;
  line-height: 1.1;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat b {
    background: linear-gradient(135deg, var(--saffron-3), var(--maroon-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.stat span {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-top: 6px;
  display: block;
  font-weight: 600;
}

/* ============================================================
   14. INFO CARDS
   ============================================================ */
.info-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-top: 4px solid var(--saffron);
  transition: all var(--t-slow);
}
.info-card.green { border-top-color: var(--green); }
.info-card.gold { border-top-color: var(--gold); }
.info-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.info-card h3 {
  font-size: 1.02rem;
  color: var(--maroon);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 400;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--border-2);
}
.info-card h3 .ic {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--saffron-soft);
  display: grid; place-items: center;
  font-size: 1rem;
  flex: none;
}
.info-card.green h3 .ic { background: var(--green-soft); }
.info-card.gold h3 .ic { background: #FFF8E1; }

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list li strong {
  color: var(--maroon);
  font-weight: 700;
  text-align: right;
}
.info-list li.address {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.info-list li.address strong { text-align: left; line-height: 1.55; }

/* ============================================================
   15. TAGS
   ============================================================ */
.tags-box {
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.tags-box h3 {
  font-size: 1.15rem;
  color: var(--maroon);
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 400;
}
.tags-box > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--cream-2);
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border-2);
  transition: all var(--t);
  cursor: default;
}
.tag:hover {
  border-color: var(--saffron);
  color: var(--saffron-3);
  background: var(--saffron-soft);
  transform: translateY(-2px);
}
.tag.primary {
  background: var(--saffron-soft);
  color: var(--saffron-3);
  border-color: var(--saffron-2);
}

/* ============================================================
   16. HIGHLIGHT BOX
   ============================================================ */
.highlight {
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  border: 2px solid var(--gold-2);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.highlight::before {
  content: "🪔";
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  background: #fff;
  padding: 0 16px;
  border-radius: 50%;
}
.highlight h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--maroon);
  font-weight: 400;
  margin: 16px 0 10px;
}
.highlight p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 22px;
}

/* ============================================================
   17. NOTICES & ALERTS
   ============================================================ */
.notice,
.info-box,
.note {
  background: var(--info-soft);
  border: 2px solid #D5E0ED;
  border-radius: 14px;
  padding: 16px 22px;
  margin-top: 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--info);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.notice .ico,
.info-box .ico { font-size: 1.4rem; flex: none; line-height: 1; }
.notice b,
.info-box b { color: #1A4A80; }

.note {
  background: var(--saffron-soft);
  border-color: var(--saffron-2);
  color: #7A3E00;
  display: block;
}
.note-green {
  background: var(--green-soft);
  border-color: var(--green-2);
  color: var(--green-3);
  display: block;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.94rem;
  line-height: 1.75;
}
.note-blue {
  background: var(--info-soft);
  border-color: #D5E0ED;
  color: var(--info);
  display: block;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.94rem;
  line-height: 1.75;
}
.info-box {
  display: flex;
  margin-top: 24px;
}
.info-box h4 {
  color: var(--maroon);
  font-size: 1rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed var(--border-2);
}
.info-box ul { list-style: disc; padding-left: 22px; }
.info-box li { margin-bottom: 6px; }

.alert-box {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.65;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-box .ico { font-size: 1.3rem; flex: none; }
.alert-box.info { background: var(--info-soft); border: 1.5px solid #D5E0ED; color: var(--info); }
.alert-box.success { background: var(--green-soft); border: 1.5px solid var(--green-2); color: var(--green-3); }
.alert-box.warning { background: var(--warning-soft); border: 1.5px solid var(--gold-2); color: var(--warning); }
.alert-box.error { background: var(--error-soft); border: 1.5px solid #FCA5A5; color: var(--error); }

/* ============================================================
   18. FORMS
   ============================================================ */
.form-section {
  max-width: 640px;
  margin: 40px auto;
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.field label .req { color: var(--error); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  transition: all var(--t-fast);
  color: var(--ink);
  font-size: 16px;
  min-height: 50px;
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
}
.field textarea { min-height: 100px; resize: vertical; padding: 14px 16px; }
.field input[readonly] { background: var(--cream-2); cursor: not-allowed; }
.field small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
  line-height: 1.6;
}
.field.err input,
.field.err select,
.field.err textarea {
  border-color: var(--error);
  background: var(--error-soft);
}
.field .errmsg {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}
.field.err .errmsg { display: block; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.94rem;
  transition: all var(--t-fast);
  min-height: 48px;
}
.check:hover { border-color: var(--saffron); background: var(--saffron-soft); }
.check input {
  accent-color: var(--saffron);
  flex: none;
  width: 18px;
  height: 18px;
}

.consent-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--cream-2);
  border: 2px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  font-size: 0.94rem;
  line-height: 1.7;
  cursor: pointer;
  transition: all var(--t-fast);
}
.consent-box:hover { border-color: var(--saffron-2); background: var(--saffron-soft); }
.consent-box input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--saffron);
  flex: none;
  cursor: pointer;
}
.consent-box.err { border-color: var(--error); background: var(--error-soft); }

/* File Upload */
.file-upload {
  position: relative;
  display: block;
  border: 2px dashed var(--border-2);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  background: var(--cream-2);
}
.file-upload:hover { border-color: var(--saffron); background: var(--saffron-soft); }
.file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-upload .fu-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload .fu-text { font-size: 0.92rem; color: var(--ink-2); font-weight: 600; }
.file-upload .fu-hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.file-upload .file-name {
  font-size: 0.86rem;
  color: var(--green-3);
  font-weight: 700;
  margin-top: 8px;
}

/* Category Selector */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.cat-card {
  background: #fff;
  border: 2px solid var(--border-2);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  position: relative;
}
.cat-card:hover,
.cat-card:focus-visible {
  border-color: var(--saffron);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cat-card:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.cat-card.selected {
  border-color: var(--saffron);
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.2);
}
.cat-card .c-ico { font-size: 2rem; margin-bottom: 8px; }
.cat-card h4 { font-size: 0.98rem; color: var(--maroon); margin-bottom: 4px; font-weight: 700; }
.cat-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ============================================================
   19. TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.94rem;
}
thead {
  background: linear-gradient(90deg, var(--maroon), var(--maroon-2));
  color: #fff;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--saffron-soft); }

.admin-table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  font-size: 0.84rem;
  border-collapse: collapse;
  min-width: 760px;
}
.admin-table th,
.admin-table td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  background: linear-gradient(90deg, var(--maroon), var(--maroon-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table tbody tr:hover { background: var(--saffron-soft); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .mono { font-family: var(--font-mono); font-size: 0.78rem; }

/* ============================================================
   20. STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-submitted { background: var(--saffron-soft); color: var(--saffron-3); border: 1px solid var(--saffron-2); }
.status-verified { background: var(--info-soft); color: var(--info); border: 1px solid #D5E0ED; }
.status-selected { background: var(--green-soft); color: var(--green-3); border: 1px solid var(--green-2); }
.status-rejected { background: var(--error-soft); color: var(--error); border: 1px solid #FCA5A5; }
.status-open { background: var(--info-soft); color: var(--info); border: 1px solid #D5E0ED; }
.status-resolved { background: var(--green-soft); color: var(--green-3); border: 1px solid var(--green-2); }

.seat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.seat-open { background: var(--green-soft); color: var(--green-3); }
.seat-low { background: var(--warning-soft); color: var(--warning); }
.seat-full { background: var(--error-soft); color: var(--error); }

/* ============================================================
   21. TOAST — GREEN SUCCESS (ERRORS VIA .toast-error)
   ============================================================ */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 140%);
  background: linear-gradient(135deg, var(--green), var(--green-3));
  color: #fff;
  padding: 16px 26px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(13, 122, 58, 0.45);
  z-index: var(--z-toast);
  transition: transform var(--t-slow), opacity var(--t-slow), visibility var(--t-slow);
  font-size: 1rem;
  font-weight: 600;
  max-width: 92vw;
  text-align: center;
  border: 1.5px solid var(--gold-2);
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.toast-error {
  background: linear-gradient(135deg, var(--error), #8B1E1E);
  box-shadow: 0 14px 40px rgba(185, 28, 28, 0.45);
}

/* ============================================================
   22. MODALS
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(90, 15, 35, 0.78);
  display: none;
  place-items: center;
  z-index: var(--z-modal);
  padding: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal.show { display: grid; animation: fadeIn var(--t); }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  margin: auto;
  border: 2px solid var(--gold-2);
}
.modal-box.modal-sm { max-width: 480px; }
.modal-box.modal-md { max-width: 640px; }
.modal-box.modal-lg { max-width: 920px; }
.modal-head {
  padding: 20px 26px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-head h3 { font-size: 1.1rem; color: var(--maroon); }
.modal-body { padding: 26px; }
.close-x {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}
.close-x:hover { background: var(--saffron-soft); color: var(--maroon); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   23. OTP INPUTS
   ============================================================ */
.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}
.otp-box {
  width: 52px;
  height: 62px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  border: 2px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  color: var(--maroon);
  transition: all var(--t-fast);
  padding: 0;
}
.otp-box:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
}
.otp-box.filled { border-color: var(--saffron); background: var(--saffron-soft); }

/* ============================================================
   24. CONFIRMATION
   ============================================================ */
.confirm { display: none; text-align: center; padding: 30px 20px; }
.confirm.show { display: block; animation: fadeIn 0.4s; }
.confirm .tick {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-soft), #fff);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 2.6rem;
  margin: 0 auto 20px;
  border: 3px solid var(--green-2);
  box-shadow: 0 12px 32px rgba(13, 122, 58, 0.25);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.5, 1);
}
@keyframes pop {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.confirm h3 { font-size: 1.3rem; color: var(--green-3); margin-bottom: 10px; }
.confirm p {
  color: var(--ink-2);
  font-size: 0.96rem;
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.75;
}
.id-box {
  display: inline-block;
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  border: 2.5px dashed var(--saffron);
  padding: 16px 34px;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.15);
}
.id-box small {
  display: block;
  font-size: 0.78rem;
  color: var(--saffron-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.id-box b {
  font-size: 1.5rem;
  color: var(--maroon);
  font-family: var(--font-mono);
  font-weight: 800;
}

/* ============================================================
   25. PORTAL TABS
   ============================================================ */
.portal-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.portal-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  background: #fff;
  border: 2px solid var(--border-2);
  color: var(--muted);
  transition: all var(--t);
  cursor: pointer;
  font-family: inherit;
  min-height: 56px;
}
.portal-tab:hover { border-color: var(--saffron); background: var(--saffron-soft); }
.portal-tab:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.portal-tab.active {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  border-color: var(--saffron);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}
.portal-tab.active[data-ptab="volunteer"] {
  background: linear-gradient(135deg, var(--green), var(--green-3));
  border-color: var(--green);
  box-shadow: 0 6px 20px rgba(13, 122, 58, 0.3);
}
.portal-tab.active[data-ptab="admin"] {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  border-color: var(--maroon);
  box-shadow: 0 6px 20px rgba(139, 21, 56, 0.3);
}
.portal-tab .pt-ico { font-size: 1.3rem; }
.portal-panel { display: none; }
.portal-panel.active { display: block; animation: fadeIn 0.3s; }

/* ============================================================
   26. LOGIN CARD
   ============================================================ */
.login-card {
  background: #fff;
  border: 2px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 10px 40px rgba(139, 21, 56, 0.08);
  max-width: 560px;
  margin: 0 auto;
}
.login-head { text-align: center; margin-bottom: 24px; }
.login-head .lh-icon {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2rem;
  margin: 0 auto 14px;
  border: 3px solid;
}
.login-head.student .lh-icon {
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  border-color: var(--saffron);
  color: var(--saffron-3);
}
.login-head.volunteer .lh-icon {
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border-color: var(--green);
  color: var(--green-3);
}
.login-head.admin .lh-icon {
  background: linear-gradient(135deg, #FEF5F5, #fff);
  border-color: #F0B0B0;
  color: var(--error);
}
.login-head h2 { font-size: 1.35rem; margin-bottom: 6px; }
.login-head p { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   27. DASHBOARD
   ============================================================ */
.dash { display: none; }
.dash.show { display: block; animation: fadeIn 0.4s; }
.dash-head {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  color: #fff;
  padding: 26px 30px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.dash-head.student { background: linear-gradient(135deg, var(--saffron), var(--saffron-3)); }
.dash-head.volunteer { background: linear-gradient(135deg, var(--green), var(--green-3)); }
.dash-head h3 { color: #fff; font-size: 1.25rem; margin-bottom: 2px; }
.dash-head p { color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; }
.dash-head p b { font-family: var(--font-mono); letter-spacing: 0.05em; color: #fff; }
.dash-body {
  background: #fff;
  border: 2px solid var(--border-2);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 28px;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.mini {
  background: var(--cream-2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.mini small {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.mini b {
  display: block;
  font-size: 1rem;
  color: var(--maroon);
  margin-top: 6px;
  font-weight: 800;
  word-break: break-word;
}
.section-title {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 24px 0 12px;
}
.section-title:first-child { margin-top: 0; }

/* ============================================================
   28. TIMELINE
   ============================================================ */
.timeline {
  display: flex;
  overflow-x: auto;
  padding: 8px 0 18px;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}
.tl-step {
  flex: 1;
  min-width: 110px;
  text-align: center;
  position: relative;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.tl-step::before {
  content: "";
  position: absolute;
  top: 15px; left: 0; right: 0;
  height: 3px;
  background: #e4e8ee;
  z-index: 0;
}
.tl-step:first-child::before { left: 50%; }
.tl-step:last-child::before { right: 50%; }
.tl-dot {
  position: relative;
  z-index: 1;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e4e8ee;
  color: #4A5568;
  display: grid; place-items: center;
  margin: 0 auto 10px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.tl-step.done .tl-dot { background: var(--green); color: #fff; }
.tl-step.current .tl-dot {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 122, 0, 0.2);
}
.tl-step.done::before,
.tl-step.current::before { background: var(--green); }

/* Story Timeline */
.timeline-story {
  position: relative;
  padding-left: 34px;
  margin-top: 20px;
}
.timeline-story::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--saffron), var(--gold), var(--green));
}
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
}
.tl-item.green::before {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(13, 122, 58, 0.15);
}
.tl-item h4 { color: var(--maroon); font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.tl-item .tl-date { font-size: 0.82rem; color: var(--saffron-3); font-weight: 700; margin-bottom: 4px; }
.tl-item.green .tl-date { color: var(--green-3); }
.tl-item p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.7; margin: 0; }

/* ============================================================
   29. STORY GRID
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}
.story-content p {
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 18px;
  color: var(--ink-2);
}
.story-content strong { color: var(--maroon); }

/* ============================================================
   30. PILLARS / VALUES / BEARERS
   ============================================================ */
.pillars-grid,
.bearer-grid,
.values-list,
.ways-grid,
.support-grid,
.impact-grid,
.usage-grid,
.ebook-grid,
.free-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.pillars-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bearer-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.values-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ways-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.support-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.impact-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.usage-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.ebook-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.pillar,
.bearer {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
}
.pillar::before,
.bearer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold-2), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.pillar:hover,
.bearer:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--saffron-2);
}
.pillar:hover::before,
.bearer:hover::before { transform: scaleX(1); }
.pillar .p-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  border: 2px solid var(--saffron-2);
}
.pillar h3,
.bearer h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--maroon);
}
.pillar p,
.bearer p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.7; }
.bearer .avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.4rem;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--saffron-soft), var(--green-soft));
  border: 3px solid var(--saffron-2);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.2);
}
.bearer .role {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--saffron-soft);
  color: var(--saffron-3);
  border: 1.5px solid var(--saffron-2);
  margin-bottom: 12px;
}
.bearer.gold .role { background: #FFF8E1; color: #A16207; border-color: var(--gold-2); }
.bearer.green .role { background: var(--green-soft); color: var(--green-3); border-color: var(--green-2); }

/* Value Items */
.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: all var(--t);
}
.value-item:hover {
  border-color: var(--green-2);
  background: var(--green-soft);
  transform: translateX(4px);
}
.value-item .v-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border: 1.5px solid var(--green-2);
  display: grid; place-items: center;
  font-size: 1.2rem;
  flex: none;
}
.value-item h4 {
  color: var(--maroon);
  font-size: 0.98rem;
  margin-bottom: 4px;
  font-weight: 700;
}
.value-item p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

/* Way Items */
.way-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--t);
}
.way-item:hover {
  border-color: var(--green-2);
  background: var(--green-soft);
  transform: translateX(4px);
}
.way-item .w-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border: 1.5px solid var(--green-2);
  display: grid; place-items: center;
  font-size: 1.4rem;
  flex: none;
}
.way-item h4 { color: var(--maroon); font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.way-item p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.65; margin: 0; }

/* ============================================================
   31. SUPPORT CARDS
   ============================================================ */
.support-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.support-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--saffron-3));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}
.support-card.green::before { background: linear-gradient(90deg, var(--green), var(--green-3)); }
.support-card.gold::before { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.support-card.purple::before { background: linear-gradient(90deg, var(--maroon), var(--maroon-2)); }
.support-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--saffron-2);
}
.support-card:hover::before { transform: scaleX(1); }
.support-card .s-ico {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.1rem;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  border: 2px solid var(--saffron-2);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.15);
}
.support-card.green .s-ico {
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border-color: var(--green-2);
  box-shadow: 0 6px 20px rgba(13, 122, 58, 0.15);
}
.support-card.gold .s-ico {
  background: linear-gradient(135deg, #FFF8E1, #fff);
  border-color: var(--gold-2);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.15);
}
.support-card.purple .s-ico {
  background: linear-gradient(135deg, #FEF5F5, #fff);
  border-color: #F0B0B0;
  box-shadow: 0 6px 20px rgba(139, 21, 56, 0.15);
}
.support-card h3 {
  font-size: 1.15rem;
  color: var(--maroon);
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 400;
}
.support-card p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}
.support-card .btn { align-self: center; }

/* Impact Card */
.impact-card {
  background: linear-gradient(135deg, #fff, var(--cream-2));
  border: 2px solid var(--border-2);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
}
.impact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold-2), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.impact-card:hover {
  border-color: var(--saffron);
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(255, 122, 0, 0.2);
}
.impact-card:hover::before { transform: scaleX(1); }
.impact-card .emoji { font-size: 1.8rem; margin-bottom: 10px; }
.impact-card .amt {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.impact-card .lbl {
  font-size: 0.95rem;
  color: var(--maroon);
  margin-top: 8px;
  font-weight: 700;
  line-height: 1.5;
}
.impact-card .dsc {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* Usage Card */
.usage-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all var(--t-slow);
  position: relative;
}
.usage-card:hover {
  border-color: var(--saffron);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 122, 0, 0.15);
}
.usage-card .percent {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.usage-card.green .percent {
  background: linear-gradient(135deg, var(--green), var(--green-3));
}
.usage-card .u-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.9rem;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  border: 2px solid var(--saffron-2);
}
.usage-card.green .u-ico {
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border-color: var(--green-2);
}
.usage-card h3,
.usage-card h4 {
  font-size: 1.05rem;
  color: var(--maroon);
  margin-bottom: 8px;
}
.usage-card p {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   32. EBOOK & FREE COURSE CARDS (Unified)
   ============================================================ */
.ebook-card,
.free-card,
.tier-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(139, 21, 56, 0.06);
}
.ebook-card::before,
.free-card::before,
.tier-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--gold-2), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.ebook-card:hover,
.free-card:hover,
.tier-card:hover {
  border-color: var(--saffron-2);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(139, 21, 56, 0.14);
}
.ebook-card:hover::before,
.free-card:hover::before,
.tier-card:hover::before { transform: scaleX(1); }

.ebook-card .badge-free,
.free-card .badge-free {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-3));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(13, 122, 58, 0.3);
  z-index: 2;
}
.ebook-card .ec-icon,
.ebook-card .fc-ico,
.free-card .fc-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  border: 1.5px solid var(--saffron-2);
  flex: none;
}
.ebook-card h3,
.free-card h3 {
  font-size: 1.05rem;
  color: var(--maroon);
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
  padding-right: 70px;
}
.ebook-card .ec-meta,
.ebook-card .fc-meta,
.free-card .fc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.ebook-card .ec-meta span,
.ebook-card .fc-meta span,
.free-card .fc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.ebook-card .ec-desc,
.ebook-card p,
.free-card p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.ebook-card .btn,
.free-card .btn,
.tier-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Tier Cards */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.tier-card {
  padding: 0;
}
.tier-head {
  padding: 22px 20px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.tier-head.basic { background: linear-gradient(135deg, #0D7A3A, #16A34A); }
.tier-head.plus  { background: linear-gradient(135deg, #D97706, #F59E0B); }
.tier-head.adv   { background: linear-gradient(135deg, #7C2D12, #B91C1C); }
.tier-head::after {
  content: "";
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.tier-emoji {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.tier-head h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: .01em;
}
.tier-head p {
  color: rgba(255,255,255,.92);
  font-size: .85rem;
  margin: 0;
  font-weight: 500;
}
.tier-body {
  padding: 18px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tier-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--border);
}
.tier-meta span {
  font-size: .72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--cream-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-weight: 700;
  white-space: nowrap;
}
.tier-meta span.fee-tag {
  background: var(--saffron-soft);
  border-color: var(--saffron-2);
  color: var(--saffron-3);
}
.tier-units {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.tier-unit {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .78rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}
.tier-unit b {
  color: var(--maroon);
  font-size: .82rem;
  font-weight: 700;
  flex-basis: 100%;
  margin-bottom: 2px;
}
.tier-unit .tu-cert {
  color: var(--green-3);
  font-weight: 700;
  font-size: .72rem;
}
.tier-unit .tu-proj {
  color: var(--ink-2);
  font-size: .72rem;
  flex-basis: 100%;
}
.tier-unit .tu-proj::before {
  content: "📋 ";
  font-size: .7rem;
}
.tier-unit .tu-dur {
  margin-left: auto;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  background: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.tier-foot {
  padding: 12px 18px 18px;
  margin-top: auto;
  border-top: 1.5px solid var(--border);
}
.tier-cert-count {
  text-align: center;
  font-size: .74rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}
.tier-cert-count b { color: var(--maroon); }

/* Ebook Reader */
.ebook-reader,
.ebook-reader-full {
  background: #fff;
  border: 2px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.ebook-reader-full {
  margin-top: 30px;
  box-shadow: var(--shadow-lg);
}
.ebook-tabs {
  display: flex;
  background: var(--cream-2);
  border-bottom: 1.5px solid var(--border-2);
  flex-wrap: wrap;
}
.ebook-tab {
  padding: 14px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--t-fast);
  font-family: inherit;
}
.ebook-tab.active {
  background: #fff;
  color: var(--maroon);
  box-shadow: inset 0 -3px 0 var(--saffron);
}
.ebook-body,
.ebook-reader-full .er-body {
  padding: 28px;
  max-height: 56vh;
  overflow-y: auto;
  line-height: 1.9;
  font-size: 1rem;
  color: var(--ink);
  -webkit-overflow-scrolling: touch;
}
.ebook-reader-full .er-body { max-height: 60vh; }
.ebook-body h4,
.ebook-reader-full .er-body h4 {
  color: var(--maroon);
  font-size: 1.15rem;
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-2);
  font-family: var(--font-heading);
  font-weight: 400;
}
.ebook-body h4:first-child,
.ebook-reader-full .er-body h4:first-child { margin-top: 0; }
.ebook-body p,
.ebook-reader-full .er-body p {
  margin-bottom: 14px;
  color: var(--ink-2);
  text-align: justify;
}
.ebook-progress {
  background: var(--cream-2);
  padding: 12px 24px;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1.5px solid var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ebook-reader-full .er-head {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  color: #fff;
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ebook-reader-full .er-head h3 {
  color: #fff;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 400;
}
.ebook-reader-full .er-foot {
  padding: 16px 24px;
  background: var(--cream-2);
  border-top: 1.5px solid var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Ebook Actions */
.ebook-actions {
  padding: 16px 20px;
  background: var(--cream-2);
  border-top: 1.5px solid var(--border-2);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ebook-actions .btn { min-width: 140px; }
.ebook-actions .btn:last-child { flex: 1; }

/* Ebook Link */
.ebook-link {
  color: var(--saffron-3);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.ebook-link:hover { color: var(--green-3); }

/* ============================================================
   33. QUIZ
   ============================================================ */
.quiz-section {
  background: #fff;
  border: 2px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 30px;
  box-shadow: var(--shadow-lg);
}
.quiz-header {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.quiz-header h4 { color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.quiz-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}
.quiz-progress-bar > div {
  height: 100%;
  background: #fff;
  border-radius: 999px;
  transition: width 0.3s;
}
.q-item {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--cream-2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}
.q-item .q-text {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--maroon);
  margin-bottom: 12px;
  line-height: 1.55;
}
.q-item .q-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 0.94rem;
  margin-bottom: 6px;
  transition: all 0.15s;
  min-height: 44px;
}
.q-item .q-opt:hover { border-color: var(--saffron); background: var(--saffron-soft); }
.q-item .q-opt.selected { border-color: var(--saffron); background: var(--saffron-soft); font-weight: 600; }
.quiz-result { margin-top: 20px; }

.quiz-score {
  text-align: center;
  padding: 30px 20px;
}
.quiz-score p {
  color: var(--ink-2);
  font-size: 0.96rem;
  margin: 12px auto;
  max-width: 480px;
}
.quiz-score h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-3));
  box-shadow: 0 12px 32px rgba(13, 122, 58, 0.25);
  animation: scorePop 0.5s cubic-bezier(0.2, 1.4, 0.5, 1);
}
.score-circle.fail {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.25);
}
@keyframes scorePop {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ============================================================
   34. STEP TABS
   ============================================================ */
.step-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.step-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid var(--border-2);
  color: var(--muted);
  transition: all 0.2s;
}
.step-tab.active {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  border-color: var(--saffron);
}
.step-tab.done {
  background: var(--green-soft);
  color: var(--green-3);
  border-color: var(--green-2);
}
.step-tab .st-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: grid; place-items: center;
  font-size: 0.78rem;
}
.step-tab.done .st-num { background: var(--green); color: #fff; }

/* ============================================================
   35. CERTIFICATE
   ============================================================ */
.cert-frame {
  background: linear-gradient(135deg, #FFFBF5 0%, #FFF6E8 50%, #FFFBF5 100%);
  border: 12px solid var(--green);
  border-radius: 14px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 122, 58, 0.28);
}
.cert-frame::before {
  content: "";
  position: absolute; inset: 14px;
  border: 3px solid var(--gold);
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
}
.cert-frame::after {
  content: "";
  position: absolute; inset: 20px;
  border: 1px dashed var(--gold-2);
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
}
.cert-inner {
  padding: 44px 32px 32px;
  position: relative;
  z-index: 3;
  text-align: center;
}
.cert-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  color: var(--green);
  opacity: 0.045;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
  z-index: 1;
  line-height: 1;
}
.cert-logo {
  width: 84px; height: 84px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
  padding: 8px;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.3);
}
.cert-logo img {
  width: 100%; height: 100%;
  object-fit: contain; border-radius: 50%;
}
.cert-logo-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.6rem;
  color: var(--green); background: var(--green-soft);
  border-radius: 50%;
}
.cert-org {
  font-family: var(--font-heading);
  font-size: 1.4rem; color: var(--maroon);
  margin-bottom: 4px;
}
.cert-subtitle {
  font-size: 0.82rem; color: var(--saffron-3);
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 6px;
}
.cert-regno { font-size: 0.78rem; color: var(--muted); margin-bottom: 20px; }
.cert-title {
  font-size: 2rem; color: var(--green);
  font-weight: 800; letter-spacing: 0.22em;
  margin: 16px 0 6px;
}
.cert-title-sub {
  font-size: 0.85rem; color: var(--saffron-3);
  letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 18px;
}
.cert-pre { font-style: italic; color: var(--ink-2); margin-bottom: 6px; }
.cert-student {
  font-family: var(--font-heading);
  font-size: 1.9rem; color: var(--maroon);
  border-bottom: 2px dotted var(--gold-2);
  display: inline-block; padding: 0 22px 6px;
  margin: 10px auto;
}
.cert-parent { color: var(--ink-2); margin: 8px 0 16px; }
.cert-course {
  font-size: 1.15rem; color: var(--green);
  font-weight: 800; margin: 12px 0;
}
.cert-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; max-width: 560px; margin: 16px auto;
}
.cert-meta > div {
  background: #fff; padding: 10px;
  border-radius: 8px; border: 1px solid var(--border-2);
}
.cert-meta small {
  display: block; font-size: 0.7rem; color: var(--muted);
  text-transform: uppercase; font-weight: 700;
}
.cert-meta b { font-size: 0.95rem; color: var(--green); }
.cert-score { font-size: 0.95rem; color: var(--ink-2); margin: 14px 0; }
.cert-info {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin: 16px 0; font-size: 0.8rem;
}
.cert-info span {
  padding: 5px 11px; background: #fff;
  border-radius: 6px; border: 1px solid var(--border-2);
  color: var(--ink-2);
}
.cert-info b { color: var(--maroon); }
.cert-address {
  font-size: 0.82rem; color: var(--ink-2);
  margin: 8px auto; padding: 8px 12px;
  background: #fff; border-radius: 6px;
  border: 1px solid var(--border-2);
  max-width: 580px;
}
.cert-address b { color: var(--maroon); }
.cert-bottom {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 14px;
  margin-top: 28px; padding-top: 18px;
  border-top: 2px dashed var(--border-2);
  flex-wrap: wrap;
}
.cert-sign {
  text-align: center; font-size: 0.82rem;
  color: var(--ink-2); flex: 1; min-width: 140px;
}
.cert-sign .line {
  border-bottom: 2px solid var(--ink);
  height: 36px; margin-bottom: 8px;
  max-width: 160px; margin-inline: auto;
}
.cert-sign b { color: var(--green); }
.cert-qr {
  text-align: center; padding: 6px;
  background: #fff; border-radius: 10px;
  border: 2px solid var(--green);
}
.cert-qr img { width: 90px; height: 90px; border-radius: 6px; }
.cert-qr small {
  display: block; font-size: 0.68rem; color: var(--muted);
  margin-top: 5px; font-weight: 600;
}
.cert-id-line {
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--ink-2); margin-top: 16px;
  padding: 9px; background: #fff;
  border-radius: 8px; border: 1.5px dashed var(--gold);
  display: inline-block;
}
.cert-id-line b { color: var(--maroon); }
.cert-lang-btn {
  padding: 10px 20px; border-radius: 8px;
  font-weight: 700; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.92rem;
  transition: all 0.2s;
}

/* ============================================================
   36. SHARE BUTTONS
   ============================================================ */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none !important;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  min-height: 44px;
  font-family: inherit;
}
.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  color: #fff;
}
.share-btn.wa { background: #25D366; }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #000000; }
.share-btn.li { background: #0A66C2; }
.share-btn.tg { background: #0088CC; }
.share-btn.copy { background: linear-gradient(135deg, var(--maroon), var(--maroon-2)); }
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.share-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 28px 0 12px;
}

/* ============================================================
   37. DOWNLOAD CARDS
   ============================================================ */
.download-card {
  background: #fff;
  border: 2px solid var(--border-2);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: 0.2s;
  margin-top: 12px;
}
.download-card:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.download-card .dc-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex: none;
}
.download-card.green .dc-icon {
  background: var(--green-soft);
  color: var(--green-3);
  border: 2px solid var(--green-2);
}
.download-card.saffron .dc-icon {
  background: var(--saffron-soft);
  color: var(--saffron-3);
  border: 2px solid var(--saffron-2);
}
.download-card.purple .dc-icon {
  background: #F5EAFF;
  color: #7A3EB8;
  border: 2px solid #DCC4F0;
}
.download-card .dc-body { flex: 1; min-width: 0; }
.download-card h4 { font-size: 1rem; margin-bottom: 2px; color: var(--maroon); }
.download-card p { font-size: 0.86rem; color: var(--muted); }

/* ============================================================
   38. VERIFY PAGE
   ============================================================ */
.verify-result {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  font-size: 1rem;
  display: none;
}
.verify-result.show { display: block; animation: fadeIn 0.3s; }
.verify-result.ok {
  background: var(--green-soft);
  border: 2px solid var(--green-2);
  color: var(--green-3);
}
.verify-result.fail {
  background: var(--error-soft);
  border: 2px solid #F0B0B0;
  color: #8B1E1E;
}
.loader { display: none; text-align: center; padding: 40px 20px; }
.loader.show { display: block; }
.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--border-2);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}
.verified-banner {
  background: linear-gradient(135deg, var(--green-soft), #fff);
  border: 2px solid var(--green-2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.verified-banner .vb-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex: none;
  box-shadow: 0 6px 20px rgba(13, 122, 58, 0.3);
}
.verified-banner .vb-text h4 {
  color: var(--green-3);
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.verified-banner .vb-text p { color: var(--ink-2); font-size: 0.9rem; }
.cert-wrap { margin-top: 32px; display: none; }
.cert-wrap.show { display: block; animation: fadeIn 0.4s; }

/* ============================================================
   39. THE UPLIFT PAGE
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}
.benefit-col {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.benefit-col:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-col .bc-head {
  padding: 16px 22px;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}
.benefit-col.student .bc-head { background: linear-gradient(135deg, var(--green), var(--green-3)); }
.benefit-col.volunteer .bc-head { background: linear-gradient(135deg, var(--saffron), var(--saffron-3)); }
.benefit-col .bc-body {
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.benefit-col .bc-icon { font-size: 3rem; margin-bottom: 12px; }
.benefit-col .bc-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.benefit-col .bc-text b { color: var(--maroon); }
.benefit-col .bc-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; font-style: italic; }
.benefit-col .bc-mockup {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}
.benefit-col .bc-mockup .m-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cream-2);
  border: 1.5px solid var(--border-2);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  transition: all 0.2s;
}
.benefit-col:hover .bc-mockup .m-ico {
  transform: translateY(-3px);
  border-color: var(--saffron-2);
}
.benefit-col .bc-cta { margin-top: auto; padding-top: 8px; }

/* Thoughts Slider */
.thoughts-slider {
  position: relative;
  background: #fff;
  border: 2px solid var(--border-2);
  border-radius: var(--radius-lg);
  margin-top: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slider-track { position: relative; min-height: 320px; }
.thought-slide {
  position: absolute;
  inset: 0;
  padding: 32px 60px;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.thought-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.thought-slide .thought-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.95;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 500;
}
.thought-slide .thought-cite {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: var(--maroon);
  font-weight: 700;
  font-style: normal;
  padding-right: 8px;
}
.thought-slide .thought-cite::before {
  content: "— ";
  margin-right: 4px;
  color: var(--saffron-3);
}
.thought-slide .thought-meaning {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-2);
}
.thought-slide .thought-meaning b {
  color: var(--maroon);
  font-weight: 700;
  margin-right: 6px;
}
.thought-slide.english { border-left: 4px solid var(--green-2); }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--maroon);
  border: 2px solid var(--border-2);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(139, 21, 56, 0.15);
  font-family: inherit;
  line-height: 1;
}
.slider-btn:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
  transform: translateY(-50%) scale(1.1);
}
.slider-btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 12px 0 16px;
  flex-wrap: wrap;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  min-height: 0;
}
.slider-dot.active {
  background: var(--saffron);
  width: 24px;
  border-radius: 999px;
}

/* Uplift Note */
.uplift-note {
  background: var(--info-soft);
  border: 1.5px solid #D5E0ED;
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--info);
  font-size: .94rem;
  line-height: 1.75;
  margin-top: 20px;
}

/* Uplift Alt Section */
.uplift-section-alt {
  background: linear-gradient(180deg, #FFFBF5 0%, #FFF6E8 100%);
}

/* Donate Wrap */
.donate-wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.donate-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 0 16px;
}
.donate-intro .d-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: dEmojiPulse 2.5s ease-in-out infinite;
}
@keyframes dEmojiPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.donate-intro h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--maroon);
  font-weight: 400;
  margin-bottom: 14px;
}
.donate-intro p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.9;
}
.donate-intro p strong { color: var(--maroon); }
.usage-section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--maroon);
  margin-bottom: 16px;
  padding-bottom: 10px;
  position: relative;
}
.usage-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  margin: 10px auto 0;
  border-radius: 999px;
}
.donate-cta {
  text-align: center;
  margin-top: 32px;
  padding: 0 16px;
}

/* Fee Calculator */
.fee-calc-card {
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 34px;
}
.fee-calc-head {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  color: #fff;
  padding: 22px 26px;
}
.fee-calc-head h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.fee-calc-body { padding: 26px; }
.fee-calc-result { display: none; margin-top: 4px; }
.fee-calc-result.show { display: block; animation: fadeIn 0.3s ease; }
.fee-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.fee-cell {
  background: var(--cream-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.fee-cell small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fee-cell b {
  display: block;
  font-size: 1.05rem;
  color: var(--maroon);
  margin-top: 6px;
  font-weight: 800;
}
.fee-cell.primary {
  background: var(--saffron-soft);
  border-color: var(--saffron-2);
}
.fee-cell.primary small { color: var(--saffron-3); }
.fee-cell.primary b { color: var(--saffron-3); font-size: 1.35rem; }
.fee-cell.disc small { color: var(--green-3); }
.fee-cell.disc b { color: var(--green-3); }

/* Fee Table Extras */
.fee-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.88em;
  font-weight: 600;
}
.fee-cut {
  color: var(--green-3);
  font-weight: 700;
}

/* Donate Section */
.donate-section {
  background: linear-gradient(135deg, #FFF8F0, var(--saffron-soft), #FFFBF5);
}

/* ============================================================
   40. ADMIN TABS & TABLES
   ============================================================ */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}
.admin-tab {
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s;
  font-family: inherit;
}
.admin-tab:hover { color: var(--maroon); background: var(--saffron-soft); }
.admin-tab.active { color: var(--maroon); border-bottom-color: var(--saffron); }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeIn 0.25s; }
.admin-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.admin-stat {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  transition: 0.2s;
}
.admin-stat:hover {
  border-color: var(--saffron);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.admin-stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--maroon);
  line-height: 1.1;
}
.admin-stat span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 6px;
  display: block;
}
.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-search input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 2px solid var(--border-2);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}
.admin-search input:focus { outline: none; border-color: var(--saffron); }

.tbl-btn {
  padding: 6px 12px;
  font-size: 0.76rem;
  border-radius: 7px;
  font-weight: 700;
  border: 1.5px solid;
  cursor: pointer;
  margin: 2px;
  font-family: inherit;
  transition: 0.15s;
  background: #fff;
}
.tbl-btn.verify { border-color: #1A4A80; color: #1A4A80; }
.tbl-btn.verify:hover { background: #EEF4FB; }
.tbl-btn.select { border-color: var(--green); color: var(--green-3); }
.tbl-btn.select:hover { background: var(--green-soft); }
.tbl-btn.reject { border-color: #991B1B; color: #991B1B; }
.tbl-btn.reject:hover { background: #FEF5F5; }
.tbl-btn.download { border-color: var(--saffron); color: var(--saffron-3); }
.tbl-btn.download:hover { background: var(--saffron-soft); }

.log-form {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}
.log-form .field { margin-bottom: 0; }

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--saffron-soft);
  border: 2px solid var(--saffron);
  border-radius: 10px;
  color: var(--saffron-3);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s;
}
.upload-btn:hover { background: var(--saffron); color: #fff; }
.upload-btn input { display: none; }

/* ============================================================
   41. VERIFY PAGE (#inputCard)
   ============================================================ */
#inputCard {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 40px rgba(139, 21, 56, 0.08);
  max-width: 700px;
  margin: 0 auto;
}
#certInput {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  font-size: 1.05rem;
  transition: all 0.15s;
  color: var(--ink);
  min-height: 56px;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
#certInput:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
}

/* ============================================================
   42. DISTRICTS PAGE
   ============================================================ */
.search-wrap {
  max-width: 640px;
  margin: 0 auto 32px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  border: 2px solid var(--border-2);
  border-radius: 16px;
  font-size: 1.05rem;
  background: #fff;
  transition: 0.2s;
  box-shadow: 0 4px 16px rgba(139, 21, 56, 0.06);
  color: var(--ink);
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15), 0 8px 24px rgba(255, 122, 0, 0.1);
}
.search-wrap::before {
  content: "🔍";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  pointer-events: none;
}
.search-wrap .clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--muted);
  display: none;
  place-items: center;
  font-size: 1.1rem;
  border: 1.5px solid var(--border-2);
  cursor: pointer;
  transition: 0.15s;
}
.search-wrap .clear-btn:hover { background: var(--saffron-soft); color: var(--maroon); }
.search-wrap .clear-btn.show { display: grid; }

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 18px 24px;
  background: #fff;
  border: 2px solid var(--border-2);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(139, 21, 56, 0.06);
}
.stats-bar .st { text-align: center; min-width: 110px; }
.stats-bar .st b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--maroon);
  line-height: 1.1;
}
.stats-bar .st span {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 4px;
  display: block;
}

.quick-access {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.quick-btn {
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid var(--border-2);
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}
.quick-btn:hover {
  border-color: var(--saffron);
  background: var(--saffron-soft);
  color: var(--saffron-3);
}
.quick-btn.featured {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  border-color: var(--saffron);
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.state-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.state-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(139, 21, 56, 0.04);
}
.state-card:hover { border-color: var(--saffron-2); box-shadow: 0 6px 20px rgba(255, 122, 0, 0.1); }
.state-card.featured { border-color: var(--green-2); background: linear-gradient(135deg, #fff, var(--green-soft)); }
.state-card.open { border-color: var(--saffron); box-shadow: 0 10px 30px rgba(255, 122, 0, 0.15); }

.state-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  transition: 0.15s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.state-header:hover,
.state-header:focus-visible { background: var(--saffron-soft); }
.state-header:focus-visible { outline: 3px solid var(--saffron); outline-offset: -3px; }
.state-card.open .state-header { background: var(--saffron-soft); border-bottom: 1.5px solid var(--border); }

.state-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.state-flag {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--saffron-soft), #fff);
  border: 2px solid var(--saffron-2);
  flex: none;
}
.state-info h3 {
  font-size: 1.05rem;
  color: var(--maroon);
  margin-bottom: 2px;
  font-family: var(--font-heading);
  font-weight: 400;
}
.state-right { display: flex; align-items: center; gap: 12px; flex: none; }
.district-count {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--saffron-soft);
  color: var(--saffron-3);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--saffron-2);
  white-space: nowrap;
}
.expand-arrow {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  color: var(--maroon);
  transition: transform 0.3s;
}
.state-card.open .expand-arrow { transform: rotate(180deg); }

.state-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  background: #fff;
}
.state-body > .state-body-inner { overflow: hidden; }
.state-card.open .state-body { grid-template-rows: 1fr; }

.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px 24px 24px;
}
.district-item {
  padding: 11px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  text-align: left;
  min-height: 44px;
  line-height: 1.35;
}
.district-item:hover,
.district-item:focus-visible {
  border-color: var(--saffron);
  background: var(--saffron-soft);
  color: var(--saffron-3);
  transform: translateX(3px);
  outline: none;
}
.district-item:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.district-item::before { content: "📍"; font-size: 0.9rem; opacity: 0.6; flex: none; }
.district-item.active {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  border-color: var(--saffron);
}

.no-result {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 2px dashed var(--border-2);
  border-radius: 16px;
}
.no-result.show { display: block; }
.no-result .emoji { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.6; }
.no-result h3 { color: var(--maroon); font-size: 1.25rem; margin-bottom: 8px; }
.no-result p { color: var(--muted); font-size: 0.98rem; }

.apply-cta {
  background: linear-gradient(135deg, #fff, var(--saffron-soft));
  border: 2px solid var(--gold-2);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  margin: 48px 0 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(212, 160, 23, 0.12);
}
.apply-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--maroon);
  font-weight: 400;
  margin-bottom: 10px;
}
.apply-cta p {
  color: var(--ink-2);
  font-size: 1rem;
  margin-bottom: 22px;
  line-height: 1.75;
  max-width: 620px;
  margin-inline: auto;
}

/* ============================================================
   43. DONATE PAGE
   ============================================================ */
.donate-hero {
  text-align: center;
  padding: 40px 0 20px;
  position: relative;
}
.donate-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--maroon);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.15;
}
.why-card {
  background: #fff;
  border: 2px solid var(--gold-2);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 12px 40px rgba(139, 21, 56, 0.1);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}
.why-card h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--maroon);
  font-weight: 400;
  margin-bottom: 14px;
}
.why-card > p {
  color: var(--ink-2);
  line-height: 1.85;
  font-size: 1.03rem;
}
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.quote-box {
  background: linear-gradient(135deg, #FFFBF5, #FFF6E8);
  border-left: 5px solid var(--saffron);
  padding: 24px 28px 22px;
  border-radius: 14px;
  position: relative;
  transition: 0.25s;
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.06);
}
.quote-box:hover {
  border-left-color: var(--green);
  transform: translateX(6px);
  box-shadow: 0 8px 30px rgba(255, 122, 0, 0.18);
}
.quote-box::before {
  content: "❝";
  font-size: 3.4rem;
  color: var(--saffron-2);
  position: absolute;
  top: -12px;
  left: 18px;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.35;
}
.quote-box.english { border-left-color: var(--green); }
.quote-box.english::before { color: var(--green-2); }
.quote-box .quote-text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.95;
  color: var(--ink);
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}
.quote-box .quote-cite {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: var(--maroon);
  font-weight: 700;
  font-style: normal;
  padding-right: 8px;
}
.quote-box .quote-cite::before { content: "— "; margin-right: 4px; color: var(--saffron-3); }
.quote-box .quote-meaning {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.8;
  padding-left: 28px;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px dashed var(--border-2);
}
.quote-box .quote-meaning b { color: var(--maroon); font-weight: 700; margin-right: 6px; }

.donate-form-card {
  background: #fff;
  border: 2px solid var(--gold-2);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 12px 40px rgba(139, 21, 56, 0.12);
  max-width: 680px;
  margin: 32px auto 0;
  position: relative;
}
.donate-form-card::before {
  content: "🪔";
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  background: #fff;
  padding: 0 16px;
}
.donate-form-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--maroon);
  font-weight: 400;
  text-align: center;
  margin-bottom: 8px;
}
.donate-form-card > p {
  text-align: center;
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 28px;
  line-height: 1.7;
}
.amount-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.amount-preset {
  padding: 12px 8px;
  border: 2px solid var(--border-2);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 1rem;
  color: var(--maroon);
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
  min-height: 50px;
}
.amount-preset:hover {
  border-color: var(--saffron);
  background: var(--saffron-soft);
  color: var(--saffron-3);
}
.amount-preset.active {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-3));
  color: #fff;
  border-color: var(--saffron);
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.3);
}
.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.transp-card {
  background: var(--green-soft);
  border: 2px solid var(--green-2);
  border-radius: 14px;
  padding: 22px 24px;
  color: var(--green-3);
}
.transp-card.warn {
  background: var(--saffron-soft);
  border-color: var(--saffron-2);
  color: #7A3E00;
}
.transp-card h4 {
  color: inherit;
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.transp-card p { font-size: 0.94rem; line-height: 1.75; }

/* ============================================================
   44. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}

/* ============================================================
   45. FOOTER
   ============================================================ */
footer {
  background: linear-gradient(180deg, var(--maroon), var(--maroon-deep));
  color: #F5D9C8;
  padding: 60px 0 0;
  font-size: 0.94rem;
  position: relative;
  margin-top: auto;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--saffron), #fff, var(--green));
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 38px;
  position: relative;
  z-index: 1;
}
footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 400;
  position: relative;
}
footer h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--gold-2);
  border-radius: 2px;
}
footer li { margin-bottom: 11px; }
footer a { color: #F5D9C8; text-decoration: none; cursor: pointer; font-size: 0.94rem; }
footer a:hover { color: var(--gold-2); }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.foot-brand .brand-logo {
  background: #fff;
  padding: 6px;
  border-color: var(--gold-2);
  width: 52px; height: 52px;
}
.foot-brand .brand-text b { color: #fff; font-size: 1.08rem; }
.foot-brand .brand-text span { color: var(--gold-2); font-size: 0.8rem; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  position: relative;
  z-index: 1;
}
.foot-line { margin-bottom: 8px; }
.foot-brand-simple {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
}
.disclaimer {
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--gold-2);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.75;
  margin-bottom: 30px;
  color: #F5D9C8;
  position: relative;
  z-index: 1;
}

/* ============================================================
   46. UTILITY CLASSES
   ============================================================ */
.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.mt48 { margin-top: 48px; }
.mb8 { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.mb24 { margin-bottom: 24px; }
.mb32 { margin-bottom: 32px; }
.p16 { padding: 16px; }
.p24 { padding: 24px; }
.p32 { padding: 32px; }
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-maroon { color: var(--maroon); }
.text-green { color: var(--green-3); }
.text-saffron { color: var(--saffron-3); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap8 { gap: 8px; }
.gap12 { gap: 12px; }
.gap16 { gap: 16px; }
.skeleton {
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--saffron-soft) 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  min-height: 16px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
[data-fav] { transition: transform 0.2s, color 0.2s; }
[data-fav].active { color: var(--gold-2); transform: scale(1.1); }
.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.will-animate.animated { opacity: 1; transform: translateY(0); }

/* Hero Seats List */
#heroSeatList li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--ink-2);
}
#heroSeatList li:last-child { border-bottom: none; }
#heroSeatList li b { white-space: nowrap; font-family: var(--font-mono); }

/* ============================================================
   47. BOTTOM NAV (Mobile only)
   ============================================================ */
.bottom-nav { display: none; }

/* ============================================================
   48. RESPONSIVE — TABLET (1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { max-width: 640px; }
  nav a,
  nav .nav-link-btn,
  .nav-links a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .tier-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* ============================================================
   49. RESPONSIVE — MOBILE (860px)
   ============================================================ */
@media (max-width: 860px) {
  body {
    font-size: 16px;
    padding-bottom: var(--bottom-nav-total);
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
  }

  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding-top: var(--safe-top);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(240, 220, 188, 0.8);
  }

  .topbar { display: none; }
  .tricolor { display: none; }

  .header-inner,
  .nav-wrap {
    height: var(--appbar-h);
    padding: 0 14px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 4px;
    border-width: 1.5px;
  }
  .brand-text { min-width: 0; }
  .brand-text b { font-size: 0.95rem; line-height: 1.1; }
  .brand-text span { font-size: 0.65rem; }

  nav.desktop-nav { display: none; }
  .burger { display: flex; }

  .header-actions,
  .nav-actions { gap: 8px; flex: none; }
  .header-actions .btn,
  .nav-actions .btn { display: none !important; }

  .lang-switch { padding: 2px; border-radius: 9px; }
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-width: 40px;
    min-height: 34px;
  }

  /* Mobile Drawer */
  nav.mobile-drawer,
  body > nav.mobile-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    padding: calc(var(--safe-top) + 24px) 16px calc(var(--safe-bottom) + 24px);
    background: #fff;
    z-index: var(--z-drawer);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(139, 21, 56, 0.25);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  nav.mobile-drawer.open,
  body > nav.mobile-nav.open { transform: translateX(0); }

  /* Drawer overlay via body::before */
  body.drawer-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20, 5, 15, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: calc(var(--z-drawer) - 1);
    animation: fadeIn 0.3s;
  }

  nav.mobile-drawer ul,
  body > nav.mobile-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  nav.mobile-drawer li,
  body > nav.mobile-nav li { width: 100%; }
  nav.mobile-drawer a,
  body > nav.mobile-nav a {
    padding: 16px 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  nav.mobile-drawer a:active,
  body > nav.mobile-nav a:active {
    background: var(--saffron-soft);
    transform: scale(0.98);
  }
  nav.mobile-drawer a.active,
  body > nav.mobile-nav a.active {
    background: linear-gradient(135deg, var(--saffron-soft), #fff);
    color: var(--saffron-3);
    border-left: 4px solid var(--saffron);
  }

  main, .main-content {
    padding-top: calc(var(--appbar-h) + var(--safe-top));
  }
  body > section:first-of-type,
  body > .hero:first-of-type,
  body > .page-hero:first-of-type {
    padding-top: calc(var(--appbar-h) + var(--safe-top) + 30px);
  }

  /* Bottom Navigation */
  .bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-total);
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(240, 220, 188, 0.9);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    z-index: var(--z-bottom-nav);
    box-shadow: 0 -4px 20px rgba(139, 21, 56, 0.08);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s, transform 0.1s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }
  .bottom-nav-item .bn-icon {
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.15s;
  }
  .bottom-nav-item:active { transform: scale(0.92); }
  .bottom-nav-item.active { color: var(--saffron-3); }
  .bottom-nav-item.active .bn-icon { transform: translateY(-2px); }
  .bottom-nav-item.active::before {
    content: "";
    position: absolute;
    top: 4px;
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--saffron), var(--green));
  }

  /* FAB hidden permanently */
  .bottom-nav-item.bn-fab,
  .bn-fab { display: none !important; }

  /* Grids collapse */
  .g3, .g2, .g4,
  .story-grid,
  .contact-grid,
  .transparency-grid,
  .benefits-grid { grid-template-columns: 1fr !important; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  section { padding: 40px 0; }
  section:first-of-type { padding-top: 24px; }
  .section-head { margin-bottom: 24px; padding: 0 4px; }
  .section-head h2 { font-size: 1.2rem; line-height: 1.5; }

  .hero { padding: 28px 0 36px; }
  .hero h1 { font-size: 1.5rem; line-height: 1.28; }
  .hero-sub { font-size: 0.98rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; }
  .hero-card { padding: 20px; border-radius: 20px; max-width: 100%; }

  /* Ebook grid */
  .ebook-grid { grid-template-columns: 1fr !important; gap: 14px; margin-top: 20px; }
  .ebook-card,
  .free-card,
  .tier-card {
    padding: 18px;
    border-radius: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon title" "icon meta" "desc desc" "cta cta";
    gap: 4px 14px;
    align-items: start;
  }
  .tier-card {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .ebook-card .ec-icon,
  .ebook-card .fc-ico,
  .free-card .fc-ico {
    grid-area: icon;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    margin: 0;
    align-self: start;
  }
  .ebook-card h3,
  .free-card h3 {
    grid-area: title;
    font-size: 0.98rem;
    padding-right: 60px;
    margin: 0;
    align-self: center;
    line-height: 1.3;
  }
  .ebook-card .ec-meta,
  .ebook-card .fc-meta,
  .free-card .fc-meta {
    grid-area: meta;
    margin: 4px 0 0;
    padding: 0;
    border-bottom: none;
    gap: 4px;
  }
  .ebook-card .ec-meta span,
  .ebook-card .fc-meta span,
  .free-card .fc-meta span { font-size: 0.68rem; padding: 3px 8px; }
  .ebook-card .ec-desc,
  .ebook-card p,
  .free-card p {
    grid-area: desc;
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 10px 0 12px;
    text-align: left;
  }
  .ebook-card .btn,
  .free-card .btn {
    grid-area: cta;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  .ebook-card .badge-free,
  .free-card .badge-free { top: 12px; right: 12px; font-size: 0.62rem; padding: 3px 8px; }

  /* Modals — bottom sheet */
  .modal { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 24px 24px 0 0;
    border: none;
    border-top: 3px solid var(--gold-2);
    margin: 0;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .modal-box.modal-sm,
  .modal-box.modal-md,
  .modal-box.modal-lg { max-width: 100%; }
  .modal-box::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-2);
    border-radius: 999px;
    margin: 10px auto 4px;
  }
  .modal-head { padding: 14px 20px; border-radius: 0; }
  .modal-body { padding: 18px 20px 24px; }
  .close-x {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--saffron-soft);
    font-size: 1.3rem;
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* Toast above bottom nav */
  .toast {
    bottom: calc(max(var(--bottom-nav-total, 0px), var(--dpn-total, 0px)) + 16px);
    left: 16px;
    right: 16px;
    transform: translateY(140%);
    max-width: none;
    padding: 14px 20px;
    font-size: 0.92rem;
    border-radius: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
  }
  .toast.show { transform: translateY(0); opacity: 1; visibility: visible; }

  /* Buttons */
  .btn {
    padding: 15px 22px;
    font-size: 0.98rem;
    min-height: 54px;
    border-radius: 14px;
  }
  .btn:active:not(:disabled) { transform: scale(0.96); }

  /* Forms — mobile padding */
  .form-section,
  .login-card,
  #inputCard,
  .why-card,
  .donate-form-card {
    padding: 22px 18px;
    border-radius: 18px;
    margin: 20px auto;
  }
  .log-form { grid-template-columns: 1fr; gap: 12px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .check-grid { grid-template-columns: 1fr; gap: 8px; }
  .check { min-height: 52px; padding: 14px 16px; border-radius: 12px; }
  .consent-box { padding: 14px; border-radius: 12px; }

  .otp-inputs { gap: 6px; }
  .otp-box { width: 46px; height: 56px; font-size: 1.4rem; }

  /* Portal tabs */
  .portal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 4px 12px;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portal-tabs::-webkit-scrollbar { display: none; }
  .portal-tab {
    flex: none;
    padding: 11px 18px;
    font-size: 0.88rem;
    min-height: 46px;
    border-radius: 999px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  /* Dashboard */
  .dash-head {
    padding: 18px;
    border-radius: 18px 18px 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dash-body { padding: 18px; border-radius: 0 0 18px 18px; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini { padding: 14px; border-radius: 12px; }

  /* Timeline */
  .timeline {
    padding: 10px 4px 16px;
    gap: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .timeline::-webkit-scrollbar { display: none; }
  .tl-step { min-width: 90px; scroll-snap-align: start; font-size: 0.72rem; }
  .tl-dot { width: 28px; height: 28px; font-size: 0.7rem; }

  /* Certificate */
  .cert-frame { border-width: 6px; border-radius: 12px; }
  .cert-frame::before { inset: 6px; border-width: 2px; border-radius: 6px; }
  .cert-frame::after { inset: 11px; }
  .cert-inner { padding: 22px 14px 18px; }
  .cert-logo { width: 64px; height: 64px; padding: 6px; }
  .cert-logo-fallback { font-size: 1.2rem; }
  .cert-org { font-size: 1.15rem; }
  .cert-title { font-size: 1.4rem; letter-spacing: 0.12em; }
  .cert-student { font-size: 1.35rem; padding: 0 14px 4px; }
  .cert-course { font-size: 1rem; }
  .cert-meta { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cert-meta > div { padding: 8px; }
  .cert-meta small { font-size: 0.62rem; }
  .cert-meta b { font-size: 0.85rem; }
  .cert-bottom { flex-direction: column; align-items: center; gap: 20px; }
  .cert-sign { width: 100%; max-width: 220px; }
  .cert-qr img { width: 80px; height: 80px; }
  .share-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .share-btn { padding: 12px; font-size: 0.86rem; min-height: 46px; border-radius: 12px; }

  /* Ebook reader */
  .ebook-reader,
  .ebook-reader-full { border-radius: 18px; border-width: 1.5px; margin: 16px 0; }
  .ebook-reader-full .er-head { padding: 14px 18px; border-radius: 18px 18px 0 0; }
  .ebook-reader-full .er-head h3 { font-size: 1rem; }
  .ebook-body,
  .ebook-reader-full .er-body {
    padding: 20px 18px;
    max-height: none;
    font-size: 0.98rem;
    line-height: 1.85;
  }
  .ebook-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ebook-tabs::-webkit-scrollbar { display: none; }
  .ebook-tab { flex: none; padding: 12px 18px; font-size: 0.88rem; min-height: 48px; }

  /* Ebook actions */
  .ebook-actions { justify-content: center; }
  .ebook-actions .btn { min-width: 120px; }

  /* Quiz */
  .quiz-section { padding: 18px; border-radius: 18px; }
  .quiz-header { padding: 14px 18px; border-radius: 12px; }
  .quiz-header h4 { font-size: 0.98rem; }
  .q-item { padding: 14px; border-radius: 14px; }
  .q-item .q-text { font-size: 0.94rem; }
  .q-item .q-opt { min-height: 50px; border-radius: 12px; }

  /* Step tabs */
  .step-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 4px 10px;
    margin: 20px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .step-tabs::-webkit-scrollbar { display: none; }
  .step-tab { flex: none; padding: 9px 14px; font-size: 0.8rem; min-height: 42px; white-space: nowrap; }

  /* Tags */
  .tag {
    padding: 8px 15px;
    font-size: 0.8rem;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
  .tags-box { padding: 20px 16px; border-radius: 16px; }

  /* Highlight */
  .highlight { padding: 26px 18px; border-radius: 20px; }
  .highlight h3 { font-size: 1.15rem; }

  /* Footer */
  footer { padding: 36px 0 0; margin-bottom: var(--bottom-nav-total); }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 24px; }
  .foot-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px 0;
    font-size: 0.8rem;
    gap: 8px;
  }

  /* Utility */
  .desktop-only { display: none !important; }
  html { scroll-padding-top: calc(var(--appbar-h) + var(--safe-top) + 12px); }

  /* Narrowed min-height — no inline links */
  .btn,
  nav a,
  nav .nav-link-btn,
  .nav-links a,
  .bottom-nav-item,
  button:not(.close-x) {
    min-height: 44px;
  }
  footer a,
  p a,
  li a,
  .info-list a { min-height: auto; }

  input[type="checkbox"],
  input[type="radio"] { min-height: auto; width: 20px; height: 20px; }

  .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .impact-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Login icon mobile */
  .login-head .lh-icon { width: 60px; height: 60px; font-size: 1.6rem; }

  /* Thoughts slider mobile */
  .thought-slide { padding: 24px 48px; }
  .slider-track { min-height: 380px; }
  .slider-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .slider-prev { left: 6px; }
  .slider-next { right: 6px; }

  /* Fee calculator */
  .fee-calc-grid { grid-template-columns: 1fr 1fr; }
  .fee-calc-result { margin-top: 12px; }
}

/* ============================================================
   50. RESPONSIVE — SMALL MOBILE (520px)
   ============================================================ */
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.4rem; }
  .section-head h2 { font-size: 1.1rem; }
  .container,
  .container-narrow,
  .container-wide { padding-inline: 16px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-text b { font-size: 0.88rem; }
  .otp-box { width: 42px; height: 52px; font-size: 1.3rem; }
  .portal-tab { padding: 10px 14px; font-size: 0.82rem; }
  .cert-meta { grid-template-columns: 1fr; }
  .cert-student { font-size: 1.15rem; }
  .stat b { font-size: 1.5rem; }
  .info-card { padding: 20px 18px; }
  .tags-box { padding: 20px 16px; }
  .highlight { padding: 24px 16px; }
  .ebook-card,
  .free-card { padding: 16px; }
  .ebook-card .ec-icon,
  .ebook-card .fc-ico,
  .free-card .fc-ico { width: 44px; height: 44px; font-size: 1.3rem; }
  .ebook-card h3,
  .free-card h3 { font-size: 0.92rem; padding-right: 55px; }
  .impact-grid { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: 1fr; }
  .fee-calc-grid { grid-template-columns: 1fr; }
  .slider-track { min-height: 440px; }
  .thought-slide { padding: 20px 40px; }
}

/* ============================================================
   51. RESPONSIVE — VERY SMALL (400px)
   ============================================================ */
@media (max-width: 400px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: 1.3rem; }
  .otp-box { width: 38px; height: 48px; font-size: 1.1rem; }
  .btn { padding: 12px 18px; font-size: 0.92rem; min-height: 50px; }
  .btn-sm { padding: 9px 14px; font-size: 0.86rem; }
  .bottom-nav-item { font-size: 0.62rem; }
  .bottom-nav-item .bn-icon { font-size: 1.2rem; }
}

/* ============================================================
   52. LANDSCAPE PHONE
   ============================================================ */
@media (max-width: 860px) and (orientation: landscape) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  header { position: sticky; }
  .hero { padding: 20px 0 30px; }
  section { padding: 24px 0; }
  footer { margin-bottom: 0; }
}

/* ============================================================
   53. NARROW TABLET (861–1024)
   ============================================================ */
@media (min-width: 861px) and (max-width: 1024px) {
  .bottom-nav { display: none; }
}

/* ============================================================
   54. iOS SPECIFIC
   ============================================================ */
@supports (-webkit-touch-callout: none) {
  .bottom-nav { padding-bottom: max(var(--safe-bottom), 8px); }
  .modal { padding-bottom: var(--safe-bottom); }
}

/* ============================================================
   55. BACKDROP FILTER FALLBACK
   ============================================================ */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  header,
  .bottom-nav,
  .modal { background: #fff; }
  .modal { background: rgba(90, 15, 35, 0.92); }
}

/* ============================================================
   56. PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .will-animate { opacity: 1; transform: none; }
}

/* ============================================================
   57. HIGH CONTRAST
   ============================================================ */
@media (forced-colors: active) {
  .btn, .card, .info-card, .form-section {
    border: 2px solid CanvasText;
  }
  .btn-primary, .btn-saffron, .btn-green {
    background: ButtonFace;
    color: ButtonText;
  }
}

/* ============================================================
   58. DARK MODE — Complete
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1A1410;
    --cream-2: #241C16;
    --ink: #F5E6D3;
    --ink-2: #D4C0A8;
    --muted: #A89080;
    --border: #3A2C22;
    --border-2: #4A382C;

    --saffron-soft: #3A2818;
    --green-soft: #14281C;
    --success-soft: #14281C;
    --error-soft: #2A1414;
    --info-soft: #141E2E;
    --warning-soft: #2E2410;
  }

  body {
    background: linear-gradient(180deg, #1A1410 0%, #241C16 100%);
    color: var(--ink);
  }

  header {
    background: rgba(36, 28, 22, 0.92);
    border-bottom-color: var(--border);
  }

  .card, .info-card, .form-section, .login-card,
  .dash-body, .modal-box, .tags-box, .hero-card,
  .ebook-card, .free-card, .tier-card,
  .ebook-reader, .ebook-reader-full,
  .quiz-section, .stat, #inputCard, .state-card,
  .why-card, .donate-form-card, .support-card,
  .impact-card, .usage-card, .pillar, .bearer,
  .value-item, .way-item, .download-card, .benefit-col,
  .thoughts-slider, .portal-tab, .step-tab, .tl-dot,
  .q-item .q-opt, .district-item, .amount-preset,
  .quick-btn, .search-wrap input, .admin-stat,
  .admin-search input, .table-wrap, .admin-table-wrap,
  .notice, .info-box, .alert-box, .quote-box,
  .fee-calc-card, .upload-btn, .download-card {
    background: #241C16;
    border-color: var(--border-2);
    color: var(--ink);
  }

  .hero,
  .page-hero {
    background: linear-gradient(135deg, #2A1F18 0%, #241C16 50%, #1E2A20 100%);
  }

  h1, h2, h3, h4, h5, h6 { color: #F5C9A8; }
  p, li { color: var(--ink-2); }

  .field input, .field select, .field textarea {
    background: #1A1410;
    color: var(--ink);
    border-color: var(--border-2);
  }
  .field input[readonly] { background: #2A2420; }

  .q-item, .mini { background: #1A1410; }
  .q-item .q-opt { background: #241C16; color: var(--ink); }

  footer { background: linear-gradient(180deg, #2A0A15, #1A050C); }
  .thought-slide .thought-text { color: var(--ink); }

  /* Bottom nav dark mode */
  .bottom-nav {
    background: rgba(36, 28, 22, 0.94);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }
  .bottom-nav-item { color: var(--ink-2); }
  .bottom-nav-item.active { color: var(--saffron-2); }

  /* Nav drawer dark */
  nav.mobile-drawer,
  body > nav.mobile-nav {
    background: #241C16;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
  }
  nav.mobile-drawer a,
  body > nav.mobile-nav a { color: var(--ink); }

  /* Modal */
  .modal { background: rgba(10, 5, 5, 0.85); }
  .modal-head { background: #241C16; border-bottom-color: var(--border); }

  .toast { color: #fff; }

  /* Certificate stays cream (print important) */
  .cert-frame { background: #FFFBF5; }
  .cert-frame * { color: var(--ink); }
  .cert-frame .cert-student { color: var(--maroon); }
  .cert-frame .cert-title,
  .cert-frame .cert-course { color: var(--green); }
  .cert-frame .cert-org { color: var(--maroon); }
  .cert-frame .cert-meta > div { background: #fff; }

  /* Tier head dark mode */
  .tier-head.basic { background: linear-gradient(135deg, #075A2A, #0D7A3A); }
  .tier-head.plus { background: linear-gradient(135deg, #92400E, #D97706); }
  .tier-head.adv { background: linear-gradient(135deg, #5A0F23, #991B1B); }

  /* Uplift note dark */
  .uplift-note { border-color: #2A4A6E; }

  /* Donate section dark */
  .donate-section,
  .uplift-section-alt {
    background: linear-gradient(135deg, #2A1F18, #241C16);
  }

  /* Status colors */
  .status-badge,
  .seat-badge,
  .tag,
  .district-count,
  .note,
  .note-green,
  .note-blue { color: var(--ink); }
  .tag.primary { color: var(--saffron-2); }

  /* Fee extras dark */
  .fee-old { color: var(--ink-2); }
  .fee-cut { color: var(--green-2); }
  .ebook-link { color: var(--saffron-2); }
  .ebook-link:hover { color: var(--green-2); }
}

/* ============================================================
   59. PRINT
   ============================================================ */
@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body * { visibility: hidden; }

  #certPrintArea,
  #certPrintArea * { visibility: visible; }

  #certPrintArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }

  /* Fallback for older browsers (no :has support) */
  @supports selector(:has(*)) {
    body:not(:has(#certPrintArea)) .cert-frame,
    body:not(:has(#certPrintArea)) .cert-frame * {
      visibility: visible;
    }
    body:not(:has(#certPrintArea)) .cert-frame {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
    }
  }

  .no-print,
  header,
  footer,
  .topbar,
  .tricolor,
  .step-tabs,
  nav,
  .burger,
  .bottom-nav,
  .skip-link,
  .toast {
    display: none !important;
  }
}

/* ============================================================
   END OF STYLESHEET v7.0
   ============================================================ */


/* Responsive safeguards and dark surfaces */
:where(img,video,iframe,svg) { max-width:100%; }
html,body { max-width:100%; }
.info-list li,.info-list li strong,.field small,.notice,.info-box,.alert-box {
  min-width:0; overflow-wrap:anywhere;
}
button,input,select,textarea { touch-action:manipulation; }
@media (max-width:860px) {
  html { scroll-padding-top:calc(var(--appbar-h) + var(--safe-top) + 12px); }
  body { font-size:16px; }
  .container,.container-narrow,.container-wide { width:calc(100% - 32px); }
  .row { grid-template-columns:minmax(0,1fr); }
  .field input,.field select,.field textarea { font-size:16px; }
}
@media (max-width:520px) {
  .info-list li:not(.address) { flex-direction:column; align-items:flex-start; gap:3px; }
  .info-list li strong { max-width:100%; text-align:left; }
}
@media (prefers-color-scheme:dark) {
  .cat-card,.district-card,.district-item,.quick-btn,.amount-preset,
  .search-wrap input,.admin-search input,.state-body,.fee-cell,
  .timeline-item,.value-item,.way-item,.benefit-col {
    background-color:#241C16; border-color:var(--border-2); color:var(--ink);
  }
  .cat-card p,.fee-cell small,.state-body,.value-item p,.way-item p { color:var(--ink-2); }
}
