@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Devanagari:wght@400;500;600;700;800&family=Rozha+One&family=Yatra+One&display=swap');

/* ==========================================================================
   TRUSOF INTERACTIVE 3D FLIPBOOK ENGINE
   Architected to match the realistic open curved-page book illustration
   ========================================================================== */

:root {
  --book-bg: #0f172a;
  --paper-cream: #fcfbf7;
  --paper-edge: #e6dec8;
  --page-border: #2563eb;
  --spine-shadow: rgba(0, 0, 0, 0.22);
  --book-shadow: rgba(0, 0, 0, 0.45);
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --accent-gold: #f59e0b;
  --accent-blue: #2563eb;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
}

/* ==========================================================================
   TOP BAR CONTROLS
   ========================================================================== */
.reader-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 1000;
}

.reader-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
}
.reader-back-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.reader-book-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.reader-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.reader-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   FULLSCREEN / IMMERSIVE READING MODE
   Hides Header & Footer completely, expands book to full display
   ========================================================================== */
.floating-exit-fullscreen {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 99999;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(245, 158, 11, 0.7);
  color: #fef08a;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}
.floating-exit-fullscreen:hover {
  background: rgba(180, 83, 9, 0.95);
  border-color: #fde68a;
  color: #ffffff;
  transform: scale(1.05);
}
.floating-exit-fullscreen:active {
  transform: scale(0.96);
}

body.fullscreen-active {
  overflow: hidden !important;
}
body.fullscreen-active .reader-topbar,
body.fullscreen-active .reader-bottombar,
body.fullscreen-active .continue-reading-toast {
  display: none !important;
}
body.fullscreen-active .floating-exit-fullscreen {
  display: flex !important;
}
body.fullscreen-active .flipbook-viewport {
  height: 100vh !important;
  height: 100dvh !important;
  margin-top: 0 !important;
  padding: 4px !important;
  align-items: center !important;
  justify-content: center !important;
}
body.fullscreen-active .open-book-scaffold {
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   BOOK STAGE & 3D ENVIRONMENT
   ========================================================================== */
.flipbook-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2500px;
  user-select: none;
  overflow: hidden;
}

/* 3D Realistic Open Book Stand */
.open-book-scaffold {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  filter: drop-shadow(0 25px 35px var(--book-shadow));
  transition: transform 0.3s ease;
}

/* Page Stack Base Lines (Matching User Sketch Depth) */
.book-stack-layers {
  position: absolute;
  bottom: -18px;
  left: 2%;
  right: 2%;
  height: 20px;
  background: linear-gradient(to bottom, #d6cca9 0%, #b8ac84 100%);
  border-radius: 0 0 12px 12px;
  border: 2px solid #1e3a8a;
  border-top: none;
  box-shadow: 
    0 4px 0 #ede8d5 inset,
    0 8px 0 #cfc59f inset,
    0 12px 0 #b3a577 inset;
  z-index: 1;
  pointer-events: none;
}

/* Realistic Center Spine Notch (V-Shape from Sketch) */
.book-spine-notch {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 18px;
  background: #1e3a8a;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Flipbook Container */
#book-flipbook {
  position: relative;
  z-index: 5;
  background: transparent;
}

/* ==========================================================================
   PAGE STYLING (Curved Paper, Texture & Typography)
   ========================================================================== */
.flip-page {
  background-color: var(--paper-cream);
  background-image: 
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.5) 0%, rgba(240, 235, 220, 0.4) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.008) 3px);
  color: var(--text-primary);
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Blue outline stroke matching the sketch */
.sketch-line-art .flip-page {
  border: 2px solid #2563eb;
}

/* Left Page (Spine is on the RIGHT side) */
.flip-page.--left {
  border-right: none;
  box-shadow: 
    inset -30px 0 35px -10px var(--spine-shadow),
    inset 0 10px 20px rgba(255, 255, 255, 0.8),
    -3px 0 10px rgba(0,0,0,0.15);
  border-radius: 6px 0 0 6px;
}

/* Right Page (Spine is on the LEFT side) */
.flip-page.--right {
  border-left: none;
  box-shadow: 
    inset 30px 0 35px -10px var(--spine-shadow),
    inset 0 10px 20px rgba(255, 255, 255, 0.8),
    3px 0 10px rgba(0,0,0,0.15);
  border-radius: 0 6px 6px 0;
}

/* Page Inner Content Container - Guaranteed No Cropping */
.page-inner {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px 20px 10px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative !important;
  font-family: 'Noto Serif Devanagari', 'Georgia', serif;
  line-height: 1.6;
  font-size: 13.5px;
  color: #1e293b;
}

/* Header & Footer on Pages (Pinned, Never Disappears) */
.page-header-line {
  flex-shrink: 0 !important;
  font-family: 'Inter', sans-serif;
  font-size: 10px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px !important;
  margin-bottom: 8px !important;
  display: flex;
  justify-content: space-between;
}

.page-footer-line {
  flex-shrink: 0 !important;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px !important;
  font-weight: 700;
  color: #475569;
  border-top: 1px solid #e2e8f0;
  padding-top: 4px !important;
  margin-top: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Page Body Content - Analog Physical Book (No Scrollbars) */
.page-body-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  scrollbar-width: none !important;
}

.page-body-content::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Book Cover Styling */
.flip-page.--cover {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.6), 0 15px 30px rgba(0,0,0,0.5);
  border: 3px solid #3b82f6;
}

.cover-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  margin: 12px;
  border-radius: 4px;
}

.cover-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cover-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.cover-subtitle {
  font-size: 14px;
  color: #93c5fd;
  margin: 0 0 24px;
  line-height: 1.5;
  font-weight: 500;
}

.cover-author {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: auto;
}

/* Content Page Typography */
.chapter-number {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.chapter-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  line-height: 1.3;
}

.dropcap {
  float: left;
  font-family: 'Georgia', serif;
  font-size: 52px;
  line-height: 42px;
  padding-top: 4px;
  padding-right: 8px;
  padding-left: 2px;
  font-weight: bold;
  color: #2563eb;
}

.callout-card {
  display: flex;
  gap: 12px;
  background: #f1f5f9;
  border-left: 4px solid #2563eb;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: 13.5px;
  line-height: 1.5;
}
.callout-icon {
  font-size: 20px;
}

.book-quote {
  font-style: italic;
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  border-radius: 4px;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.feature-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 6px;
  font-size: 12.5px;
}
.feature-box strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  margin: 16px 0;
  padding: 12px;
  background: #eff6ff;
  border-radius: 8px;
}
.stat-item {
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #1d4ed8;
}
.stat-lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.badge-tag {
  background: #e2e8f0;
  color: #334155;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.toc-list li {
  display: flex;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px dashed #cbd5e1;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.toc-list li:hover {
  background: #eff6ff;
  color: #2563eb;
}
.toc-num {
  font-weight: 800;
  color: #2563eb;
  width: 26px;
  font-family: 'Inter', sans-serif;
}
.toc-title {
  flex: 1;
  padding: 0 8px;
}
.toc-p {
  font-weight: 700;
  color: #64748b;
  font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   NAVIGATION PADDLES (Side Click Next / Prev)
   ========================================================================== */
.nav-paddle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.nav-paddle:hover {
  background: #2563eb;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}
.nav-paddle.--prev { left: 24px; }
.nav-paddle.--next { right: 24px; }

/* ==========================================================================
   BOTTOM DOCK CONTROLS (Slider, Jump, Page Counter)
   ========================================================================== */
.reader-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 20px;
  z-index: 1000;
}

.page-counter-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.5px;
}

.page-progress-slider {
  width: 240px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* ==========================================================================
   TABLE OF CONTENTS & SEARCH DRAWERS
   ========================================================================== */
.reader-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
}
.reader-drawer-overlay.active { display: block; }

.reader-drawer {
  position: fixed;
  top: 0; bottom: 0;
  width: 360px;
  max-width: 85vw;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2100;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.reader-drawer.active {
  transform: translateX(0);
}

.reader-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reader-drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}
.reader-drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.reader-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.toc-item-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc-item-card:hover, .toc-item-card.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #ffffff;
}

/* Search Modal */
.search-modal-card {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 520px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  z-index: 2200;
  padding: 18px;
  display: none;
}
.search-modal-card.active { display: block; }

.search-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.search-results-list {
  max-height: 280px;
  overflow-y: auto;
}
.search-result-row {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  color: #cbd5e1;
}
.search-result-row:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #ffffff;
}
mark.highlight {
  background: #fde047;
  color: #000;
  padding: 1px 3px;
  border-radius: 2px;
}

/* Continue Reading Toast */
.continue-reading-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid #3b82f6;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1500;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  font-size: 13.5px;
}
.continue-reading-toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast-btn-resume {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.reader-bottom-nav-btn {
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.reader-bottom-nav-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}
.reader-bottom-nav-btn:active {
  transform: scale(0.96);
}

.toast-btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.toast-btn-close:hover {
  color: #ffffff;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (Ultra-Compact, No Cropping, Real 3D Book Experience)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Header is ultra-compact */
  .reader-topbar {
    height: 42px;
    padding: 0 10px;
  }
  .reader-brand-group {
    gap: 8px;
  }
  .reader-back-btn {
    padding: 4px 8px;
    font-size: 13px;
  }
  .reader-book-title {
    font-size: 12.5px;
    max-width: 130px;
  }
  .reader-actions {
    gap: 4px;
  }
  .reader-btn {
    padding: 4px 7px;
    font-size: 12px;
    border-radius: 6px;
    gap: 2px;
  }

  /* 2. Bottombar is ultra-compact */
  .reader-bottombar {
    height: 40px;
    padding: 0 10px;
    gap: 8px;
  }
  .reader-bottom-nav-btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
  }
  .page-counter-badge {
    padding: 3px 8px;
    font-size: 11.5px;
  }
  .page-progress-slider {
    width: 70px;
  }

  /* 3. Viewport maximizes book display area */
  .flipbook-viewport {
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px);
    margin-top: 42px;
    padding: 4px;
    overflow: hidden;
  }

  /* 4. Completely HIDE the floating paddles so they NEVER cover text! */
  .nav-paddle {
    display: none !important;
  }

  /* 5. Realistic Open Book Stand on Mobile */
  .open-book-scaffold {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  }

  /* 6. Subtle realistic page stack depth under mobile book */
  .book-stack-layers {
    display: block;
    bottom: -8px;
    height: 8px;
    left: 4%;
    right: 4%;
    border-radius: 0 0 6px 6px;
    border: 1px solid #1e3a8a;
    box-shadow: 0 2px 0 #cfc59f inset;
  }
  .book-spine-notch {
    display: none;
  }

  /* 7. Pages on Mobile: Real 3D physical book paper look */
  .flip-page {
    border-radius: 6px !important;
    border: 2px solid #2563eb !important;
    box-shadow: 
      0 8px 20px rgba(0, 0, 0, 0.4),
      inset 14px 0 18px -8px rgba(0, 0, 0, 0.12) !important;
  }

  /* 8. Inner Page Typography - Guaranteed No Cropping */
  .page-inner {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding: 10px 14px 6px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .page-header-line {
    flex-shrink: 0 !important;
    margin-bottom: 4px !important;
    padding-bottom: 2px !important;
    font-size: 9px !important;
  }
  .page-footer-line {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding-top: 2px !important;
    font-size: 9.5px !important;
  }
  .page-body-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    scrollbar-width: none !important;
  }
  .page-body-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .page-body-content h1 { font-size: 16px !important; margin: 0 0 4px 0 !important; }
  .page-body-content h2 { font-size: 15px !important; margin: 0 0 4px 0 !important; }
  .page-body-content h3 { font-size: 13px !important; margin: 0 0 3px 0 !important; }
  .page-body-content p { margin: 0 0 4px 0 !important; }
  .page-body-content blockquote {
    padding: 6px 10px !important;
    margin: 6px 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }
  .page-body-content ul, .page-body-content ol {
    margin: 4px 0 6px !important;
    padding-left: 18px !important;
  }
  .page-body-content li {
    margin-bottom: 3px !important;
  }
  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin: 6px 0 !important;
  }
  .feature-card {
    padding: 8px 10px !important;
  }
  .cover-wrapper {
    padding: 24px 16px !important;
    margin: 8px !important;
  }
  .cover-title {
    font-size: 20px !important;
  }
  .cover-subtitle {
    font-size: 12px !important;
  }

  /* 9. Continue Reading Toast - Bottom docked, never covers book text or cover! */
  .continue-reading-toast {
    top: auto !important;
    bottom: 52px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(30px) !important;
    opacity: 0;
    pointer-events: none;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 11.5px !important;
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
    gap: 8px !important;
    z-index: 2500 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  }
  .continue-reading-toast.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .toast-btn-resume {
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* ==========================================================================
   SPIRITUAL BOOK THEME ("मैं कौन हूँ?")
   Rich Devanagari typography, soft golden hues, and responsive cards
   ========================================================================== */
.spiritual-book-mode {
  --spiritual-gold: #f59e0b;
  --spiritual-amber: #d97706;
  --spiritual-saffron: #b45309;
  --spiritual-dark-amber: #78350f;
  --spiritual-cream: #fdfbf7;
  --spiritual-border: #fcd34d;
}

/* Spiritual Cover Design */
.cover-wrapper.--spiritual-cover {
  background: radial-gradient(circle at center, #78350f 0%, #451a03 60%, #1c0a00 100%) !important;
  border: 4px solid #f59e0b !important;
  box-shadow: 
    inset 0 0 40px rgba(245, 158, 11, 0.3),
    0 12px 36px rgba(0, 0, 0, 0.6) !important;
  color: #fffbeb !important;
}

.cover-wrapper.--spiritual-cover .cover-badge {
  background: rgba(245, 158, 11, 0.25) !important;
  border: 1px solid #fcd34d !important;
  color: #fef08a !important;
  font-family: 'Noto Serif Devanagari', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cover-wrapper.--spiritual-cover .cover-title {
  font-family: 'Rozha One', 'Noto Serif Devanagari', serif !important;
  font-size: 30px !important;
  color: #fef08a !important;
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.5);
  margin: 10px 0 6px !important;
  line-height: 1.3 !important;
}

.cover-wrapper.--spiritual-cover .cover-subtitle {
  font-family: 'Noto Serif Devanagari', serif !important;
  font-size: 13.5px !important;
  color: #fed7aa !important;
  line-height: 1.5 !important;
  max-width: 92%;
  margin: 0 auto 10px;
}

.cover-wrapper.--spiritual-cover .cover-author {
  font-family: 'Noto Serif Devanagari', serif !important;
  font-size: 12.5px !important;
  color: #fde68a !important;
  font-weight: 600;
}

.cover-wrapper.--spiritual-cover .cover-note {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 10.5px;
  color: #fed7aa;
  opacity: 0.95;
  line-height: 1.5;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px dashed rgba(245, 158, 11, 0.45);
}

/* Spiritual Chapter Wrapper */
.spiritual-chapter-wrap {
  font-family: 'Noto Serif Devanagari', serif;
  color: #292524;
  line-height: 1.6;
  font-size: 13.5px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.spiritual-heading {
  font-family: 'Rozha One', 'Noto Serif Devanagari', serif;
  font-size: 20px;
  font-weight: 700;
  color: #78350f;
  margin: 4px 0 2px 0;
  line-height: 1.3;
}

.spiritual-sub {
  font-size: 12px;
  color: #92400e;
  font-weight: 600;
  margin-bottom: 6px;
}

.chapter-num-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.spiritual-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d97706, transparent);
  margin: 6px 0 10px 0;
  position: relative;
}
.spiritual-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fcfbf7;
  padding: 0 6px;
  font-size: 10px;
  color: #d97706;
}

/* Quote and Affirmation Cards */
.highlight-quote-card {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 8px 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}
.highlight-quote-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #451a03;
  font-weight: 600;
}

/* Diagrams */
.spiritual-diagram-container {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 6px;
  margin: 6px 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}
.spiritual-diagram-container svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 4 Quadrants Grid for Ch 3 */
.quadrant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}
.quadrant-card {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}
.quadrant-card.--positive {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #14532d;
}
.quadrant-card.--negative {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}
.quadrant-card.--waste {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}
.quadrant-card.--necessary {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}
.quadrant-title {
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 3px;
}

/* Chariot Analogy Cards */
.chariot-analogy-card {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
}
.chariot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 12px;
}
.chariot-row:last-child {
  border-bottom: none;
}

/* Transformation Comparison Table (Ch 9) */
.transformation-table-box {
  width: 100%;
  margin: 8px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}
.transformation-table-box table {
  width: 100%;
  border-collapse: collapse;
}
.transformation-table-box th {
  padding: 6px 8px;
  font-weight: 700;
}
.transformation-table-box td {
  padding: 6px 8px;
  border-top: 1px solid #e2e8f0;
  vertical-align: middle;
}

/* Morning & Night Special Banners */
.morning-greeting-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  color: #78350f;
  margin-bottom: 8px;
}
.night-sky-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid #312e81;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  color: #f8fafc;
  margin-bottom: 8px;
}
.night-routine-steps {
  margin: 6px 0;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
}
.night-routine-steps li {
  margin-bottom: 4px;
}
.night-sleep-affirmation {
  background: #f1f5f9;
  border-left: 3px solid #6366f1;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: #312e81;
  margin-top: 6px;
}

/* Checklists & Pledges */
.interactive-checklist, .final-pledge-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 6px 0;
}
.check-item, .pledge-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.check-item:hover, .pledge-item:hover {
  background: #fffbeb;
  border-color: #fde68a;
}
.check-item input, .pledge-item input {
  accent-color: #d97706;
  margin-top: 2px;
  cursor: pointer;
}

/* Final Affirmation Card */
.final-affirmation-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* Journal Form */
.journal-form-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.journal-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.journal-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: #78350f;
}
.journal-input {
  width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 12px;
  font-family: 'Noto Serif Devanagari', serif;
  background: #ffffff;
  color: #1f2937;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.journal-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}
.btn-save-journal {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Noto Serif Devanagari', serif;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-save-journal:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.3);
}
.btn-save-journal:active {
  transform: translateY(0);
}

/* Friend Quote Card (Ch 14) */
.friend-quote-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0;
  text-align: left;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .spiritual-chapter-wrap {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }
  .spiritual-heading {
    font-size: 16px !important;
  }
  .spiritual-sub {
    font-size: 10.5px !important;
    margin-bottom: 3px !important;
  }
  .highlight-quote-card {
    padding: 6px 8px !important;
    margin: 4px 0 !important;
  }
  .highlight-quote-card p {
    font-size: 11.5px !important;
  }
  .quadrant-grid {
    gap: 4px !important;
    margin: 4px 0 !important;
  }
  .quadrant-card {
    padding: 5px 6px !important;
    font-size: 10px !important;
  }
  .quadrant-title {
    font-size: 10.5px !important;
  }
  .chariot-analogy-card {
    padding: 5px 8px !important;
    margin: 4px 0 !important;
  }
  .chariot-row {
    font-size: 10.5px !important;
    padding: 2px 0 !important;
  }
  .morning-greeting-box, .night-sky-banner {
    padding: 6px 8px !important;
    margin-bottom: 4px !important;
  }
  .night-routine-steps {
    font-size: 10.5px !important;
    margin: 4px 0 !important;
    padding-left: 15px !important;
  }
  .interactive-checklist, .final-pledge-list {
    gap: 3px !important;
    margin: 4px 0 !important;
  }
  .check-item, .pledge-item {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
  .final-affirmation-card {
    padding: 7px 8px !important;
    margin-top: 5px !important;
  }
  .journal-form-grid {
    gap: 4px !important;
  }
  .journal-field label {
    font-size: 10px !important;
  }
  .journal-input {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
  }
  .btn-save-journal {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
  }
  .friend-quote-card {
    padding: 8px 10px !important;
    margin: 6px 0 !important;
  }
}

/* ==========================================================================
   SPIRITUAL COMPONENT STYLES (Zero-Crop Guarantee & Compact Aesthetics)
   ========================================================================== */

/* Three Faculties Grid (Chapter 2: मन, बुद्धि, संस्कार) */
.three-faculties-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 6px 0;
}
.faculty-box {
  background: #fdfaf3;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s ease;
}
.faculty-box:hover {
  background: #fffbeb;
  border-color: #f59e0b;
}
.faculty-icon {
  font-size: 15px;
  display: inline-block;
  margin-right: 4px;
}
.faculty-title {
  font-family: 'Noto Serif Devanagari', serif;
  font-weight: 700;
  font-size: 12px;
  color: #78350f;
  display: flex;
  align-items: center;
}
.faculty-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #44403c;
  margin: 0;
}

/* Life Cycle Banner (विचार -> निर्णय -> कर्म -> आदत -> संस्कार -> व्यक्तित्व) */
.cycle-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 5px 8px;
  text-align: center;
  margin: 6px 0;
}
.cycle-chain {
  font-size: 10.5px;
  font-weight: 600;
  color: #78350f;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.cycle-chain span {
  background: #ffffff;
  border: 1px solid #fcd34d;
  padding: 1px 5px;
  border-radius: 4px;
}
.cycle-chain span.highlight-node {
  background: #b45309;
  color: #ffffff;
  border-color: #78350f;
  font-weight: 700;
}

/* Preface Card & Lead Text */
.preface-card, .spiritual-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 5px 0;
}
.preface-badge {
  display: inline-block;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  margin-bottom: 3px;
}
.spiritual-lead {
  font-size: 12px;
  line-height: 1.5;
  color: #44403c;
  margin-bottom: 5px;
}
.spiritual-note-box {
  background: #ffffff;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 6px 8px;
  margin: 5px 0;
  font-size: 11px;
  line-height: 1.45;
  color: #57534e;
}

/* Points List & Diagrams */
.spiritual-points-list {
  margin: 5px 0;
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #334155;
}
.spiritual-points-list li {
  margin-bottom: 3px;
}
.diagram-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #78350f;
  text-align: center;
  margin-bottom: 3px;
}
.spiritual-svg-flow {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Quadrants Additions */
.quad-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  font-size: 11px;
}
.quad-icon {
  font-size: 13px;
}
.quad-example {
  font-size: 10px;
  font-style: italic;
  opacity: 0.9;
  margin-top: 2px;
  border-top: 1px dashed rgba(0,0,0,0.1);
  padding-top: 2px;
}

/* Chapter 4 Wisdom Cards */
.insight-strip {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  color: #78350f;
  margin: 5px 0;
  text-align: center;
  font-weight: 600;
}
.wisdom-cards-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 5px 0;
}
.wisdom-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 7px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
}
.wisdom-card.--highlight {
  background: #fffbeb;
  border-color: #fde68a;
  font-weight: 600;
}
.wisdom-card strong {
  color: #78350f;
  min-width: 70px;
}
.wisdom-card p {
  margin: 0;
  color: #44403c;
}
.w-icon {
  font-size: 13px;
  flex-shrink: 0;
}

/* Chapter 5 Karma Flow */
.golden-banner-quote {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  color: #78350f;
  margin: 5px 0;
  font-size: 11.5px;
  font-weight: 600;
}
.karma-flow-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 6px 4px;
  margin: 5px 0;
}
.flow-step {
  text-align: center;
  font-size: 10px;
}
.flow-step strong {
  display: block;
  color: #78350f;
}
.flow-step small {
  color: #78716c;
  font-size: 9px;
}
.step-num {
  width: 18px;
  height: 18px;
  line-height: 18px;
  background: #b45309;
  color: #ffffff;
  border-radius: 50%;
  margin: 0 auto 2px;
  font-size: 9.5px;
  font-weight: 700;
}
.flow-arrow {
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}
.callout-teaching {
  background: #f1f5f9;
  border-left: 3px solid #3b82f6;
  border-radius: 0 6px 6px 0;
  padding: 5px 8px;
  font-size: 11px;
  margin: 5px 0;
  color: #1e293b;
  line-height: 1.45;
}

/* Chapter 6 Attributes Grid */
.attributes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 5px 0;
}
.attr-card {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 5px 6px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.35;
}
.attr-card strong {
  color: #78350f;
  display: block;
  margin-bottom: 2px;
}
.attr-card p {
  margin: 0;
  color: #57534e;
}
.attr-icon {
  font-size: 14px;
  margin-bottom: 1px;
}
.spiritual-affirmation {
  background: #fffbeb;
  border: 1px dashed #d97706;
  border-radius: 6px;
  padding: 5px 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #78350f;
  margin-top: 5px;
}

/* Chapter 7 Soul Silhouette */
.symbolic-illustration-box {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 4px;
  text-align: center;
  margin: 5px 0;
}
.soul-svg {
  max-width: 120px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Chapter 8 Chariot Analogy */
.analogy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 3px;
  font-size: 11px;
}
.analogy-side {
  display: flex;
  align-items: center;
  gap: 4px;
}
.analogy-side p {
  margin: 0;
  font-size: 10px;
  color: #64748b;
}
.analogy-vs {
  font-weight: 700;
  color: #b45309;
  font-size: 10px;
  padding: 0 4px;
}
.vertical-chain-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 5px 0;
}
.v-node {
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
  color: #78350f;
}
.v-node.--final {
  background: #b45309;
  color: #ffffff;
  border-color: #78350f;
  font-weight: 700;
}
.v-line {
  color: #b45309;
  font-size: 9px;
  line-height: 1;
}

/* Chapter 9 Transformation Table */
.trans-row {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  padding: 3px 6px;
  font-size: 10.5px;
  line-height: 1.35;
}
.trans-row.--header {
  background: #f8fafc;
  font-weight: 700;
  border-bottom: 2px solid #cbd5e1;
}
.neg-text {
  flex: 1;
  color: #991b1b;
  padding-right: 4px;
  border-right: 1px dashed #e2e8f0;
}
.pos-text {
  flex: 1;
  color: #166534;
  padding-left: 4px;
  font-weight: 600;
}
.spiritual-tip {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding: 5px 7px;
  border-radius: 0 6px 6px 0;
  font-size: 10.5px;
  margin-top: 5px;
  color: #1e3a8a;
  line-height: 1.4;
}

/* Chapter 10 Grand Quote */
.serene-circle-art {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef3c7 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}
.circle-inner-pulse {
  font-size: 20px;
}
.grand-quote-box {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  margin: 6px 0;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.1);
}
.grand-quote-text {
  font-family: 'Rozha One', 'Noto Serif Devanagari', serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #78350f;
  margin: 0;
}

/* Chapter 15 Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 5px 0;
}
.benefit-item {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 10.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #44403c;
}

/* General Layout Utilities */
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.mt-2 { margin-top: 6px !important; }
.quote-text { margin: 0; font-size: 13px; line-height: 1.6; color: #451a03; font-weight: 600; }
.big-quote-mark { font-size: 28px; line-height: 1; color: #d97706; opacity: 0.6; display: block; margin-bottom: 2px; }
.a-icon { font-size: 14px; margin-right: 4px; }
.center-quote-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px; margin: 6px 0; }



