/* ==========================================================================
   Punjab Exam Vault - Bookstore & Exam Study Material Hub
   Modern, Clean, High-Conversion Academic Theme
   100% Mobile Responsive
   ========================================================================== */

:root {
  /* Clean Academic Color System */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent: #eff6ff;
  
  --primary-navy: #0f172a;
  --primary-blue: #1e40af;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-light: #dbeafe;

  --accent-amber: #b45309;
  --accent-amber-light: #fef3c7;
  --accent-amber-border: #fde68a;

  --accent-green: #047857;
  --accent-green-light: #ecfdf5;
  --accent-green-border: #a7f3d0;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-light: #e2e8f0;
  --border-card: #cbd5e1;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= Top Announcement Bar ================= */
.top-bar {
  background: var(--primary-navy);
  color: #f8fafc;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.pulsing-dot {
  width: 7px;
  height: 7px;
  background-color: #34d399;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================= Site Header ================= */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-blue-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--primary-blue);
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  background: var(--bg-accent);
}

.btn-header-cta {
  background: var(--primary-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
}

/* ================= Store Hero ================= */
.store-hero-section {
  padding: 34px 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.hero-target-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-blue-light);
  border: 1px solid #bfdbfe;
  color: var(--primary-blue);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.store-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-navy);
  max-width: 840px;
  margin: 0 auto 10px;
}

.highlight-brand {
  color: var(--primary-blue);
  border-bottom: 3px solid #93c5fd;
}

.store-hero-subtitle {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

/* Quick Trust Bar */
.trust-quick-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-quick-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.trust-quick-item strong {
  color: var(--primary-navy);
}

/* Legacy Category Filter Tabs */
.exam-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ================= Featured Flagship Book Section ================= */
.featured-book-section {
  padding: 48px 0 60px;
}

.section-tag-box {
  margin-bottom: 18px;
}

.section-pill-tag {
  background: var(--accent-amber-light);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
  text-transform: uppercase;
}

.book-showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  transition: var(--transition);
}

.book-showcase-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
}

/* Visual Column */
.book-visual-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-visual-wrapper {
  position: relative;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.book-main-img {
  width: 100%;
  height: auto;
  display: block;
}

.book-security-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.cover-toggle-container {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.cover-toggle-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cover-toggle-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.cover-toggle-btn.active {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.book-preview-actions {
  display: flex;
}

.btn-preview-trigger {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-preview-trigger:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.trust-pill-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.trust-mini-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Info Column */
.book-exam-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.meta-badge-target {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.meta-exam-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.book-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.book-subtitle-line {
  font-size: 1.02rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.book-summary-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Features checklist */
.features-checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.chk-icon {
  color: var(--accent-green);
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.check-item strong {
  color: var(--text-main);
}

/* Format Selection Cards (The Core Clear Buying CTA) */
.format-selection-container {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.format-selection-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.format-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.format-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.format-card.highlighted {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.format-card.highlighted:hover {
  border-color: var(--primary-blue);
}

.format-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.format-type-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.format-type-badge.ebook {
  background: #fef3c7;
  color: #92400e;
}

.format-type-badge.print {
  background: #dbeafe;
  color: #1e40af;
}

.format-delivery-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-green);
}

.format-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.format-curr {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.format-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-navy);
}

.format-original {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.format-specs {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-format-cta {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-format-cta.ebook-btn {
  background: #f59e0b;
  color: #000000;
}

.btn-format-cta.ebook-btn:hover {
  background: #d97706;
  color: #ffffff;
}

.btn-format-cta.print-btn {
  background: var(--primary-blue);
  color: #ffffff;
}

.btn-format-cta.print-btn:hover {
  background: var(--primary-blue-hover);
}

/* ================= Catalog Section ================= */
.catalog-section {
  padding: 56px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.section-tag {
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.catalog-book-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.catalog-book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-card);
}

.catalog-book-card.active-card {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.catalog-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.catalog-status-badge.available {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.catalog-status-badge.upcoming {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.catalog-thumb-box {
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-thumb-box.placeholder-book {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.thumb-icon {
  font-size: 2.5rem;
}

.thumb-placeholder-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.catalog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-exam-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.catalog-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 8px;
}

.catalog-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.catalog-pricing {
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.price-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-sep {
  color: var(--text-light);
  margin: 0 4px;
}

.release-note {
  font-size: 0.8rem;
  color: var(--accent-amber);
  font-weight: 700;
}

.catalog-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-catalog-buy {
  background: #f59e0b;
  color: #000;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-catalog-buy:hover {
  background: #d97706;
  color: #fff;
}

.btn-catalog-print {
  background: var(--primary-blue);
  color: #fff;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-catalog-print:hover {
  background: var(--primary-blue-hover);
}

.btn-catalog-secondary {
  grid-column: span 2;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-catalog-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* ================= Curriculum Section ================= */
.curriculum-section {
  padding: 56px 0;
  background: var(--bg-page);
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.curriculum-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.curriculum-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.curriculum-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.curriculum-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.curriculum-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.curriculum-list li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.bullet-dot {
  color: var(--primary-blue);
  font-weight: bold;
}

/* ================= Why Us Section ================= */
.why-us-section {
  padding: 56px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 12px;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.why-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ================= FAQ Section ================= */
.faq-section {
  padding: 56px 0;
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
}

.faq-accordion-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.faq-toggle-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-card.open .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  display: none;
}

.faq-card.open .faq-answer {
  display: block;
}

/* ================= Footer & Disclaimer ================= */
.disclaimer-section {
  padding: 36px 0 30px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-brand-line {
  font-size: 0.95rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.disclaimer-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 16px;
  line-height: 1.55;
}

.footer-links-row {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links-row a {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* ================= Mobile Sticky Conversion Bar ================= */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  padding: 8px 14px;
  z-index: 99;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.mobile-bar-flex {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.mobile-btn.eb {
  background: #f59e0b;
  color: #000;
}

.mobile-btn.pb {
  background: var(--primary-blue);
  color: #fff;
}

.mobile-btn span {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ================= Modals ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(15px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-dialog.wide {
  max-width: 780px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.modal-close-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.modal-body {
  padding: 20px;
}

.test-mode-toggle-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.test-mode-toggle-banner button {
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.order-summary-box {
  background: var(--bg-accent);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-title {
  font-weight: 800;
  color: var(--primary-navy);
  font-size: 0.92rem;
}

.summary-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.summary-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-blue);
}

/* ================= Existing Buyer Re-Download Prompt (Checkout Modal) ================= */
.checkout-redownload-prompt {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.checkout-redownload-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.checkout-redownload-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.checkout-redownload-text {
  font-size: 0.8rem;
  line-height: 1.35;
}

.checkout-redownload-title {
  display: block;
  font-weight: 800;
  color: #065f46;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.checkout-redownload-sub {
  display: block;
  font-size: 0.75rem;
  color: #047857;
}

.checkout-redownload-sub strong {
  color: #064e3b;
  font-weight: 700;
}

.btn-checkout-redownload {
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-checkout-redownload:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}

.checkout-existing-buyer-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.4;
}

.checkout-existing-buyer-hint a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.checkout-existing-buyer-hint a:hover {
  color: var(--primary-navy);
}

.format-card-sublink-box {
  margin-top: 8px;
  text-align: center;
}

.format-card-sublink {
  font-size: 0.75rem;
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
  transition: all 0.15s ease;
}

.format-card-sublink:hover {
  color: var(--primary-navy);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .checkout-redownload-prompt {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .btn-checkout-redownload {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
  }
}

.form-group {
  margin-bottom: 14px;
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.security-reminder-box {
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--accent-green);
  margin-bottom: 16px;
}

.btn-submit-pay {
  width: 100%;
  padding: 14px;
  background: var(--primary-blue);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-pay:hover {
  background: var(--primary-blue-hover);
}

/* Post Payment */
.success-screen-box {
  text-align: center;
}

.success-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-green-light);
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.success-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.order-badge-pill {
  display: inline-block;
  background: var(--primary-blue-light);
  border: 1px solid #bfdbfe;
  color: var(--primary-blue);
  font-family: monospace;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

/* ================= Urgent Wait Warning Banner ================= */
.urgent-wait-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  animation: pulse-border 2.5s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.urgent-wait-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.urgent-wait-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #92400e;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.urgent-wait-desc {
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.4;
  font-weight: 500;
}

/* ================= Center-Stage Download Processing Box ================= */
.center-download-card {
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.18);
  text-align: center;
}

.spinner-pulse-badge {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: inline-block;
  animation: bounce-subtle 1.5s infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.preparing-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.preparing-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.center-progress-wrapper {
  margin-bottom: 16px;
}

.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-percentage-display {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-blue);
}

.btn-download-pdf-hero {
  width: 100%;
  padding: 16px 20px;
  background: #059669;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-download-pdf-hero:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}

.btn-download-pdf-hero:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.download-notice-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

.watermark-progress-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  text-align: left;
}

.watermark-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-green);
  transition: width 0.3s ease;
}

.watermark-details-preview {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: monospace;
  border-left: 3px solid var(--accent-green);
}

.btn-download-pdf {
  width: 100%;
  padding: 14px;
  background: var(--accent-green);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-download-pdf:hover {
  background: #047857;
}

/* Shipping Timeline */
.print-address-summary {
  background: var(--bg-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 0.84rem;
  margin-bottom: 16px;
}

.shipping-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 20px;
  background: var(--bg-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-green-light);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-marker.pending {
  background: #e2e8f0;
  color: #64748b;
}

.step-info-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.step-info-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.btn-primary-action {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.btn-secondary-action {
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   INTERACTIVE SLIDABLE PREVIEW VIEWER (CAROUSEL)
   ========================================================================== */
.preview-modal-dialog {
  max-width: 700px;
  width: 95%;
  border-radius: 14px;
}

.modal-subtitle-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e40af;
  margin-top: 3px;
}

.preview-viewer-body {
  padding: 12px 16px 20px 16px;
  text-align: center;
  background: #f8fafc;
}

.preview-swipe-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid #bae6fd;
}

.preview-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.preview-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-height: 520px;
  border-radius: 10px;
  background: #0f172a;
  padding: 12px 0;
  cursor: grab;
  user-select: none;
}

.preview-slider-track:active {
  cursor: grabbing;
}

.preview-slider-track::-webkit-scrollbar {
  display: none;
}

.preview-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
}

.preview-slide picture {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.preview-slide img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Floating Navigation Arrows */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.slider-nav-btn:hover {
  background: #ffffff;
  color: #1e40af;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.slider-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-nav-btn.prev-btn {
  left: 8px;
}

.slider-nav-btn.next-btn {
  right: 8px;
}

/* Dots Navigation Row */
.preview-dots-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.preview-dot:hover {
  background: #94a3b8;
}

.preview-dot.active {
  background: #1e40af;
  width: 26px;
  border-radius: 10px;
}

.preview-footer-cta {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .preview-modal-dialog {
    width: 96%;
    margin: 8px auto;
  }
  .preview-slider-track {
    max-height: 420px;
    padding: 8px 0;
  }
  .preview-slide img {
    max-height: 380px;
  }
  .slider-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  .slider-nav-btn.prev-btn {
    left: 4px;
  }
  .slider-nav-btn.next-btn {
    right: 4px;
  }
}

/* ================= Mobile Responsiveness ================= */
@media (max-width: 992px) {
  .book-showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .book-visual-column {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }

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

  .curriculum-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  /* Compact header on mobile - prevents giant header */
  .top-bar {
    padding: 5px 10px;
    font-size: 0.74rem;
  }

  .site-header {
    padding: 8px 12px;
  }

  .header-container {
    gap: 8px;
  }

  .brand-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    font-size: 0.64rem;
  }

  .nav-links {
    display: none; /* Clean mobile header */
  }

  .btn-header-cta {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
  }

  /* Streamlined hero */
  .store-hero-section {
    padding: 22px 0 16px;
  }

  .hero-target-badge {
    font-size: 0.74rem;
    padding: 4px 10px;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .store-hero-title {
    font-size: 1.55rem;
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .store-hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  .trust-quick-bar {
    gap: 6px;
  }

  .trust-quick-item {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  /* Book showcase */
  .featured-book-section {
    padding-top: 10px;
  }

  .book-showcase-card {
    padding: 16px 14px;
    border-radius: var(--radius-lg);
  }

  .book-visual-column {
    max-width: 270px;
    margin: 0 auto 16px;
  }

  .book-main-img {
    max-height: 290px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  .btn-preview-trigger {
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .book-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .book-subtitle-line {
    font-size: 0.84rem;
    margin-bottom: 10px;
  }

  .book-summary-text {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .features-checklist-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }

  .check-item {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  /* Order format cards */
  .format-selection-container {
    padding: 14px 12px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  .format-selection-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .format-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .format-card {
    padding: 14px 12px;
  }

  .format-price {
    font-size: 1.85rem;
  }

  .btn-format-cta {
    padding: 11px 16px;
    font-size: 0.9rem;
    min-height: 46px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .curriculum-card {
    padding: 18px 16px;
  }

  .bonus-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reviews-summary-card {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
    gap: 12px;
  }

  .rating-big-number {
    font-size: 2.6rem;
  }

  .reviews-stats-row {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .review-stat-pill {
    justify-content: center;
    font-size: 0.76rem;
    padding: 6px 10px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .review-card {
    padding: 16px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Safe space at bottom for sticky checkout bar */
  body {
    padding-bottom: 74px;
  }

  .mobile-sticky-bar {
    display: block;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bar-flex {
    gap: 8px;
  }

  .mobile-btn {
    min-height: 48px;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .mobile-btn .mb-title {
    font-size: 0.88rem;
    font-weight: 800;
  }

  .mobile-btn .mb-sub {
    font-size: 0.68rem;
    opacity: 0.9;
  }

  /* Modals mobile optimization */
  .modal-overlay {
    padding: 8px;
  }

  .modal-dialog {
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
    margin: 6px auto;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-body {
    padding: 14px 16px;
  }

  /* Form inputs: 16px prevents iOS Safari auto-zoom */
  .form-input, .form-select {
    font-size: 16px !important;
    padding: 11px 12px;
  }

  .btn-submit-pay {
    min-height: 48px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .brand-subtitle {
    display: none; /* Hide tagline on very narrow screens */
  }

  .store-hero-title {
    font-size: 1.4rem;
  }

  .book-title {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 14px;
  }
}

/* ================= Footer Customer Re-Download Portal ================= */
.footer-lookup-box {
  background: #ffffff;
  border: 1.5px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  text-align: left;
}

.footer-lookup-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-lookup-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.footer-lookup-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.footer-lookup-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-footer-lookup {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(30, 64, 175, 0.2);
}

.btn-footer-lookup:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25);
}

@media (max-width: 640px) {
  .footer-lookup-box {
    flex-direction: column;
    text-align: center;
    padding: 16px 14px;
    gap: 12px;
  }

  .footer-lookup-info {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .btn-footer-lookup {
    width: 100%;
    justify-content: center;
  }
}

.btn-faq-lookup {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.btn-faq-lookup:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.live-gateway-trust-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Screen styles for printable receipt (hidden by default on web view) */
.printable-receipt-card {
  display: none;
}

/* ==========================================================================
   SINGLE-PAGE PRINT RECEIPT STYLES
   Eliminates all 7 background website pages, prints exactly 1 clean receipt.
   ========================================================================== */
@media print {
  @page {
    size: 8.27in 11.69in;
    margin: 0.5in;
  }
  
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  /* Hide entire website structure */
  body > * {
    display: none !important;
  }

  /* Only display the active modal overlay */
  body > .modal-overlay.active {
    display: block !important;
    position: static !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  .modal-overlay.active .modal-dialog {
    display: block !important;
    position: static !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
  }

  /* Hide modal buttons, close buttons, progress bars, timeline, icons */
  .modal-header,
  .modal-close-btn,
  .success-icon-badge,
  .success-title,
  .success-subtitle,
  .order-badge-pill,
  .watermark-progress-card,
  .print-address-summary,
  .shipping-timeline,
  .btn-download-pdf,
  .btn-primary-action,
  .btn-secondary-action,
  button,
  .mobile-sticky-bar {
    display: none !important;
  }

  /* Display ONLY the printable receipt on exactly 1 clean page */
  .printable-receipt-card {
    display: block !important;
    border: 2px solid #0f172a !important;
    border-radius: 8px !important;
    padding: 24px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .receipt-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    border-bottom: 2px solid #0f172a !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
  }

  .receipt-logo {
    font-size: 26pt !important;
    margin-right: 10px !important;
  }

  .receipt-company {
    font-size: 16pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
  }

  .receipt-sub {
    font-size: 9pt !important;
    color: #475569 !important;
  }

  .receipt-meta {
    text-align: right !important;
  }

  .receipt-type {
    font-size: 10pt !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    letter-spacing: 0.05em !important;
  }

  .receipt-id {
    font-size: 12pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    font-family: monospace !important;
  }

  .receipt-date {
    font-size: 9pt !important;
    color: #64748b !important;
  }

  .receipt-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 16px !important;
  }

  .receipt-col {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
  }

  .receipt-label {
    font-size: 8pt !important;
    font-weight: 800 !important;
    color: #64748b !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
  }

  .receipt-val-bold {
    font-size: 11pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 3px !important;
  }

  .receipt-val {
    font-size: 9.5pt !important;
    color: #334155 !important;
    line-height: 1.4 !important;
  }

  .badge-paid {
    display: inline-block !important;
    background: #059669 !important;
    color: #ffffff !important;
    font-size: 8pt !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
  }

  .receipt-table-box {
    margin-bottom: 16px !important;
  }

  .receipt-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 9.5pt !important;
  }

  .receipt-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 10px !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  .receipt-table td {
    border: 1px solid #cbd5e1 !important;
    padding: 8px 10px !important;
    color: #334155 !important;
  }

  .receipt-total-row td {
    background: #f8fafc !important;
    border-top: 2px solid #0f172a !important;
  }

  .receipt-footer-notes {
    border-top: 1px dashed #cbd5e1 !important;
    padding-top: 12px !important;
    font-size: 8.5pt !important;
    color: #64748b !important;
    line-height: 1.4 !important;
  }

  .receipt-note-item {
    margin-bottom: 4px !important;
  }

  .receipt-foot-legal {
    text-align: center !important;
    margin-top: 10px !important;
    font-size: 8pt !important;
    color: #94a3b8 !important;
  }
}

/* WhatsApp & Security Payment ID Badges */
.btn-whatsapp {
  width: 100%;
  padding: 13px;
  background: #25D366;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  margin-top: 10px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-1px);
}

.pay-id-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 12px 0 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #334155;
  text-align: left;
}

.pay-id-code {
  font-family: monospace;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.btn-mini-copy {
  background: #e2e8f0;
  color: #1e293b;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-mini-copy:hover {
  background: #cbd5e1;
}

/* ================= Urgency & Value Booster ================= */
.urgency-alert-bar {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #92400e;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.urgency-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bonuses-wrapper {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}

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

.bonuses-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.bonuses-val-tag {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}

.bonus-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.bonus-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bonus-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.bonus-icon-box {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.bonus-card-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.bonus-card-item p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

/* ================= Authentic Aspirant Reviews Section ================= */
.reviews-section {
  padding: 64px 0 80px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.reviews-summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 28px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.rating-overview-col {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-big-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1;
}

.rating-stars-gold {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.rating-orders-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.reviews-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.review-stat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.review-stat-pill strong {
  color: var(--primary-blue);
  font-size: 0.95rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.review-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.review-card-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.review-format-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.format-pdf {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.format-printed {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.review-headline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.4;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 18px;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: auto;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-navy);
  line-height: 1.2;
}

.review-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.review-verified-badge {
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}



/* Ratings in Format Cards and Below The Books */
.format-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  margin-top: -4px;
  margin-bottom: 10px;
}

.format-card-rating .stars-gold {
  color: #f59e0b;
  font-size: 0.92rem;
  letter-spacing: 1px;
}

.format-card-rating .rating-val {
  font-weight: 800;
  color: var(--primary-navy);
}

.format-card-rating .reviews-count {
  color: #64748b;
  font-weight: 600;
}

.books-rating-banner {
  margin-top: 14px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.books-rating-banner .stars-gold {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.books-rating-banner .rating-highlight {
  font-weight: 800;
  color: #0f172a;
}

.books-rating-banner .rating-dot {
  color: #94a3b8;
}

.books-rating-banner .rating-details {
  color: #475569;
}

/* Syllabus Module Grid & Box Formatting */
.curriculum-card-subtitle {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e40af;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.module-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-light, #e2e8f0);
  font-size: 0.85rem;
  line-height: 1.45;
}

.module-item:last-child {
  border-bottom: none;
}

.module-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.module-name {
  color: #1e293b;
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
}

.module-page {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
