/* =============================================================
   flash-style.css  —  Complete standalone CSS for flashcards.html
   Merged from netstuts.css + flash-style.css
   No other CSS file needed.
   ============================================================= */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&amp;display=swap');


/* ── CSS Variables (light mode) ─────────────────────────────── */
:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --brand-primary:  #1e40af;
  --brand-dark:     #0f172a;
  --brand-accent:   #1e3a8a;
  --brand-light:    #3b82f6;

  --bg-page:        #f3f6fb;
  --bg-card:        #ffffff;
  --bg-soft:        #f8fafc;
  --bg-highlight:   #eaf4fb;

  --text-main:      #1f2937;
  --text-muted:     #4b5563;
  --text-light:     #6b7280;
  --text-link:      #1a6fa0;

  --border-soft:    #e5e7eb;
  --border:         #e2e8f0;

  --success:        #10b981;
  --success-dark:   #00cc52;
  --info-bg:        #f0f9ff;
  --info-border:    #0284c7;

  --shadow-soft:    0 18px 40px rgba(0,0,0,0.08);
  --shadow-medium:  0 10px 25px rgba(0,0,0,0.05);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.05);

  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      14px;
  --transition:     0.2s ease;
}


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

html { scroll-behavior: smooth; font-size: 16px; }


/* ── Base body ───────────────────────────────────────────────── */
body {
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }


/* ── Layout ──────────────────────────────────────────────────── */
.main-content-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}


/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar           { width: 10px; height: 10px; }
::-webkit-scrollbar-track     { background: #f1f1f1; border-radius: 5px; }
::-webkit-scrollbar-thumb     { background: var(--brand-primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-accent); }

::selection      { background: rgba(30,64,175,0.2); color: var(--text-main); }
:focus           { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }


/* ── Flashcard Hero Banner ───────────────────────────────────── */
.fc-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #0369a1 100%);
  padding: 40px 20px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(56,189,248,0.12) 0%, transparent 45%);
  pointer-events: none;
}
.fc-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.fc-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #bae6fd;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fc-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.fc-hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #bfdbfe;
  margin: 0 auto 22px;
  line-height: 1.6;
  max-width: 560px;
}
.fc-hero-sub strong { color: #ffffff; }
.fc-hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 10px 24px;
  margin-bottom: 20px;
  max-width: 100%;
}
.fc-stat { display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.fc-stat-num { font-size: 1.5rem; font-weight: 800; color: #ffffff; line-height: 1; }
.fc-stat-label { font-size: 0.72rem; color: #93c5fd; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.fc-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }
.fc-hero-quote {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid #38bdf8;
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: #e0f2fe;
  font-style: italic;
  max-width: 580px;
  text-align: left;
  margin: 0 auto;
  line-height: 1.5;
}
.fc-quote-icon { font-style: normal; flex-shrink: 0; font-size: 1rem; line-height: 1.5; }
.fc-topic-label {
  display: block;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted, #4b5563);
  margin: 22px auto 0;
  max-width: 960px;
  padding: 0 20px;
  letter-spacing: 0.01em;
  width: 100%;
  box-sizing: border-box;
}


/* ── Category buttons ────────────────────────────────────────── */
#category-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 24px 20px 8px;
  max-width: 960px;
  margin: 0 auto;
}
.cat-btn {
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--border-soft);
  padding: 10px 16px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cat-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.2);
}
.cat-btn:active { transform: translateY(0); }


/* ── Donation button ─────────────────────────────────────────── */
.donation-container { display: flex; justify-content: center; margin: 20px 0 8px; }
.donate-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #ffffff;
  border: 2px solid #FBBF24;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3);
  position: relative;
  overflow: hidden;
}
.donate-btn:hover {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(245,158,11,0.45);
}
.donate-btn svg {
  width: 20px; height: 20px; fill: #ffffff;
  animation: heartbeat 1.8s infinite; flex-shrink: 0;
}
@keyframes heartbeat {
  0%, 20%, 100% { transform: scale(1); }
  5%, 15%       { transform: scale(1.15); }
}
.donate-btn:hover svg {
  animation: none;
  transform: scale(1.2) rotate(360deg);
  transition: transform 0.5s ease;
}


/* ── Flashcard container ─────────────────────────────────────── */
.flashcard {
  max-width: 780px;
  width: calc(100% - 40px);
  margin: 20px auto;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  transition: background 0.25s ease, border-color 0.25s ease;
}


/* ── Question ────────────────────────────────────────────────── */
.question {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 26px;
  color: var(--text-main);
  line-height: 1.45;
}


/* ── Answer buttons ──────────────────────────────────────────── */
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.answers button {
  padding: 14px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
  text-align: left;
  line-height: 1.4;
}
.answers button:hover:not(:disabled) {
  background: var(--bg-highlight);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.answers button:disabled { opacity: 0.6; cursor: not-allowed; }


/* ── Result & Definition ─────────────────────────────────────── */
.result {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0 8px;
}
.definition {
  background: var(--bg-soft);
  color: var(--text-main);
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}


/* ── Navigation buttons ──────────────────────────────────────── */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 380px) {
  .navigation {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-btn, .restart-btn {
    text-align: center;
    width: 100%;
  }
}
.nav-btn,
.restart-btn {
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--border-soft);
  padding: 9px 22px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
}
.nav-btn:hover,
.restart-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}


/* ── Progress bar ────────────────────────────────────────────── */
.progress-container {
  width: 100%;
  height: 7px;
  background: var(--border-soft);
  border-radius: 5px;
  margin: 18px 0 6px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #1d4ed8);
  width: 0%;
  transition: width 0.35s ease;
  border-radius: 5px;
}
.score {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
  color: var(--text-muted);
}


/* ── Back to Home button ─────────────────────────────────────── */
.btn-home-wrapper { text-align: center; margin: 20px 0 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent));
  color: #ffffff;
  padding: 14px 40px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  border: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  letter-spacing: 0.3px;
  border-bottom: none;
}
.btn:hover {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(30,58,138,0.3);
  color: #ffffff;
  border-bottom: none;
}
.btn:active { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(-2px); }


/* ── Quiz action button (Back to Home variant) ───────────────── */
.quiz-btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.quiz-action-btn {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent));
  color: white;
  box-shadow: 0 8px 20px rgba(30,58,138,0.22);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.28s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: inherit;
}
.back-home {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 20px 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.back-home a.quiz-action-btn:hover,
.back-home a.quiz-action-btn:focus {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-accent)) !important;
  transform: none !important;
  box-shadow: 0 8px 20px rgba(30,58,138,0.22) !important;
}

/* Re-Take Quiz — green */
.retake-btn {
  background: linear-gradient(135deg, var(--success), var(--success-dark)) !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(16,185,129,0.22);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.28s ease;
  font-family: inherit;
}
.retake-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(16,185,129,0.3) !important;
}


/* ── Footer ──────────────────────────────────────────────────── */
footer {
  margin-top: auto;
  flex-shrink: 0;
}

#main-footer {
  display: flex !important;
  justify-content: center !important;
  margin-top: 30px !important;
  padding: 0 20px 14px !important;
  background: transparent !important;
  position: relative !important;
  box-sizing: border-box !important;
}

#main-footer .footer-inner {
  background: white !important;
  color: #1a1a1a !important;
  max-width: 800px !important;
  width: 100% !important;
  padding: 22px 36px !important;
  border-radius: 20px !important;
  text-align: center !important;
  border: 1px solid rgba(226,232,240,0.8) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.5) inset !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  display: block !important;
}

#main-footer .footer-title {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  color: #1a1a1a !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
  display: inline-block !important;
  padding: 0 15px !important;
  text-align: center !important;
}
#main-footer .footer-title::before {
  content: '✨' !important;
  position: absolute !important;
  left: -30px !important; top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1rem !important;
  animation: sparkle 2s ease-in-out infinite !important;
}
#main-footer .footer-title::after {
  content: '✨' !important;
  position: absolute !important;
  right: -30px !important; top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1rem !important;
  animation: sparkle 2s ease-in-out infinite !important;
  animation-delay: 1s !important;
}
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50%       { opacity: 0.5; transform: translateY(-50%) scale(0.9); }
}

/* ── Social buttons ──────────────────────────────────────────── */
#main-footer .social-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 20px 0 25px !important;
  flex-wrap: wrap !important;
  position: relative !important;
}
#main-footer .svg-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  color: white !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255,0.1) inset !important;
  width: 38px !important;
  height: 38px !important;
  border: none !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  margin: 0 !important;
}
#main-footer .svg-button.facebook { background: #3b5998 !important; }
#main-footer .svg-button.x        { background: #000000 !important; }
#main-footer .svg-button.whatsapp { background: #25d366 !important; }
#main-footer .svg-button.linkedin { background: #0077b5 !important; }
#main-footer .social-icon {
  width: 18px !important;
  height: 18px !important;
  filter: brightness(0) invert(1) !important;
  display: block !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease !important;
}
#main-footer .svg-button span,
#main-footer .svg-button .sr-only { display: none !important; }
#main-footer .svg-button::before {
  content: "" !important;
  position: absolute !important; inset: 0 !important;
  background: linear-gradient(120deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05), rgba(255,255,255,0.35)) !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
  z-index: 1 !important;
}
#main-footer .svg-button:hover::before { opacity: 1 !important; }
#main-footer .svg-button:hover {
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35) !important;
}

#main-footer .footer-copy {
  color: #111827 !important;
  font-size: 0.9rem !important;
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(0,0,0,0.1) !important;
  font-weight: 600 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}
#main-footer strong {
  color: #1e40af !important;
  font-weight: 700 !important;
}
#main-footer * { box-sizing: border-box !important; }

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


/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .social-buttons, #main-footer { display: none !important; }
}


/* ================================================================
   DARK MODE
   Activated by dark-mode.js: sets [data-theme="dark"] on <html>
   and body.dark-mode on <body>
================================================================ */

/* ── CSS variable overrides ────────────────────────────────────*/
[data-theme="dark"],
body.dark-mode {
  --primary:       #60a5fa;
  --primary-dark:  #3b82f6;
  --brand-primary: #3b82f6;
  --brand-dark:    #e2e8f0;
  --brand-accent:  #60a5fa;
  --brand-light:   #93c5fd;
  --bg-page:       #0f1117;
  --bg-card:       #1a1d27;
  --bg-soft:       #161820;
  --bg-highlight:  #1e2a3a;
  --text-main:     #e2e8f0;
  --text-muted:    #9ca3af;
  --text-light:    #6b7280;
  --border-soft:   #2d3148;
  --border:        #2d3148;
  --info-bg:       #0c1a2e;
  --info-border:   #3b82f6;
}

[data-theme="dark"] body,
body.dark-mode {
  background: #0f1117;
  color: #e2e8f0;
}

/* ── Hero banner dark ────────────────────────────────────────── */
[data-theme="dark"] .fc-hero,
body.dark-mode .fc-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c2340 100%);
}
[data-theme="dark"] .fc-topic-label,
body.dark-mode .fc-topic-label { color: #94a3b8; }

/* ── Category buttons dark ───────────────────────────────────── */
[data-theme="dark"] .cat-btn,
body.dark-mode .cat-btn {
  background: #1e293b; color: #93c5fd; border-color: #334155;
}
[data-theme="dark"] .cat-btn:hover,
body.dark-mode .cat-btn:hover {
  background: #2563eb; color: #ffffff; border-color: #2563eb;
}

/* ── Flashcard dark ──────────────────────────────────────────── */
[data-theme="dark"] .flashcard,
body.dark-mode .flashcard {
  background: #1e293b; border-color: #334155;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

/* ── Question dark ───────────────────────────────────────────── */
[data-theme="dark"] .question,
body.dark-mode .question { color: #f1f5f9; }

/* ── Answer buttons dark ─────────────────────────────────────── */
[data-theme="dark"] .answers button,
body.dark-mode .answers button {
  background: #0f172a; border-color: #334155; color: #e2e8f0;
}
[data-theme="dark"] .answers button:hover:not(:disabled),
body.dark-mode .answers button:hover:not(:disabled) {
  background: #1e3a5f; border-color: #3b82f6; color: #93c5fd;
}

/* ── Definition dark ─────────────────────────────────────────── */
[data-theme="dark"] .definition,
body.dark-mode .definition {
  background: #0f172a; color: #e2e8f0; border-left-color: #3b82f6;
}

/* ── Progress dark ───────────────────────────────────────────── */
[data-theme="dark"] .progress-container,
body.dark-mode .progress-container { background: #334155; }
[data-theme="dark"] .score,
body.dark-mode .score { color: #94a3b8; }

/* ── Nav buttons dark ────────────────────────────────────────── */
[data-theme="dark"] .nav-btn,
[data-theme="dark"] .restart-btn,
body.dark-mode .nav-btn,
body.dark-mode .restart-btn {
  background: #1e293b; color: #93c5fd; border-color: #334155;
}
[data-theme="dark"] .nav-btn:hover,
[data-theme="dark"] .restart-btn:hover,
body.dark-mode .nav-btn:hover,
body.dark-mode .restart-btn:hover {
  background: #2563eb; color: #ffffff; border-color: #2563eb;
}

/* ── Back to Home dark ───────────────────────────────────────── */
[data-theme="dark"] .btn,
body.dark-mode .btn {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #ffffff;
}
[data-theme="dark"] .btn:hover,
body.dark-mode .btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
}
[data-theme="dark"] .back-home,
body.dark-mode .back-home {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
[data-theme="dark"] .back-home a.quiz-action-btn:hover,
body.dark-mode .back-home a.quiz-action-btn:hover {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
  transform: none !important;
  box-shadow: 0 8px 20px rgba(30,58,138,0.25) !important;
}

/* ── Footer dark ─────────────────────────────────────────────── */
[data-theme="dark"] #main-footer .footer-inner,
body.dark-mode #main-footer .footer-inner {
  background: #1a1d27 !important;
  border-color: rgba(255,255,255,0.07) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] #main-footer .footer-title,
body.dark-mode #main-footer .footer-title { color: #e2e8f0 !important; }
[data-theme="dark"] #main-footer .footer-copy,
body.dark-mode #main-footer .footer-copy {
  color: #9ca3af !important;
  border-top-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] #main-footer strong,
body.dark-mode #main-footer strong { color: #60a5fa !important; }

/* ── Scrollbar dark ──────────────────────────────────────────── */
body.dark-mode ::-webkit-scrollbar-track { background: #1a2035; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: #4b6080; }


/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  #category-container {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    padding: 16px; gap: 8px;
  }
  .cat-btn { font-size: 13px; padding: 9px 12px; }
  .donate-btn { font-size: 14px; padding: 11px 22px; }
  .donation-container { padding: 0 16px; }
  .flashcard { width: calc(100% - 28px); padding: 22px 18px; margin: 14px auto; }
  .question { font-size: 18px; }
  .answers { grid-template-columns: 1fr; }
  .answers button { font-size: 14px; padding: 12px; }
  .fc-hero { padding: 28px 16px 24px; }
  .fc-hero-stats { padding: 8px 12px; }
  .fc-stat { padding: 0 12px; }
  .fc-stat-num { font-size: 1.2rem; }
  .fc-hero-quote { font-size: 0.82rem; padding: 8px 12px; }
  #main-footer .social-buttons { gap: 6px !important; margin: 15px 0 20px !important; }
  #main-footer .svg-button { width: 34px !important; height: 34px !important; }
  #main-footer .social-icon { width: 16px !important; height: 16px !important; }
  #main-footer .footer-title::before,
  #main-footer .footer-title::after { display: none !important; }
  #main-footer .footer-inner { padding: 18px 16px !important; border-radius: 14px !important; }
  .btn { width: calc(100% - 40px); max-width: 320px; justify-content: center; }
  .btn-home-wrapper { padding: 0 20px; }
}

@media (max-width: 480px) {
  .fc-hero { padding: 20px 12px 18px; }
  .fc-hero-stats { padding: 6px 8px; gap: 0; }
  .fc-stat { padding: 0 8px; }
  .fc-stat-divider { height: 24px; }
  .flashcard { width: calc(100% - 16px); padding: 18px 14px; }
  .question { font-size: 16px; }
  .answers button { padding: 11px 10px; font-size: 13px; }
  #category-container { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); padding: 12px; gap: 6px; }
  .cat-btn { font-size: 12px; padding: 8px 10px; }
  #main-footer .footer-inner { padding: 16px 12px !important; }
  .btn { font-size: 0.9rem; padding: 12px 28px; }
}
