/* ==========================================================================
   SnehVeda (स्नेहवेद) - Chapter 1: Luxury Dark / Night Botanical Reading Experience
   Permanent High-End Night Theme | Zero Unwanted Margin | Perfect Readability
   ========================================================================== */

/* --- Custom Properties & Theme Palette (Permanent Night Mode) --- */
:root {
  /* Deep Luxury Botanical Slate & Night Surfaces */
  --bg-body: #0E1512;
  --bg-surface: #15201A;
  --bg-surface-alt: #1A2821;
  --bg-surface-soft: #1E2E26;
  --bg-card-subtle: #17241E;
  --bg-highlight: #23342B;
  --bg-quote: #1D2C24;

  /* Typography Colors - High Contrast & Warm Cream */
  --text-primary: #EDE8DF;
  --text-secondary: #BAC8BF;
  --text-muted: #83978D;
  --text-light: #64796F;
  --text-inverse: #0E1512;

  /* Refined Herbal & Ayurvedic Accents */
  --accent-forest: #4A8366;
  --accent-forest-hover: #5B9B7A;
  --accent-forest-soft: rgba(74, 131, 102, 0.18);

  --accent-sage: #6E9F88;
  --accent-sage-soft: #1B2B23;
  --accent-sage-border: rgba(110, 159, 136, 0.28);

  --accent-terracotta: #E27B4D;
  --accent-terracotta-hover: #F28E62;
  --accent-terracotta-soft: #2B1E17;
  --accent-terracotta-border: rgba(226, 123, 77, 0.32);

  --accent-gold: #CFA664;
  --accent-gold-soft: #292419;
  --accent-gold-border: rgba(207, 166, 100, 0.32);

  --accent-amber: #E2984B;

  /* Modular Factor Colors */
  --factor-genetics-bg: #14222B;
  --factor-genetics-accent: #62A0D0;
  --factor-genetics-border: rgba(98, 160, 208, 0.28);

  --factor-stress-bg: #271C17;
  --factor-stress-accent: #E27B4D;
  --factor-stress-border: rgba(226, 123, 77, 0.28);

  --factor-nutrition-bg: #16261A;
  --factor-nutrition-accent: #72B87B;
  --factor-nutrition-border: rgba(114, 184, 123, 0.28);

  --factor-hormonal-bg: #26171E;
  --factor-hormonal-accent: #D27995;
  --factor-hormonal-border: rgba(210, 121, 149, 0.28);

  --factor-damage-bg: #281F13;
  --factor-damage-accent: #E2A35B;
  --factor-damage-border: rgba(226, 163, 91, 0.28);

  --factor-scalp-bg: #13242A;
  --factor-scalp-accent: #5AB2C2;
  --factor-scalp-border: rgba(90, 178, 194, 0.28);

  --factor-lifestyle-bg: #241822;
  --factor-lifestyle-accent: #BA85AA;
  --factor-lifestyle-border: rgba(186, 133, 170, 0.28);

  /* Status Colors */
  --color-warning-bg: #292113;
  --color-warning-text: #E5A95A;
  --color-warning-border: rgba(229, 169, 90, 0.3);

  /* Borders & Shadows */
  --border-subtle: rgba(237, 232, 223, 0.08);
  --border-medium: rgba(237, 232, 223, 0.15);
  --border-card: rgba(237, 232, 223, 0.1);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.5);

  /* Corner Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Typography */
  --font-serif: 'Rozha One', 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', 'Rozha One', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Variables */
  --header-height: 72px;
  --article-max: 880px;

  /* Base Reading Font Scale */
  --base-font-size: 1.125rem; /* 18px */
  --line-height-body: 1.85;
}

/* Font Size Modifiers */
body.font-sm { --base-font-size: 1rem; }
body.font-md { --base-font-size: 1.125rem; }
body.font-lg { --base-font-size: 1.25rem; }
body.font-xl { --base-font-size: 1.4rem; }

/* --- CSS Reset & Global Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-body);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--base-font-size);
  line-height: var(--line-height-body);
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

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

a {
  color: var(--accent-terracotta);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-terracotta-hover);
}

button, input {
  font-family: inherit;
  font-size: inherit;
}

/* --- Top Reading Progress Indicator --- */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-sage), var(--accent-terracotta));
  z-index: 1100;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px rgba(226, 123, 77, 0.5);
}

/* --- Header Navigation Bar --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(14, 21, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.header-container {
  max-width: var(--article-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1F3C2C, #2E5640);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EDE8DF;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.725rem;
  color: var(--accent-terracotta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.font-size-btn-group {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}

.font-size-btn {
  border: none;
  background: transparent;
  padding: 0.25rem 0.65rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.font-size-btn.active, .font-size-btn:hover {
  background: var(--accent-forest);
  color: #FFFFFF;
}

.toc-toggle-btn {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.toc-toggle-btn:hover {
  background: var(--bg-surface-alt);
  border-color: var(--accent-terracotta);
}

/* --- Clean Centered Article Layout (Zero Right Side Gap) --- */
.main-wrapper {
  max-width: var(--article-max);
  margin: 2.5rem auto 6rem auto;
  padding: 0 1.5rem;
  width: 100%;
}

.article-container {
  width: 100%;
}

/* --- Hero Banner Section --- */
.hero-section {
  margin-bottom: 3.5rem;
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge-chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  background: var(--accent-forest);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-reading-time, .badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.badge-verified {
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
  border-color: var(--accent-sage-border);
}

.hero-title-main {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--accent-terracotta);
  margin-bottom: 2.25rem;
  padding-left: 1.4rem;
  border-left: 4px solid var(--accent-terracotta);
}

/* --- Clean Image Cards --- */
.hero-image-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.image-zoom-container {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-surface-soft);
}

.image-zoom-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-zoom-container:hover img {
  transform: scale(1.015);
}

.image-zoom-overlay {
  position: absolute;
  bottom: 1.15rem;
  right: 1.15rem;
  background: rgba(14, 21, 18, 0.85);
  backdrop-filter: blur(8px);
  color: #EDE8DF;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s ease;
}

.image-zoom-container:hover .image-zoom-overlay {
  opacity: 1;
}

.image-caption-bar {
  padding: 1rem 1.6rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.image-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

/* --- Section Rhythm & Typography --- */
.content-section {
  margin-bottom: 4.5rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
  margin: 4rem 0;
}

.section-badge-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
  border: 1px solid var(--accent-sage-border);
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent-gold);
  margin: 2.25rem 0 1.15rem 0;
}

.lead-paragraph {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.35rem;
  color: var(--text-secondary);
  font-size: var(--base-font-size);
  line-height: var(--line-height-body);
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* --- The Morning Hook Sequence Cards --- */
.hook-sequence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin: 2.25rem 0;
}

.hook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hook-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-terracotta-border);
}

.hook-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1px solid var(--accent-terracotta-border);
}

.hook-card-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- Editorial Quote Callouts --- */
.philosophical-quote-box {
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold-border);
  border-left: 5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  position: relative;
  box-shadow: var(--shadow-md);
}

.quote-icon-decor {
  position: absolute;
  top: 1rem;
  right: 1.75rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.18;
  font-family: var(--font-serif);
  pointer-events: none;
}

.philosophical-quote-box .quote-content {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.quote-subtext {
  font-size: 1rem;
  color: var(--accent-terracotta);
  font-weight: 600;
  margin-bottom: 0;
}

.quote-action-row {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-copy-quote {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-copy-quote:hover {
  background: var(--accent-forest);
  color: #FFFFFF;
  border-color: var(--accent-forest);
}

/* --- Warning Signs Checklist Box --- */
.warning-signs-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.warning-signs-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.warning-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 1px solid var(--color-warning-border);
  flex-shrink: 0;
}

.warning-signs-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.warning-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.warning-item-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.warning-item-pill:hover {
  border-color: var(--accent-terracotta-border);
  background: var(--accent-terracotta-soft);
  transform: translateX(3px);
}

.warning-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-terracotta);
  flex-shrink: 0;
}

.warning-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.takeaway-banner {
  margin-top: 1.75rem;
  padding: 1.15rem 1.4rem;
  background: var(--accent-sage-soft);
  border: 1px solid var(--accent-sage-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.6;
}

/* --- The 7 Reasons Modular Factor Cards --- */
.reasons-image-wrap {
  margin: 2.25rem 0 3.5rem 0;
}

.factors-grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin: 3rem 0;
}

.factor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.factor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

#factor-genetics { border-top: 4px solid var(--factor-genetics-accent); }
#factor-stress { border-top: 4px solid var(--factor-stress-accent); }
#factor-nutrition { border-top: 4px solid var(--factor-nutrition-accent); }
#factor-hormonal { border-top: 4px solid var(--factor-hormonal-accent); }
#factor-damage { border-top: 4px solid var(--factor-damage-accent); }
#factor-scalp { border-top: 4px solid var(--factor-scalp-accent); }
#factor-lifestyle { border-top: 4px solid var(--factor-lifestyle-accent); }

.factor-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.factor-number-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-soft);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

#factor-genetics .factor-number-badge { color: var(--factor-genetics-accent); background: var(--factor-genetics-bg); }
#factor-stress .factor-number-badge { color: var(--factor-stress-accent); background: var(--factor-stress-bg); }
#factor-nutrition .factor-number-badge { color: var(--factor-nutrition-accent); background: var(--factor-nutrition-bg); }
#factor-hormonal .factor-number-badge { color: var(--factor-hormonal-accent); background: var(--factor-hormonal-bg); }
#factor-damage .factor-number-badge { color: var(--factor-damage-accent); background: var(--factor-damage-bg); }
#factor-scalp .factor-number-badge { color: var(--factor-scalp-accent); background: var(--factor-scalp-bg); }
#factor-lifestyle .factor-number-badge { color: var(--factor-lifestyle-accent); background: var(--factor-lifestyle-bg); }

.factor-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
}

.factor-body {
  font-size: var(--base-font-size);
  line-height: var(--line-height-body);
}

.factor-highlight-box {
  background: var(--bg-surface-soft);
  border-left: 4px solid var(--accent-terracotta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.15rem 1.4rem;
  margin-top: 1.5rem;
}

.factor-highlight-box h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-terracotta);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.factor-highlight-box p {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Stress Flowchart Diagram */
.stress-flow-container {
  background: var(--bg-surface-soft);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 1.5rem 0;
  border: 1px dashed var(--border-medium);
}

.stress-flow-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-terracotta);
  margin-bottom: 1.25rem;
}

.stress-flow-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.flow-step-node {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.flow-step-arrow {
  color: var(--accent-terracotta);
  font-weight: 900;
  font-size: 1.25rem;
}

.flow-conclusion-box {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Nutrient Tags */
.nutrient-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.nutrient-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--bg-surface);
  color: var(--accent-forest);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.nutrient-tag:hover {
  background: var(--accent-sage-soft);
  border-color: var(--accent-sage-border);
}

/* Habits Pills */
.habits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.habit-pill {
  padding: 0.85rem 1.15rem;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.habit-pill:hover {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.habit-icon {
  font-size: 1.15rem;
}

/* Scalp Symptom Badges */
.scalp-symptoms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.scalp-symptom-badge {
  padding: 0.45rem 1rem;
  background: var(--bg-surface-soft);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Lifestyle Equation Box */
.lifestyle-equation-box {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.equation-items-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.eq-pill {
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.eq-plus {
  color: var(--accent-terracotta);
  font-weight: 900;
  font-size: 1.25rem;
}

/* --- Section 3: Comparative Persona Case Study --- */
.persona-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin: 2.25rem 0;
}

.persona-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-forest);
}

.persona-card.persona-b::before {
  background: var(--accent-terracotta);
}

.persona-label {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-forest);
}

.persona-card.persona-b .persona-label {
  color: var(--accent-terracotta);
}

.persona-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.persona-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

.principle-banner {
  background: var(--bg-surface);
  border: 2px solid var(--accent-forest);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.principle-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.principle-subtext {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Section 4: 5-Step Method Cards --- */
.steps-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 3rem 0;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateX(4px);
  border-color: var(--accent-terracotta-border);
  box-shadow: var(--shadow-lg);
}

.step-num-pill {
  padding: 0.45rem 1.1rem;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(226, 123, 77, 0.3);
}

.step-content {
  flex-grow: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-timeline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.timeline-chip {
  padding: 0.45rem 1rem;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checklist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.checklist-chip {
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Section 5: Interactive Self-Check Assessment --- */
.self-check-container {
  background: var(--bg-surface);
  border: 2px solid var(--accent-gold-border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-lg);
}

.self-check-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.self-check-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.self-check-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.self-check-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.quiz-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-soft);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.75rem 0 2.25rem 0;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-terracotta));
  transition: width 0.3s ease;
}

.quiz-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.quiz-question-card {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.2s ease;
}

.quiz-question-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-alt);
  box-shadow: var(--shadow-sm);
}

.quiz-question-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.quiz-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
}

.quiz-question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.quiz-options {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.quiz-btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-btn:hover {
  border-color: var(--accent-terracotta);
  background: var(--accent-terracotta-soft);
}

.quiz-btn.selected-yes {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border-color: var(--accent-terracotta);
  box-shadow: 0 4px 12px rgba(226, 123, 77, 0.35);
}

.quiz-btn.selected-no {
  background: var(--accent-forest);
  color: #FFFFFF;
  border-color: var(--accent-forest);
  box-shadow: 0 4px 12px rgba(74, 131, 102, 0.3);
}

.quiz-result-card {
  margin-top: 2.25rem;
  padding: 2rem 2.25rem;
  background: var(--bg-surface);
  border: 2px solid var(--accent-terracotta-border);
  border-radius: var(--radius-lg);
  display: none;
  animation: fadeIn 0.4s ease;
  box-shadow: var(--shadow-md);
}

.quiz-result-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-result-body {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.quiz-reset-btn {
  margin-top: 1.25rem;
  padding: 0.5rem 1.1rem;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-reset-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* --- Section 6: Correct Diagnostic Hierarchy --- */
.hierarchy-flow-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-md);
}

.hierarchy-steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1.75rem;
}

.hierarchy-step-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15rem 1.6rem;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.hierarchy-step-row:hover {
  transform: translateX(4px);
  border-color: var(--accent-terracotta-border);
  background: var(--bg-surface-alt);
  box-shadow: var(--shadow-sm);
}

.hierarchy-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-forest);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hierarchy-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hierarchy-arrow-divider {
  display: flex;
  justify-content: center;
  color: var(--accent-terracotta);
  font-size: 1.35rem;
  margin: -0.25rem 0;
}

/* --- Section 7: Realistic Example Story --- */
.case-study-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.case-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--accent-gold-border);
}

.case-study-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-hopping-loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--bg-surface-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.hopping-pill {
  padding: 0.45rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.hopping-arrow {
  color: var(--accent-terracotta);
  font-weight: 900;
}

.missed-factors-list {
  background: var(--accent-terracotta-soft);
  border-left: 4px solid var(--accent-terracotta);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.missed-factors-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.missed-factors-list li {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.missed-factors-list li::before {
  content: '✕';
  color: var(--accent-terracotta);
  font-weight: 900;
}

/* --- Section 8: 5 Key Takeaway Tiles --- */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.takeaway-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.takeaway-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-terracotta-border);
}

.takeaway-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-terracotta);
}

.takeaway-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}

/* --- Section 9: Chapter 1 Climax Lesson --- */
.climax-lesson-card {
  background: var(--bg-surface);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  margin: 4rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.climax-lesson-card::before {
  content: 'ॐ';
  position: absolute;
  top: -25px;
  right: -25px;
  font-size: 9rem;
  color: var(--accent-gold);
  opacity: 0.08;
  pointer-events: none;
}

.climax-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--accent-forest);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.climax-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.climax-sub-dialogue {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.25rem;
  max-width: 650px;
  margin: 0 auto 2rem auto;
  box-shadow: var(--shadow-sm);
}

.climax-sub-dialogue p {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.climax-question-highlight {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  margin: 0.5rem 0;
}

.climax-closing-statement {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.7;
}

/* --- Reader Navigation Footer & Social Tools --- */
.reader-action-footer {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.social-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.share-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.share-buttons-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-soft);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--accent-forest);
  color: #FFFFFF;
  border-color: var(--accent-forest);
}

.share-btn.whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

/* Next Chapter Teaser Card */
.chapter-navigation-card {
  background: var(--bg-surface);
  border: 2px solid var(--accent-forest);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.chapter-nav-info {
  max-width: 550px;
}

.chapter-nav-pre {
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-terracotta);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.chapter-nav-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.chapter-nav-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.btn-next-chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  background: var(--accent-forest);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(74, 131, 102, 0.35);
}

.btn-next-chapter:hover {
  background: var(--accent-forest-hover);
  color: #FFFFFF;
  transform: translateX(4px);
}

/* --- Floating Action Buttons (Back to Top) --- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.floating-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn:hover {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border-color: var(--accent-terracotta);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Image Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 21, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-caption {
  margin-top: 1.15rem;
  color: #EDE8DF;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
}

.lightbox-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--accent-terracotta);
}

/* --- Toast Feedback Notification --- */
.toast-notification {
  position: fixed;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-forest);
  color: #FFFFFF;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --- Mobile / Fullscreen Drawer TOC --- */
.mobile-toc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-toc-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-toc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 88vw;
  height: 100%;
  background: var(--bg-surface);
  z-index: 1501;
  padding: 2.25rem 1.75rem;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-toc-drawer.active {
  transform: translateX(0);
}

.mobile-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-toc-header .toc-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-primary);
  cursor: pointer;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.toc-item a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  line-height: 1.45;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.toc-item a:hover {
  background: var(--bg-surface-soft);
  color: var(--accent-terracotta);
  padding-left: 1rem;
}

.toc-item.active a {
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  font-weight: 700;
  border-left: 3px solid var(--accent-terracotta);
  padding-left: 1rem;
}

/* --- Footer Brand Section --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 3rem 1.5rem;
  margin-top: 6rem;
  width: 100%;
}

.footer-container {
  max-width: var(--article-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  width: 100%;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsive Rules --- */
@media (max-width: 768px) {
  :root {
    --header-height: 66px;
    --base-font-size: 1.05rem;
  }

  .main-wrapper {
    margin: 1.5rem auto 3.5rem auto;
    padding: 0 1.15rem;
  }

  .header-container {
    padding: 0 1.15rem;
  }

  .hook-sequence-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .warning-list-grid {
    grid-template-columns: 1fr;
  }

  .persona-comparison-grid {
    grid-template-columns: 1fr;
  }

  .stress-flow-timeline {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-step-arrow {
    text-align: center;
    transform: rotate(90deg);
    margin: 0.25rem 0;
  }

  .self-check-container {
    padding: 2rem 1.25rem;
  }

  .quiz-question-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .quiz-options {
    align-self: flex-end;
  }

  .chapter-navigation-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }

  .btn-next-chapter {
    width: 100%;
    justify-content: center;
  }

  .climax-lesson-card {
    padding: 2.25rem 1.35rem;
  }

  .factor-card {
    padding: 1.75rem 1.35rem;
  }

  .step-card {
    flex-direction: column;
    padding: 1.75rem 1.35rem;
    gap: 1rem;
  }
}


.brand-icon-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background-color: #FAF7F0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  display: block;
}


/* ==========================================================================
   Brand Header: Live Color Transition, Floral Glow Aura & Flying Petals
   ========================================================================== */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-container {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background-color: #FAF7F0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(110, 189, 142, 0.35);
  flex-shrink: 0;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.brand-wrapper:hover .brand-icon-img {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 20px rgba(110, 189, 142, 0.55);
}

.flower-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 15px;
  background: linear-gradient(135deg, #4A9E72, #FCD47E, #FFA578, #80ED99, #4A9E72);
  background-size: 300% 300%;
  animation: liveFlowerRingFlow 5s linear infinite;
  z-index: 1;
  opacity: 0.75;
  filter: blur(4px);
  transition: opacity 0.3s ease, filter 0.3s ease, inset 0.3s ease;
}

.brand-wrapper:hover .flower-glow-ring {
  opacity: 1;
  filter: blur(6px);
  inset: -6px;
}

@keyframes liveFlowerRingFlow {
  0% {
    background-position: 0% 50%;
    transform: rotate(0deg);
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
    transform: rotate(360deg);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #FFFFFF 0%, #A8E6CF 28%, #FCD47E 55%, #FFA578 80%, #FFFFFF 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: brandLiveColorShimmer 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 8px rgba(110, 189, 142, 0.3));
}

@keyframes brandLiveColorShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.brand-tagline {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: linear-gradient(90deg, #FFA578, #FCD47E, #8BE4B2, #FFA578);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: brandTaglineFlow 6s linear infinite;
}

@keyframes brandTaglineFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.flying-petals-container {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 99;
}

.flying-petal {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  user-select: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flyAndFade 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

@keyframes flyAndFade {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translate(calc(var(--fly-x) * 0.3), calc(var(--fly-y) * 0.3)) scale(1.15) rotate(45deg);
  }
  60% {
    opacity: 0.85;
    transform: translate(calc(var(--fly-x) * 0.75), calc(var(--fly-y) * 0.75)) scale(0.95) rotate(calc(var(--fly-rot) * 0.7));
  }
  100% {
    opacity: 0;
    transform: translate(var(--fly-x), var(--fly-y)) scale(0.4) rotate(var(--fly-rot));
  }
}
