/* ==========================================================================
   NEO-EDITORIAL DESIGN SYSTEM — CIVIL SERVICE EXAM REVIEWER 2027
   Inspired by Memphis-Modern Editorial & Podia Aesthetics:
   Warm Buttercup Canvas (#F6C95A), Cream Paper Cards (#FFFDF8),
   Fraunces Display Serif, Plus Jakarta Sans, Organic Badges & High Contrast.
   Accessible for Near-Sighted & Elder Examinees (WCAG AAA Ink on Cream).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..800&family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&display=swap');

:root {
  /* Canvas & Card Surfaces */
  --canvas-yellow: #F6C95A;
  --canvas-yellow-light: #F9D678;
  --canvas-yellow-dark: #EAB942;
  --card-cream: #FFFDF8;
  --card-cream-tint: #FAF6EE;
  --card-cream-dark: #F2ECE0;

  /* Ink & Typography */
  --ink-primary: #161413;
  --ink-body: #2C2723;
  --ink-muted: #4E463E;
  --ink-dim: #73695E;
  --ink-border: rgba(22, 20, 19, 0.10);
  --ink-border-strong: rgba(22, 20, 19, 0.22);

  /* Expressive Accents */
  --accent-violet: #7C3AED;
  --accent-violet-light: #EDE9FE;
  --accent-violet-dark: #5B21B6;
  --accent-green: #16A34A;
  --accent-green-light: #DCFCE7;
  --accent-green-dark: #14532D;
  --accent-coral: #F43F5E;
  --accent-coral-light: #FFE4E6;
  --accent-coral-dark: #9F1239;
  --accent-blue: #2563EB;
  --accent-blue-light: #DBEAFE;
  --accent-blue-dark: #1E40AF;
  --accent-amber: #F59E0B;
  --accent-amber-light: #FEF3C7;
  --marker-yellow: #FEF08A;

  /* Typography Scales */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Scaling Dial (Elder / Near-Sighted Accessibility) */
  --font-scale: 1;
  --base-font-size: calc(18px * var(--font-scale));
  --line-height-body: 1.68;

  /* Geometry & Shadows */
  --radius-card: 32px;
  --radius-card-sm: 20px;
  --radius-pill: 9999px;
  --shadow-card: 0 16px 36px -10px rgba(35, 20, 10, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 24px 48px -12px rgba(35, 20, 10, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 4px 14px rgba(22, 20, 19, 0.15);

  /* Touch Hitboxes (Accessible: Minimum 52px) */
  --tap-target-min: 52px;
  --nav-height: 80px;
}

/* Elder Accessibility Font Sizing Levels */
html[data-font-size="normal"] { --font-scale: 1; }
html[data-font-size="large"] { --font-scale: 1.15; }
html[data-font-size="xlarge"] { --font-scale: 1.30; }

/* Elder High-Contrast Mode */
html[data-high-contrast="true"] {
  --card-cream: #FFFFFF;
  --ink-primary: #000000;
  --ink-body: #0A0A0A;
  --ink-muted: #1F1F1F;
  --ink-border: #000000;
  --ink-border-strong: #000000;
  --shadow-card: 0 4px 0 #000000;
}

/* ==========================================================================
   RESET & FOUNDATIONAL ELEVATION
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--canvas-yellow);
}

body {
  background-color: var(--canvas-yellow);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 40px;
}

/* High Legibility Focus Rings */
:focus-visible {
  outline: 3px solid var(--ink-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Typographic Tension */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink-primary);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  color: var(--ink-body);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Container */
.neo-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .neo-container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   ACCESSIBILITY TOP TOOLBAR (SENIOR / NEAR-SIGHTED READABILITY CONTROLS)
   ========================================================================== */
.neo-a11y-bar {
  background: rgba(22, 20, 19, 0.94);
  color: #FFFDF8;
  padding: 8px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1000;
}

.neo-a11y-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.neo-a11y-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.neo-zoom-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.neo-zoom-btn {
  padding: 4px 12px;
  color: #FFFDF8;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  transition: all 0.18s ease;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neo-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.neo-zoom-btn.active {
  background: #FFFDF8;
  color: var(--ink-primary);
}

.neo-contrast-btn {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFDF8;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 32px;
  transition: all 0.18s ease;
}

.neo-contrast-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.neo-contrast-btn.active {
  background: #FEF08A;
  color: var(--ink-primary);
  border-color: #FEF08A;
}

@media (max-width: 680px) {
  .neo-a11y-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 8px 12px;
  }
}

/* ==========================================================================
   PRIMARY NAVIGATION BAR (CREAM PILL SHELL)
   ========================================================================== */
.neo-header {
  position: sticky;
  top: 16px;
  z-index: 900;
  padding: 0 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .neo-header {
    top: 10px;
    padding: 0 16px;
    margin-bottom: 16px;
  }
}

.neo-nav-pill {
  background: var(--card-cream);
  border: 2px solid var(--ink-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.neo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink-primary);
}

.neo-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.neo-brand-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-violet);
  background: var(--accent-violet-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
}

.neo-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.neo-nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-primary);
  transition: all 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.neo-nav-link:hover {
  background: var(--card-cream-tint);
  color: var(--accent-violet);
}

.neo-nav-link.active {
  background: var(--canvas-yellow);
  color: var(--ink-primary);
}

.neo-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  min-height: var(--tap-target-min);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  text-align: center;
}

.neo-btn:active {
  transform: scale(0.98);
}

.neo-btn-primary {
  background: var(--ink-primary);
  color: #FFFDF8;
  border: 2px solid var(--ink-primary);
}

.neo-btn-primary:hover {
  background: #2C2825;
  box-shadow: 0 8px 20px rgba(22, 20, 19, 0.25);
}

.neo-btn-violet {
  background: var(--accent-violet);
  color: #FFFFFF;
  border: 2px solid var(--accent-violet);
}

.neo-btn-violet:hover {
  background: var(--accent-violet-dark);
}

.neo-btn-coral {
  background: var(--accent-coral);
  color: #FFFFFF;
  border: 2px solid var(--accent-coral);
}

.neo-btn-coral:hover {
  background: var(--accent-coral-dark);
}

.neo-btn-outline {
  background: transparent;
  color: var(--ink-primary);
  border: 2px solid var(--ink-primary);
  box-shadow: none;
}

.neo-btn-outline:hover {
  background: rgba(22, 20, 19, 0.05);
}

.neo-btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-height: 44px;
}

.neo-btn-lg {
  padding: 18px 36px;
  font-size: 1.15rem;
  min-height: 58px;
}

/* Mobile Toggle */
.neo-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 8px;
}

.neo-menu-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--ink-primary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

@media (max-width: 960px) {
  .neo-nav-links {
    display: none;
  }
  .neo-menu-toggle {
    display: flex;
  }
}

/* Mobile Drawer */
.neo-mobile-drawer {
  display: none;
  background: var(--card-cream);
  border: 2px solid var(--ink-border);
  border-radius: 24px;
  box-shadow: var(--shadow-card-hover);
  margin-top: 12px;
  padding: 20px;
  position: absolute;
  top: 100%;
  left: 24px;
  right: 24px;
}

.neo-mobile-drawer.open {
  display: block;
}

.neo-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.neo-mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 12px;
  min-height: 48px;
  background: var(--card-cream-tint);
}

.neo-mobile-links a:hover {
  background: var(--canvas-yellow);
}

/* ==========================================================================
   NEO-EDITORIAL CARD CONTAINER (THE HEART OF THE PODIA / INSPIRATION STYLE)
   ========================================================================== */
.neo-card {
  background: var(--card-cream);
  border-radius: var(--radius-card);
  border: 2px solid var(--ink-border);
  box-shadow: var(--shadow-card);
  padding: 56px 64px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neo-card:hover {
  box-shadow: var(--shadow-card-hover);
}

@media (max-width: 768px) {
  .neo-card {
    border-radius: var(--radius-card-sm);
    padding: 32px 20px;
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   ORGANIC DECORATIVE MOTIFS (DIRECT FROM INSPIRATION)
   ========================================================================== */

/* 1. Large Stylized Serif Quotation Mark */
.neo-quote-mark {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  line-height: 0.75;
  font-weight: 900;
  color: var(--ink-primary);
  display: block;
  user-select: none;
  margin-bottom: 16px;
}

.neo-quote-mark.coral {
  color: var(--accent-coral);
}

.neo-quote-mark.closing {
  text-align: right;
  margin-top: 16px;
  margin-bottom: 0;
}

/* 2. Wireframe Loops Doodle (3 Angled Intersecting Ellipses) */
.neo-wire-loops {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.neo-wire-loops svg {
  overflow: visible;
}

/* 3. Starburst Badges */
.neo-starburst {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  animation: neo-spin-subtle 20s linear infinite;
}

@keyframes neo-spin-subtle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .neo-starburst {
    animation: none;
  }
}

/* 4. Scalloped Cloud / Badge */
.neo-scallop-shape {
  position: absolute;
  top: 0;
  right: 15%;
  pointer-events: none;
}

/* 5. Geometric Decorative Floats (Circles & Steps) */
.neo-float-circle-blue {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-blue);
  pointer-events: none;
}

.neo-float-arc-green {
  position: absolute;
  width: 70px;
  height: 35px;
  border-bottom-left-radius: 70px;
  border-bottom-right-radius: 70px;
  border: 14px solid var(--accent-green);
  border-top: 0;
  pointer-events: none;
}

/* 6. Highlighter Marker Underlines & Tags */
.marker-highlight {
  background: linear-gradient(120deg, var(--marker-yellow) 0%, #FDE047 100%);
  padding: 2px 10px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--ink-primary);
  font-weight: 700;
}

/* Pill Badges with Text */
.neo-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.neo-pill-badge.coral {
  background: var(--accent-coral-light);
  color: var(--accent-coral-dark);
  border: 1.5px solid var(--accent-coral);
}

.neo-pill-badge.green {
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
  border: 1.5px solid var(--accent-green);
}

.neo-pill-badge.violet {
  background: var(--accent-violet-light);
  color: var(--accent-violet-dark);
  border: 1.5px solid var(--accent-violet);
}

.neo-pill-badge.amber {
  background: var(--accent-amber-light);
  color: #92400E;
  border: 1.5px solid var(--accent-amber);
}

.neo-inline-pill {
  display: inline-block;
  padding: 2px 14px;
  background: var(--canvas-yellow);
  color: var(--ink-primary);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.78em;
  font-weight: 800;
  vertical-align: middle;
  margin: 0 4px;
  border: 1.5px solid var(--ink-border-strong);
}

/* ==========================================================================
   HERO CARD LAYOUT (MATCHING INSPIRATION CARD 1)
   ========================================================================== */
.neo-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 960px) {
  .neo-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.neo-hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.neo-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

.neo-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

/* 4-Photo Examinee Grid (Direct from Inspiration Card 1) */
.neo-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.neo-photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1.18;
  display: flex;
  align-items: flex-end;
  border: 2px solid var(--ink-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.neo-photo-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.neo-photo-card.bg-violet { background-color: #8B5CF6; }
.neo-photo-card.bg-orange { background-color: #F97316; }
.neo-photo-card.bg-pink   { background-color: #EC4899; }
.neo-photo-card.bg-gold   { background-color: #EAB308; }

.neo-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.neo-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(22, 20, 19, 0.85), transparent);
  color: #FFFDF8;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.neo-photo-caption span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
}

/* ==========================================================================
   INTERACTIVE FLASHCARD DEMO STAGE (INSPIRATION CARD 2)
   ========================================================================== */
.neo-flashcard-stage {
  max-width: 720px;
  margin: 32px auto 0;
  position: relative;
  perspective: 1200px;
}

.neo-flashcard {
  background: var(--card-cream);
  border: 3px solid var(--ink-primary);
  border-radius: 28px;
  box-shadow: 8px 8px 0px var(--ink-primary);
  padding: 40px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.neo-flashcard:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0px var(--ink-primary);
}

@media (max-width: 600px) {
  .neo-flashcard {
    padding: 24px 18px;
    box-shadow: 5px 5px 0px var(--ink-primary);
  }
}

.neo-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px dashed var(--ink-border-strong);
  padding-bottom: 14px;
}

.neo-card-subject-badge {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-violet);
  background: var(--accent-violet-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.neo-card-question-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-primary);
  margin-bottom: 28px;
}

.neo-card-choices {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.neo-choice-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid var(--ink-border-strong);
  background: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-body);
  transition: all 0.15s ease;
  min-height: 52px;
}

.neo-choice-item:hover {
  border-color: var(--ink-primary);
  background: var(--card-cream-tint);
}

.neo-choice-item.correct {
  border-color: var(--accent-green);
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
}

.neo-choice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--card-cream-tint);
  border: 2px solid var(--ink-border-strong);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.neo-choice-item.correct .neo-choice-badge {
  background: var(--accent-green);
  color: #FFFFFF;
  border-color: var(--accent-green);
}

.neo-card-footer-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-dim);
  border-top: 2px dashed var(--ink-border-strong);
  padding-top: 16px;
}

/* ==========================================================================
   SUBTESTS DECK SECTION (MATCHING INSPIRATION CARD 3)
   ========================================================================== */
.neo-subtests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .neo-subtests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .neo-subtests-grid {
    grid-template-columns: 1fr;
  }
}

.neo-subtest-card {
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--ink-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  background: #FFFFFF;
}

.neo-subtest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.12);
}

.neo-subtest-hero {
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.neo-subtest-hero.green  { background: #15803D; color: #FFFFFF; }
.neo-subtest-hero.coral  { background: #E11D48; color: #FFFFFF; }
.neo-subtest-hero.blue   { background: #1D4ED8; color: #FFFFFF; }
.neo-subtest-hero.violet { background: #6D28D9; color: #FFFFFF; }

.neo-subtest-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.neo-subtest-icon-box svg {
  width: 34px;
  height: 34px;
  stroke: #FFFFFF;
}

.neo-subtest-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.neo-subtest-items {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.neo-subtest-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  background: var(--card-cream);
}

.neo-subtest-desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.neo-subtest-btn {
  width: 100%;
}

/* ==========================================================================
   STRATEGY & TWO-COLUMN FEATURE BLOCK (INSPIRATION CARD 4)
   ========================================================================== */
.neo-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .neo-two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.neo-feature-block {
  background: var(--card-cream-tint);
  border: 2px solid var(--ink-border);
  border-radius: 24px;
  padding: 32px;
}

.neo-feature-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.neo-feature-pill-icon {
  width: 38px;
  height: 16px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.neo-feature-pill-icon.coral { background: var(--accent-coral); }
.neo-feature-pill-icon.violet { background: var(--accent-violet); }
.neo-feature-pill-icon.green { background: var(--accent-green); }

.neo-feature-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink-primary);
}

/* ==========================================================================
   TESTIMONIALS / PASSERS MARQUEE (HIGH CONTRAST)
   ========================================================================== */
.neo-passers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .neo-passers-grid {
    grid-template-columns: 1fr;
  }
}

.neo-passer-item {
  background: #FFFFFF;
  border: 2px solid var(--ink-border);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.neo-passer-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.neo-passer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink-primary);
}

.neo-passer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.neo-passer-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  background: var(--accent-green-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.neo-passer-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-body);
  font-style: italic;
  margin-bottom: 14px;
}

/* ==========================================================================
   FAQ ACCORDION (SENIOR READABLE)
   ========================================================================== */
.neo-faq-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.neo-faq-item {
  background: #FFFFFF;
  border: 2px solid var(--ink-border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.neo-faq-item[open] {
  border-color: var(--ink-primary);
}

.neo-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-primary);
  cursor: pointer;
  list-style: none;
  min-height: var(--tap-target-min);
}

.neo-faq-summary::-webkit-details-marker {
  display: none;
}

.neo-faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-cream-tint);
  border: 2px solid var(--ink-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 900;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.neo-faq-item[open] .neo-faq-icon {
  transform: rotate(45deg);
  background: var(--ink-primary);
  color: #FFFDF8;
}

.neo-faq-answer {
  padding: 0 28px 24px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ==========================================================================
   FOOTER (EDITORIAL)
   ========================================================================== */
.neo-footer {
  text-align: center;
  padding: 40px 24px 20px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.neo-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--ink-body);
}

.neo-footer-links a:hover {
  color: var(--accent-violet);
  text-decoration: underline;
}

/* ==========================================================================
   FLASHCARD REVIEWER STUDY PAGE EXTENSIONS (PAGE-STUDY)
   ========================================================================== */
.neo-study-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .neo-study-layout {
    grid-template-columns: 1fr;
  }
}

.neo-study-sidebar {
  background: var(--card-cream);
  border: 2px solid var(--ink-border);
  border-radius: var(--radius-card-sm);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.neo-sidebar-heading {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--ink-primary);
}

.neo-deck-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.neo-deck-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid var(--ink-border);
  font-weight: 700;
  font-size: 0.95rem;
  background: #FFFFFF;
  color: var(--ink-body);
  transition: all 0.15s ease;
  min-height: 48px;
}

.neo-deck-pill:hover,
.neo-deck-pill.active {
  background: var(--ink-primary);
  color: #FFFDF8;
  border-color: var(--ink-primary);
}

.neo-deck-pill .count {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(22, 20, 19, 0.08);
}

.neo-deck-pill.active .count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Study Card Main */
.neo-study-card {
  background: var(--card-cream);
  border: 3px solid var(--ink-primary);
  border-radius: var(--radius-card);
  box-shadow: 10px 10px 0px var(--ink-primary);
  padding: 48px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .neo-study-card {
    padding: 24px 18px;
    box-shadow: 6px 6px 0px var(--ink-primary);
    border-radius: var(--radius-card-sm);
  }
}

.neo-study-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px dashed var(--ink-border-strong);
}

.neo-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--card-cream-tint);
  border: 1.5px solid var(--ink-border-strong);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ==========================================================================
   DASHBOARD INTEGRATION (WARM BUTTER-YELLOW EDITORIAL ANALYTICS)
   ========================================================================== */
.neo-dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .neo-dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .neo-dash-grid {
    grid-template-columns: 1fr;
  }
}

.neo-metric-box {
  background: var(--card-cream);
  border: 2px solid var(--ink-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.neo-metric-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.neo-metric-value {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--ink-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

/* ==========================================================================
   FLASHCARD STUDY STAGE (REVIEWER.HTML FULL SYSTEM)
   ========================================================================== */
.study-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.neo-study-panel {
  background: var(--card-cream);
  border: 2px solid var(--ink-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .neo-study-panel {
    padding: 24px 16px;
    border-radius: var(--radius-card-sm);
  }
}

.study-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--ink-border-strong);
}

.study-title h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.study-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.select, #subjectSelect {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink-primary);
  background: #FFFFFF;
  color: var(--ink-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  min-height: 48px;
}

/* Study Modes */
.modes {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.mode {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid var(--ink-border-strong);
  background: #FFFFFF;
  color: var(--ink-body);
  transition: all 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mode.active {
  background: var(--ink-primary);
  color: #FFFDF8;
  border-color: var(--ink-primary);
}

.mode .soon {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--canvas-yellow);
  color: var(--ink-primary);
}

/* Progress */
.progress {
  margin-bottom: 28px;
}

.progress-track {
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--card-cream-tint);
  border: 2px solid var(--ink-border-strong);
  overflow: hidden;
  margin-bottom: 8px;
}

#progressFill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-violet) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink-muted);
}

/* Interactive Card Stage */
.stage {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

@media (max-width: 680px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stage .arrow {
    display: none;
  }
}

.arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--ink-primary);
  background: #FFFFFF;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
  cursor: pointer;
}

.arrow:hover:not(:disabled) {
  background: var(--ink-primary);
  color: #FFFDF8;
  transform: scale(1.05);
}

.arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 3D Flashcard Flip System */
.study .card {
  perspective: 1200px;
  min-height: 440px;
  cursor: pointer;
  outline: none;
}

.card-inner {
  position: relative;
  width: 100%;
  min-height: 440px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.study .card.flipped .card-inner {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 28px;
  background: #FFFFFF;
  border: 3px solid var(--ink-primary);
  box-shadow: 8px 8px 0px var(--ink-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.face-back {
  transform: rotateY(180deg);
  background: var(--card-cream);
}

.face-inner {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

@media (max-width: 600px) {
  .face-inner {
    padding: 24px 18px;
  }
  .face {
    box-shadow: 5px 5px 0px var(--ink-primary);
  }
}

.card-tag {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-violet);
  background: var(--accent-violet-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 20px;
}

.card-tag.answer {
  color: var(--accent-green-dark);
  background: var(--accent-green-light);
}

.card-body {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-primary);
  margin-bottom: 20px;
  flex: 1;
}

.card-foot {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px dashed var(--ink-border-strong);
  padding-top: 14px;
}

/* Choices list inside card */
.choices-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--font-sans);
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid var(--ink-border-strong);
  background: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-body);
  transition: all 0.15s ease;
  min-height: 52px;
}

.choice-row:hover {
  border-color: var(--ink-primary);
  background: var(--card-cream-tint);
}

.choice-row.is-correct {
  border-color: var(--accent-green);
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
}

.choice-row .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card-cream-tint);
  border: 1.5px solid var(--ink-border-strong);
  font-weight: 800;
  font-size: 1rem;
}

.choice-row.is-correct .badge {
  background: var(--accent-green);
  color: #FFFFFF;
  border-color: var(--accent-green);
}

/* Answer recap & rationale */
.q-recap {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.answer-block {
  background: #FFFFFF;
  border: 2px solid var(--accent-green);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
}

.answer-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-green-dark);
  display: block;
  margin-bottom: 8px;
}

.answer-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.note {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-body);
}

/* Study Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink-primary);
  background: #FFFFFF;
  color: var(--ink-primary);
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 48px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
}

.tool:hover {
  background: var(--ink-primary);
  color: #FFFDF8;
}

.tool.active {
  background: var(--accent-violet);
  color: #FFFFFF;
  border-color: var(--accent-violet);
}

/* Study Options */
.options {
  display: none;
  background: #FFFFFF;
  border: 2px solid var(--ink-border);
  border-radius: 20px;
  padding: 24px;
  margin-top: 16px;
}

.options.open {
  display: block;
}

.opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-border);
  cursor: pointer;
}

.opt:last-child {
  border-bottom: none;
}

.opt input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ink-primary);
  margin-top: 2px;
}

.opt span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-primary);
}

.opt small {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

/* Terms Drawer */
.scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22, 20, 19, 0.6);
  z-index: 1050;
}

.scrim.open {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--card-cream);
  border-left: 3px solid var(--ink-primary);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  padding: 24px;
  border-bottom: 2px dashed var(--ink-border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h2 {
  font-size: 1.4rem;
}

.drawer-list {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.term {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--ink-border);
  background: #FFFFFF;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term:hover, .term.current {
  border-color: var(--ink-primary);
  background: var(--canvas-yellow);
}

.term .num {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-dim);
  width: 28px;
}

.term .txt {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Choice List & Feedback States */
.choices {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid var(--ink-border-strong);
  background: #FFFFFF;
  color: var(--ink-body);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 52px;
}

.choice:hover:not(.locked) {
  border-color: var(--ink-primary);
  background: var(--card-cream-tint);
}

.choice.picked-correct {
  border-color: var(--accent-green);
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
}

.choice.picked-wrong {
  border-color: var(--accent-coral);
  background: var(--accent-coral-light);
  color: var(--accent-coral-dark);
}

.choice.is-answer {
  border-color: var(--accent-green);
  background: var(--accent-green-light);
  font-weight: 700;
}

.choice .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card-cream-tint);
  border: 1.5px solid var(--ink-border-strong);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.choice.picked-correct .badge {
  background: var(--accent-green);
  color: #FFFFFF;
  border-color: var(--accent-green);
}

.choice.picked-wrong .badge {
  background: var(--accent-coral);
  color: #FFFFFF;
  border-color: var(--accent-coral);
}

/* Feedback in footer */
.card-feedback {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.card-feedback.ok {
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
  border: 1.5px solid var(--accent-green);
}

.card-feedback.no {
  background: var(--accent-coral-light);
  color: var(--accent-coral-dark);
  border: 1.5px solid var(--accent-coral);
}

/* Answer recap & blocks */
.answer-block.is-wrong {
  border-color: var(--accent-coral);
  background: #FFF1F2;
}

.answer-label.label-wrong {
  color: var(--accent-coral-dark);
}

.badge.badge-wrong {
  background: var(--accent-coral);
  color: #FFFFFF;
  border-color: var(--accent-coral);
}

.answer-text.text-wrong {
  color: var(--accent-coral-dark);
  text-decoration: line-through;
}

.answer-block.is-correct {
  border-color: var(--accent-green);
  background: #F0FDF4;
}

.answer-label.label-correct {
  color: var(--accent-green-dark);
}

.badge.badge-correct {
  background: var(--accent-green);
  color: #FFFFFF;
  border-color: var(--accent-green);
}

.answer-text.text-correct {
  color: var(--accent-green-dark);
}


