/* ═══════════════════════════════════════════════════════════
   PARENTELLO — UNIFIED DESIGN SYSTEM
   Consolidated from all mockup files
   Aesthetic: Warm Organic Pastel — soft, nurturing, alive
   ═══════════════════════════════════════════════════════════ */

/* ==========================================================
   1. CSS VARIABLES — Frontend
   ========================================================== */
:root {
  /* Core Palette — 2026 Cloud Dancer + Powdered Pastels (3 colors) */
  --pw-cream: #F5F4F0;       /* Cloud White — primary background */
  --pw-cream-deep: #EDECE7;   /* Deeper cloud */
  --pw-peach: #E8C4B8;        /* Warm Blush — secondary accent */
  --pw-peach-soft: #F5E6E0;   /* Blush light */
  --pw-coral: #D4A08E;        /* Blush deep — CTAs, buttons */
  --pw-coral-deep: #B8877A;   /* Blush darker */
  --pw-lavender: #A8B5A0;     /* Soft Sage — primary accent */
  --pw-lavender-soft: #E3EAE0; /* Sage light */
  --pw-lavender-deep: #8A9A82; /* Sage deep */
  --pw-mint: #A8B5A0;         /* Same as sage */
  --pw-mint-soft: #E3EAE0;    /* Sage light */
  --pw-mint-deep: #7A8C72;    /* Sage darker */
  --pw-sky: #B8C4B0;          /* Muted sage-sky */
  --pw-sky-soft: #E3EAE0;
  --pw-rose: #D4A08E;         /* Warm blush */
  --pw-rose-deep: #B8877A;
  --pw-sun: #E8D5A0;          /* Warm gold */
  --pw-sun-soft: #F5EDD4;

  /* Neutrals — warm-toned for calm feel */
  --pw-dark: #2D2D2D;
  --pw-dark-soft: #404040;
  --pw-gray: #636363;
  --pw-gray-light: #8A8A8A;
  --pw-gray-pale: #E5E5E0;
  --pw-white: #FFFFFF;
  --pw-border: #E5E5E0;

  /* Functional */
  --pw-success: #8A9A82;
  --pw-warning: #E8D5A0;
  --pw-danger: #C27A6A;
  --pw-info: #A8B5A0;

  /* Typography */
  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
  /* --font-hand / --font-handwritten removed — Caveat font not loaded */
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows — clean and modern */
  --shadow-sm: 0 1px 3px rgba(26, 27, 46, 0.06), 0 1px 2px rgba(26, 27, 46, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 27, 46, 0.08), 0 2px 4px rgba(26, 27, 46, 0.04);
  --shadow-lg: 0 12px 40px rgba(26, 27, 46, 0.12), 0 4px 12px rgba(26, 27, 46, 0.06);
  --shadow-glow: 0 0 30px rgba(124, 92, 252, 0.15);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  /* Dark surfaces (always dark regardless of theme) */
  --pw-surface-dark: #2D2D2D;
  --pw-surface-dark-text: #F0EFE8;
  --pw-surface-dark-muted: #8A8A8A;
  /* Button tokens */
  --pw-btn-bg: #8A9A82;
  --pw-btn-text: #FFFFFF;
  --pw-btn-hover: #7A8C72;
  --pw-btn-outline-bg: #FFFFFF;
  --pw-btn-outline-text: #2D2D2D;
  --pw-btn-outline-border: #E5E5E0;
  --pw-btn-outline-hover-border: #8A9A82;
  --pw-btn-outline-hover-text: #8A9A82;
  --pw-btn-danger-bg: #C27A6A;
  --pw-btn-danger-hover: #B06A5A;
  /* Navbar */
  --pw-navbar-bg: rgba(255,255,255,0.95);
  --pw-navbar-text: #2D2D2D;
  /* White RGB for opacity uses */
  --pw-bottom-nav-bg: rgba(255,255,255,0.97);
}

/* ══════════════════════════════════════════════════════════
   DARK MODE
   Auto: follows OS preference
   Manual: html[data-theme="dark"] set via JS
   Admin excluded: body.admin forces light
   ══════════════════════════════════════════════════════════ */

/* Auto dark (OS preference, unless user chose light) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --pw-cream: #1A1A18;
    --pw-cream-deep: #141412;
    --pw-white: #242422;
    --pw-dark: #F0EFE8;
    --pw-dark-soft: #C8C7BE;
    --pw-gray: #8A8A80;
    --pw-gray-light: #666660;
    --pw-gray-pale: #2E2E2A;
    --pw-border: #2E2E2A;
    --pw-peach-soft: #2A1E1A;
    --pw-lavender-soft: #1E2A1C;
    --pw-mint-soft: #1E2A1C;
    --pw-sky-soft: #1A2020;
    --pw-sun-soft: #26220E;
    --pw-danger: #E88A7A;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(168,181,160,0.15);
    /* Button tokens */
    --pw-btn-bg: #8A9A82;
    --pw-btn-text: #FFFFFF;
    --pw-btn-hover: #9AAB92;
    --pw-btn-outline-bg: #242422;
    --pw-btn-outline-text: #F0EFE8;
    --pw-btn-outline-border: #3E3E3A;
    --pw-btn-outline-hover-border: #8A9A82;
    --pw-btn-outline-hover-text: #A8B5A0;
    --pw-btn-danger-bg: #E88A7A;
    --pw-btn-danger-hover: #D47A6A;
    /* Navbar */
    --pw-navbar-bg: rgba(26,26,24,0.95);
    --pw-navbar-text: #F0EFE8;
    --pw-bottom-nav-bg: rgba(26,26,24,0.97);
    --pw-surface-dark: #141412;
    --pw-surface-dark-text: #F0EFE8;
    --pw-surface-dark-muted: #8A8A80;
    color-scheme: dark;
  }
}

/* Manual dark toggle */
html[data-theme="dark"] {
    --pw-cream: #1A1A18;
    --pw-cream-deep: #141412;
    --pw-white: #242422;
    --pw-dark: #F0EFE8;
    --pw-dark-soft: #C8C7BE;
    --pw-gray: #8A8A80;
    --pw-gray-light: #666660;
    --pw-gray-pale: #2E2E2A;
    --pw-border: #2E2E2A;
    --pw-peach-soft: #2A1E1A;
    --pw-lavender-soft: #1E2A1C;
    --pw-mint-soft: #1E2A1C;
    --pw-sky-soft: #1A2020;
    --pw-sun-soft: #26220E;
    --pw-danger: #E88A7A;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(168,181,160,0.15);
    --pw-btn-bg: #8A9A82;
    --pw-btn-text: #FFFFFF;
    --pw-btn-hover: #9AAB92;
    --pw-btn-outline-bg: #242422;
    --pw-btn-outline-text: #F0EFE8;
    --pw-btn-outline-border: #3E3E3A;
    --pw-btn-outline-hover-border: #8A9A82;
    --pw-btn-outline-hover-text: #A8B5A0;
    --pw-btn-danger-bg: #E88A7A;
    --pw-btn-danger-hover: #D47A6A;
    --pw-navbar-bg: rgba(26,26,24,0.95);
    --pw-navbar-text: #F0EFE8;
    --pw-bottom-nav-bg: rgba(26,26,24,0.97);
    --pw-surface-dark: #141412;
    --pw-surface-dark-text: #F0EFE8;
    --pw-surface-dark-muted: #8A8A80;
    color-scheme: dark;
}

/* Admin stays light always */
body.admin {
    color-scheme: light;
}

/* Dark mode specific overrides for hardcoded colors */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .navbar,
  html:not([data-theme="light"]) .mobile-menu {
    color: var(--pw-dark);
  }
}
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .mobile-menu {
    color: var(--pw-dark);
}

/* Testimonial tinted backgrounds */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .testimonial-card:nth-child(3n+1) { background: #2A2018 !important; }
  html:not([data-theme="light"]) .testimonial-card:nth-child(3n+2) { background: #1A2A1C !important; }
  html:not([data-theme="light"]) .testimonial-card:nth-child(3n+3) { background: #201A2A !important; }
}
html[data-theme="dark"] .testimonial-card:nth-child(3n+1) { background: #2A2018 !important; }
html[data-theme="dark"] .testimonial-card:nth-child(3n+2) { background: #1A2A1C !important; }
html[data-theme="dark"] .testimonial-card:nth-child(3n+3) { background: #201A2A !important; }

/* Danger tints — increase opacity for dark */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .action-box.dont { background: rgba(255,107,107,0.15); }
  html:not([data-theme="light"]) .quiz-answer.wrong { background: rgba(255,107,107,0.15); }
}
html[data-theme="dark"] .action-box.dont { background: rgba(255,107,107,0.15); }
html[data-theme="dark"] .quiz-answer.wrong { background: rgba(255,107,107,0.15); }

/* Modal overlay — darker for dark mode */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .modal-overlay,
  html:not([data-theme="light"]) .pw-notify-overlay { background: rgba(0,0,0,0.6); }
}
html[data-theme="dark"] .modal-overlay,
html[data-theme="dark"] .pw-notify-overlay { background: rgba(0,0,0,0.6); }

/* More sheet dark */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .more-sheet { background: var(--pw-cream); }
  html:not([data-theme="light"]) .more-sheet-item { background: var(--pw-white); }
  html:not([data-theme="light"]) .more-sheet-close { background: var(--pw-gray-pale); color: var(--pw-gray); }
}
html[data-theme="dark"] .more-sheet { background: var(--pw-cream); }
html[data-theme="dark"] .more-sheet-item { background: var(--pw-white); }
html[data-theme="dark"] .more-sheet-close { background: var(--pw-gray-pale); color: var(--pw-gray); }

/* Sidebar streak gradient — dark variant */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .sidebar-streak { background: linear-gradient(135deg, #2A2010, #2A2418); }
}
html[data-theme="dark"] .sidebar-streak { background: linear-gradient(135deg, #2A2010, #2A2418); }

/* Form inputs in dark mode */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) select,
  html:not([data-theme="light"]) input:not([type="checkbox"]):not([type="radio"]),
  html:not([data-theme="light"]) textarea {
    background: var(--pw-white);
    color: var(--pw-dark);
    border-color: var(--pw-gray-pale);
  }
}
html[data-theme="dark"] select,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea {
    background: var(--pw-white);
    color: var(--pw-dark);
    border-color: var(--pw-gray-pale);
}

/* ── Components with colored backgrounds — force readable text ── */

/* Dashboard daily tip card (sage gradient bg → force light text) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .dash-daily-tip { color: #FFFFFF; }
  html:not([data-theme="light"]) .dash-daily-tip h3 { color: #FFFFFF; }
  html:not([data-theme="light"]) .dash-daily-tip p { color: rgba(255,255,255,0.85); }
  html:not([data-theme="light"]) .dash-daily-tip-label { color: rgba(255,255,255,0.7); }
  html:not([data-theme="light"]) .dash-daily-tip-meta { color: rgba(255,255,255,0.6); }
}
html[data-theme="dark"] .dash-daily-tip { color: #FFFFFF; }
html[data-theme="dark"] .dash-daily-tip h3 { color: #FFFFFF; }
html[data-theme="dark"] .dash-daily-tip p { color: rgba(255,255,255,0.85); }
html[data-theme="dark"] .dash-daily-tip-label { color: rgba(255,255,255,0.7); }
html[data-theme="dark"] .dash-daily-tip-meta { color: rgba(255,255,255,0.6); }

/* CTA card (uses --pw-dark bg which flips to light — force inverted colors) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .cta-card { background: #1A1A18; }
  html:not([data-theme="light"]) .cta-card h2 { color: #FFFFFF; }
  html:not([data-theme="light"]) .cta-card p { color: rgba(255,255,255,0.7); }
  html:not([data-theme="light"]) .cta-card .cta-note { color: rgba(255,255,255,0.5); }
}
html[data-theme="dark"] .cta-card { background: #1A1A18; }
html[data-theme="dark"] .cta-card h2 { color: #FFFFFF; }
html[data-theme="dark"] .cta-card p { color: rgba(255,255,255,0.7); }
html[data-theme="dark"] .cta-card .cta-note { color: rgba(255,255,255,0.5); }

/* Daily tip page card (gradient soft bg — gets dark in dark mode, text ok) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .daily-tip-card { border: 1px solid var(--pw-gray-pale); }
  html:not([data-theme="light"]) .tip-badge { background: rgba(255,255,255,0.1); color: var(--pw-lavender); }
  html:not([data-theme="light"]) .tip-card-title { color: var(--pw-dark); }
  html:not([data-theme="light"]) .tip-card-excerpt { color: var(--pw-dark-soft); }
}
html[data-theme="dark"] .daily-tip-card { border: 1px solid var(--pw-gray-pale); }
html[data-theme="dark"] .tip-badge { background: rgba(255,255,255,0.1); color: var(--pw-lavender); }
html[data-theme="dark"] .tip-card-title { color: var(--pw-dark); }
html[data-theme="dark"] .tip-card-excerpt { color: var(--pw-dark-soft); }

/* Feature icons — soft bg becomes dark, need brighter colors */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .feature-card:nth-child(1) .feature-icon { background: rgba(212,160,142,0.2); }
  html:not([data-theme="light"]) .feature-card:nth-child(2) .feature-icon { background: rgba(168,181,160,0.2); }
  html:not([data-theme="light"]) .feature-card:nth-child(3) .feature-icon { background: rgba(138,154,130,0.2); }
  html:not([data-theme="light"]) .feature-card:nth-child(4) .feature-icon { background: rgba(184,196,176,0.2); }
  html:not([data-theme="light"]) .feature-card:nth-child(5) .feature-icon { background: rgba(212,160,142,0.2); }
  html:not([data-theme="light"]) .feature-card:nth-child(6) .feature-icon { background: rgba(232,213,160,0.2); }
}
html[data-theme="dark"] .feature-card:nth-child(1) .feature-icon { background: rgba(212,160,142,0.2); }
html[data-theme="dark"] .feature-card:nth-child(2) .feature-icon { background: rgba(168,181,160,0.2); }
html[data-theme="dark"] .feature-card:nth-child(3) .feature-icon { background: rgba(138,154,130,0.2); }
html[data-theme="dark"] .feature-card:nth-child(4) .feature-icon { background: rgba(184,196,176,0.2); }
html[data-theme="dark"] .feature-card:nth-child(5) .feature-icon { background: rgba(212,160,142,0.2); }
html[data-theme="dark"] .feature-card:nth-child(6) .feature-icon { background: rgba(232,213,160,0.2); }

/* Hero float cards — keep visible on dark */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hero-float-card { background: var(--pw-white); }
}
html[data-theme="dark"] .hero-float-card { background: var(--pw-white); }

/* Upgrade/premium cards — keep readable */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .upgrade-card { border: 1px solid var(--pw-gray-pale); }
  html:not([data-theme="light"]) .sidebar-upgrade { border: 1px solid var(--pw-gray-pale); }
}
html[data-theme="dark"] .upgrade-card { border: 1px solid var(--pw-gray-pale); }
html[data-theme="dark"] .sidebar-upgrade { border: 1px solid var(--pw-gray-pale); }

/* Crisis CTA — gradient soft bg, force readable */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .crisis-cta { border: 1px solid var(--pw-gray-pale); }
}
html[data-theme="dark"] .crisis-cta { border: 1px solid var(--pw-gray-pale); }

/* Pricing cards in dark mode */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pricing-card { background: var(--pw-white); border-color: var(--pw-gray-pale); }
  html:not([data-theme="light"]) .pricing-card.featured { border-color: var(--pw-coral); }
  html:not([data-theme="light"]) .lp-price-card { background: var(--pw-white); border-color: var(--pw-gray-pale); }
}
html[data-theme="dark"] .pricing-card { background: var(--pw-white); border-color: var(--pw-gray-pale); }
html[data-theme="dark"] .pricing-card.featured { border-color: var(--pw-coral); }
html[data-theme="dark"] .lp-price-card { background: var(--pw-white); border-color: var(--pw-gray-pale); }

/* Status badges — keep colored bg visible */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .status-badge.published,
  html:not([data-theme="light"]) .status-badge.active { background: rgba(5,150,105,0.15); }
  html:not([data-theme="light"]) .status-badge.draft,
  html:not([data-theme="light"]) .status-badge.trial { background: rgba(217,119,6,0.15); }
  html:not([data-theme="light"]) .status-badge.free { background: rgba(138,138,128,0.15); }
  html:not([data-theme="light"]) .status-badge.cancelled { background: rgba(232,138,122,0.15); }
}
html[data-theme="dark"] .status-badge.published,
html[data-theme="dark"] .status-badge.active { background: rgba(5,150,105,0.15); }
html[data-theme="dark"] .status-badge.draft,
html[data-theme="dark"] .status-badge.trial { background: rgba(217,119,6,0.15); }
html[data-theme="dark"] .status-badge.free { background: rgba(138,138,128,0.15); }
html[data-theme="dark"] .status-badge.cancelled { background: rgba(232,138,122,0.15); }

/* Onboarding — keep readable */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .ob-option { background: var(--pw-white); border-color: var(--pw-gray-pale); }
  html:not([data-theme="light"]) .ob-chip { background: var(--pw-white); border-color: var(--pw-gray-pale); }
  html:not([data-theme="light"]) .ob-time-btn { background: var(--pw-white); border-color: var(--pw-gray-pale); }
}
html[data-theme="dark"] .ob-option { background: var(--pw-white); border-color: var(--pw-gray-pale); }
html[data-theme="dark"] .ob-chip { background: var(--pw-white); border-color: var(--pw-gray-pale); }
html[data-theme="dark"] .ob-time-btn { background: var(--pw-white); border-color: var(--pw-gray-pale); }

/* Book cards — ensure visible on dark */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .book-card { background: var(--pw-white); }
  html:not([data-theme="light"]) .summary-card { background: var(--pw-white); border: 1px solid var(--pw-gray-pale); }
}
html[data-theme="dark"] .book-card { background: var(--pw-white); }
html[data-theme="dark"] .summary-card { background: var(--pw-white); border: 1px solid var(--pw-gray-pale); }

/* Flashcard */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .fc-card { background: var(--pw-white); border: 1px solid var(--pw-gray-pale); }
}
html[data-theme="dark"] .fc-card { background: var(--pw-white); border: 1px solid var(--pw-gray-pale); }

/* Quiz answers */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .quiz-answer { background: var(--pw-white); border-color: var(--pw-gray-pale); }
}
html[data-theme="dark"] .quiz-answer { background: var(--pw-white); border-color: var(--pw-gray-pale); }

/* Short cards */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .short-card { background: var(--pw-white); }
}
html[data-theme="dark"] .short-card { background: var(--pw-white); }

/* ==========================================================
   1b. CSS VARIABLES — Admin Light Theme (Apple/Stripe/Notion)
   ========================================================== */
body.admin {
  --a-bg: #F5F4F0;
  --a-bg2: #FFFFFF;
  --a-bg3: #EDECE7;
  --a-card: #FFFFFF;
  --a-border: #E5E5E0;
  --a-text: #2D2D2D;
  --a-text2: #636363;
  --a-text3: #8A8A8A;
  --a-coral: #D4A08E;
  --a-coral-deep: #B8877A;
  --a-lavender: #A8B5A0;
  --a-lavender-deep: #8A9A82;
  --a-mint: #8A9A82;
  --a-mint-deep: #7A8C72;
  --a-sun: #E8D5A0;
  --a-sky: #A8B5A0;
  --a-danger: #C27A6A;
  --a-success: #8A9A82;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* ==========================================================
   2. RESET & BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body.menu-open { overflow: hidden !important; }

body {
  font-family: var(--font-body);
  color: var(--pw-dark);
  background: var(--pw-cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }

/* ==========================================================
   3. TYPOGRAPHY
   ========================================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--pw-lavender);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--pw-dark);
  margin-bottom: 14px;
}
@media (min-width: 768px) { .section-title { font-size: 44px; } }

.section-subtitle {
  font-size: 16px;
  color: var(--pw-gray);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ==========================================================
   4. UTILITY CLASSES
   ========================================================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }

/* Animated blob backgrounds — neutralized for clean modern design */
.blob-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--pw-cream);
}
.blob-bg::before, .blob-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  animation: none;
}
.blob-bg::before {
  width: 600px; height: 600px;
  background: var(--pw-lavender);
  top: -200px; right: -200px;
}
.blob-bg::after {
  width: 500px; height: 500px;
  background: var(--pw-sky);
  bottom: -200px; left: -200px;
}

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pw-gray); padding: 16px 0 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--pw-gray); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--pw-lavender); }
.breadcrumb .sep { color: var(--pw-gray-light); font-size: 10px; }
.breadcrumb .current { color: var(--pw-dark-soft); font-weight: 600; }

/* Content card (shared) */
.content-card {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.content-card:hover {
  box-shadow: var(--shadow-md);
}

/* ==========================================================
   5. BUTTONS — unified: .btn (primary), .btn-outline, .btn-danger
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pw-btn-bg); color: var(--pw-btn-text);
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; font-family: inherit;
  border: none; cursor: pointer;
  transition: background 0.15s; text-decoration: none;
  line-height: 1.4;
}
.btn:hover { background: var(--pw-btn-hover); color: var(--pw-btn-text); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pw-btn-outline-bg); color: var(--pw-btn-outline-text);
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; font-family: inherit;
  border: 1px solid var(--pw-btn-outline-border); cursor: pointer;
  transition: all 0.15s; text-decoration: none;
  line-height: 1.4;
}
.btn-outline:hover { border-color: var(--pw-btn-outline-hover-border); color: var(--pw-btn-outline-hover-text); background: var(--pw-btn-outline-bg); }
.btn-outline:disabled { opacity: 0.5; pointer-events: none; }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pw-btn-danger-bg); color: #fff;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; font-family: inherit;
  border: none; cursor: pointer;
  transition: background 0.15s; text-decoration: none;
  line-height: 1.4;
}
.btn-danger:hover { background: var(--pw-btn-danger-hover); color: #fff; }
.btn-danger:disabled { opacity: 0.5; pointer-events: none; }

/* Contextual full-width buttons */
.auth-card .btn,
.auth-card .btn-outline,
.checkout-main .btn { width: 100%; }

/* ==========================================================
   6. CARDS (generic)
   ========================================================== */
.feature-card {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
}
.feature-card:nth-child(1)::before { background: linear-gradient(90deg, var(--pw-coral), var(--pw-peach)); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, var(--pw-lavender), var(--pw-lavender-soft)); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, var(--pw-mint), var(--pw-mint-soft)); }
.feature-card:nth-child(4)::before { background: linear-gradient(90deg, var(--pw-sky), var(--pw-sky-soft)); }
.feature-card:nth-child(5)::before { background: linear-gradient(90deg, var(--pw-rose), var(--pw-rose-deep)); }
.feature-card:nth-child(6)::before { background: linear-gradient(90deg, var(--pw-sun), var(--pw-sun-soft)); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card:nth-child(1) .feature-icon { background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.feature-card:nth-child(2) .feature-icon { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.feature-card:nth-child(3) .feature-icon { background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.feature-card:nth-child(4) .feature-icon { background: var(--pw-sky-soft); color: #2196F3; }
.feature-card:nth-child(5) .feature-icon { background: var(--pw-rose); color: white; }
.feature-card:nth-child(6) .feature-icon { background: var(--pw-sun-soft); color: #E6A800; }

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pw-dark);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--pw-gray);
  line-height: 1.6;
}

/* ==========================================================
   7. NAVBAR
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 27, 46, 0.06);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pw-lavender-deep);
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--pw-lavender), var(--pw-lavender-deep));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 3px 12px rgba(124, 92, 252, 0.25);
}
.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--pw-dark-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--pw-lavender); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--pw-lavender);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-spring);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-back { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--pw-dark-soft); transition: color 0.2s; }
.nav-back:hover { color: var(--pw-lavender); }
.nav-back i { font-size: 12px; }

.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pw-sun-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--pw-dark);
}
.nav-streak i { color: var(--pw-lavender); }
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-lavender-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px solid var(--pw-white);
  box-shadow: var(--shadow-sm);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pw-white);
  border: 1px solid var(--pw-gray-pale);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.nav-lang:hover { border-color: var(--pw-lavender); }

.nav-cta {
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep));
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(255, 138, 108, 0.35);
  transition: all 0.3s var(--ease-spring);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 138, 108, 0.45);
}

.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-mobile-toggle span {
  width: 22px; height: 2px;
  background: var(--pw-surface-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
@media (min-width: 768px) { .nav-mobile-toggle { display: none; } }

/* Mobile Menu — handled in navbar section below */

/* ==========================================================
   8. FORMS & INPUTS
   ========================================================== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--pw-dark-soft);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--pw-gray-pale);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--pw-white);
  transition: border-color 0.2s;
  color: var(--pw-dark);
}
.form-input:focus { border-color: var(--pw-lavender); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1); }
.form-input::placeholder { color: var(--pw-gray-light); }
.form-hint { font-size: 12px; color: var(--pw-gray); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-toggle {
  display: flex;
  background: var(--pw-gray-pale);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 24px;
}
.form-toggle-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-gray);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.form-toggle-btn.active {
  background: var(--pw-white);
  color: var(--pw-dark);
  box-shadow: var(--shadow-sm);
}

/* Settings toggles */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--pw-gray-pale);
}
.setting-item:last-child { border-bottom: none; }
.setting-info { flex: 1; }
.setting-label { font-weight: 700; font-size: 14px; color: var(--pw-dark); }
.setting-desc { font-size: 12px; color: var(--pw-gray); }
.toggle {
  width: 48px; height: 26px;
  border-radius: 13px;
  background: var(--pw-gray-pale);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--pw-coral); }
.toggle::after {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 2px; left: 2px;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.toggle.on::after { transform: translateX(22px); }

/* ==========================================================
   9. BADGES & TAGS
   ========================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.tag-coral { background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.tag-lavender { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.tag-mint { background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.tag-sky { background: var(--pw-sky-soft); color: #1976D2; }
.tag-sun { background: var(--pw-sun-soft); color: #E6A800; }
.tag-rose { background: rgba(255, 181, 194, 0.3); color: var(--pw-rose-deep); }

/* Badges row */
.badges-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-item {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
}
.badge-item.earned { background: var(--pw-sun-soft); }
.badge-item.locked {
  background: var(--pw-gray-pale);
  opacity: 0.4;
  filter: grayscale(1);
}

/* ==========================================================
   10. FOOTER
   ========================================================== */
.footer {
  background: var(--pw-surface-dark);
  color: var(--pw-surface-dark-muted);
  padding: 48px 0 24px;
  margin-top: 40px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-links-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.footer-links-row a {
  font-size: 14px;
  color: var(--pw-surface-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-row a:hover { color: var(--pw-lavender); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 2fr 1fr; gap: 32px; margin-bottom: 32px; }
  .footer-links-row { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pw-white);
  margin-bottom: 12px;
}
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 300px; }

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pw-white);
  margin-bottom: 14px;
  font-size: 15px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 14px;
  color: var(--pw-gray-light);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--pw-lavender); }

/* Footer accordion (logged-in users) */
.footer-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--pw-gray-light);
  cursor: pointer;
  padding: 0 0 16px;
  font-family: inherit;
}
.footer-accordion-label {
  font-size: 13px;
  opacity: 0.6;
}
.footer-accordion-icon {
  font-size: 12px;
  opacity: 0.5;
  transition: transform 0.3s;
}
.footer-accordion-toggle[aria-expanded="true"] .footer-accordion-icon {
  transform: rotate(180deg);
}
.footer-accordion-body {
  padding: 16px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-accordion-body .footer-links-row {
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.footer-disclaimer {
  font-size: 11px;
  max-width: 700px;
  line-height: 1.5;
  opacity: 0.7;
  margin-top: 8px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

/* ==========================================================
   11. LANDING PAGE — Deepstash-inspired redesign
   Noise grain, 3D buttons, bold type, scroll animations
   ========================================================== */

/* Noise grain overlay — disabled for clean modern look */
.lp-grain {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  display: none;
}

/* Scroll-reveal animation */
.lp-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Authority bar — pill badges */
.authority-bar {
  padding: 16px 0;
  background: transparent;
}
.authority-items {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.authority-items span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pw-white);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--pw-dark-soft);
  border: 2px solid var(--pw-gray-pale);
  white-space: nowrap;
}
.authority-items i {
  color: var(--pw-lavender);
}
@media (max-width: 640px) {
  .authority-items { gap: 8px; }
  .authority-items span { font-size: 11px; padding: 6px 12px; }
}

/* ==========================================================
   11a. LANDING PAGE — Hero (full-vh, bold Deepstash style)
   ========================================================== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 14px 0 32px;
  position: relative;
  overflow: hidden;
  background: var(--pw-cream);
}
@media (min-width: 768px) { .hero { min-height: 90vh; padding: 14px 0 32px; } }

/* Subtle gradient orbs for depth (no blobs) */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.2) 0%, transparent 70%);
  top: -200px; right: -150px;
  opacity: 1;
  animation: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
  bottom: -200px; left: -150px;
  opacity: 1;
  animation: none;
}
.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .hero-split {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
}
@media (min-width: 960px) {
  .hero-text { text-align: left; max-width: 560px; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .hero h1 { font-size: 56px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 64px; } }

.hero-highlight {
  background: linear-gradient(135deg, #FFD93D, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 19px; } }
@media (min-width: 960px) { .hero-subtitle { margin-left: 0; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  justify-content: center;
}
@media (min-width: 960px) { .hero-actions { justify-content: flex-start; } }

.hero-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  margin-top: 4px;
}

/* Hero visual — floating cards grid */
.hero-visual {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 440px;
}
@media (min-width: 960px) { .hero-visual { max-width: 500px; } }

.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  perspective: 800px;
}

.hero-float-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
  animation: floatCard 6s ease-in-out infinite alternate;
}
.hero-float-card:nth-child(2) { animation-delay: -1.5s; }
.hero-float-card:nth-child(3) { animation-delay: -3s; }
.hero-float-card:nth-child(4) { animation-delay: -4.5s; }

.hero-float-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.hero-float-card .hfc-icon {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}
.hfc-coral .hfc-icon { background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.hfc-lavender .hfc-icon { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.hfc-mint .hfc-icon { background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.hfc-sun .hfc-icon { background: var(--pw-sun-soft); color: #b45309; }

.hero-float-card .hfc-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: #FFFFFF;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-float-card .hfc-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================
   11a2. LANDING PAGE — Topic cards (Deepstash horizontal scroll)
   ========================================================== */
.topic-cards-section {
  padding: 14px 0 32px;
}

.topic-cards-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 24px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.topic-cards-scroll::-webkit-scrollbar { display: none; }

.topic-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  scroll-snap-align: start;
  border: 3px solid transparent;
  transition: all 0.3s var(--ease-spring);
  cursor: default;
}
.topic-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: currentColor;
}
.topic-card i { font-size: 16px; }

.tc-coral { background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.tc-coral i { color: var(--pw-coral); }
.tc-peach { background: var(--pw-peach-soft); color: #C67A4B; }
.tc-peach i { color: var(--pw-peach); }
.tc-lavender { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.tc-lavender i { color: var(--pw-lavender); }
.tc-mint { background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.tc-mint i { color: var(--pw-mint); }
.tc-sun { background: var(--pw-sun-soft); color: #A6880A; }
.tc-sun i { color: var(--pw-sun); }
.tc-sky { background: var(--pw-sky-soft); color: #3A8BBF; }
.tc-sky i { color: var(--pw-sky); }

/* ==========================================================
   11a3. LANDING PAGE — Explore content preview (Deepstash card-flip style)
   ========================================================== */
.explore-section {
  padding: 14px 0 32px;
  background: var(--pw-surface-dark);
  border-radius: 32px;
  margin: 0 16px 50px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .explore-section { padding: 14px 0 40px; margin: 0 24px 20px; } }

/* Clean gradient overlay on dark section (noise removed) */
.explore-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.explore-section .section-title {
  color: var(--pw-surface-dark-text);
}
.explore-section .section-subtitle {
  color: var(--pw-surface-dark-muted);
}

.explore-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 0 16px;
}

.explore-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  color: var(--pw-surface-dark-muted);
  border: 2px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.explore-pill:hover {
  background: rgba(255,255,255,0.12);
  color: var(--pw-surface-dark-text);
  border-color: rgba(255,255,255,0.2);
}
.explore-pill.active {
  background: rgba(255,255,255,0.2);
  color: var(--pw-surface-dark-text);
  border-color: rgba(255,255,255,0.3);
}
.explore-pill.active i { color: var(--pw-lavender); }

.explore-preview {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border-radius: 24px;
  padding: 28px;
  border: 2px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}
@media (min-width: 640px) {
  .explore-preview {
    flex-direction: row;
    gap: 36px;
    padding: 36px;
  }
}

.explore-book-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.explore-book-cover {
  width: 160px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.3);
  display: flex;
}

.explore-book-spine {
  width: 14px;
  background: linear-gradient(180deg, var(--pw-coral-deep), var(--pw-coral));
  flex-shrink: 0;
}

.explore-book-front {
  flex: 1;
  background: linear-gradient(135deg, var(--pw-cream), var(--pw-cream-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 8px;
}
.explore-book-front i { font-size: 28px; color: var(--pw-coral); }
.explore-book-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--pw-dark);
  text-align: center;
  line-height: 1.3;
}
.explore-book-author { font-size: 11px; color: var(--pw-surface-dark-muted); }

.explore-book-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--pw-gray-light);
}
.explore-book-meta i { margin-right: 4px; }

.explore-content-side {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.explore-keypoint-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--pw-coral);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.explore-keypoint-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--pw-white);
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .explore-keypoint-title { font-size: 24px; } }

.explore-keypoint-text {
  font-size: 15px;
  color: var(--pw-gray-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.explore-pagination { margin-bottom: 20px; }
.explore-page-indicator {
  font-size: 12px;
  color: var(--pw-gray);
  background: rgba(255,255,255,0.06);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.explore-cta { align-self: flex-start; }

/* ==========================================================
   11b. LANDING PAGE — Prose / Storytelling (Deepstash bold style)
   ========================================================== */
.landing-prose {
  padding: 14px 0 32px;
}
@media (min-width: 768px) { .landing-prose { padding: 14px 0 32px; } }

.prose-block {
  max-width: 640px;
  margin: 0 auto;
}
.prose-block h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--pw-dark);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
@media (min-width: 768px) { .prose-block h2 { font-size: 38px; } }

.prose-block p {
  font-size: 17px;
  color: var(--pw-dark-soft);
  line-height: 1.85;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .prose-block p { font-size: 18px; } }

.prose-block em {
  font-style: italic;
  color: var(--pw-coral-deep);
  font-weight: 600;
}

.prose-bridge {
  font-weight: 800 !important;
  color: var(--pw-dark) !important;
  font-size: 21px !important;
  text-align: center;
  margin-top: 32px !important;
  letter-spacing: -0.02em;
}

.prose-highlight {
  background: var(--pw-white);
  padding: 24px 28px;
  border-radius: 20px;
  font-weight: 600 !important;
  color: var(--pw-dark) !important;
  border-left: 4px solid var(--pw-coral);
}

/* Alternating section backgrounds — rounded cards */
.pain-section { background: var(--pw-white); border-radius: 32px; margin: 0 16px; }
@media (min-width: 768px) { .pain-section { margin: 0 24px; } }
.fomo-section { background: var(--pw-white); border-radius: 32px; margin: 0 16px; }
@media (min-width: 768px) { .fomo-section { margin: 0 24px; } }

.prose-dark {
  background: var(--pw-cream-deep);
  padding: 40px 32px;
  border-radius: 24px;
}
.prose-dark h2 { color: var(--pw-dark) !important; }
.prose-dark p { color: var(--pw-dark-soft) !important; }
.prose-dark em { color: var(--pw-coral-deep) !important; }
.prose-dark .prose-bridge { color: var(--pw-coral) !important; }
@media (max-width: 640px) { .prose-dark { padding: 28px 20px; } }

/* Inline CTA break */
.inline-cta {
  padding: 20px 0 40px;
}

/* ==========================================================
   11c. LANDING PAGE — Product Features (Deepstash bold cards)
   ========================================================== */
.product-section {
  padding: 14px 0 32px;
  background: var(--pw-white);
  border-radius: 32px;
  margin: 0 16px;
}
@media (min-width: 768px) { .product-section { padding: 14px 0 32px; margin: 0 24px; } }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }

.product-feature {
  background: var(--pw-cream);
  border-radius: 24px;
  padding: 28px 24px;
  border: 3px solid transparent;
  transition: all 0.3s var(--ease-spring);
  text-align: center;
}
.product-feature:hover {
  border-color: var(--pw-coral);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-feature-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  margin: 0 auto 16px;
}
.product-feature-icon.color-coral { background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.product-feature-icon.color-sun { background: var(--pw-sun-soft); color: #b45309; }
.product-feature-icon.color-lavender { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.product-feature-icon.color-mint { background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.product-feature-icon.color-peach { background: var(--pw-peach-soft); color: #be185d; }

.product-feature-content h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--pw-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.product-feature-content p {
  font-size: 14px;
  color: var(--pw-gray);
  line-height: 1.65;
}

/* ==========================================================
   11d. LANDING PAGE — Benefits (Deepstash chunky cards)
   ========================================================== */
.benefits-section {
  padding: 14px 0 32px;
}
@media (min-width: 768px) { .benefits-section { padding: 14px 0 32px; } }

.benefits-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: var(--pw-white);
  border-radius: 20px;
  border: 3px solid var(--pw-gray-pale);
  transition: all 0.3s var(--ease-spring);
}
.benefit-item:hover {
  border-color: var(--pw-mint);
  transform: translateX(6px);
}
.benefit-check {
  color: var(--pw-white);
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep));
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.benefit-item p {
  font-size: 16px;
  color: var(--pw-dark-soft);
  line-height: 1.6;
}
.benefit-item strong {
  color: var(--pw-dark);
  font-weight: 700;
}

/* ==========================================================
   11d2. LANDING PAGE — What's Included (Deepstash checklist card)
   ========================================================== */
.included-section {
  padding: 14px 0 32px;
}
.included-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--pw-white);
  border-radius: 32px;
  padding: 48px 36px;
  border: 3px solid var(--pw-gray-pale);
}
.included-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--pw-dark);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -0.02em;
}
.included-list {
  list-style: none;
}
.included-list li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--pw-dark-soft);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--pw-gray-pale);
}
.included-list li:last-child { border-bottom: none; }
.included-list li i {
  color: var(--pw-white);
  background: linear-gradient(135deg, var(--pw-mint), var(--pw-mint-deep));
  width: 24px; height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* ==========================================================
   11d3. LANDING PAGE — Bonuses (Deepstash bold cards)
   ========================================================== */
.bonuses-section {
  padding: 14px 0 32px;
  background: var(--pw-white);
  border-radius: 32px;
  margin: 0 16px;
}
@media (min-width: 768px) { .bonuses-section { padding: 14px 0 32px; margin: 0 24px; } }

.bonuses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .bonuses-grid { grid-template-columns: 1fr 1fr 1fr; } }

.bonus-card {
  background: var(--pw-cream);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  border: 3px solid transparent;
  transition: all 0.3s var(--ease-spring);
}
.bonus-card:hover {
  border-color: var(--pw-lavender);
  transform: translateY(-4px);
}
.bonus-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep));
  color: white;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.bonus-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--pw-dark);
  margin-bottom: 10px;
}
.bonus-card p {
  font-size: 14px;
  color: var(--pw-gray);
  line-height: 1.65;
}

/* CTA note */
.cta-note {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 16px;
  font-weight: 500;
}

/* Section CTA centered */
.section-cta {
  text-align: center;
}

/* ==========================================================
   11e. LANDING PAGE — Features grid (kept for features section if used)
   ========================================================== */
.features { padding: 14px 0 32px; position: relative; }
@media (min-width: 768px) { .features { padding: 14px 0 32px; } }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ==========================================================
   11c2. LANDING PAGE — How It Works (Deepstash bold steps)
   ========================================================== */
.how-it-works {
  padding: 14px 0 32px;
  background: var(--pw-white);
  border-radius: 32px;
  margin: 0 16px;
}
@media (min-width: 768px) { .how-it-works { padding: 14px 0 32px; margin: 0 24px; } }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }

.step {
  text-align: center;
  position: relative;
  background: var(--pw-cream);
  border-radius: 24px;
  padding: 32px 24px;
  border: 3px solid transparent;
  transition: all 0.3s var(--ease-spring);
}
.step:hover {
  border-color: var(--pw-coral);
  transform: translateY(-4px);
}
.step-number {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 0 auto 16px;
  color: white;
}
.step:nth-child(1) .step-number { background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep)); }
.step:nth-child(2) .step-number { background: linear-gradient(135deg, var(--pw-lavender), var(--pw-lavender-deep)); }
.step:nth-child(3) .step-number { background: linear-gradient(135deg, var(--pw-mint), var(--pw-mint-deep)); }
.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-desc { font-size: 14px; color: var(--pw-gray); line-height: 1.6; }
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -22px; top: 42px;
    font-size: 22px;
    color: var(--pw-gray-light);
    z-index: 1;
  }
}

/* ==========================================================
   11d4. LANDING PAGE — Pricing (Deepstash bold cards)
   ========================================================== */
.pricing { padding: 14px 0 32px; }
@media (min-width: 768px) { .pricing { padding: 14px 0 40px; } }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.price-card {
  background: var(--pw-white);
  border-radius: 28px;
  padding: 36px;
  border: 3px solid var(--pw-gray-pale);
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease-spring);
}
.price-card:hover { border-color: var(--pw-lavender); transform: translateY(-4px); }
.price-card.popular {
  border-color: var(--pw-coral);
  border-width: 3px;
  box-shadow: 0 12px 40px rgba(255, 138, 108, 0.2);
}
.price-card.popular::before {
  content: 'Cel mai popular';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep));
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.price-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.price-amount { font-family: var(--font-display); font-weight: 800; font-size: 48px; color: var(--pw-dark); line-height: 1; letter-spacing: -0.03em; }
.price-amount small { font-size: 16px; font-weight: 600; color: var(--pw-gray); }
.price-period { font-size: 13px; color: var(--pw-gray); margin-bottom: 20px; }
.price-save {
  display: inline-block;
  background: var(--pw-mint-soft); color: var(--pw-mint-deep);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.price-features li {
  padding: 10px 0; font-size: 14px; color: var(--pw-dark-soft);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--pw-gray-pale);
}
.price-features li:last-child { border-bottom: none; }
.price-features li i { color: var(--pw-success); font-size: 14px; }
.price-cta {
  width: 100%; padding: 16px; border-radius: var(--radius-full);
  font-weight: 800; font-size: 15px; transition: all 0.15s ease;
  border-bottom: 4px solid transparent;
}
.price-card.popular .price-cta {
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep));
  color: white;
  border-bottom-color: #c5523a;
  box-shadow: 0 4px 15px rgba(255, 138, 108, 0.3);
}
.price-card.popular .price-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 138, 108, 0.45);
}
.price-card.popular .price-cta:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}
.price-card:not(.popular) .price-cta {
  background: var(--pw-cream); color: var(--pw-dark);
  border: 3px solid var(--pw-gray-pale);
  border-bottom-width: 5px;
}
.price-card:not(.popular) .price-cta:hover {
  border-color: var(--pw-coral); color: var(--pw-coral);
}
.price-card:not(.popular) .price-cta:active {
  transform: translateY(1px);
  border-bottom-width: 3px;
}

/* ==========================================================
   11e. LANDING PAGE — Testimonials (Deepstash marquee-style)
   ========================================================== */
.testimonials {
  padding: 14px 0 32px;
  overflow: hidden;
}
@media (min-width: 768px) { .testimonials { padding: 14px 0 32px; } }

/* Marquee auto-scroll container */
.testimonials-marquee {
  display: flex;
  gap: 20px;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}
.testimonials-marquee:hover {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonials-grid {
  display: flex;
  gap: 20px;
}

.testimonial-card {
  background: var(--pw-white);
  border-radius: 24px;
  padding: 28px 24px;
  border: 3px solid var(--pw-gray-pale);
  min-width: 300px;
  max-width: 340px;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-spring);
}
.testimonial-card:hover {
  border-color: var(--pw-lavender);
  transform: translateY(-4px);
}
.testimonial-stars {
  color: var(--pw-sun);
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--pw-dark-soft);
  line-height: 1.75;
  margin-bottom: 20px;
}
.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--pw-dark);
}
.testimonial-author span {
  font-size: 13px;
  color: var(--pw-gray);
}

/* ==========================================================
   11f. LANDING PAGE — FAQ (Deepstash card accordion)
   ========================================================== */
.faq {
  padding: 14px 0 32px;
}
@media (min-width: 768px) { .faq { padding: 14px 0 32px; } }

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--pw-white);
  border-radius: 20px;
  border: 3px solid var(--pw-gray-pale);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open {
  border-color: var(--pw-coral);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--pw-dark);
  text-align: left;
  gap: 16px;
}
.faq-question span { flex: 1; }
.faq-question i {
  font-size: 12px;
  color: var(--pw-gray);
  transition: transform 0.3s;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pw-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
  background: var(--pw-peach-soft);
  color: var(--pw-coral);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--pw-gray);
  line-height: 1.7;
}

/* Pricing guarantee text */
.pricing-guarantee {
  text-align: center;
  font-size: 14px;
  color: var(--pw-gray);
  margin-top: 24px;
  font-weight: 600;
}

/* ==========================================================
   11f2. LANDING PAGE — Scroll-driven Phone Mockup
   ========================================================== */
.phone-showcase {
  padding: 14px 0 32px;
  position: relative;
}

.phone-showcase-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.phone-showcase-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
@media (min-width: 800px) {
  .phone-showcase-main {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
}

.phone-frame {
  width: 280px;
  background: var(--pw-surface-dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(45, 42, 62, 0.25);
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px;
  background: var(--pw-surface-dark);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: var(--pw-cream);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/17;
}

.phone-screen-content {
  position: absolute;
  inset: 0;
  padding: 44px 16px 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.phone-screen-content.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Screen: Browse */
.ps-browse .ps-search {
  background: var(--pw-white);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border: 2px solid var(--pw-gray-pale);
}
.ps-browse .ps-search i { color: var(--pw-gray-light); font-size: 14px; }
.ps-browse .ps-search span { color: var(--pw-gray-light); font-size: 13px; }

.ps-book-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-book-item {
  background: var(--pw-white);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.ps-book-cover {
  width: 40px; height: 54px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.ps-book-cover.c1 { background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-peach)); color: var(--pw-coral-deep); }
.ps-book-cover.c2 { background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-lavender)); color: var(--pw-lavender-deep); }
.ps-book-cover.c3 { background: linear-gradient(135deg, var(--pw-mint-soft), var(--pw-mint)); color: var(--pw-mint-deep); }
.ps-book-info { min-width: 0; }
.ps-book-info strong { display: block; font-size: 12px; font-weight: 700; color: var(--pw-dark); line-height: 1.3; }
.ps-book-info small { font-size: 10px; color: var(--pw-gray); }

/* Screen: Key Ideas (Deepstash-style numbered list) */
.ps-ideas .ps-ideas-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--pw-coral); margin-bottom: 4px;
}
.ps-ideas .ps-ideas-book {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: var(--pw-dark); margin-bottom: 14px; line-height: 1.3;
}
.ps-ideas-list {
  display: flex; flex-direction: column; gap: 0;
}
.ps-idea-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pw-gray-pale);
  font-size: 11px; color: var(--pw-gray); line-height: 1.4;
}
.ps-idea-item:last-child { border-bottom: none; }
.ps-idea-item.active { color: var(--pw-dark); font-weight: 600; }
.ps-idea-item.done { color: var(--pw-gray-light); }
.ps-idea-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
  background: var(--pw-gray-pale); color: var(--pw-gray);
}
.ps-idea-item.active .ps-idea-num {
  background: var(--pw-coral); color: white;
}
.ps-idea-item.done .ps-idea-num {
  background: var(--pw-mint); color: white; font-size: 9px;
}
.ps-ideas-progress { margin-top: 14px; }
.ps-ideas-bar {
  height: 4px; border-radius: 2px; background: var(--pw-gray-pale); overflow: hidden;
}
.ps-ideas-fill {
  height: 100%; width: 20%; border-radius: 2px;
  background: linear-gradient(90deg, var(--pw-coral), var(--pw-lavender));
}

/* Screen: Highlight */
.ps-highlight .ps-hl-header {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: var(--pw-dark); margin-bottom: 14px;
}
.ps-hl-item {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--pw-dark-soft);
  border-left: 3px solid;
}
.ps-hl-item.hl-yellow { background: var(--pw-sun-soft); border-color: var(--pw-sun); }
.ps-hl-item.hl-coral { background: var(--pw-peach-soft); border-color: var(--pw-coral); }
.ps-hl-item.hl-mint { background: var(--pw-mint-soft); border-color: var(--pw-mint); }

/* Screen: Shorts */
.ps-shorts .ps-short-card {
  background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-peach-soft));
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 12px;
}
.ps-shorts .ps-short-category {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--pw-lavender-deep); margin-bottom: 8px;
}
.ps-shorts .ps-short-title {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: var(--pw-dark); margin-bottom: 8px; line-height: 1.3;
}
.ps-shorts .ps-short-body {
  font-size: 11px; color: var(--pw-dark-soft); line-height: 1.6;
}
.ps-shorts .ps-short-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.ps-shorts .ps-short-actions i {
  font-size: 18px;
  color: var(--pw-gray);
}

/* Screen: Quiz */
.ps-quiz .ps-quiz-header {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  color: var(--pw-dark); margin-bottom: 12px;
}
.ps-quiz .ps-quiz-q {
  font-size: 13px; font-weight: 700; color: var(--pw-dark);
  margin-bottom: 14px; line-height: 1.4;
}
.ps-quiz-option {
  background: var(--pw-white);
  border: 2px solid var(--pw-gray-pale);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--pw-dark-soft);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-quiz-option .opt-letter {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pw-cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; color: var(--pw-dark);
  flex-shrink: 0;
}
.ps-quiz-option.correct {
  border-color: var(--pw-mint);
  background: var(--pw-mint-soft);
}
.ps-quiz-option.correct .opt-letter {
  background: var(--pw-mint); color: white;
}

/* Phone info panel (tabs + description) */
.phone-info {
  flex: 1;
  min-width: 0;
}

.phone-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phone-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s;
  position: relative;
  color: var(--pw-gray);
}
.phone-tab i {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  background: var(--pw-gray-pale);
  color: var(--pw-gray);
  transition: all 0.25s;
  flex-shrink: 0;
}
.phone-tab span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.25s;
}
.phone-tab.active {
  border-left-color: var(--tab-color);
  color: var(--pw-dark);
}
.phone-tab.active i {
  background: var(--tab-color);
  color: white;
}
.phone-tab.active span {
  color: var(--pw-dark);
  font-weight: 800;
}
.phone-tab:hover:not(.active) {
  background: var(--pw-cream);
}

/* Auto-play progress bar on active tab */
.phone-tab-progress {
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--pw-gray-pale);
  border-radius: 1px;
  overflow: hidden;
}
.phone-tab-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: var(--tab-color, var(--pw-coral));
  border-radius: 1px;
  transition: none;
}
.phone-tab.active .phone-tab-progress::after {
  animation: tabProgress 5s linear forwards;
}
@keyframes tabProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Description area */
.phone-desc-area {
  padding: 16px 16px 0;
  min-height: 60px;
}
.phone-desc {
  display: none;
}
.phone-desc.active {
  display: block;
  animation: fadeInDesc 0.3s ease;
}
@keyframes fadeInDesc {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.phone-desc p {
  font-size: 15px;
  color: var(--pw-gray);
  line-height: 1.7;
  margin: 0;
}

/* Mobile: tabs become horizontal pills */
@media (max-width: 799px) {
  .phone-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .phone-tab {
    flex-direction: column;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 12px;
    min-width: 72px;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .phone-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--tab-color);
  }
  .phone-tab span {
    font-size: 11px;
    white-space: nowrap;
  }
  .phone-tab i {
    width: 28px; height: 28px;
    font-size: 12px;
  }
  .phone-tab-progress {
    display: none;
  }
  .phone-desc-area {
    text-align: center;
    padding: 12px 0 0;
  }
}

/* ==========================================================
   11f3. LANDING PAGE — Horizontal Feature Card Strips
   ========================================================== */
.card-strip {
  padding: 14px 0 32px;
  overflow: hidden;
}

.card-strip-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--pw-dark);
  margin-bottom: 36px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 0 24px;
}
@media (min-width: 768px) { .card-strip-title { font-size: 44px; padding: 0 40px; } }
.card-strip-title em {
  font-style: italic;
  color: var(--pw-coral);
}

.card-strip-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.card-strip-scroll::-webkit-scrollbar { display: none; }

.strip-card {
  flex-shrink: 0;
  width: 220px;
  min-height: 260px;
  border-radius: 24px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-spring);
}
.strip-card:hover { transform: translateY(-6px) scale(1.02); }

.strip-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  color: var(--pw-dark);
  margin-bottom: 8px;
}

.strip-card-icon {
  font-size: 48px;
  margin-top: auto;
  padding-top: 20px;
  opacity: 0.7;
}

/* Card colors */
.sc-coral { background: var(--pw-peach-soft); }
.sc-coral .strip-card-icon { color: var(--pw-coral); }
.sc-lavender { background: var(--pw-lavender-soft); }
.sc-lavender .strip-card-icon { color: var(--pw-lavender-deep); }
.sc-mint { background: var(--pw-mint-soft); }
.sc-mint .strip-card-icon { color: var(--pw-mint-deep); }
.sc-sun { background: var(--pw-sun-soft); }
.sc-sun .strip-card-icon { color: #b45309; }
.sc-sky { background: var(--pw-sky-soft); }
.sc-sky .strip-card-icon { color: #3A8BBF; }
.sc-rose { background: var(--pw-peach-soft); }
.sc-rose .strip-card-icon { color: var(--pw-rose-deep); }
.sc-dark { background: var(--pw-surface-dark); }
.sc-dark .strip-card-title { color: var(--pw-surface-dark-text); }
.sc-dark .strip-card-icon { color: var(--pw-coral); }

/* ==========================================================
   11f4. LANDING PAGE — Big Bold Statement with gradient circle
   ========================================================== */
.bold-statement {
  padding: 14px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bold-statement::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,108,0.25) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .bold-statement::before { width: 700px; height: 700px; }
}

.bold-statement h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--pw-dark);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 768px) { .bold-statement h2 { font-size: 52px; } }
@media (min-width: 1024px) { .bold-statement h2 { font-size: 64px; } }

.bold-statement h2 em {
  font-style: italic;
  color: var(--pw-coral);
}
.bold-statement .bs-sub {
  font-size: 16px;
  color: var(--pw-gray);
  margin-top: 20px;
  position: relative;
  font-weight: 600;
}

/* ==========================================================
   11f5. LANDING PAGE — Testimonials colored borders
   ========================================================== */
.testimonial-card:nth-child(1) { border-top: 4px solid var(--pw-coral); background: var(--pw-peach-soft); }
.testimonial-card:nth-child(2) { border-top: 4px solid var(--pw-mint); background: var(--pw-mint-soft); }
.testimonial-card:nth-child(3) { border-top: 4px solid var(--pw-lavender); background: var(--pw-lavender-soft); }

/* ==========================================================
   11g. LANDING PAGE — Final CTA (Deepstash bold card)
   ========================================================== */
.cta-section {
  padding: 14px 0 32px;
}
.cta-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--pw-surface-dark);
  border-radius: 32px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--pw-surface-dark-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}
@media (min-width: 768px) { .cta-card h2 { font-size: 36px; } }
.cta-card p {
  color: var(--pw-surface-dark-muted);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.7;
  position: relative;
}
.cta-card .btn {
  position: relative;
}
.cta-card .cta-note {
  color: var(--pw-surface-dark-muted);
  position: relative;
}

/* ==========================================================
   12. DASHBOARD
   ========================================================== */
.dash-header {
  padding: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.dash-welcome h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
}
.dash-welcome h2 span { color: var(--pw-lavender); }
.dash-child-info { font-size: 14px; color: var(--pw-gray); margin-top: 2px; }
.dash-child-info i { color: var(--pw-lavender); margin-right: 4px; }

.dash-streak-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--pw-sun-soft), var(--pw-peach-soft));
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  box-shadow: var(--shadow-sm);
}
.dash-streak-badge i { color: var(--pw-lavender); font-size: 20px; }

/* Daily Tip Card */
.dash-daily-tip {
  background: linear-gradient(135deg, var(--pw-lavender-deep) 0%, var(--pw-lavender) 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  color: #FFFFFF;
}
.dash-daily-tip:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dash-daily-tip h3 { color: #FFFFFF; }
.dash-daily-tip p { color: rgba(255, 255, 255, 0.8); }
.dash-daily-tip::after {
  content: '\2728';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 32px;
  opacity: 0.4;
}
.dash-daily-tip-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7); margin-bottom: 10px;
}
.dash-daily-tip h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: #FFFFFF; margin-bottom: 8px; max-width: 80%;
}
.dash-daily-tip p {
  font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; max-width: 80%;
}
.dash-daily-tip-meta {
  display: flex; gap: 16px; margin-top: 14px;
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.dash-daily-tip-meta i { margin-right: 4px; color: rgba(255,255,255,0.8); }

/* Dashboard Grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .dash-grid { grid-template-columns: 2fr 1fr; } }

.dash-section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between;
}
.dash-section-title a { font-size: 13px; font-weight: 600; color: var(--pw-lavender); }

/* Book Cards */
.dash-books { display: grid; grid-template-columns: 1fr; gap: 12px; }

.book-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--pw-white); border-radius: var(--radius-lg);
  padding: 16px; border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-smooth); cursor: pointer;
  overflow: hidden;
}
.book-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.book-card-header { min-width: 0; }
.book-card-body { display: flex; gap: 14px; align-items: flex-start; }
.book-cover {
  width: 90px; min-width: 90px; min-height: 120px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; position: relative; overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.book-card:nth-child(3n+1) .book-cover { background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-peach)); }
.book-card:nth-child(3n+2) .book-cover { background: linear-gradient(135deg, var(--pw-mint-soft), var(--pw-mint)); }
.book-card:nth-child(3n+3) .book-cover { background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-lavender)); }
.book-info { flex: 1; min-width: 0; }
.book-title {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--pw-dark); margin-bottom: 2px;
  word-wrap: break-word; overflow-wrap: break-word;
}
.book-title a { color: inherit; text-decoration: none; }
.book-original-title {
  font-size: 11px; color: var(--pw-gray); font-style: italic;
  margin-bottom: 4px; display: block;
  word-wrap: break-word; overflow-wrap: break-word;
}
.book-author { font-size: 13px; color: var(--pw-gray); margin-bottom: 6px; }
.author-link { color: var(--pw-gray); text-decoration: none; transition: color 0.15s; }
.author-link:hover { color: var(--pw-lavender); text-decoration: underline; }
.active-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--pw-lavender-soft);
  border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
  color: var(--pw-lavender-deep); margin-bottom: 12px;
}
.active-filter i { margin-right: 4px; }
.active-filter-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--pw-lavender); color: #fff; font-size: 10px;
  text-decoration: none; transition: opacity 0.15s;
}
.active-filter-clear:hover { opacity: 0.8; }
.book-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.book-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-full); background: var(--pw-cream-deep); color: var(--pw-gray);
}
.book-time { font-size: 11px; color: var(--pw-gray); display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.book-time i { color: var(--pw-lavender); font-size: 10px; }

/* Category gradient backgrounds for book card covers */
.book-card[data-category="sleep"] .book-cover { background: linear-gradient(135deg, #667EEA, #764BA2); }
.book-card[data-category="nutrition"] .book-cover { background: linear-gradient(135deg, #F093FB, #F5576C); }
.book-card[data-category="emotional"] .book-cover { background: linear-gradient(135deg, #4FACFE, #00F2FE); }
.book-card[data-category="discipline"] .book-cover { background: linear-gradient(135deg, #43E97B, #38F9D7); }
.book-card[data-category="brain"] .book-cover { background: linear-gradient(135deg, #FA709A, #FEE140); }
.book-card[data-category="play"] .book-cover { background: linear-gradient(135deg, #A18CD1, #FBC2EB); }
.book-card[data-category="pregnancy"] .book-cover { background: linear-gradient(135deg, #FDCB6E, #E17055); }
.book-card[data-category="mental-health"] .book-cover { background: linear-gradient(135deg, #81ECEC, #74B9FF); }
.book-card[data-category="screens"] .book-cover { background: linear-gradient(135deg, #6C5CE7, #A29BFE); }
.book-card[data-category="health-safety"] .book-cover { background: linear-gradient(135deg, #55E6C1, #58B19F); }
.book-card[data-category="philosophies"] .book-cover { background: linear-gradient(135deg, #E056A0, #3D1C56); }
.book-card[data-category="special-needs"] .book-cover { background: linear-gradient(135deg, #FC5C7D, #6A82FB); }
.book-card[data-category="siblings"] .book-cover { background: linear-gradient(135deg, #F7971E, #FFD200); }
/* Category gradient backgrounds for book card headers (alternate selector) */
.book-card[data-category="sleep"] .book-card-header { background: linear-gradient(135deg, #667EEA, #764BA2); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="nutrition"] .book-card-header { background: linear-gradient(135deg, #F093FB, #F5576C); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="emotional"] .book-card-header { background: linear-gradient(135deg, #4FACFE, #00F2FE); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="discipline"] .book-card-header { background: linear-gradient(135deg, #43E97B, #38F9D7); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="brain"] .book-card-header { background: linear-gradient(135deg, #FA709A, #FEE140); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="play"] .book-card-header { background: linear-gradient(135deg, #A18CD1, #FBC2EB); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="pregnancy"] .book-card-header { background: linear-gradient(135deg, #FDCB6E, #E17055); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="mental-health"] .book-card-header { background: linear-gradient(135deg, #81ECEC, #74B9FF); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="screens"] .book-card-header { background: linear-gradient(135deg, #6C5CE7, #A29BFE); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="health-safety"] .book-card-header { background: linear-gradient(135deg, #55E6C1, #58B19F); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="philosophies"] .book-card-header { background: linear-gradient(135deg, #E056A0, #3D1C56); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="special-needs"] .book-card-header { background: linear-gradient(135deg, #FC5C7D, #6A82FB); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }
.book-card[data-category="siblings"] .book-card-header { background: linear-gradient(135deg, #F7971E, #FFD200); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; margin: -16px -16px 10px; }

/* ==========================================================
   13. SIDEBAR (Dashboard)
   ========================================================== */
.dash-sidebar { display: flex; flex-direction: column; gap: 20px; }

.dash-progress-card {
  background: var(--pw-white); border-radius: var(--radius-lg);
  padding: 24px; border: none; box-shadow: var(--shadow-sm);
}
.dash-progress-card h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.dash-progress-card h4 i { color: var(--pw-lavender); }

.progress-item { margin-bottom: 14px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--pw-dark-soft);
}
.progress-bar { height: 8px; background: var(--pw-gray-pale); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 10px; transition: width 1s var(--ease-smooth); }
.progress-fill.coral { background: linear-gradient(90deg, var(--pw-coral), var(--pw-peach)); }
.progress-fill.lavender { background: linear-gradient(90deg, var(--pw-lavender-deep), var(--pw-lavender)); }
.progress-fill.mint { background: linear-gradient(90deg, var(--pw-mint-deep), var(--pw-mint)); }
.progress-fill.sky { background: linear-gradient(90deg, #2196F3, var(--pw-sky)); }

/* ==========================================================
   14. LIBRARY
   ========================================================== */
.library-page { padding-bottom: 32px; }
.library-header { padding: 28px 0 24px; }
.library-header h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--pw-dark); margin-bottom: 6px; }
@media (min-width: 768px) { .library-header h1 { font-size: 34px; } }
.library-header p { font-size: 15px; color: var(--pw-gray); max-width: 500px; }

/* Filters */
.library-filters {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--pw-gray-pale);
}
.filter-btn {
  padding: 8px 18px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 700; color: var(--pw-dark-soft);
  background: var(--pw-white); border: 1px solid var(--pw-gray-pale);
  transition: all 0.2s; cursor: pointer;
}
.filter-btn:hover { border-color: var(--pw-lavender); color: var(--pw-lavender); }
.filter-btn.active { background: var(--pw-lavender); color: white; border-color: var(--pw-lavender); }

.library-search { display: flex; gap: 10px; margin-bottom: 24px; }
.library-search input {
  flex: 1; padding: 12px 18px; border-radius: var(--radius-full);
  border: 2px solid var(--pw-gray-pale); font-size: 14px;
  background: var(--pw-white); transition: border-color 0.2s; outline: none;
}
.library-search input:focus { border-color: var(--pw-lavender); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1); }
.library-search input::placeholder { color: var(--pw-gray-light); }

.library-count { font-size: 13px; color: var(--pw-gray); margin-bottom: 16px; }
.library-count strong { color: var(--pw-dark); }

/* Library grid */
.library-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .library-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .library-grid { grid-template-columns: 1fr 1fr 1fr; } }

.lib-card {
  background: var(--pw-white); border-radius: var(--radius-lg); padding: 20px;
  border: 1px solid rgba(45, 42, 62, 0.05); cursor: pointer;
  transition: all 0.3s; display: flex; flex-direction: column;
}
.lib-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lib-card-top { display: flex; gap: 14px; margin-bottom: 12px; }
.lib-card-cover {
  width: 56px; height: 70px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.lib-card:nth-child(1) .lib-card-cover { background: linear-gradient(135deg, #1a1a4e, #4a3f8a); }
.lib-card:nth-child(2) .lib-card-cover { background: linear-gradient(135deg, #2d5a27, #5cb88a); }
.lib-card:nth-child(3) .lib-card-cover { background: linear-gradient(135deg, #8B4513, #D2691E); }
.lib-card:nth-child(4) .lib-card-cover { background: linear-gradient(135deg, #b8860b, #ffd93d); }
.lib-card:nth-child(5) .lib-card-cover { background: linear-gradient(135deg, #4a148c, #7c6bc4); }
.lib-card:nth-child(6) .lib-card-cover { background: linear-gradient(135deg, #1565c0, #64b5f6); }
.lib-card-info { flex: 1; min-width: 0; }
.lib-card-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--pw-dark); line-height: 1.3; margin-bottom: 3px; }
.lib-card-author { font-size: 12px; color: var(--pw-gray); margin-bottom: 6px; }
.lib-card-stars { color: var(--pw-sun); font-size: 12px; letter-spacing: 1px; }
.lib-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lib-card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--pw-gray-pale);
}
.lib-card-time { font-size: 12px; color: var(--pw-gray); display: flex; align-items: center; gap: 5px; }
.lib-card-time i { color: var(--pw-lavender); font-size: 11px; }
.lib-card-cta { font-size: 12px; font-weight: 700; color: var(--pw-lavender); display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.lib-card:hover .lib-card-cta { gap: 8px; }

/* ==========================================================
   15. BOOK SUMMARY
   ========================================================== */
.book-page { padding-bottom: 32px; }
.book-hero { padding: 28px 0 0; }
.book-hero-inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .book-hero-inner { grid-template-columns: 1fr 320px; gap: 40px; } }

/* Book header */
.book-header { margin-bottom: 28px; }
.book-cover-large {
  width: 100%; max-width: 200px; aspect-ratio: 3/4;
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  font-size: 64px; margin-bottom: 20px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .book-cover-large { float: left; margin-right: 28px; margin-bottom: 10px; } }
.book-cover-large.sleep-bg { background: linear-gradient(135deg, #1a1a4e 0%, #2d2b6e 50%, #4a3f8a 100%); }
.book-cover-large::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1), transparent); pointer-events: none;
}
.book-header-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.book-header h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.25; color: var(--pw-dark); margin-bottom: 6px; }
@media (min-width: 768px) { .book-header h1 { font-size: 34px; } }
.book-author-name { font-size: 16px; color: var(--pw-gray); margin-bottom: 12px; }
.book-author-name strong { color: var(--pw-dark-soft); }
.book-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.book-stars { color: var(--pw-sun); font-size: 16px; letter-spacing: 2px; }
.book-rating-text { font-size: 13px; color: var(--pw-gray); }
.book-meta-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.book-meta-pill {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: var(--pw-white); border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--pw-dark-soft);
  border: 1px solid var(--pw-gray-pale);
}
.book-meta-pill i { color: var(--pw-lavender); font-size: 12px; }

/* About author */
.about-author {
  background: var(--pw-cream-deep); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 28px; display: flex; gap: 14px; align-items: flex-start;
}
.about-author-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pw-lavender-soft); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}
.about-author-text { font-size: 14px; color: var(--pw-dark-soft); line-height: 1.7; }
.about-author-text strong { color: var(--pw-dark); }

/* Core idea */
.core-idea {
  background: linear-gradient(135deg, var(--pw-lavender-soft) 0%, var(--pw-mint-soft) 100%);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; position: relative;
}
.core-idea::before { content: '\1F4A1'; position: absolute; top: 16px; right: 20px; font-size: 28px; opacity: 0.3; }
.core-idea-label { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pw-lavender-deep); margin-bottom: 8px; }
.core-idea p { font-size: 16px; color: var(--pw-dark); line-height: 1.7; font-weight: 500; max-width: 90%; }

/* Key takeaways */
.takeaways { margin-bottom: 32px; }
.takeaways-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--pw-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.takeaways-title i { color: var(--pw-lavender); }
.takeaway-item {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--pw-white);
  border-radius: var(--radius-md); margin-bottom: 10px; border: 1px solid rgba(45,42,62,0.04);
  transition: all 0.2s;
}
.takeaway-item:hover { box-shadow: var(--shadow-sm); }
.takeaway-num {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; flex-shrink: 0; color: white;
}
.takeaway-item:nth-child(1) .takeaway-num { background: linear-gradient(135deg, var(--pw-coral), var(--pw-peach)); }
.takeaway-item:nth-child(2) .takeaway-num { background: linear-gradient(135deg, var(--pw-lavender-deep), var(--pw-lavender)); }
.takeaway-item:nth-child(3) .takeaway-num { background: linear-gradient(135deg, var(--pw-mint-deep), var(--pw-mint)); }
.takeaway-item:nth-child(4) .takeaway-num { background: linear-gradient(135deg, #2196F3, var(--pw-sky)); }
.takeaway-item:nth-child(5) .takeaway-num { background: linear-gradient(135deg, var(--pw-rose-deep), var(--pw-rose)); }
.takeaway-item:nth-child(6) .takeaway-num { background: linear-gradient(135deg, #E6A800, var(--pw-sun)); }
.takeaway-text { font-size: 15px; color: var(--pw-dark-soft); line-height: 1.6; }
.takeaway-text strong { color: var(--pw-dark); }

/* Practical tips */
.practical-tips { background: var(--pw-mint-soft); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; border-left: 4px solid var(--pw-mint-deep); }
.practical-tips-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--pw-mint-deep); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.practical-tip { padding: 10px 0; padding-left: 28px; position: relative; font-size: 15px; color: var(--pw-dark-soft); line-height: 1.6; }
.practical-tip::before { content: '\2726'; position: absolute; left: 0; color: var(--pw-mint-deep); font-weight: 700; }
.practical-tip strong { color: var(--pw-dark); }

/* Quote */
.book-quote { background: var(--pw-white); border-radius: var(--radius-lg); padding: 28px 28px 28px 32px; margin: 28px 0; border-left: 4px solid var(--pw-lavender); position: relative; }
.book-quote::before { content: '\201C'; position: absolute; top: 8px; left: 14px; font-family: 'Caveat', cursive; font-size: 48px; color: var(--pw-lavender); line-height: 1; opacity: 0.4; }
.book-quote p { font-size: 17px; font-style: italic; color: var(--pw-dark); line-height: 1.7; margin-bottom: 8px; padding-left: 12px; }
.book-quote cite { font-size: 13px; color: var(--pw-gray); font-style: normal; padding-left: 12px; }

/* Full summary */
.full-summary { margin-bottom: 32px; }
.full-summary-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--pw-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.full-summary-title i { color: var(--pw-lavender-deep); }
.full-summary .tip-content h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--pw-dark); margin: 24px 0 10px; padding-left: 14px; position: relative; }
.full-summary .tip-content h3::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--pw-lavender); }

/* Flashcard preview */
.flashcard-section { margin-bottom: 32px; }
.flashcard-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--pw-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.flashcard-title i { color: var(--pw-sun); }
.flashcard-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .flashcard-grid { grid-template-columns: 1fr 1fr; } }
.flashcard {
  background: var(--pw-white); border-radius: var(--radius-md); padding: 18px;
  border: 1px solid rgba(45,42,62,0.06); cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.flashcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.flashcard-q { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--pw-dark); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.flashcard-q i { color: var(--pw-lavender-deep); margin-top: 2px; flex-shrink: 0; }
.flashcard-a { font-size: 13px; color: var(--pw-gray); line-height: 1.5; padding-left: 24px; display: none; }
.flashcard.revealed .flashcard-a { display: block; }
.flashcard-tap { font-size: 11px; color: var(--pw-gray-light); text-align: center; margin-top: 8px; font-style: italic; }
.flashcard.revealed .flashcard-tap { display: none; }

/* Book sidebar */
.book-sidebar { display: flex; flex-direction: column; gap: 16px; }
.book-progress-card { background: var(--pw-white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid rgba(45,42,62,0.05); }
.book-progress-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--pw-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.book-progress-card h4 i { color: var(--pw-lavender); }
.book-toc { list-style: none; }
.book-toc li { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--pw-dark-soft); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.book-toc li:hover { background: var(--pw-lavender-soft); color: var(--pw-lavender); }
.book-toc li i { width: 18px; text-align: center; font-size: 11px; color: var(--pw-gray-light); }
.book-toc li.active { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.book-toc li.active i { color: var(--pw-lavender); }
.book-buy-card { background: linear-gradient(135deg, var(--pw-cream-deep), var(--pw-peach-soft)); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.book-buy-card p { font-size: 13px; color: var(--pw-dark-soft); margin-bottom: 12px; line-height: 1.5; }
.book-buy-card a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--pw-white); border-radius: var(--radius-full); font-size: 13px; font-weight: 700; color: var(--pw-dark); transition: all 0.2s; border: 1px solid var(--pw-gray-pale); }
.book-buy-card a:hover { border-color: var(--pw-lavender); color: var(--pw-lavender); }
.similar-books-card { background: var(--pw-white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid rgba(45,42,62,0.05); }
.similar-books-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--pw-dark); margin-bottom: 14px; }
.similar-book { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pw-gray-pale); cursor: pointer; transition: all 0.2s; }
.similar-book:last-child { border-bottom: none; }
.similar-book:hover { padding-left: 6px; }
.similar-book-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.similar-book:nth-child(1) .similar-book-icon { background: var(--pw-mint-soft); }
.similar-book:nth-child(2) .similar-book-icon { background: var(--pw-lavender-soft); }
.similar-book:nth-child(3) .similar-book-icon { background: var(--pw-sky-soft); }
.similar-book-title { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--pw-dark); }
.similar-book-author { font-size: 11px; color: var(--pw-gray); }

/* Related content */
.related-section { margin-top: 48px; }
.related-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.related-title i { color: var(--pw-lavender); }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr 1fr; } }
.related-card { background: var(--pw-white); border-radius: var(--radius-md); padding: 18px; border: 1px solid rgba(45,42,62,0.05); cursor: pointer; transition: all 0.3s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.related-card:nth-child(1) .related-card-icon { background: var(--pw-peach-soft); }
.related-card:nth-child(2) .related-card-icon { background: var(--pw-mint-soft); }
.related-card:nth-child(3) .related-card-icon { background: var(--pw-lavender-soft); }
.related-card-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--pw-dark); margin-bottom: 4px; line-height: 1.3; }
.related-card-author { font-size: 12px; color: var(--pw-gray); margin-bottom: 8px; }
.related-card-meta { display: flex; gap: 8px; font-size: 11px; color: var(--pw-gray); }
.related-card-meta span { display: flex; align-items: center; gap: 4px; }
.related-card-meta i { color: var(--pw-lavender); font-size: 10px; }

/* ==========================================================
   16. DAILY TIP
   ========================================================== */
.tip-page { padding-bottom: 32px; }
.tip-hero { padding: 28px 0 0; }
.tip-hero-inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .tip-hero-inner { grid-template-columns: 1fr 320px; gap: 40px; } }
.tip-date { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pw-gray); margin-bottom: 12px; }
.tip-date i { color: var(--pw-lavender-deep); }
.tip-category-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; margin-bottom: 16px; background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.tip-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.25; color: var(--pw-dark); margin-bottom: 16px; }
@media (min-width: 768px) { .tip-title { font-size: 34px; } }
.tip-meta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; font-size: 13px; color: var(--pw-gray); }
.tip-meta-row span { display: flex; align-items: center; gap: 6px; }
.tip-meta-row i { color: var(--pw-lavender); font-size: 12px; }
.tip-source-card { display: flex; align-items: center; gap: 14px; background: var(--pw-cream-deep); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 28px; border-left: 4px solid var(--pw-lavender); }
.tip-source-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--pw-lavender-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tip-source-text { font-size: 13px; color: var(--pw-dark-soft); }
.tip-source-text strong { color: var(--pw-dark); display: block; margin-bottom: 2px; }

/* Article content */
.tip-content { line-height: 1.8; font-size: 16px; color: var(--pw-dark-soft); }
@media (min-width: 768px) { .tip-content { font-size: 17px; } }
.tip-content h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--pw-dark); margin: 32px 0 14px; position: relative; padding-left: 16px; }
.tip-content h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(to bottom, var(--pw-coral), var(--pw-peach)); }
.tip-content p { margin-bottom: 16px; }
.tip-content strong { color: var(--pw-dark); font-weight: 700; }

/* Science callout */
.science-box { background: linear-gradient(135deg, var(--pw-lavender-soft) 0%, var(--pw-sky-soft) 100%); border-radius: var(--radius-lg); padding: 24px; margin: 24px 0; border-left: 4px solid var(--pw-lavender-deep); position: relative; }
.science-box::before { content: '\1F52C'; position: absolute; top: 16px; right: 20px; font-size: 24px; opacity: 0.3; }
.science-box-label { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pw-lavender-deep); margin-bottom: 8px; }
.science-box p { font-size: 15px; color: var(--pw-dark-soft); margin: 0; line-height: 1.7; }

/* Action box (Ce sa faci / Ce sa NU faci) */
.action-box { border-radius: var(--radius-lg); padding: 24px; margin: 20px 0; }
.action-box.do { background: var(--pw-mint-soft); border-left: 4px solid var(--pw-mint-deep); }
.action-box.dont { background: rgba(255, 107, 107, 0.08); border-left: 4px solid var(--pw-danger); }
.action-box-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.action-box.do .action-box-title { color: var(--pw-mint-deep); }
.action-box.dont .action-box-title { color: var(--pw-danger); }
.action-box ul { list-style: none; font-size: 15px; }
.action-box li { padding: 6px 0; padding-left: 24px; position: relative; line-height: 1.6; }
.action-box.do li::before { content: '\2713'; position: absolute; left: 0; color: var(--pw-mint-deep); font-weight: 700; }
.action-box.dont li::before { content: '\2717'; position: absolute; left: 0; color: var(--pw-danger); font-weight: 700; }

/* Tip sidebar */
.tip-sidebar { display: flex; flex-direction: column; gap: 16px; }
.tip-age-card { background: var(--pw-white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid rgba(45,42,62,0.05); }
.tip-age-card-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--pw-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.tip-age-card-title i { color: var(--pw-lavender); }
.tip-age-range { display: flex; gap: 6px; flex-wrap: wrap; }
.age-pill { padding: 5px 12px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; background: var(--pw-gray-pale); color: var(--pw-gray); }
.age-pill.active { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.tip-nav-card { background: var(--pw-white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid rgba(45,42,62,0.05); }
.tip-nav-card-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--pw-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tip-nav-card-title i { color: var(--pw-lavender-deep); }
.tip-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; color: var(--pw-dark-soft); cursor: pointer; transition: all 0.2s; }
.tip-nav-item:hover { background: var(--pw-lavender-soft); color: var(--pw-lavender); }
.tip-nav-item i { width: 20px; text-align: center; color: var(--pw-gray-light); font-size: 12px; }
.tip-nav-item.current { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.tip-nav-item.current i { color: var(--pw-lavender); }
.tip-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--pw-gray-pale); }

/* ==========================================================
   17. ONBOARDING
   ========================================================== */
.onboarding {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--pw-cream) 0%, var(--pw-white) 40%, var(--pw-lavender-soft) 100%);
  position: relative;
  overflow: hidden;
}
.onboarding::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pw-peach-soft) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.onboarding::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pw-mint-soft) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

/* Progress */
.onboarding-progress { padding: 24px 0 0; position: relative; z-index: 1; }
.onboarding-progress-bar {
  height: 6px;
  background: rgba(45, 42, 62, 0.08);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.onboarding-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pw-coral), var(--pw-peach), var(--pw-coral));
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 0.6s var(--ease-spring);
  animation: progressShimmer 3s ease infinite;
}
@keyframes progressShimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.onboarding-step-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--pw-gray);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Skip button */
.ob-skip-btn {
  font-size: 13px;
  color: var(--pw-gray);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ob-skip-btn:hover { color: var(--pw-lavender); background: var(--pw-lavender-soft); }

/* Body */
.onboarding-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 32px;
  position: relative;
  z-index: 1;
}

/* Card */
.onboarding-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  background: var(--pw-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--pw-border);
}
@media (max-width: 600px) {
  .onboarding-card { padding: 20px 16px; border-radius: var(--radius-lg); }
  .ob-title { font-size: 20px; margin-bottom: 6px; }
  .ob-subtitle { font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
  .ob-illustration { margin-bottom: 14px; }
  .ob-illustration svg { width: 80px; height: 80px; }
  .ob-options { grid-template-columns: 1fr 1fr !important; gap: 10px; margin-bottom: 16px; }
  .ob-option { padding: 14px 10px; gap: 6px; }
  .ob-option-icon { font-size: 26px; }
  .ob-option-icon svg { width: 36px; height: 36px; }
  .ob-option-label { font-size: 13px; }
  .ob-chips { gap: 8px; margin-bottom: 16px; }
  .ob-chip { padding: 8px 16px; font-size: 13px; }
  .ob-time-options { gap: 10px; margin-bottom: 16px; }
  .ob-time-btn { width: 100px; padding: 16px 10px; }
  .ob-time-num { font-size: 26px; }
  .ob-select { padding: 12px 40px 12px 16px; font-size: 14px; margin-bottom: 16px; }
  .ob-stats-row { gap: 10px; }
  .ob-stat { padding: 14px 10px; }
  .ob-stat-num { font-size: 24px; }
  .onboarding-body { padding: 8px 0 16px; }
  .ob-form .form-group { margin-bottom: 12px; }
}

/* Illustration */
.ob-illustration {
  margin-bottom: 24px;
  animation: floatIn 0.7s var(--ease-spring);
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Titles */
.ob-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--pw-dark);
  margin-bottom: 10px;
  line-height: 1.3;
  animation: fadeUp 0.5s ease 0.1s both;
}
@media (min-width: 768px) { .ob-title { font-size: 28px; } }
.ob-subtitle {
  font-size: 15px;
  color: var(--pw-gray);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  animation: fadeUp 0.5s ease 0.2s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Option grid — always 2 columns */
.ob-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px;
  margin-bottom: 24px;
}
.ob-options-compact { gap: 10px; }
.ob-option {
  background: var(--pw-white);
  border: 2px solid var(--pw-gray-pale);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.ob-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-lavender-soft));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.ob-option:hover {
  border-color: var(--pw-lavender);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ob-option:hover::before { opacity: 0.3; }
.ob-option.selected {
  border-color: var(--pw-lavender);
  background: var(--pw-lavender-soft);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.15), var(--shadow-sm);
  transform: translateY(-2px);
}
.ob-option.selected::before { opacity: 0; }
.ob-option-icon { font-size: 32px; position: relative; z-index: 1; line-height: 1; }
.ob-option-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-dark);
  position: relative;
  z-index: 1;
}
.ob-option.selected .ob-option-label { color: var(--pw-lavender-deep); }

/* Chips (interests) */
.ob-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.ob-chip {
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: var(--pw-white);
  border: 2px solid var(--pw-gray-pale);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-dark-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-chip:hover {
  border-color: var(--pw-lavender);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.ob-chip.selected {
  border-color: var(--pw-lavender);
  background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-lavender-soft));
  color: var(--pw-lavender-deep);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.12);
}
.ob-chip i { font-size: 16px; }

/* Time buttons */
.ob-time-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}
.ob-time-btn {
  width: 120px;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: var(--pw-white);
  border: 2px solid var(--pw-gray-pale);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  text-align: center;
}
.ob-time-btn:hover {
  border-color: var(--pw-lavender);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ob-time-btn.selected {
  border-color: var(--pw-lavender);
  background: var(--pw-lavender-soft);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.15);
  transform: translateY(-2px);
}
.ob-time-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--pw-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.ob-time-btn.selected .ob-time-num { color: var(--pw-lavender-deep); }
.ob-time-label { font-size: 12px; color: var(--pw-gray); font-weight: 600; }

/* Select */
.ob-select {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 24px;
  padding: 16px 44px 16px 20px;
  border: 2px solid var(--pw-gray-pale);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  background: var(--pw-white);
  color: var(--pw-dark);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A7590'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.ob-select:focus {
  border-color: var(--pw-coral);
  box-shadow: 0 0 0 3px rgba(255,138,108,0.12);
  outline: none;
}

/* Country picker list */
.ob-country-item {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid var(--pw-gray-pale);
  white-space: nowrap;
}
.ob-country-item:last-child { border-bottom: none; }
.ob-country-item:active,
.ob-country-item:hover { background: var(--pw-mint-soft); }
.ob-country-item.selected {
  background: var(--pw-lavender-soft);
  font-weight: 700;
  color: var(--pw-lavender-deep);
}

/* Stats row (step 8) */
.ob-stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ob-stat {
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  min-width: 120px;
  flex: 1;
  max-width: 160px;
}
.ob-stat--coral { background: var(--pw-peach-soft); }
.ob-stat--purple { background: var(--pw-lavender-soft); }
.ob-stat--green { background: var(--pw-mint-soft); }
.ob-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 6px;
}
.ob-stat--coral .ob-stat-num { color: var(--pw-coral-deep); }
.ob-stat--purple .ob-stat-num { color: var(--pw-lavender-deep); }
.ob-stat--green .ob-stat-num { color: var(--pw-mint-deep); }
.ob-stat-label { font-size: 12px; color: var(--pw-gray); font-weight: 600; }

/* Form inside onboarding */
.ob-form { max-width: 400px; margin: 0 auto; }
.ob-hint { color: var(--pw-gray-light); font-size: 12px; font-weight: 400; }
.ob-required { color: var(--pw-coral); }
.ob-fine-print {
  font-size: 12px;
  color: var(--pw-gray);
  margin-top: 20px;
  line-height: 1.5;
}

/* Checkbox custom */
.ob-consent { display: flex; flex-direction: column; gap: 12px; }
.ob-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--pw-gray);
  cursor: pointer;
  line-height: 1.5;
  transition: color 0.2s;
}
.ob-checkbox:hover { color: var(--pw-dark-soft); }
.ob-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--pw-coral);
  flex-shrink: 0;
  border-radius: 4px;
  cursor: pointer;
}
.ob-checkmark { display: none; }

/* Navigation */
.ob-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 32px;
  position: relative;
  z-index: 1;
}
.ob-nav-spacer { flex: 1; }
.ob-nav-btn { min-width: 120px; }

/* Error */
.ob-error {
  display: none;
  text-align: center;
  color: var(--pw-danger);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  animation: shakeError 0.4s ease;
  position: relative;
  z-index: 1;
}
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Steps animation */
.ob-step { display: none; width: 100%; }
.ob-step.active { display: block; animation: stepIn 0.5s var(--ease-spring); }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .ob-options { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ob-option { padding: 16px 12px; }
  .ob-time-options { gap: 10px; }
  .ob-time-btn { width: 100px; padding: 18px 12px; }
  .ob-time-num { font-size: 26px; }
  .ob-stats-row { gap: 10px; }
  .ob-stat { padding: 16px; min-width: 90px; }
  .ob-stat-num { font-size: 28px; }
  .ob-nav { padding: 0 0 20px; }
}

/* ==========================================================
   18. COURSE
   ========================================================== */
.course-page { padding: 14px 0 32px; }
.course-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .course-layout { grid-template-columns: 280px 1fr; } }
.course-sidebar { background: var(--pw-white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid rgba(45,42,62,0.05); height: fit-content; position: sticky; top: 80px; }
@media (max-width: 767px) { .course-sidebar { order: 2; } }
.course-sidebar-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--pw-dark); margin-bottom: 4px; }
.course-sidebar-meta { font-size: 12px; color: var(--pw-gray); margin-bottom: 16px; display: flex; gap: 12px; }
.course-sidebar-meta span { display: flex; align-items: center; gap: 4px; }
.course-sidebar-meta i { color: var(--pw-coral); font-size: 10px; }
.course-sidebar-progress { margin-bottom: 16px; }
.course-sidebar-progress-bar { height: 6px; background: var(--pw-gray-pale); border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.course-sidebar-progress-fill { height: 100%; background: linear-gradient(90deg, var(--pw-mint-deep), var(--pw-mint)); border-radius: 10px; }
.course-sidebar-progress-text { font-size: 11px; color: var(--pw-gray); font-weight: 600; }
.lesson-list { list-style: none; }
.lesson-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; font-size: 14px; font-weight: 600; color: var(--pw-dark-soft); }
.lesson-item:hover { background: var(--pw-cream-deep); }
.lesson-item.active { background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.lesson-item.completed { color: var(--pw-mint-deep); }
.lesson-item.locked { opacity: 0.4; cursor: default; }
.lesson-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; border: 2px solid var(--pw-gray-pale); color: var(--pw-gray); }
.lesson-item.active .lesson-icon { background: var(--pw-coral); color: white; border-color: var(--pw-coral); }
.lesson-item.completed .lesson-icon { background: var(--pw-mint-deep); color: white; border-color: var(--pw-mint-deep); }
.lesson-item.locked .lesson-icon { background: var(--pw-gray-pale); }
.lesson-title-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-time { font-size: 11px; color: var(--pw-gray-light); flex-shrink: 0; }
.course-content { min-width: 0; }
.course-content-header { margin-bottom: 24px; }
.course-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); margin-bottom: 12px; }
.course-content h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--pw-dark); line-height: 1.3; margin-bottom: 6px; }
@media (min-width: 768px) { .course-content h1 { font-size: 28px; } }
.course-lesson-num { font-size: 13px; color: var(--pw-gray); font-weight: 600; }
.course-body { font-size: 16px; color: var(--pw-dark-soft); line-height: 1.8; }
@media (min-width: 768px) { .course-body { font-size: 17px; } }
.course-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--pw-dark); margin: 28px 0 12px; padding-left: 14px; position: relative; }
.course-body h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(to bottom, var(--pw-lavender-deep), var(--pw-lavender)); }
.course-body p { margin-bottom: 14px; }
.course-body strong { color: var(--pw-dark); }
.course-body ul { margin: 12px 0; padding-left: 24px; }
.course-body li { margin-bottom: 8px; }
.course-tip-box { background: linear-gradient(135deg, var(--pw-mint-soft), var(--pw-sky-soft)); border-radius: var(--radius-lg); padding: 20px; margin: 20px 0; border-left: 4px solid var(--pw-mint-deep); }
.course-tip-box-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--pw-mint-deep); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.course-tip-box p { font-size: 14px; color: var(--pw-dark-soft); margin: 0; line-height: 1.6; }
.course-nav-buttons { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--pw-gray-pale); }

/* ==========================================================
   19. FLASHCARDS
   ========================================================== */
.fc-page { padding: 14px 0 32px; max-width: 600px; margin: 0 auto; }
.fc-header { text-align: center; margin-bottom: 24px; }
.fc-header-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--pw-dark); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.fc-header-title i { color: var(--pw-sun); }
.fc-header-meta { font-size: 13px; color: var(--pw-gray); }
.fc-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.fc-progress-bar { flex: 1; height: 8px; background: var(--pw-gray-pale); border-radius: 10px; overflow: hidden; }
.fc-progress-fill { height: 100%; background: linear-gradient(90deg, var(--pw-lavender-deep), var(--pw-lavender)); border-radius: 10px; transition: width 0.4s; }
.fc-progress-text { font-size: 13px; font-weight: 700; color: var(--pw-dark); min-width: 50px; text-align: right; }

.fc-card-container { perspective: 1000px; margin-bottom: 24px; }
.fc-card { width: 100%; min-height: 300px; position: relative; transition: transform 0.6s; transform-style: preserve-3d; cursor: pointer; border-radius: var(--radius-xl); }
.fc-card.flipped { transform: rotateY(180deg); }
.fc-card-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }
.fc-card-front { background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-white)); border: 2px solid var(--pw-lavender); box-shadow: var(--shadow-lg); }
.fc-card-front-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pw-lavender-deep); margin-bottom: 16px; }
.fc-card-front-question { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--pw-dark); line-height: 1.4; margin-bottom: 20px; }
.fc-card-front-tap { font-size: 13px; color: var(--pw-gray-light); display: flex; align-items: center; gap: 6px; }
.fc-card-front-tap i { animation: progressPulse 2s infinite; }
.fc-card-back { background: linear-gradient(135deg, var(--pw-mint-soft), var(--pw-white)); border: 2px solid var(--pw-mint); transform: rotateY(180deg); box-shadow: var(--shadow-lg); }
.fc-card-back-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pw-mint-deep); margin-bottom: 16px; }
.fc-card-back-answer { font-size: 17px; color: var(--pw-dark); line-height: 1.7; margin-bottom: 20px; }

.fc-prompt {
  text-align: center; font-size: 14px; color: var(--pw-gray); margin: 12px 0 4px;
  animation: progressPulse 2s infinite;
}
.fc-difficulty { text-align: center; margin-bottom: 20px; }
.fc-diff-question {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--pw-dark-soft); margin-bottom: 12px;
}
.fc-diff-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fc-diff-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 18px; border-radius: var(--radius-lg); font-weight: 700;
  font-size: 14px; border: 2px solid; transition: all 0.2s; cursor: pointer;
  min-width: 72px;
}
.fc-diff-btn i { font-size: 18px; }
.fc-diff-label { font-size: 13px; font-weight: 700; }
.fc-diff-hint { font-size: 11px; font-weight: 600; opacity: 0.7; }
.fc-diff-hint:empty { display: none; }
.fc-diff-again { border-color: var(--pw-danger); color: var(--pw-danger); background: rgba(255,107,107,0.08); }
.fc-diff-again:hover { background: var(--pw-danger); color: white; }
.fc-diff-hard { border-color: var(--pw-coral); color: var(--pw-coral-deep); background: var(--pw-peach-soft); }
.fc-diff-hard:hover { background: var(--pw-coral-deep); color: white; }
.fc-diff-good { border-color: var(--pw-mint); color: var(--pw-mint-deep); background: var(--pw-mint-soft); }
.fc-diff-good:hover { background: var(--pw-mint-deep); color: white; }
.fc-diff-easy { border-color: var(--pw-lavender-deep); color: var(--pw-lavender-deep); background: var(--pw-lavender-soft); }
.fc-diff-easy:hover { background: var(--pw-lavender-deep); color: white; }

.fc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 20px; }
.fc-stat { background: var(--pw-white); border-radius: var(--radius-md); padding: 14px; text-align: center; border: 1px solid var(--pw-gray-pale); }
.fc-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.fc-stat-label { font-size: 11px; color: var(--pw-gray); font-weight: 600; }
.fc-stat.green .fc-stat-num { color: var(--pw-mint-deep); }
.fc-stat.yellow .fc-stat-num { color: #E6A800; }
.fc-stat.red .fc-stat-num { color: var(--pw-coral-deep); }

/* ==========================================================
   20. QUIZ
   ========================================================== */
.quiz-page { padding: 14px 0 32px; max-width: 640px; margin: 0 auto; }
.quiz-header { text-align: center; margin-bottom: 28px; }
.quiz-header-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; background: var(--pw-sun-soft); color: #E6A800; margin-bottom: 12px; }
.quiz-header h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--pw-dark); margin-bottom: 6px; }
.quiz-header p { font-size: 14px; color: var(--pw-gray); }
.quiz-progress { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.quiz-dot { width: 40px; height: 6px; border-radius: 10px; background: var(--pw-gray-pale); transition: all 0.3s; }
.quiz-dot.active { background: var(--pw-coral); }
.quiz-dot.correct { background: var(--pw-mint-deep); }
.quiz-dot.wrong { background: var(--pw-danger); }
.quiz-question-card { background: var(--pw-white); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-md); margin-bottom: 24px; animation: fadeIn 0.4s ease; }
.quiz-q-num { font-size: 12px; font-weight: 700; color: var(--pw-gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.quiz-q-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--pw-dark); line-height: 1.4; margin-bottom: 24px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option { padding: 16px 20px; border-radius: var(--radius-md); background: var(--pw-cream); border: 2px solid var(--pw-gray-pale); font-size: 15px; font-weight: 600; color: var(--pw-dark-soft); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 12px; text-align: left; }
.quiz-option:hover { border-color: var(--pw-lavender); background: var(--pw-lavender-soft); }
.quiz-option.selected { border-color: var(--pw-coral); background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.quiz-option.correct { border-color: var(--pw-mint-deep); background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.quiz-option.wrong { border-color: var(--pw-danger); background: rgba(255,107,107,0.08); color: var(--pw-danger); animation: shake 0.4s; }
.quiz-option-letter { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; background: var(--pw-white); border: 2px solid var(--pw-gray-pale); flex-shrink: 0; }
.quiz-option.selected .quiz-option-letter { background: var(--pw-coral); color: white; border-color: var(--pw-coral); }
.quiz-option.correct .quiz-option-letter { background: var(--pw-mint-deep); color: white; border-color: var(--pw-mint-deep); }
.quiz-option.wrong .quiz-option-letter { background: var(--pw-danger); color: white; border-color: var(--pw-danger); }
.quiz-explanation { margin-top: 16px; padding: 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.6; display: none; }
.quiz-explanation.show { display: block; animation: fadeIn 0.3s ease; }
.quiz-explanation.correct-exp { background: var(--pw-mint-soft); border-left: 4px solid var(--pw-mint-deep); color: var(--pw-dark-soft); }
.quiz-explanation.wrong-exp { background: rgba(255,107,107,0.08); border-left: 4px solid var(--pw-danger); color: var(--pw-dark-soft); }
.quiz-next-btn { display: flex; justify-content: center; margin-top: 20px; }
.quiz-result { text-align: center; animation: fadeIn 0.5s ease; }
.quiz-result-score { font-family: var(--font-display); font-weight: 800; font-size: 72px; color: var(--pw-coral); }
.quiz-result-label { font-size: 16px; color: var(--pw-gray); margin-bottom: 20px; }
.quiz-result-message { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--pw-dark); margin-bottom: 8px; }
.quiz-result-sub { font-size: 14px; color: var(--pw-gray); margin-bottom: 28px; }
.quiz-result-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; max-width: 300px; margin-left: auto; margin-right: auto; }
.quiz-rb-item { background: var(--pw-white); border-radius: var(--radius-md); padding: 16px; border: 1px solid var(--pw-gray-pale); }
.quiz-rb-num { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.quiz-rb-label { font-size: 12px; color: var(--pw-gray); font-weight: 600; }
.quiz-rb-item.green .quiz-rb-num { color: var(--pw-mint-deep); }
.quiz-rb-item.red .quiz-rb-num { color: var(--pw-danger); }

/* ==========================================================
   21. PROFILE
   ========================================================== */
.profile-page { padding: 14px 0 32px; }
.profile-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .profile-layout { grid-template-columns: 260px 1fr; } }
.profile-sidebar { background: var(--pw-white); border-radius: var(--radius-lg); padding: 24px; border: 1px solid rgba(45,42,62,0.05); height: fit-content; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-lavender-soft)); display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 14px; border: 3px solid var(--pw-white); box-shadow: var(--shadow-md); }
.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-align: center; margin-bottom: 2px; }
.profile-email { font-size: 13px; color: var(--pw-gray); text-align: center; margin-bottom: 16px; }
.profile-badge { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 6px 14px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.profile-badge.premium { background: linear-gradient(135deg, var(--pw-sun-soft), var(--pw-peach-soft)); color: var(--pw-coral-deep); }
.profile-badge.free { background: var(--pw-gray-pale); color: var(--pw-gray); }
.profile-menu { list-style: none; }
.profile-menu li { padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; color: var(--pw-dark-soft); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.profile-menu li:hover { background: var(--pw-cream-deep); color: var(--pw-coral); }
.profile-menu li.active { background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.profile-menu li i { width: 18px; text-align: center; color: var(--pw-gray-light); }
.profile-menu li.active i { color: var(--pw-coral); }
.profile-menu li.danger { color: var(--pw-danger); }
.profile-menu li.danger i { color: var(--pw-danger); }
.profile-content { min-width: 0; }
.profile-section { background: var(--pw-white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid rgba(45,42,62,0.05); margin-bottom: 20px; }
.profile-section-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--pw-dark); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--pw-gray-pale); }
.profile-section-title i { color: var(--pw-coral); }

/* Child card, child-action-btn, add-child-btn → moved to Section 34 */

/* Subscription section */
.sub-card { background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-sun-soft)); border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sub-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--pw-white); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.sub-info { flex: 1; min-width: 200px; }
.sub-plan { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--pw-dark); }
.sub-detail { font-size: 13px; color: var(--pw-dark-soft); }

/* ==========================================================
   22. CHECKOUT
   ========================================================== */
.checkout-page { padding: 14px 0 32px; max-width: 800px; margin: 0 auto; }
.checkout-header { text-align: center; margin-bottom: 32px; }
.checkout-header h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--pw-dark); margin-bottom: 6px; }
.checkout-header p { font-size: 15px; color: var(--pw-gray); }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .checkout-grid { grid-template-columns: 1.2fr 1fr; } }
.checkout-form { background: var(--pw-white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.checkout-form h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 18px; color: var(--pw-dark); }
.payment-methods { display: flex; gap: 10px; margin-bottom: 20px; }
.payment-method { flex: 1; padding: 12px; border: 2px solid var(--pw-gray-pale); border-radius: var(--radius-md); text-align: center; cursor: pointer; transition: all 0.2s; font-size: 13px; font-weight: 700; color: var(--pw-dark-soft); }
.payment-method:hover { border-color: var(--pw-lavender); }
.payment-method.active { border-color: var(--pw-coral); background: var(--pw-peach-soft); }
.payment-method i { display: block; font-size: 22px; margin-bottom: 4px; }
.card-input-row { display: flex; gap: 10px; }
.card-input-row .form-group { flex: 1; }
.checkout-summary { background: var(--pw-white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid rgba(45,42,62,0.05); height: fit-content; }
.checkout-summary h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 18px; color: var(--pw-dark); }
.summary-plan { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--pw-gray-pale); }
.summary-plan-name { font-weight: 700; font-size: 15px; }
.summary-plan-price { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--pw-coral-deep); }
.summary-plan-period { font-size: 12px; color: var(--pw-gray); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--pw-dark-soft); }
.summary-row.total { border-top: 2px solid var(--pw-dark); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 16px; color: var(--pw-dark); }
.summary-discount { color: var(--pw-success); font-weight: 700; }
.summary-trial { background: var(--pw-mint-soft); border-radius: var(--radius-md); padding: 14px; margin-top: 16px; font-size: 13px; color: var(--pw-mint-deep); text-align: center; font-weight: 600; }
.summary-trial i { margin-right: 4px; }
.checkout-guarantees { margin-top: 16px; font-size: 12px; color: var(--pw-gray); }
.checkout-guarantees div { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.checkout-guarantees i { color: var(--pw-mint-deep); font-size: 11px; }

/* ==========================================================
   23. CRISIS ARTICLES
   ========================================================== */
.crisis-page { padding: 14px 0 32px; }
.crisis-layout { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .crisis-layout { grid-template-columns: 1fr 300px; } }
.crisis-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; background: var(--pw-danger); color: white; margin-bottom: 14px; }
.crisis-badge i { font-size: 10px; }
.crisis-h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.25; color: var(--pw-dark); margin-bottom: 14px; }
@media (min-width: 768px) { .crisis-h1 { font-size: 34px; } }
.crisis-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--pw-gray); margin-bottom: 24px; }
.crisis-meta span { display: flex; align-items: center; gap: 6px; }
.crisis-meta i { color: var(--pw-coral); font-size: 12px; }
.crisis-body { font-size: 16px; color: var(--pw-dark-soft); line-height: 1.8; }
@media (min-width: 768px) { .crisis-body { font-size: 17px; } }
.crisis-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--pw-dark); margin: 28px 0 12px; padding-left: 14px; position: relative; }
.crisis-body h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(to bottom, var(--pw-coral), var(--pw-peach)); }
.crisis-body p { margin-bottom: 14px; }
.crisis-body strong { color: var(--pw-dark); }
.crisis-body ul { margin: 12px 0 18px; padding-left: 24px; }
.crisis-body li { margin-bottom: 8px; }
.crisis-emergency { background: var(--pw-danger); color: white; border-radius: var(--radius-lg); padding: 20px; margin: 24px 0; text-align: center; }
.crisis-emergency-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.crisis-emergency p { font-size: 14px; opacity: 0.9; margin: 0; }
.crisis-callout { background: var(--pw-lavender-soft); border-radius: var(--radius-lg); padding: 20px; margin: 24px 0; border-left: 4px solid var(--pw-lavender-deep); }
.crisis-callout-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--pw-lavender-deep); margin-bottom: 6px; }
.crisis-callout p { font-size: 14px; color: var(--pw-dark-soft); margin: 0; line-height: 1.6; }
.crisis-action-box { border-radius: var(--radius-lg); padding: 20px; margin: 20px 0; }
.crisis-action-box.do { background: var(--pw-mint-soft); border-left: 4px solid var(--pw-mint-deep); }
.crisis-action-box.dont { background: rgba(255,107,107,0.08); border-left: 4px solid var(--pw-danger); }
.crisis-action-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.crisis-action-box.do .crisis-action-title { color: var(--pw-mint-deep); }
.crisis-action-box.dont .crisis-action-title { color: var(--pw-danger); }
.crisis-action-box ul { list-style: none; padding: 0; font-size: 15px; }
.crisis-action-box li { padding: 6px 0 6px 24px; position: relative; line-height: 1.6; }
.crisis-action-box.do li::before { content: '\2713'; position: absolute; left: 0; color: var(--pw-mint-deep); font-weight: 700; }
.crisis-action-box.dont li::before { content: '\2717'; position: absolute; left: 0; color: var(--pw-danger); font-weight: 700; }

/* Crisis sidebar */
.crisis-sidebar { display: flex; flex-direction: column; gap: 16px; }
.crisis-sidebar-card { background: var(--pw-white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid rgba(45,42,62,0.05); }
.crisis-sidebar-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.crisis-sidebar-card h3 i { color: var(--pw-coral); }
.crisis-related-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pw-gray-pale); cursor: pointer; transition: all 0.2s; font-size: 13px; font-weight: 600; color: var(--pw-dark-soft); }
.crisis-related-item:last-child { border-bottom: none; }
.crisis-related-item:hover { color: var(--pw-coral); padding-left: 4px; }
.crisis-related-item i { color: var(--pw-gray-light); margin-top: 2px; flex-shrink: 0; }
.crisis-cta-card { background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-lavender-soft)); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.crisis-cta-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--pw-dark); margin-bottom: 8px; }
.crisis-cta-card p { font-size: 13px; color: var(--pw-dark-soft); margin-bottom: 14px; line-height: 1.5; }
.crisis-disclaimer { background: var(--pw-cream-deep); border-radius: var(--radius-md); padding: 16px; margin-top: 28px; font-size: 12px; color: var(--pw-gray); line-height: 1.6; border: 1px solid var(--pw-peach); }
.crisis-disclaimer strong { color: var(--pw-dark-soft); }

/* ==========================================================
   23b. AUTH (Login / Register)
   ========================================================== */
.auth-page { min-height: calc(100vh - 70px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 0; }
@media (min-width: 960px) { .auth-page { align-items: center; } }
.auth-layout { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; }
@media (min-width: 960px) {
  .auth-layout { flex-direction: row; align-items: center; justify-content: center; gap: 60px; max-width: 900px; margin: 0 auto; }
}
.auth-benefits { text-align: center; max-width: 440px; order: 2; }
.auth-benefits-list { display: none; }
.auth-card { order: 1; }
@media (min-width: 960px) {
  .auth-benefits { text-align: left; flex: 1; max-width: 400px; order: 0; }
  .auth-benefits-list { display: flex; }
  .auth-card { order: 0; }
}
.auth-benefits-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--pw-dark); margin-bottom: 12px; line-height: 1.2; }
.auth-benefits-subtitle { font-size: 15px; color: var(--pw-gray); line-height: 1.7; margin-bottom: 28px; }
.auth-benefits-list { display: flex; flex-direction: column; gap: 16px; }
.auth-benefit-item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--pw-dark-soft); }
.auth-benefit-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.auth-card { width: 100%; max-width: 440px; background: var(--pw-white); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); animation: fadeIn 0.4s ease; flex-shrink: 0; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header-emoji { font-size: 48px; margin-bottom: 10px; }
.auth-header h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--pw-dark); margin-bottom: 6px; }
.auth-header p { font-size: 14px; color: var(--pw-gray); }
.social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: var(--radius-md); font-weight: 700; font-size: 14px; border: 2px solid var(--pw-gray-pale); color: var(--pw-dark); transition: all 0.2s; width: 100%; }
.social-btn:hover { border-color: var(--pw-lavender); background: var(--pw-cream); }
.social-btn img, .social-btn i { width: 20px; height: 20px; font-size: 20px; }
.social-btn.google i { color: #DB4437; }
.social-btn.apple i { color: #000; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 12px; color: var(--pw-gray-light); font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--pw-gray-pale); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--pw-gray); }
.auth-footer a { color: var(--pw-coral); font-weight: 700; }
.forgot-link { display: block; text-align: right; font-size: 13px; color: var(--pw-coral); font-weight: 600; margin-top: -10px; margin-bottom: 16px; }
.auth-tab { display: none; }
.auth-tab.active { display: block; }

/* ==========================================================
   24. 404 PAGE
   ========================================================== */
.page-404 { min-height: 100vh; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; position: relative; overflow: hidden; flex-direction: column; display: flex; }
.p404-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.p404-bg-item { position: absolute; font-size: 40px; opacity: 0.08; animation: float 6s ease-in-out infinite; }
.p404-bg-item:nth-child(1) { top: 10%; left: 8%; animation-delay: 0s; font-size: 50px; }
.p404-bg-item:nth-child(2) { top: 20%; right: 12%; animation-delay: -1.5s; font-size: 35px; }
.p404-bg-item:nth-child(3) { bottom: 25%; left: 15%; animation-delay: -3s; font-size: 45px; }
.p404-bg-item:nth-child(4) { bottom: 15%; right: 10%; animation-delay: -4.5s; font-size: 30px; }
.p404-bg-item:nth-child(5) { top: 50%; left: 50%; animation-delay: -2s; font-size: 28px; }
.p404-bg-item:nth-child(6) { top: 60%; right: 25%; animation-delay: -0.5s; font-size: 36px; }
.p404-content { position: relative; z-index: 1; max-width: 500px; animation: fadeIn 0.6s ease; }
.p404-emoji { font-size: 80px; margin-bottom: 16px; animation: wiggle 2s ease-in-out infinite; display: inline-block; }
.p404-code { font-family: var(--font-display); font-weight: 800; font-size: 100px; color: var(--pw-coral); line-height: 1; margin-bottom: 8px; letter-spacing: -4px; background: linear-gradient(135deg, var(--pw-coral), var(--pw-lavender-deep)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.p404-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--pw-dark); margin-bottom: 10px; }
.p404-text { font-size: 16px; color: var(--pw-gray); margin-bottom: 28px; line-height: 1.7; }
.p404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.p404-suggestion { background: var(--pw-white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); text-align: left; max-width: 460px; width: 100%; }
.p404-suggestion-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--pw-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.p404-suggestion-title i { color: var(--pw-coral); }
.p404-suggestion-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; font-size: 14px; font-weight: 600; color: var(--pw-dark-soft); }
.p404-suggestion-item:hover { background: var(--pw-peach-soft); color: var(--pw-coral-deep); padding-left: 16px; }
.p404-suggestion-item i { width: 18px; text-align: center; color: var(--pw-gray-light); font-size: 12px; }
.p404-suggestion-item:hover i { color: var(--pw-coral); }

/* ==========================================================
   25. ACTIVITY CALENDAR
   ========================================================== */
.activity-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.activity-day { aspect-ratio: 1; border-radius: 4px; background: var(--pw-gray-pale); }
.activity-day.active-1 { background: var(--pw-mint-soft); }
.activity-day.active-2 { background: var(--pw-mint); }
.activity-day.active-3 { background: var(--pw-mint-deep); }
.activity-day.today { outline: 2px solid var(--pw-coral); outline-offset: 1px; }

/* ==========================================================
   26. PAGINATION (frontend)
   ========================================================== */

/* ==========================================================
   27. EMAIL TEMPLATES
   ========================================================== */
.emails-header { text-align: center; margin-bottom: 32px; }
.emails-header h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--pw-dark); margin-bottom: 6px; }
.emails-header p { color: var(--pw-gray); font-size: 14px; }
.email-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.email-tab { padding: 8px 18px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700; color: var(--pw-gray); background: var(--pw-white); border: 1px solid var(--pw-gray-pale); cursor: pointer; transition: all 0.2s; }
.email-tab:hover { border-color: var(--pw-coral); color: var(--pw-coral); }
.email-tab.active { background: var(--pw-coral); color: white; border-color: var(--pw-coral); }
.email-preview-container { max-width: 600px; margin: 0 auto; }
.email-frame { background: var(--pw-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--pw-gray-pale); }
.email-frame-toolbar { background: var(--pw-cream-deep); padding: 10px 16px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #999; }
.email-frame-toolbar .dot { width: 10px; height: 10px; border-radius: 50%; }
.email-frame-toolbar .dot:nth-child(1) { background: #ff5f57; }
.email-frame-toolbar .dot:nth-child(2) { background: #ffbd2e; }
.email-frame-toolbar .dot:nth-child(3) { background: #28ca41; }
.email-frame-toolbar span { margin-left: 8px; }
.email-content { padding: 0; }
.email-tpl { display: none; }
.email-tpl.active { display: block; }

/* Email shared styles */
.em { font-family: 'Nunito', Arial, sans-serif; color: var(--pw-dark); line-height: 1.6; max-width: 600px; }
.em-header { background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep)); padding: 28px 32px; text-align: center; }
.em-header-logo { color: white; font-family: var(--font-display); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.em-body { padding: 32px; }
.em-body h1 { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--pw-dark); margin-bottom: 12px; line-height: 1.3; }
.em-body p { font-size: 15px; color: var(--pw-dark-soft); margin-bottom: 14px; line-height: 1.7; }
.em-body strong { color: var(--pw-dark); }
.em-btn { display: inline-block; background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep)); color: white; padding: 14px 32px; border-radius: var(--radius-full); font-weight: 700; font-size: 15px; text-align: center; margin: 8px 0 16px; }
.em-divider { height: 1px; background: var(--pw-gray-pale); margin: 20px 0; }
.em-tip-card { background: var(--pw-lavender-soft); border-radius: var(--radius-md); padding: 20px; margin: 16px 0; border-left: 4px solid var(--pw-lavender-deep); }
.em-tip-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pw-lavender-deep); margin-bottom: 6px; }
.em-tip-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--pw-dark); margin-bottom: 4px; }
.em-tip-meta { font-size: 12px; color: var(--pw-gray); }
.em-streak-box { background: linear-gradient(135deg, var(--pw-sun-soft), var(--pw-peach-soft)); border-radius: var(--radius-md); padding: 20px; text-align: center; margin: 16px 0; }
.em-streak-num { font-family: var(--font-display); font-weight: 800; font-size: 48px; color: var(--pw-coral-deep); line-height: 1; }
.em-streak-label { font-size: 14px; color: var(--pw-dark-soft); font-weight: 600; }
.em-warning-box { background: rgba(255,107,107,0.08); border-radius: var(--radius-md); padding: 20px; margin: 16px 0; border-left: 4px solid var(--pw-danger); text-align: center; }
.em-footer { background: var(--pw-lavender-soft); padding: 20px 32px; text-align: center; font-size: 12px; color: var(--pw-gray); }
.em-footer a { color: var(--pw-coral); }

/* ==========================================================
   28. ADMIN PANEL — Light Theme (Apple / Stripe / Notion inspired)
   ========================================================== */
body.admin {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Nunito', sans-serif;
  color: var(--a-text);
  background: var(--a-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
@media (min-width: 1025px) {
  body.admin { flex-direction: row; }
}
body.admin a { text-decoration: none; color: inherit; }
body.admin button:not(.btn):not(.btn-outline):not(.btn-danger) { border: none; background: none; cursor: pointer; font-family: inherit; }
body.admin input, body.admin select, body.admin textarea { font-family: inherit; outline: none; }

/* ==========================================================
   28a. ADMIN — Sidebar
   ========================================================== */
.admin-sidebar {
  width: 248px;
  background: #F5F4F0;
  border-right: 1px solid var(--a-border);
  padding: 24px 16px;
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 50;
  overflow-y: auto;
}
@media (min-width: 1025px) {
  .admin-sidebar { display: flex; }
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
/* Admin mobile — sidebar hidden by default, shown via hamburger */
.admin-mobile-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--a-bg2); border-bottom: 1px solid var(--a-border); position: sticky; top: 0; z-index: 100; }
@media (min-width: 1025px) { .admin-mobile-bar { display: none; } }
.admin-hamburger { background: none; border: none; font-size: 20px; color: var(--a-text); cursor: pointer; padding: 8px; -webkit-tap-highlight-color: transparent; }
.admin-mobile-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--a-text); }
.admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 199; }
.admin-sidebar.open { display: flex; position: fixed; left: 0; top: 0; z-index: 200; width: 260px; height: 100vh; box-shadow: 4px 0 24px rgba(0,0,0,0.15); }
body.admin-menu-open .admin-overlay { display: block; }

/* Admin mobile compact — see consolidated block near end of file */
.admin-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--a-text); margin-bottom: 6px; padding: 0 8px; }
.admin-logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--a-lavender), var(--a-lavender-deep)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 15px; box-shadow: 0 2px 8px rgba(168, 181, 160, 0.3); }
.admin-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--a-text3); padding: 0 8px; margin-bottom: 24px; }
.admin-nav { list-style: none; flex: 1; }
.admin-nav-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--a-text3); padding: 20px 8px 8px; }
.admin-nav li a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--a-text2); transition: all 0.15s ease; margin-bottom: 2px;
  position: relative;
}
.admin-nav li a:hover { background: rgba(0, 0, 0, 0.04); color: var(--a-text); }
.admin-nav li a.active {
  background: rgba(168, 181, 160, 0.12); color: var(--a-lavender-deep); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--a-lavender);
}
.admin-nav li a i { width: 18px; text-align: center; font-size: 14px; opacity: 0.7; }
.admin-nav li a.active i { opacity: 1; }
.admin-sidebar-footer { padding: 16px 8px; border-top: 1px solid var(--a-border); font-size: 12px; color: var(--a-text3); }

/* ==========================================================
   28b. ADMIN — Cards & Layout
   ========================================================== */
.admin-main { flex: 1; margin-left: 0; padding: 14px 12px 32px; min-width: 0; }
@media (min-width: 1025px) { .admin-main { margin-left: 248px; padding: 32px 36px 48px; } }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--a-text); letter-spacing: -0.3px; }
.admin-header-actions { display: flex; gap: 10px; }

.admin-card {
  background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 12px;
  padding: 24px; box-shadow: var(--shadow); transition: box-shadow 0.2s ease;
}
.admin-card:hover { box-shadow: var(--shadow-md); }
.admin-card-title {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--a-text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
  text-transform: none; letter-spacing: -0.1px;
}
.admin-card-title i { color: var(--a-text3); font-size: 13px; }

.admin-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .admin-grid { grid-template-columns: 1.5fr 1fr; } }

/* Light theme wrapper */
.admin-dark { background: var(--a-bg); color: var(--a-text); min-height: 100vh; }

/* ==========================================================
   28c. ADMIN — Tables
   ========================================================== */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--a-border);
  border-radius: 12px;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; padding: 12px 16px; font-weight: 600; color: var(--a-text3);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  border-bottom: 1px solid var(--a-border); background: #FAFAFA;
  white-space: nowrap;
}
.admin-table th:first-child { border-radius: 8px 0 0 0; }
.admin-table th:last-child { border-radius: 0 8px 0 0; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #F3F4F6; color: var(--a-text2); vertical-align: middle; }
.admin-table tr:hover td { background: #F9FAFB; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .title-cell { color: var(--a-text); font-weight: 600; max-width: 280px; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .text-center { text-align: center; }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar-sm {
  width: 34px; height: 34px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
  background: #F3F4F6; color: var(--a-text2); font-weight: 600;
}
.user-name { font-weight: 600; color: var(--a-text); font-size: 13px; }
.user-email { font-size: 11px; color: var(--a-text3); }

.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600;
}
.status-badge.published, .status-badge.active { background: #ECFDF5; color: #059669; }
.status-badge.draft, .status-badge.trial { background: #FFFBEB; color: #D97706; }
.status-badge.generating { background: #F3F0FF; color: var(--a-lavender); }
.status-badge.free { background: #F3F4F6; color: var(--a-text3); }
.status-badge.cancelled { background: #FEF2F2; color: var(--a-danger); }

.priority-stars { color: #F59E0B; font-size: 12px; letter-spacing: 1px; }

.action-btn {
  width: 32px; height: 32px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px;
  color: var(--a-text3); transition: all 0.15s ease; background: transparent;
  border: 1px solid transparent;
}
.action-btn:hover { color: var(--a-text2); background: #F3F4F6; border-color: var(--a-border); }
.action-btn.edit:hover { color: var(--a-sky); background: #EFF6FF; border-color: #BFDBFE; }
.action-btn.delete:hover { color: var(--a-danger); background: #FEF2F2; border-color: #FECACA; }
.action-btn.ai:hover { color: var(--a-lavender); background: #F3F0FF; border-color: #DDD6FE; }
.action-btn.view:hover { color: var(--a-mint); background: #ECFDF5; border-color: #A7F3D0; }

/* Lang flags */
.lang-flags { display: flex; gap: 4px; }
.lang-flag {
  width: 24px; height: 17px; border-radius: 3px; display: flex;
  align-items: center; justify-content: center; font-size: 9px;
  background: #F3F4F6; color: var(--a-text3); font-weight: 700; border: 1px solid #E5E7EB;
}
.lang-flag.done { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.lang-flag.missing { background: #FEF2F2; color: var(--a-danger); border-color: #FECACA; }

/* ==========================================================
   28d. ADMIN — KPI Cards
   ========================================================== */
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card {
  background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 12px;
  padding: 22px 24px; box-shadow: var(--shadow); transition: all 0.2s ease;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-label { font-size: 12px; color: var(--a-text3); font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.kpi-label i { font-size: 10px; }
.kpi-value { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--a-text); letter-spacing: -0.5px; }
.kpi-value.coral { color: var(--a-coral); }
.kpi-value.mint { color: var(--a-mint); }
.kpi-value.lavender { color: var(--a-lavender); }
.kpi-value.sun { color: var(--a-sun); }
.kpi-change { font-size: 12px; font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.kpi-change.up { color: var(--a-success); }
.kpi-change.down { color: var(--a-danger); }

/* KPI row (alt layout for analytics) */
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
@media (min-width: 768px) { .kpi-row { grid-template-columns: repeat(5, 1fr); } }
.kpi-mini {
  background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 12px;
  padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.kpi-mini-value { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--a-text); letter-spacing: -0.3px; }
.kpi-mini-label { font-size: 11px; color: var(--a-text3); font-weight: 500; margin-top: 4px; }

/* ==========================================================
   28e. ADMIN — Forms (CRUD)
   ========================================================== */
.crud-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.crud-search {
  flex: 1; min-width: 200px; padding: 10px 14px;
  background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 8px;
  color: var(--a-text); font-size: 14px; box-shadow: var(--shadow);
  transition: all 0.15s ease;
}
.crud-search:focus { border-color: var(--a-text); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); }
.crud-filter {
  padding: 10px 14px; background: #FFFFFF; border: 1px solid var(--a-border);
  border-radius: 8px; color: var(--a-text2); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s ease;
}
.crud-filter:hover { border-color: #D1D5DB; }
.crud-filter.active { border-color: var(--a-text); color: var(--a-text); font-weight: 600; }
.crud-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--a-border); }
.crud-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 500; color: var(--a-text3);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.15s ease;
}
.crud-tab.active { color: var(--a-text); border-bottom-color: var(--a-text); font-weight: 600; }
.crud-tab:hover:not(.active) { color: var(--a-text2); }
.crud-tab .count { font-size: 11px; background: #F3F4F6; padding: 2px 8px; border-radius: 10px; margin-left: 6px; color: var(--a-text3); }
.crud-tab.active .count { background: #F3F4F6; color: var(--a-text); }

/* Admin toolbar (shared) */
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.admin-search {
  flex: 1; min-width: 200px; padding: 10px 14px;
  background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 8px;
  color: var(--a-text); font-size: 14px; box-shadow: var(--shadow);
  transition: all 0.15s ease;
}
.admin-search:focus { border-color: var(--a-text); outline: none; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); }
.admin-filter {
  padding: 8px 14px; background: #FFFFFF; border: 1px solid var(--a-border);
  border-radius: 8px; color: var(--a-text2); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
.admin-filter:hover { border-color: #D1D5DB; }
.admin-filter.active { border-color: var(--a-text); color: var(--a-text); }

/* Admin pagination */
body.admin .pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 13px; color: var(--a-text3); }
body.admin .pagination-btns { display: flex; gap: 4px; }
body.admin .page-btn {
  padding: 7px 13px; background: #FFFFFF; border: 1px solid var(--a-border);
  border-radius: 8px; color: var(--a-text2); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
body.admin .page-btn:hover { border-color: #D1D5DB; color: var(--a-text); }
body.admin .page-btn.active { background: var(--a-text); color: #FFFFFF; border-color: var(--a-text); }

/* ==========================================================
   28f. ADMIN — AI Generator
   ========================================================== */
.ai-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .ai-layout { grid-template-columns: 1fr 1fr; } }
.ai-form { display: flex; flex-direction: column; gap: 16px; }
.ai-form label { font-size: 13px; font-weight: 600; color: var(--a-text); }
.ai-input {
  width: 100%; padding: 12px 14px;
  background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 8px;
  color: var(--a-text); font-size: 14px; transition: all 0.15s ease;
  box-shadow: var(--shadow);
}
.ai-input:focus { border-color: var(--a-text); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05); }
.ai-input::placeholder { color: #C9CDD3; }
.ai-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ai-prompt-preview {
  background: #FAFAFA; border: 1px solid var(--a-border); border-radius: 8px;
  padding: 16px; font-family: 'JetBrains Mono', var(--font-mono), monospace;
  font-size: 12px; color: var(--a-text2); line-height: 1.7;
  max-height: 300px; overflow-y: auto; white-space: pre-wrap;
}
.ai-output {
  background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 12px;
  padding: 20px; min-height: 400px; position: relative; box-shadow: var(--shadow);
}
.ai-output-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.ai-output-tab {
  padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--a-text3); transition: all 0.15s ease; cursor: pointer;
}
.ai-output-tab.active { background: #F3F4F6; color: var(--a-text); }
.ai-output-tab:hover:not(.active) { color: var(--a-text2); background: #FAFAFA; }
.ai-output-content { font-size: 14px; color: var(--a-text2); line-height: 1.7; }
.ai-output-content h3 { font-family: var(--font-display); font-weight: 700; color: var(--a-text); margin: 16px 0 8px; font-size: 16px; }
.ai-output-content p { margin-bottom: 10px; }
.ai-output-content strong { color: var(--a-text); }
.ai-status-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #FAFAFA; border: 1px solid var(--a-border);
  border-radius: 8px; font-size: 13px; color: var(--a-text2);
}
.ai-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.ai-status-dot.ready { background: var(--a-success); }
.ai-status-dot.generating { background: #F59E0B; animation: pulse 1s infinite; }

/* ==========================================================
   28g. ADMIN — Charts
   ========================================================== */
.chart-placeholder { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.chart-bar { flex: 1; border-radius: 5px 5px 0 0; transition: all 0.3s ease; min-height: 8px; }
.chart-bar:nth-child(odd) { background: rgba(255, 138, 108, 0.2); }
.chart-bar:nth-child(even) { background: rgba(255, 138, 108, 0.35); }
.chart-bar:hover { background: var(--a-coral); }

/* Chart bars (analytics) */
.chart-bars { display: flex; align-items: flex-end; gap: 5px; height: 140px; }
.chart-bars .chart-bar { cursor: pointer; position: relative; }
.chart-bars .chart-bar:hover::after {
  content: attr(data-val); position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: var(--a-text);
  background: #FFFFFF; padding: 3px 8px; border-radius: 6px;
  white-space: nowrap; box-shadow: var(--shadow-md); border: 1px solid var(--a-border);
}
.chart-bar.coral { background: rgba(255, 138, 108, 0.25); }
.chart-bar.coral:hover { background: var(--a-coral); }
.chart-bar.mint { background: rgba(52, 164, 114, 0.2); }
.chart-bar.mint:hover { background: var(--a-mint); }
.chart-bar.lavender { background: rgba(139, 126, 200, 0.2); }
.chart-bar.lavender:hover { background: var(--a-lavender); }
.chart-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 11px; color: var(--a-text3); }
.chart-legend-item { display: flex; align-items: center; gap: 6px; }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* Donut chart */
.donut-chart {
  width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(var(--a-coral) 0% 42%, var(--a-mint) 42% 68%, var(--a-lavender) 68% 85%, #F59E0B 85% 100%);
  margin: 0 auto 16px; position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.donut-chart::after {
  content: ''; width: 72px; height: 72px; border-radius: 50%;
  background: #FFFFFF; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; text-align: center; }
.donut-center-num { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--a-text); }
.donut-center-label { font-size: 9px; color: var(--a-text3); font-weight: 600; }

/* Funnel */
.funnel { max-width: 400px; margin: 0 auto; }
.funnel-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.funnel-bar {
  height: 30px; border-radius: 6px; display: flex; align-items: center;
  padding: 0 12px; font-size: 11px; font-weight: 700; color: white;
  transition: width 0.5s ease;
}
.funnel-label { font-size: 12px; color: var(--a-text3); min-width: 80px; text-align: right; }
.funnel-value { font-size: 12px; color: var(--a-text2); font-weight: 700; min-width: 50px; }

/* Analytics grid */
.analytics-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .analytics-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   29. ANIMATIONS & TRANSITIONS
   ========================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(5px) rotate(2deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@keyframes progressPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 108, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(255, 138, 108, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.fade-in { animation: fadeInUp 0.5s ease both; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }

/* ==========================================================
   30. SUPPLEMENTARY — Classes used by PHP templates
   ========================================================== */

/* --- Navbar (override Bootstrap .navbar) --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pw-navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 27, 46, 0.06);
  padding: 12px 0;
  flex-wrap: nowrap;
}
.navbar > .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pw-lavender-deep);
  flex-shrink: 0;
  margin-right: 0;
  padding: 0;
  text-decoration: none;
}
.navbar-brand:hover { color: var(--pw-lavender); text-decoration: none; }
.navbar-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--pw-lavender), var(--pw-lavender-deep));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 3px 12px rgba(124, 92, 252, 0.25);
}
.navbar .nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
  flex: 1;
}
@media (min-width: 768px) { .navbar .nav-links { display: flex; } }
.navbar .nav-links a,
.navbar .nav-links .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--pw-dark-soft);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.navbar .nav-links a:hover,
.navbar .nav-links .nav-link:hover { color: var(--pw-lavender); }
.navbar .nav-links a.active,
.navbar .nav-links .nav-link.active { color: var(--pw-lavender); }
.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--pw-lavender);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-spring);
}
.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pw-white);
  border: 1px solid var(--pw-gray-pale);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--pw-lavender); }
.lang-btn img { border-radius: 2px; }
.lang-btn i { font-size: 10px; transition: transform 0.2s; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--pw-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--pw-gray-pale);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  transition: background 0.2s;
}
.lang-option:hover { background: var(--pw-cream-deep); }
.lang-option.active { color: var(--pw-coral); background: var(--pw-peach-soft); }

/* Streak badge */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pw-sun-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--pw-dark);
}
.streak-badge i { color: var(--pw-coral); }

/* Avatar */
.avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-lavender-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--pw-dark);
  overflow: hidden;
  border: 2px solid var(--pw-white);
  box-shadow: var(--shadow-sm);
}

/* Profile dropdown */
.profile-dropdown { position: relative; }
.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.profile-menu-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--pw-gray-pale);
}
.profile-menu-header strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-dark);
}
.subscription-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.subscription-badge.free { background: var(--pw-gray-pale); color: var(--pw-gray); }
.subscription-badge.active,
.subscription-badge.premium { background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.subscription-badge.trial { background: var(--pw-sun-soft); color: #E6A800; }
#profileMenu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--pw-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--pw-gray-pale);
  min-width: 220px;
  z-index: 200;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}
#profileMenu.open { display: block; }
#profileMenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  transition: background 0.2s;
}
#profileMenu a:hover { background: var(--pw-cream-deep); color: var(--pw-coral); }
#profileMenu a i { width: 18px; text-align: center; color: var(--pw-gray-light); }
#profileMenu hr { border: none; border-top: 1px solid var(--pw-gray-pale); margin: 4px 0; }

/* ============================================================
   Hamburger Button (mobile only)
   ============================================================ */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}
.menu-btn span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--pw-dark);
  border-radius: 2px;
  transition: 0.3s ease;
  margin: 0 auto;
}
/* Animate hamburger → X */
.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Mobile Overlay
   ============================================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 998;
}
.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   Mobile Slide Menu (from left)
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80%;
  height: 100vh;
  background: var(--pw-white);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pw-gray-pale);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pw-dark);
}
.mobile-menu-brand .navbar-logo {
  width: 32px; height: 32px;
  font-size: 15px;
  border-radius: 9px;
}
.mobile-menu-nav {
  padding: 12px 16px;
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  margin-bottom: 4px;
  text-decoration: none;
  color: var(--pw-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}
.mobile-menu-nav a i {
  width: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--pw-gray-light);
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
  background: var(--pw-cream-deep);
  outline: none;
}
.mobile-menu-nav a.active {
  background: var(--pw-lavender-soft);
  color: var(--pw-lavender-deep);
}
.mobile-menu-nav a.active i {
  color: var(--pw-lavender);
}
.mobile-menu-nav a.mobile-menu-register {
  background: linear-gradient(135deg, var(--pw-lavender), var(--pw-lavender-deep));
  color: white;
  margin-top: 4px;
}
.mobile-menu-nav a.mobile-menu-register i { color: white; }
.mobile-menu-nav a.mobile-menu-register:hover { opacity: 0.9; }
.mobile-menu-nav hr {
  border: none;
  border-top: 1px solid var(--pw-gray-pale);
  margin: 8px 4px;
}

/* Language switcher inside mobile menu */
.mobile-menu-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--pw-gray-pale);
  margin-top: auto;
}
.mobile-menu-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  background: var(--pw-cream);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-menu-lang:hover { background: var(--pw-cream-deep); }
.mobile-menu-lang.active {
  background: var(--pw-lavender-soft);
  color: var(--pw-lavender-deep);
}

/* Login text link (Headway-style, not a button) */
.nav-login-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--pw-dark-soft);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-login-link:hover { color: var(--pw-lavender); }

/* Desktop: hide mobile-only elements */
.nav-desktop-only { display: inline-flex; }

/* Desktop: hide mobile menu elements completely */
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .mobile-menu,
  .mobile-overlay { display: none; }
}

/* --- Mobile breakpoint --- */
@media (max-width: 767px) {
  .navbar { padding: 10px 0; }
  .navbar > .container { gap: 10px; flex-wrap: nowrap !important; }
  .navbar-brand { flex: 1; min-width: 0; font-size: 18px; margin-right: 0; gap: 8px; }
  .navbar-brand .navbar-logo { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
  /* Mobile navbar: only Logo + Hamburger (like Headway) */
  .menu-btn { display: flex; }
  .nav-desktop-only { display: none !important; }
  .navbar .nav-links { display: none !important; }
}

/* --- Button sizes --- */
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* --- Flash messages --- */
.flash-message {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}
.flash-message .container { display: flex; align-items: center; justify-content: space-between; }
.flash-success { background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.flash-error { background: rgba(255, 107, 107, 0.1); color: var(--pw-danger); }
.flash-info { background: var(--pw-sky-soft); color: #1976D2; }
.flash-warning { background: var(--pw-sun-soft); color: #E6A800; }
.flash-close { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; padding: 0 4px; }

/* --- Modal Notifications --- */
.pw-notify-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(45,42,62,0.35); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.pw-notify-overlay.visible { opacity: 1; }
.pw-notify {
  background: var(--pw-white); border-radius: var(--radius-xl, 20px);
  padding: 36px 32px 28px; max-width: 380px; width: 90%;
  text-align: center; box-shadow: 0 20px 60px rgba(45,42,62,0.18);
  transform: scale(0.92); transition: transform 0.25s ease;
}
.pw-notify-overlay.visible .pw-notify { transform: scale(1); }
.pw-notify i {
  font-size: 40px; margin-bottom: 14px; display: block;
}
.pw-notify-success i { color: var(--pw-mint-deep); }
.pw-notify-error i { color: var(--pw-danger); }
.pw-notify-info i { color: #1976D2; }
.pw-notify-warning i { color: #E6A800; }
.pw-notify p {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--pw-dark); line-height: 1.5; margin-bottom: 20px;
}
.pw-notify-close {
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-peach));
  color: white; border: none; border-radius: var(--radius-md);
  padding: 10px 36px; font-family: var(--font-display); font-weight: 700;
  font-size: 15px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(255,138,108,0.3);
}
.pw-notify-close:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,138,108,0.4); }

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--pw-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 300;
  padding: 16px 0;
  animation: fadeIn 0.3s ease;
}
.cookie-content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-content p { flex: 1; font-size: 14px; color: var(--pw-dark-soft); margin: 0; min-width: 200px; }
.cookie-content strong { color: var(--pw-dark); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* --- Footer supplementary --- */
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pw-white);
  margin-bottom: 14px;
  font-size: 15px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--pw-gray-light);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--pw-coral); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--pw-surface-dark-muted);
  transition: all 0.2s;
}
.footer-lang:hover { color: var(--pw-coral); }
.footer-lang.active { background: rgba(255,255,255,0.15); color: var(--pw-surface-dark-text); }
.disclaimer-bar {
  background: var(--pw-cream-deep);
  padding: 12px 0;
  font-size: 12px;
  color: var(--pw-gray);
  text-align: center;
}
.disclaimer-bar i { color: var(--pw-coral); margin-right: 4px; }

/* (CTA section styles moved to section 11g above) */

/* --- Common page components --- */
.filter-select {
  padding: 8px 28px 8px 10px;
  border: 2px solid var(--pw-gray-pale);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  background: var(--pw-white);
  color: var(--pw-dark-soft);
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%237A7590'%3E%3Cpath d='M5 7L0.5 2h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  flex: 1;
  min-width: 0;
}
.filter-select:focus { border-color: var(--pw-coral); outline: none; }
.filter-row { display: flex; flex-wrap: nowrap; gap: 6px; }
@media (min-width: 768px) {
  .filter-row { gap: 10px; }
  .filter-select { padding: 10px 36px 10px 16px; font-size: 14px; flex: none; min-width: 140px; background-position: right 14px center; }
}
.results-count { font-size: 13px; color: var(--pw-gray); margin-bottom: 16px; }

.empty-state {
  text-align: center;
  padding: 14px 20px 32px;
  color: var(--pw-gray);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.3; }
.empty-state p { font-size: 16px; }

.age-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: var(--pw-peach-soft);
  color: var(--pw-coral-deep);
}

.summary-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--pw-lavender-soft);
  color: var(--pw-lavender-deep);
}
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pw-gray);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb-nav a { color: var(--pw-gray); transition: color 0.2s; }
.breadcrumb-nav a:hover { color: var(--pw-coral); }

.paywall-card {
  background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-peach-soft));
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  margin: 32px 0;
}
.paywall-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--pw-dark);
  margin-bottom: 12px;
}
.paywall-card p {
  font-size: 16px;
  color: var(--pw-dark-soft);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.summary-content {
  line-height: 1.8;
  font-size: 16px;
  color: var(--pw-dark-soft);
}
.summary-content h2, .summary-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pw-dark);
  margin: 24px 0 10px;
}
.summary-content p { margin-bottom: 14px; }
.summary-content strong { color: var(--pw-dark); }
.summary-content ul, .summary-content ol { margin: 12px 0; padding-left: 24px; }
.summary-content li { margin-bottom: 8px; }

.book-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .book-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .book-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-lavender-soft));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--pw-gray-light);
}

/* Generated Book Covers */
/* ── Generated Book Covers — Bold, colorful, distinctive ── */
.book-cover-generated {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #6C5CE7, #4834A8);
  color: white;
}
/* Decorative circle accent */
.book-cover-generated::before {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.book-cover-generated::after {
  content: '';
  position: absolute;
  left: -15px; bottom: -15px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.book-cover-generated .bcg-icon {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 20px;
  opacity: .4;
  color: white;
}
.book-cover-generated .bcg-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  color: white;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word; overflow-wrap: break-word;
  position: relative; z-index: 1;
}
.book-cover-generated .bcg-author {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  position: relative; z-index: 1;
}
.book-cover-generated .bcg-year {
  display: none;
}

/* Category colors — each truly distinct */
.book-cover-generated[data-category="sleep"]          { background: linear-gradient(160deg, #6C5CE7, #3D2A8F); }
.book-cover-generated[data-category="nutrition"]       { background: linear-gradient(160deg, #00B894, #006D5B); }
.book-cover-generated[data-category="emotional"]       { background: linear-gradient(160deg, #E84393, #A61D60); }
.book-cover-generated[data-category="discipline"]      { background: linear-gradient(160deg, #E17055, #A14430); }
.book-cover-generated[data-category="brain"]           { background: linear-gradient(160deg, #0984E3, #064F8C); }
.book-cover-generated[data-category="play"]            { background: linear-gradient(160deg, #FDCB6E, #C9950A); color: #2D2016; }
.book-cover-generated[data-category="play"] .bcg-icon,
.book-cover-generated[data-category="play"] .bcg-title { color: #2D2016; }
.book-cover-generated[data-category="play"] .bcg-author { color: rgba(45,32,22,0.7); }
.book-cover-generated[data-category="pregnancy"]       { background: linear-gradient(160deg, #FD79A8, #C44573); }
.book-cover-generated[data-category="mental-health"]   { background: linear-gradient(160deg, #55EFC4, #1A9A72); color: #0B3B2E; }
.book-cover-generated[data-category="mental-health"] .bcg-icon,
.book-cover-generated[data-category="mental-health"] .bcg-title { color: #0B3B2E; }
.book-cover-generated[data-category="mental-health"] .bcg-author { color: rgba(11,59,46,0.7); }
.book-cover-generated[data-category="screens"]         { background: linear-gradient(160deg, #636E72, #2D3436); }
.book-cover-generated[data-category="health-safety"]   { background: linear-gradient(160deg, #74B9FF, #2E7AC7); }
.book-cover-generated[data-category="philosophies"]    { background: linear-gradient(160deg, #A29BFE, #6C5CE7); }
.book-cover-generated[data-category="special-needs"]   { background: linear-gradient(160deg, #FAB1A0, #C77A6A); }
.book-cover-generated[data-category="siblings"]        { background: linear-gradient(160deg, #00CEC9, #00807D); }
.book-cover-generated[data-category="default"]         { background: linear-gradient(160deg, #6C5CE7, #4834A8); }

/* Large variant for summary page */
.book-cover-generated.large {
  width: 100%;
  aspect-ratio: 3/4;
  height: auto;
  min-height: auto;
  padding: 24px 20px;
}
.book-cover-generated.large .bcg-icon { font-size: 28px; top: 16px; right: 16px; }
.book-cover-generated.large .bcg-title { font-size: 17px; line-height: 1.3; margin-bottom: 8px; -webkit-line-clamp: 5; }
.book-cover-generated.large .bcg-author { font-size: 13px; }
.book-cover-generated.large::before { width: 120px; height: 120px; right: -30px; top: -30px; }
.book-cover-generated.large::after { width: 80px; height: 80px; left: -20px; bottom: -20px; }

.book-lock {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--pw-gray);
  margin-top: 6px;
}
.book-meta i { color: var(--pw-coral); font-size: 11px; margin-right: 3px; }

.book-age-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* --- Dashboard layout --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .dashboard-layout { grid-template-columns: 240px 1fr; padding: 28px 32px 60px; }
  .dashboard-layout:not(:has(.dashboard-sidebar)) { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .dashboard-layout { padding: 32px 40px 60px; }
}
.dashboard-content {
  min-width: 0;
  padding: 0 8px;
}
.dashboard-content .container {
  max-width: 100%;
  padding: 0;
}
.dashboard-content > h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--pw-dark);
  margin-bottom: 24px;
}
@media (max-width: 767px) {
  .dashboard-layout { padding: 16px 14px 36px; gap: 12px; overflow-x: hidden; }
  .dashboard-content { padding: 0; min-width: 0; overflow-x: hidden; }

  /* ── Compact mobile welcome ── */
  .dashboard-welcome { margin-bottom: 16px; padding-bottom: 12px; gap: 10px; }
  .dashboard-welcome h1 { font-size: 20px; }
  .welcome-child { font-size: 13px; margin-top: 1px; }
  .streak-counter { padding: 7px 14px; font-size: 13px; }
  .streak-counter i { font-size: 16px; }
  .streak-number { font-size: 18px; }
  .streak-label { font-size: 11px; }

  /* ── Compact mobile tip card ── */
  .daily-tip-card { padding: 18px; margin-bottom: 14px; border-radius: var(--radius-lg); }
  .tip-badge { padding: 4px 10px; font-size: 11px; margin-bottom: 8px; }
  .tip-card-title { font-size: 17px; margin-bottom: 6px; }
  .tip-card-excerpt { font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
  .daily-tip-card .btn { padding: 8px 18px; font-size: 13px; }

  /* ── Compact flashcard reminder ── */
  .flashcard-reminder { padding: 10px 14px; margin-bottom: 14px; gap: 10px; }
  .reminder-icon { font-size: 20px; }
  .flashcard-reminder strong { font-size: 13px; }

  /* ── Compact sections ── */
  .dashboard-section { margin-bottom: 18px; }
  .dashboard-section h3 { font-size: 16px; margin-bottom: 10px; }

  /* ── Continue grid: horizontal compact cards ── */
  .continue-card { flex-direction: row; align-items: center; padding: 12px; gap: 10px; }
  .continue-type { font-size: 10px; letter-spacing: 0.5px; white-space: nowrap; }
  .continue-title { font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .continue-time { font-size: 11px; white-space: nowrap; }

  /* ── Book grid: 2 columns on mobile ── */
  .book-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .book-card { padding: 10px; gap: 8px; }
  .book-cover { width: 60px; min-width: 60px; min-height: 80px; }
  .book-info h4 { font-size: 13px; }
  .book-author { font-size: 11px; }
  .book-time { font-size: 10px; }

  /* ── Stats grid: 2 columns, compact ── */
  .dashboard-stats-grid { gap: 12px; margin-bottom: 18px; grid-template-columns: 1fr 1fr; }
  .stats-card { padding: 14px; border-radius: var(--radius-md); }
  .stats-card h3 { font-size: 14px; margin-bottom: 10px; }
  .stats-list { gap: 8px; }
  .stat-item i { font-size: 16px; margin-bottom: 3px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 11px; }

  /* ── Badge grid compact ── */
  .badge-grid { gap: 6px; }
  .badge-item { width: 34px; height: 34px; font-size: 14px; }

  /* ── Calendar compact ── */
  .calendar-months { gap: 10px; grid-template-columns: repeat(3, 1fr); }
  .calendar-month-label { font-size: 10px; margin-bottom: 4px; }
  .calendar-month-days { gap: 2px; }
}

.dashboard-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--pw-gray-pale);
}
.dashboard-welcome h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
}
.welcome-child { font-size: 14px; color: var(--pw-gray); margin-top: 2px; }
.streak-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pw-sun-soft), var(--pw-peach-soft));
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
}
.streak-counter i { color: var(--pw-coral); font-size: 20px; }
.streak-number { font-size: 22px; color: var(--pw-dark); }
.streak-label { font-size: 13px; color: var(--pw-gray); }

.daily-tip-card {
  background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-peach-soft));
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.6);
  color: var(--pw-lavender-deep);
  margin-bottom: 12px;
}
.tip-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--pw-dark);
  margin-bottom: 8px;
}
.tip-card-excerpt {
  font-size: 14px;
  color: var(--pw-dark-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}

.flashcard-reminder {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--pw-sun-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.reminder-icon { font-size: 24px; color: var(--pw-coral); }
.flashcard-reminder strong { display: block; font-size: 14px; color: var(--pw-dark); }
.flashcard-reminder a { font-size: 13px; font-weight: 700; color: var(--pw-coral); }

.dashboard-section { margin-bottom: 28px; }
.dashboard-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pw-dark);
  margin-bottom: 16px;
}

.continue-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .continue-grid { grid-template-columns: 1fr 1fr 1fr; } }
.continue-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--pw-white);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(45,42,62,0.05);
  transition: all 0.3s;
}
.continue-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.continue-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pw-coral);
}
.continue-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-dark);
}
.continue-time { font-size: 12px; color: var(--pw-gray); }

/* ── Collapsible Stats Section ── */
.stats-collapsible { margin-bottom: 28px; border: none; }
.stats-collapsible summary.stats-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none; padding: 12px 0; user-select: none;
}
.stats-collapsible summary.stats-toggle::-webkit-details-marker { display: none; }
.stats-collapsible summary.stats-toggle h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--pw-dark); margin: 0;
}
.stats-collapsible summary.stats-toggle i {
  font-size: 14px; color: var(--pw-gray);
  transition: transform 0.3s ease;
}
.stats-collapsible[open] summary.stats-toggle i { transform: rotate(180deg); }
.stats-collapsible .dashboard-stats-grid {
  animation: statsReveal 0.3s ease;
}
@keyframes statsReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dashboard-stats-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
@media (min-width: 640px) { .dashboard-stats-grid { grid-template-columns: 1fr 1fr; } }
.stats-card {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: none;
  box-shadow: var(--shadow-sm);
}
.stats-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--pw-dark);
  margin-bottom: 16px;
}
.stats-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-item { text-align: center; }
.stat-item i { font-size: 20px; color: var(--pw-lavender); display: block; margin-bottom: 6px; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--pw-dark); display: block; }
.stat-label { font-size: 12px; color: var(--pw-gray); }

/* badge-grid (used in dashboard home) */
.badge-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Sidebar (dashboard) --- */
.sidebar {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: none;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 80px;
}
@media (max-width: 767px) { .sidebar { position: static; } }

/* ==========================================================
   31. RESPONSIVE BREAKPOINTS
   ========================================================== */
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero-phone { width: 260px; }
  .section-title { font-size: 24px; }
  .hero .btn { padding: 16px 28px; font-size: 15px; }
  .dash-daily-tip h3 { font-size: 17px; max-width: 100%; }
  .dash-daily-tip p { max-width: 100%; }
  .dash-daily-tip::after { display: none; }
  .ob-options { grid-template-columns: 1fr 1fr; }
  .ob-time-options { flex-wrap: wrap; }
  .fc-card-front-question { font-size: 18px; }
  .quiz-q-text { font-size: 17px; }
  .phone-frame { width: 240px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .btn-outline { padding: 12px 20px; font-size: 14px; }
  .hero h1 { font-size: 26px; }
  .price-amount { font-size: 36px; }
  .form-toggle-btn { padding: 8px 6px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   COMPLETE COMPONENT LIBRARY — All missing classes
   ═══════════════════════════════════════════════════════════ */

/* ==========================================================
   31. DASHBOARD SIDEBAR
   ========================================================== */
.dashboard-sidebar {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  border: none;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 80px;
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pw-gray-pale);
  margin-bottom: 16px;
}
.avatar-lg {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-lavender), var(--pw-lavender-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-lg.avatar-img,
.avatar-sm.avatar-img {
  background: none;
  padding: 0;
}
.avatar-lg.avatar-img img,
.avatar-sm.avatar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sidebar-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sidebar-profile-info strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-streak {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--pw-sun-soft), var(--pw-peach-soft));
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #e67e22;
}
.sidebar-streak i { color: #e67e22; }
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--pw-dark-soft);
  transition: all 0.15s;
}
.sidebar-link:hover { background: var(--pw-lavender-soft); color: var(--pw-lavender); }
.sidebar-link.active { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); font-weight: 700; }
.sidebar-link i { width: 20px; text-align: center; font-size: 15px; }
.sidebar-divider {
  height: 1px;
  background: var(--pw-gray-pale);
  margin: 8px 0;
}
.sidebar-upgrade {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #EDE8FF, #D5F7E8);
  border-radius: var(--radius-md);
  text-align: center;
}
.sidebar-upgrade p {
  font-size: 14px;
  color: var(--pw-dark);
  margin-bottom: 10px;
}
.sidebar-upgrade .btn { width: 100%; }
@media (max-width: 767px) {
  .dashboard-sidebar { display: none !important; }
}

/* ==========================================================
   32. DASHBOARD HOME (additional)
   ========================================================== */
.welcome-text { flex: 1; }
.tip-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pw-dark);
}

/* ==========================================================
   33. SETTINGS PAGE
   ========================================================== */
.settings-section {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(45,42,62,0.05);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.settings-section h2,
.settings-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pw-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pw-gray-pale);
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-section h2 i,
.settings-section h3 i { color: var(--pw-lavender); }
.settings-form { max-width: 480px; }
.notification-settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.toggle-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--pw-gray-pale);
  cursor: pointer;
  font-size: 14px;
  color: var(--pw-dark-soft);
  font-weight: 600;
}
.toggle-setting:last-child { border-bottom: none; }
.toggle-setting input[type="checkbox"] {
  width: 44px; height: 24px;
  appearance: none;
  background: var(--pw-gray-pale);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-setting input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-setting input[type="checkbox"]:checked { background: var(--pw-lavender); }
.toggle-setting input[type="checkbox"]:checked::after { transform: translateX(20px); }
.gdpr-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--pw-gray-pale);
  gap: 16px;
}
.gdpr-action:last-child { border-bottom: none; }
.gdpr-action h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--pw-dark); margin-bottom: 2px; }
.gdpr-action p { font-size: 13px; color: var(--pw-gray); margin: 4px 0 0; }
.gdpr-action.danger h4 { color: var(--pw-danger); }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 42, 62, 0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-card {
  background: var(--pw-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: scaleIn 0.3s var(--ease-spring);
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.modal-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--pw-dark);
  margin-bottom: 12px;
}
.modal-card p { font-size: 14px; color: var(--pw-gray); margin-bottom: 24px; line-height: 1.6; }
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================
   34. PROFILE PAGE
   ========================================================== */
/* Profile header */
.profile-page-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 28px;
  background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-lavender-soft));
  border-radius: var(--radius-lg);
}
.profile-avatar-large {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--pw-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--pw-coral);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}
.profile-avatar-large img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}
.avatar-upload-form {
  position: absolute;
  bottom: -2px;
  right: -2px;
}
.avatar-upload-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pw-coral);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid var(--pw-white);
  transition: background 0.2s;
}
.avatar-upload-btn:hover {
  background: var(--pw-coral-deep);
}
.profile-page-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--pw-dark);
  margin-bottom: 2px;
}
.profile-page-email {
  font-size: 14px;
  color: var(--pw-gray);
  margin-bottom: 8px;
}
.profile-page-header .subscription-badge { margin-top: 0; }

/* Profile form */
.profile-form { max-width: 600px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row-3 { grid-template-columns: 1fr; } }

/* Children grid */
.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.child-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--pw-cream);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: box-shadow 0.2s;
}
.child-card:hover { box-shadow: var(--shadow-sm); }
.child-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-sky-soft), var(--pw-mint-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--pw-dark-soft);
  flex-shrink: 0;
}
.child-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  display: block;
}
.child-age { font-size: 13px; color: var(--pw-gray); display: block; }
.child-actions { margin-left: auto; display: flex; gap: 8px; }
.child-action-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pw-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--pw-gray);
  border: 1px solid var(--pw-gray-pale);
  cursor: pointer;
  transition: all 0.2s;
}
.child-action-btn:hover { border-color: var(--pw-danger); color: var(--pw-danger); }

/* Add child form */
.add-child-form {
  background: var(--pw-cream);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 8px;
}
.add-child-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.add-child-title i { color: var(--pw-coral); font-size: 16px; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.stat-card {
  background: var(--pw-cream);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(45,42,62,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-card .stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--pw-coral);
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--pw-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Subscription card (already in Section 21 as .sub-card) */

/* Badge list (compact) */
.badge-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pw-gray-pale);
  transition: background 0.15s;
}
.badge-row:last-child { border-bottom: none; }
.badge-row:hover { background: var(--pw-cream); }
.badge-row-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.badge-row-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--pw-gray);
}
.badge-row-check { color: var(--pw-mint-deep); font-size: 16px; }
.badge-row-lock { color: var(--pw-gray-light); font-size: 14px; }
.badge-row.earned .badge-row-icon {
  background: linear-gradient(135deg, var(--pw-sun), #F59E0B);
  color: var(--pw-white);
  box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
.badge-row.earned .badge-row-label { color: var(--pw-dark); }
.badge-row.locked .badge-row-icon {
  background: var(--pw-gray-pale);
  color: var(--pw-gray-light);
}

/* Activity calendar (with month labels) */
.calendar-months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.calendar-month { min-width: 0; }
.calendar-month-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--pw-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.calendar-month-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.calendar-day {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 3px;
  background: var(--pw-gray-pale);
  transition: transform 0.15s;
  cursor: default;
}
.calendar-day:hover { transform: scale(1.4); }
.calendar-day.level-2 { background: var(--pw-mint-soft); }
.calendar-day.level-3 { background: var(--pw-mint); }
.calendar-day.level-4 { background: var(--pw-mint-deep); }
.calendar-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--pw-gray-pale);
}
.calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--pw-gray);
  font-weight: 600;
}
.calendar-legend-item .calendar-day {
  width: 10px; height: 10px;
  cursor: default;
}
.calendar-legend-item .calendar-day:hover { transform: none; }

/* Profile page responsive */
@media (max-width: 640px) {
  .profile-page-header { flex-direction: column; text-align: center; padding: 24px 20px; }
  .profile-avatar-large { width: 60px; height: 60px; font-size: 24px; }
  .profile-page-name { font-size: 20px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .children-grid { grid-template-columns: 1fr; }
  .badge-row-icon { width: 30px; height: 30px; font-size: 13px; }
  .badge-row { padding: 8px 10px; }
  .calendar-months { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ==========================================================
   35. LIBRARY PAGE
   ========================================================== */
.search-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
}
.search-input {
  flex: 1;
  padding: 8px 14px;
  border: 2px solid var(--pw-gray-pale);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  background: var(--pw-white);
  color: var(--pw-dark);
  transition: border-color 0.2s;
  min-width: 0;
}
@media (min-width: 768px) {
  .search-bar { gap: 8px; margin-bottom: 12px; }
  .search-input { padding: 12px 18px; font-size: 15px; }
}
.search-input:focus { border-color: var(--pw-lavender); outline: none; box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1); }
.search-input::placeholder { color: var(--pw-gray-light); }
.book-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pw-lavender-deep);
  background: var(--pw-lavender-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.book-card.read { opacity: 0.7; }
.book-read-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px; height: 24px;
  background: var(--pw-mint-deep);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
img.lazy { opacity: 0; transition: opacity 0.3s; }
img.lazy[src] { opacity: 1; }

/* ==========================================================
   36. COURSES PAGE
   ========================================================== */
.courses-page { padding: 14px 0 32px; }
.course-card {
  position: relative;
}

/* ==========================================================
   37. COURSE DETAIL (additional)
   ========================================================== */
.course-lesson-list {
  list-style: none;
  max-height: 520px;
  overflow-y: auto;
}
.course-lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  transition: all 0.15s;
  cursor: pointer;
}
.course-lesson-item:hover { background: var(--pw-lavender-soft); }
.course-lesson-item.active { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.course-lesson-item.completed { color: var(--pw-mint-deep); }
.course-lesson-content {
  min-width: 0;
}
.course-lesson-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pw-dark);
  margin-bottom: 20px;
}
.course-lesson-content .summary-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--pw-dark-soft);
}

/* ==========================================================
   37b. COURSE PAGE — Extracted inline styles
   ========================================================== */

/* Course header */
.course-hero { margin-bottom: 24px; }
.course-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.course-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 8px;
}
.course-hero-desc {
  color: var(--pw-gray);
  font-size: 15px;
  margin-bottom: 8px;
}
.course-hero-rating { margin-bottom: 16px; }

/* Progress bar */
.course-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.course-progress-track {
  flex: 1;
  height: 8px;
  background: var(--pw-light, #f0f0f0);
  border-radius: 4px;
  overflow: hidden;
}
.course-progress-fill {
  height: 100%;
  background: var(--pw-green, #38b000);
  border-radius: 4px;
  transition: width 0.3s;
}
.course-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--pw-gray);
  white-space: nowrap;
}

/* Completion celebration */
.course-completion {
  background: linear-gradient(135deg, var(--pw-mint-soft, #f0fff4), var(--pw-peach-soft, #fff4f0));
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 28px;
}
.course-completion-icon { font-size: 64px; margin-bottom: 12px; }
.course-completion h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
}
.course-completion p {
  color: var(--pw-gray);
  font-size: 15px;
}

/* Sidebar — override/extend existing .course-sidebar */
.course-sidebar {
  overflow: hidden;
}
.course-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pw-border, #e8e8e8);
  font-weight: 700;
  font-size: 14px;
}

/* Lesson item (in course page sidebar) */
.course-lesson-item {
  padding: 12px 20px;
  gap: 10px;
  text-decoration: none;
  color: var(--pw-dark);
  border-left: 3px solid transparent;
  transition: background 0.2s;
}
.course-lesson-item.active {
  border-left-color: var(--pw-coral, #ff6b6b);
  background: var(--pw-peach-soft, #fff4f0);
}
.course-lesson-item:hover { background: var(--pw-light, #f8f8f8); }
.course-lesson-item.active:hover { background: var(--pw-peach-soft, #fff4f0); }

/* Lesson status icon (circle) */
.course-lesson-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  background: var(--pw-light, #f0f0f0);
  color: var(--pw-gray);
}
.course-lesson-icon.is-completed { background: var(--pw-green, #38b000); color: #fff; }
.course-lesson-icon.is-active { background: var(--pw-coral, #ff6b6b); color: #fff; }
.course-lesson-item-body { flex: 1; min-width: 0; }
.course-lesson-item-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.course-lesson-item.active .course-lesson-item-title { font-weight: 700; }
.course-lesson-item-time {
  font-size: 11px;
  color: var(--pw-gray);
}

/* Lesson content card */
.course-lesson-card {
  background: var(--pw-white, #fff);
  border-radius: 16px;
  border: 1px solid var(--pw-border, #e8e8e8);
  padding: 32px;
}
.course-lesson-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pw-gray);
  margin-bottom: 12px;
}
.course-lesson-meta-time { margin-left: 8px; }
.course-lesson-card > h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 20px;
}
.course-lesson-body {
  line-height: 1.8;
  font-size: 15px;
}

/* Mark complete / completed badge */
.course-mark-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--pw-border, #e8e8e8);
  text-align: center;
}
.course-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--pw-mint-soft, #f0fff4);
  border-radius: 12px;
  color: var(--pw-green, #38b000);
  font-weight: 600;
}

/* Prev / Next navigation */
.course-prev-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pw-border, #e8e8e8);
}

/* Icon spacing helpers (small inline margins) */
.course-icon-mr { margin-right: 6px; }
.course-icon-ml { margin-left: 6px; }

/* Responsive override for course layout */
@media (max-width: 768px) {
  .course-layout { grid-template-columns: 1fr !important; }
  .course-sidebar { position: static !important; }
  .course-lesson-list { max-height: 250px !important; }
}

/* ==========================================================
   38. DAILY TIP PAGE
   ========================================================== */
.tip-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 14px 0 32px;
}
@media (min-width: 768px) {
  .tip-layout { grid-template-columns: 1fr 300px; }
}
.tip-main { min-width: 0; }
.tip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tip-personalized {
  font-size: 13px;
  color: var(--pw-gray);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-personalized i { color: var(--pw-coral); }
.tip-box {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(45,42,62,0.05);
  box-shadow: var(--shadow-sm);
}
.tip-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tip-box-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--pw-dark);
}
.tip-box-header i { font-size: 18px; }
.tip-science { border-left: 4px solid var(--pw-sky); }
.tip-science .tip-box-header i { color: var(--pw-sky); }
.tip-do { border-left: 4px solid var(--pw-mint-deep); }
.tip-do .tip-box-header i { color: var(--pw-mint-deep); }
.tip-dont { border-left: 4px solid var(--pw-danger); }
.tip-dont .tip-box-header i { color: var(--pw-danger); }
.tip-source {
  font-size: 13px;
  color: var(--pw-gray);
  font-style: italic;
  padding: 12px 16px;
  background: var(--pw-cream);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.tip-source strong { color: var(--pw-dark-soft); font-style: normal; }
.tip-feedback {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(45,42,62,0.05);
  margin-bottom: 20px;
}
.tip-feedback p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  margin-bottom: 12px;
}
.feedback-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.feedback-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--pw-gray-pale);
  background: var(--pw-white);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-dark-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.feedback-btn:hover { border-color: var(--pw-coral); color: var(--pw-coral); }
.feedback-btn.active { border-color: var(--pw-coral); background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.tip-share {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--pw-gray-pale);
  background: var(--pw-white);
  font-size: 13px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.share-btn:hover { border-color: var(--pw-coral); color: var(--pw-coral); }

/* Sidebar cards (shared: daily-tip, summary) */
.sidebar-card {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(45,42,62,0.05);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.sidebar-card h3,
.sidebar-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  margin-bottom: 12px;
}
.recent-tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recent-tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  transition: background 0.15s;
}
.recent-tip-item:hover { background: var(--pw-cream-deep); }
.recent-tip-item i { color: var(--pw-coral); font-size: 14px; flex-shrink: 0; }
.upgrade-card {
  background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-peach-soft));
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.upgrade-card h3,
.upgrade-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--pw-dark);
  margin-bottom: 8px;
}
.upgrade-card p { font-size: 13px; color: var(--pw-gray); margin-bottom: 16px; line-height: 1.5; }
.upgrade-card .btn { width: 100%; }

/* ==========================================================
   39. SUMMARY PAGE
   ========================================================== */
.summary-page { padding: 14px 0 32px; }
.summary-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.summary-main { min-width: 0; }
.summary-sidebar { height: fit-content; position: sticky; top: 80px; }
/* Summary header — Row 1: badge + title block, Row 2: cover + meta */
.summary-header {
  margin-bottom: 24px;
}
.summary-category-badge {
  margin-bottom: 10px;
}
.summary-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--pw-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
@media (min-width: 600px) {
  .summary-title { font-size: 28px; }
}
.summary-header-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 600px) {
  .summary-header-body { gap: 24px; }
}
.summary-cover {
  width: 140px;
  min-width: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .summary-cover { width: 200px; min-width: 200px; }
}
.summary-cover img { width: 100%; height: auto; display: block; }
.summary-cover .book-cover-generated.large {
  min-height: 190px;
  font-size: 1em;
}
@media (min-width: 600px) {
  .summary-cover .book-cover-generated.large { min-height: 280px; font-size: 1.1em; }
}
.summary-header-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.original-title { font-size: 13px; color: var(--pw-gray); font-style: italic; margin: -4px 0 8px; }
.summary-author {
  font-size: 15px;
  color: var(--pw-gray);
  margin-bottom: 12px;
}
.summary-author .author-link { font-size: 15px; font-weight: 600; }
.summary-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--pw-gray);
  font-weight: 600;
  margin-bottom: 12px;
}
.summary-meta span { display: flex; align-items: center; gap: 4px; }
.summary-meta i { color: var(--pw-coral); font-size: 12px; }
.summary-age-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.summary-section {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(45,42,62,0.05);
  box-shadow: var(--shadow-sm);
}
.summary-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pw-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.summary-section h2 i { color: var(--pw-coral); font-size: 16px; }
.summary-quote {
  background: linear-gradient(135deg, var(--pw-cream), var(--pw-peach-soft));
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  border-left: 4px solid var(--pw-coral);
  font-style: italic;
}
.summary-quote p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--pw-dark);
  margin-bottom: 8px;
}
.summary-quote cite {
  font-size: 13px;
  color: var(--pw-gray);
  font-style: normal;
  font-weight: 600;
}
.takeaways-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.takeaway-number, .takeaway-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-peach));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.tips-section .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.tip-action-card {
  background: var(--pw-cream);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 14px;
  color: var(--pw-dark-soft);
  line-height: 1.6;
  border-left: 3px solid var(--pw-mint);
}
.summary-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.action-cta {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--pw-gray-pale);
  background: var(--pw-white);
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}
.action-cta:hover { border-color: var(--pw-coral); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.flashcard-cta i { color: var(--pw-lavender-deep); font-size: 24px; }
.quiz-cta i { color: var(--pw-mint-deep); font-size: 24px; }
.action-cta strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  display: block;
}
.action-cta span { font-size: 12px; color: var(--pw-gray); }
.summary-rating {
  text-align: center;
  padding: 20px;
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  border: 1px solid rgba(45,42,62,0.05);
}
.summary-rating p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  margin-bottom: 12px;
}
.star-rating {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.star-btn {
  font-size: 24px;
  color: var(--pw-gray-pale);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  background: none;
  border: none;
  padding: 4px;
}
.star-btn:hover, .star-btn.active { color: var(--pw-sun); transform: scale(1.2); }

/* ── Star rating display ───────────────────────────── */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--pw-sun); }
.stars i { line-height: 1; }
.stars-sm i { font-size: 12px; }
.stars-md i { font-size: 15px; }
.stars-lg i { font-size: 18px; }
.stars-num { font-size: 13px; font-weight: 700; color: var(--pw-dark); margin-left: 4px; }
.stars-md .stars-num { font-size: 15px; }
.stars-lg .stars-num { font-size: 17px; }
.stars-count { font-size: 12px; color: var(--pw-gray); margin-left: 2px; }

.sidebar-book {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  margin-bottom: 8px;
}
.sidebar-book:hover { background: var(--pw-cream-deep); }
.sidebar-book-cover {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pw-gray-pale);
}
.sidebar-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-book h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--pw-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.sidebar-book p { font-size: 12px; color: var(--pw-gray); }
.book-cover-placeholder.large {
  width: 160px;
  height: 220px;
  font-size: 48px;
}

/* Summary page — mobile: reduce padding so more text fits per line */
@media (max-width: 767px) {
  .summary-page { padding: 8px 0 32px; }
  .summary-page .container { padding: 0 6px; }
  .summary-section { padding: 16px 14px; margin-bottom: 12px; border-radius: var(--radius-md); }
  .summary-section h2 { font-size: 16px; margin-bottom: 10px; gap: 8px; }
  .summary-section h2 i { font-size: 14px; }
  .summary-section p,
  .summary-content { font-size: 15px; line-height: 1.7; }
  .summary-content h2, .summary-content h3 { margin: 18px 0 8px; font-size: 18px; }
  .core-idea { padding: 16px 14px; margin-bottom: 14px; }
  .core-idea::before { top: 10px; right: 10px; font-size: 20px; }
  .core-idea p { font-size: 15px; max-width: 100%; }
  .takeaways-list { gap: 8px; }
  .takeaway-item { padding: 14px 12px; gap: 6px; }
  .takeaway-number, .takeaway-num { width: 24px; height: 24px; font-size: 12px; }
  .takeaway-text, .takeaway-item p { font-size: 14px; line-height: 1.6; }
  .tip-action-card { padding: 12px; font-size: 13px; }
  .tips-section .tips-grid { grid-template-columns: 1fr; gap: 8px; }
  .summary-quote { padding: 14px; border-radius: var(--radius-md); }
  .summary-quote p { font-size: 15px; }
  .summary-header { margin-bottom: 14px; }
  .summary-category-badge { margin-bottom: 8px; }
  .summary-title { font-size: 20px; margin-bottom: 4px; }
  .summary-header-body { gap: 12px; }
  .summary-cover { width: 120px; min-width: 120px; }
  .summary-cover .book-cover-generated.large { min-height: 160px; font-size: 0.9em; }
  .summary-rating { padding: 14px; }
  .breadcrumb-nav { padding: 8px 0; font-size: 12px; gap: 6px; }
  .action-cta { padding: 12px; min-width: 0; }
  .summary-actions { gap: 8px; }

  /* ── Library book card — bigger cover, better layout ── */
  .library-page .container { padding: 0 12px; }
  .library-header h1 { font-size: 24px; }
  .library-header p { font-size: 14px; }
  .library-filters { gap: 10px; }
  .book-card { padding: 14px; gap: 10px; }
  .book-card-body { gap: 12px; }
  .book-card .book-cover { width: 100px; min-width: 100px; min-height: 140px; }
  .book-title { font-size: 15px; }
  .book-meta { gap: 8px; font-size: 12px; }
  .age-tag { font-size: 11px; padding: 2px 8px; }
}
@media (max-width: 480px) {
  .summary-page .container { padding: 0 4px; }
  .summary-section { padding: 14px 10px; }
  .core-idea { padding: 14px 10px; }
  .summary-title { font-size: 18px; }
  .summary-cover { width: 100px; min-width: 100px; }
  .summary-cover .book-cover-generated.large { min-height: 140px; }

  /* ── Ultra-small library card ── */
  .book-card .book-cover { width: 90px; min-width: 90px; min-height: 120px; }
}

/* ==========================================================
   40. CRISIS PAGE
   ========================================================== */
.crisis-listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.crisis-card {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(45,42,62,0.05);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-spring);
  display: flex;
  flex-direction: column;
}
.crisis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.crisis-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--pw-dark);
  margin-bottom: 8px;
}
.crisis-card p { font-size: 13px; color: var(--pw-gray); line-height: 1.5; flex: 1; }
.crisis-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 14px 0 32px;
}
@media (min-width: 768px) {
  .crisis-article { grid-template-columns: 1fr 280px; }
}
.crisis-content {
  min-width: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--pw-dark-soft);
}
.crisis-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--pw-dark);
  margin: 24px 0 12px;
}
.crisis-cta {
  background: linear-gradient(135deg, var(--pw-peach-soft), var(--pw-lavender-soft));
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}
.crisis-cta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--pw-dark);
  margin-bottom: 8px;
}
.crisis-cta p { font-size: 14px; color: var(--pw-gray); margin-bottom: 20px; }
.emergency-box {
  background: rgba(255, 107, 107, 0.08);
  border: 2px solid var(--pw-danger);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.emergency-box h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pw-danger);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.emergency-box p { font-size: 14px; color: var(--pw-dark-soft); }

/* ==========================================================
   41. CHECKOUT PAGE
   ========================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 14px 0 32px;
}
@media (min-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr 360px; }
}
.checkout-main { min-width: 0; }
.checkout-sidebar { height: fit-content; position: sticky; top: 80px; }
.plan-toggle {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.plan-option {
  flex: 1;
  padding: 20px;
  border: 2px solid var(--pw-gray-pale);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  text-align: center;
  position: relative;
}
.plan-option:hover { border-color: var(--pw-lavender); }
.plan-option.active { border-color: var(--pw-coral); background: var(--pw-peach-soft); }
.plan-option input { display: none; }
.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--pw-dark);
  display: block;
  margin-bottom: 4px;
}
.plan-option.active .plan-price { color: var(--pw-coral-deep); }
.plan-save {
  display: inline-block;
  background: var(--pw-mint);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  position: absolute;
  top: -10px;
  right: 12px;
}
.order-summary {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(45,42,62,0.05);
  box-shadow: var(--shadow-sm);
}
.order-summary h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pw-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pw-gray-pale);
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--pw-dark-soft);
}
.order-line.equiv {
  font-size: 12px;
  color: var(--pw-gray);
  padding-top: 0;
}
.order-line strong { font-weight: 700; }
.order-line.trial { color: var(--pw-mint-deep); font-weight: 600; }
.order-line.total { font-weight: 700; font-size: 16px; color: var(--pw-dark); padding-top: 12px; border-top: 2px solid var(--pw-dark); margin-top: 4px; }
.free-badge {
  background: var(--pw-mint);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.order-features {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pw-gray-pale);
}
.order-features h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-dark);
  margin-bottom: 10px;
}
.order-features ul { list-style: none; }
.order-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--pw-dark-soft);
}
.order-features li i { color: var(--pw-mint-deep); font-size: 12px; }
.guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pw-gray-pale);
  font-size: 13px;
  color: var(--pw-gray);
}
.guarantee:last-child { border-bottom: none; }
.guarantee i { color: var(--pw-mint-deep); font-size: 16px; flex-shrink: 0; }
.checkout-note {
  text-align: center;
  font-size: 12px;
  color: var(--pw-gray);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================
   404 PAGE
   ========================================================== */
.page-404 {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 14px 20px 32px;
  background: linear-gradient(135deg, var(--pw-cream) 0%, var(--pw-peach-soft) 50%, var(--pw-lavender-soft) 100%);
}
.p404-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.p404-bg-item {
  position: absolute;
  font-size: 40px;
  opacity: 0.15;
  animation: p404Float 6s ease-in-out infinite;
}
.p404-bg-item:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.p404-bg-item:nth-child(2) { top: 20%; right: 8%; animation-delay: 1s; }
.p404-bg-item:nth-child(3) { bottom: 30%; left: 12%; animation-delay: 2s; }
.p404-bg-item:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 3s; }
.p404-bg-item:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; }
.p404-bg-item:nth-child(6) { top: 5%; right: 30%; animation-delay: 5s; }
@keyframes p404Float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}
.p404-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}
.p404-emoji {
  font-size: 72px;
  margin-bottom: 8px;
  animation: p404Bounce 2s ease-in-out infinite;
}
@keyframes p404Bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.p404-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}
.p404-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--pw-dark);
  margin-bottom: 12px;
}
.p404-text {
  font-size: 15px;
  color: var(--pw-gray);
  line-height: 1.7;
  margin-bottom: 28px;
}
.p404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.p404-suggestion {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.p404-suggestion-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.p404-suggestion-title i { color: var(--pw-sun); }
.p404-suggestion-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--pw-dark-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 1px solid var(--pw-gray-pale);
}
.p404-suggestion-item:last-child { border-bottom: none; }
.p404-suggestion-item:hover { color: var(--pw-coral); padding-left: 6px; }
.p404-suggestion-item i { color: var(--pw-gray-light); font-size: 11px; }
@media (max-width: 480px) {
  .p404-code { font-size: 64px; }
  .p404-title { font-size: 20px; }
  .p404-emoji { font-size: 56px; }

  /* ── Ultra-compact dashboard for small phones ── */
  .dashboard-layout { padding: 12px 10px 32px; gap: 10px; }
  .dashboard-welcome { margin-bottom: 12px; padding-bottom: 10px; }
  .dashboard-welcome h1 { font-size: 18px; }
  .streak-counter { padding: 6px 12px; }
  .daily-tip-card { padding: 14px; margin-bottom: 12px; }
  .tip-card-title { font-size: 15px; }
  .dashboard-section { margin-bottom: 14px; }
  .dashboard-section h3 { font-size: 15px; margin-bottom: 8px; }
  .book-grid { gap: 8px; }
  .book-card { padding: 8px; }
  .book-cover { width: 50px; min-width: 50px; min-height: 68px; }
  .stats-card { padding: 12px; }
  .stats-card h3 { font-size: 13px; margin-bottom: 8px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 10px; }
  .calendar-months { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ══════════════════════════════════════════════════════════════
   PWA — Install Banner, Update Banner, Offline Button
   ══════════════════════════════════════════════════════════════ */
.pwa-install-banner,
.pwa-update-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  width: calc(100% - 32px);
  max-width: 480px;
  background: var(--pw-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 16px 20px;
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--pw-border);
}
.pwa-install-banner.visible,
.pwa-update-banner.visible {
  transform: translateX(-50%) translateY(0);
}
.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pwa-install-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}
.pwa-install-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.pwa-update-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

/* Save Offline button */
.save-offline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--pw-border);
  background: var(--pw-white);
  color: var(--pw-gray);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.save-offline-btn:hover {
  border-color: var(--pw-lavender-deep);
  color: var(--pw-lavender-deep);
}
.save-offline-btn.saving {
  opacity: 0.6;
  pointer-events: none;
}
.save-offline-btn.saved {
  border-color: var(--pw-green, #38b000);
  color: var(--pw-green, #38b000);
}
.save-offline-btn.saved .offline-label-save { display: none; }
.save-offline-btn .offline-label-saved { display: none; }
.save-offline-btn.saved .offline-label-saved { display: inline; }

/* Paywall countdown */
.paywall-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 16px;
  color: var(--pw-dark);
}
.countdown-time {
  font-weight: 700;
  font-size: 20px;
  color: var(--pw-lavender-deep);
  font-family: var(--font-display);
}

/* ══════════════════════════════════════════════════════════════
   Highlights
   ══════════════════════════════════════════════════════════════ */
mark.highlight-yellow { background: rgba(255, 243, 163, 0.5); border-radius: 2px; cursor: pointer; padding: 1px 0; }
mark.highlight-green  { background: rgba(168, 230, 207, 0.5); border-radius: 2px; cursor: pointer; padding: 1px 0; }
mark.highlight-blue   { background: rgba(163, 213, 255, 0.5); border-radius: 2px; cursor: pointer; padding: 1px 0; }
mark.highlight-pink   { background: rgba(255, 179, 186, 0.5); border-radius: 2px; cursor: pointer; padding: 1px 0; }

.hl-tooltip {
  position: absolute;
  transform: translateX(-50%);
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  border: 1px solid var(--pw-border);
  animation: hlFadeIn 0.15s ease;
}
@keyframes hlFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hl-colors { display: flex; gap: 6px; }
.hl-color-btn {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s;
}
.hl-color-btn.active, .hl-color-btn:hover { border-color: var(--pw-dark); }
.hl-save-btn, .hl-delete-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: var(--radius-sm);
  color: var(--pw-gray); font-size: 14px; transition: color 0.15s, background 0.15s;
}
.hl-save-btn:hover { color: var(--pw-lavender-deep); background: var(--pw-lavender-soft); }
.hl-delete-btn:hover { color: var(--pw-coral-deep); background: var(--pw-peach-soft); }

/* Mobile highlight FAB — floating button that appears when text is selected */
.hl-fab {
  position: fixed;
  top: 70px;
  right: 12px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: var(--pw-lavender);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.4);
  z-index: 150;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hl-fab i { font-size: 16px; }
.hl-fab:active { transform: scale(0.95); }

/* Disable native callout on summary content (iOS) */
.summary-main { -webkit-touch-callout: none; }

/* Mobile highlight tooltip — fixed bar at bottom */
.hl-tooltip-mobile {
  position: fixed !important;
  bottom: 56px !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  transform: none !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 14px 20px;
  gap: 12px;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  animation: hlSlideUp 0.2s ease;
}
.hl-tooltip-mobile .hl-colors { gap: 12px; }
.hl-tooltip-mobile .hl-color-btn { width: 36px; height: 36px; border-width: 3px; }
.hl-tooltip-mobile .hl-tooltip-label {
  color: var(--pw-gray);
  font-size: 16px;
}
@keyframes hlSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Highlights page */
.highlights-group { margin-bottom: 32px; }
.highlights-group-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--pw-border);
}
.highlights-group-header img { width: 40px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.highlights-group-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.highlights-group-header h3 a { color: var(--pw-dark); text-decoration: none; }
.highlights-group-header h3 a:hover { color: var(--pw-lavender-deep); }
.highlight-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--pw-border-light, #f5f5f5);
}
.highlight-color-bar { width: 4px; border-radius: 2px; flex-shrink: 0; }
.highlight-color-bar.yellow { background: #fff3a3; }
.highlight-color-bar.green  { background: #a8e6cf; }
.highlight-color-bar.blue   { background: #a3d5ff; }
.highlight-color-bar.pink   { background: #ffb3ba; }
.highlight-item-body { flex: 1; min-width: 0; }
.highlight-item-text { font-size: 14px; line-height: 1.6; color: var(--pw-dark); margin-bottom: 4px; }
.highlight-item-note { font-size: 13px; color: var(--pw-gray); font-style: italic; margin-bottom: 4px; }
.highlight-item-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--pw-gray); }
.highlight-item-meta .hl-delete-link { color: var(--pw-gray); cursor: pointer; transition: color 0.15s; }
.highlight-item-meta .hl-delete-link:hover { color: var(--pw-coral-deep); }

/* Saved shorts grid on highlights page */
.saved-shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.saved-short-card {
    background: var(--pw-white);
    border-radius: var(--radius-md, 12px);
    padding: 20px;
    border: 1px solid var(--pw-gray-pale, #F0EDF6);
    transition: transform 0.2s, box-shadow 0.2s;
}
.saved-short-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.saved-short-category {
    font-size: 0.8rem;
    color: var(--pw-gray, #8E8BA3);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.saved-short-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pw-dark, #2D2B3D);
    margin: 0 0 8px;
    line-height: 1.4;
}
.saved-short-body {
    font-size: 0.9rem;
    color: var(--pw-gray, #8E8BA3);
    line-height: 1.5;
    margin: 0 0 12px;
}
.saved-short-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--pw-gray, #8E8BA3);
}
.saved-short-meta .hl-delete-link { cursor: pointer; color: var(--pw-gray, #8E8BA3); transition: color 0.15s; }
.saved-short-meta .hl-delete-link:hover { color: var(--pw-coral-deep, #e0694e); }

/* ═══ Shorts Feed ═══════════════════════════════════════════ */
.shorts-feed {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    height: calc(100vh - 140px);
    overflow: hidden;
    border-radius: var(--radius-lg, 16px);
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}
.shorts-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--pw-gray, #8E8BA3);
    font-size: 1.1rem;
    gap: 8px;
}
.short-card {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    border-radius: var(--radius-lg, 16px);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
    will-change: transform, opacity;
    user-select: none;
    -webkit-user-select: none;
}
.short-card.active { transform: translateY(0); opacity: 1; z-index: 2; }
.short-card.next { transform: translateY(92%); opacity: 0.6; z-index: 1; scale: 0.96; }
.short-card.prev { transform: translateY(-110%); opacity: 0; z-index: 0; }
.short-card.hidden { display: none; }

/* Shorts gradients — deep, dark backgrounds for maximum text contrast */
.short-card[data-cat="sleep"]          { background: linear-gradient(160deg, #3D2A8F 0%, #1A1145 100%); }
.short-card[data-cat="nutrition"]      { background: linear-gradient(160deg, #1B5E3F 0%, #0D2E1F 100%); }
.short-card[data-cat="emotional"]      { background: linear-gradient(160deg, #8B1A53 0%, #4A0E2C 100%); }
.short-card[data-cat="discipline"]     { background: linear-gradient(160deg, #7A3520 0%, #3D1A10 100%); }
.short-card[data-cat="brain"]          { background: linear-gradient(160deg, #0B4F7A 0%, #062740 100%); }
.short-card[data-cat="play"]           { background: linear-gradient(160deg, #7A6508 0%, #3D3204 100%); }
.short-card[data-cat="pregnancy"]      { background: linear-gradient(160deg, #8B2A55 0%, #4A1530 100%); }
.short-card[data-cat="mental-health"]  { background: linear-gradient(160deg, #1A6B50 0%, #0D3528 100%); }
.short-card[data-cat="screens"]        { background: linear-gradient(160deg, #2D3436 0%, #151A1B 100%); }
.short-card[data-cat="health-safety"]  { background: linear-gradient(160deg, #1A4A7A 0%, #0D2540 100%); }
.short-card[data-cat="philosophies"]   { background: linear-gradient(160deg, #4A3D8F 0%, #251E4A 100%); }
.short-card[data-cat="special-needs"]  { background: linear-gradient(160deg, #7A4A3D 0%, #3D251E 100%); }
.short-card[data-cat="siblings"]       { background: linear-gradient(160deg, #1A6B6B 0%, #0D3535 100%); }
.short-card[data-cat="default"]        { background: linear-gradient(160deg, #3D2A8F 0%, #1A1145 100%); }

.short-card-category {
    position: absolute;
    top: 20px; left: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}
.short-card-counter {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}
.short-card-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
    color: #fff;
}
.short-card-body {
    font-size: 1rem;
    line-height: 1.65;
    opacity: 1;
    max-height: 50vh;
    overflow-y: auto;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.95);
}
.short-card-link {
    position: absolute;
    bottom: 72px; left: 24px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.short-card-link:hover { opacity: 1; text-decoration: underline; }

.short-card-nav {
    position: absolute;
    bottom: 24px; right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}
.short-card-nav button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.short-card-nav button:hover { background: rgba(255,255,255,0.3); }

.short-card-actions {
    position: absolute;
    bottom: 24px; left: 24px; right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}
.short-save-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.short-save-btn:hover { background: rgba(255,255,255,0.3); }
.short-save-btn.saved {
    background: rgba(255,255,255,0.9);
    color: var(--pw-coral, #FF8A6C);
    border-color: rgba(255,255,255,0.9);
}
.short-save-btn.saved:hover {
    background: var(--pw-white);
}
.short-card-actions .share-buttons {
    display: flex;
    gap: 6px;
}
.short-card-actions .share-btn {
    width: 32px; height: 32px;
    font-size: 0.8rem;
}

.shorts-all-seen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--pw-gray, #8E8BA3);
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
}
.shorts-all-seen i { font-size: 2.5rem; color: var(--pw-lavender, #C4B1F0); }
.shorts-all-seen p { font-size: 1.1rem; max-width: 300px; }

.shorts-hint {
    text-align: center;
    margin-top: 12px;
    color: var(--pw-gray, #8E8BA3);
    font-size: 0.85rem;
}

/* When shorts page is active, prevent parent from scrolling */
.dashboard-content:has(.shorts-feed) {
    overflow: hidden;
    height: calc(100vh - 80px);
}

@media (max-width: 768px) {
    .shorts-feed { height: calc(100vh - 60px); border-radius: 0; max-width: 100%; }
    .short-card { border-radius: 0; padding: 24px 20px; }
    .short-card-title { font-size: 1.4rem; }
    .dashboard-content:has(.shorts-feed) { height: calc(100vh - 56px); }
}

/* ═══ Challenges ════════════════════════════════════════════ */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.challenge-card {
    background: var(--pw-white, #FDFBF7);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.challenge-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.challenge-card.completed { opacity: 0.7; }
.challenge-card-cover { position: relative; height: 140px; overflow: hidden; background: linear-gradient(135deg, var(--pw-lavender), var(--pw-coral)); }
.challenge-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.challenge-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.5rem; color: rgba(255,255,255,0.6); }
.challenge-card-info { padding: 16px; }
.challenge-card-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--pw-gray); display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.challenge-card-info h3 { font-size: 1.05rem; margin: 0 0 8px; font-weight: 700; }
.challenge-card-days { font-size: 0.85rem; color: var(--pw-gray); }
.badge-free { position: absolute; top: 10px; right: 10px; background: var(--pw-mint); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }

.challenge-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--pw-white, #FDFBF7);
    border-radius: var(--radius-lg, 16px);
    border-left: 4px solid var(--pw-mint, #A8E6CF);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.challenge-banner:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.challenge-banner-img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.challenge-banner-info h2 { font-size: 1.15rem; margin: 0 0 6px; }
.challenge-progress-mini { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.9rem; color: var(--pw-gray); }

.challenge-header { margin-bottom: 28px; }
.challenge-cover { border-radius: var(--radius-lg, 16px); overflow: hidden; max-height: 200px; margin-bottom: 16px; }
.challenge-cover img { width: 100%; height: 200px; object-fit: cover; }
.challenge-header-info h1 { margin: 8px 0; }
.challenge-category-badge { font-size: 0.8rem; color: var(--pw-gray); display: inline-flex; align-items: center; gap: 4px; }
.challenge-meta { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.challenge-days-text { font-size: 0.95rem; color: var(--pw-gray); }

.challenge-paywall {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 24px;
    border-radius: var(--radius-lg, 16px);
    text-align: center;
    margin-top: 16px;
}

.challenge-timeline { padding: 8px 0 32px; }
.timeline-day {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    position: relative;
}
.timeline-connector {
    position: absolute;
    left: 17px; top: 44px; bottom: -12px;
    width: 2px;
    background: var(--pw-border);
}
.timeline-day:last-child .timeline-connector { display: none; }
.timeline-day.completed .timeline-connector { background: var(--pw-mint, #A8E6CF); }
.timeline-marker {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: var(--pw-cream-deep);
    color: var(--pw-gray);
    border: 2px solid var(--pw-border);
    z-index: 1;
}
.timeline-day.completed .timeline-marker { background: var(--pw-mint); color: #fff; border-color: var(--pw-mint); }
.timeline-day.current .timeline-marker { background: var(--pw-coral); color: #fff; border-color: var(--pw-coral); animation: pulse 2s infinite; }
.timeline-content { flex: 1; }
.timeline-content h4 { margin: 6px 0 4px; font-size: 0.95rem; }
.timeline-content p { font-size: 0.9rem; color: var(--pw-gray); margin: 4px 0 8px; }
.timeline-day.future { opacity: 0.5; }
.timeline-day.future .timeline-content p { display: none; }
.challenge-done-btn { margin-top: 4px; }

.progress-ring circle:first-child { opacity: 0.3; }
.badge-success { color: var(--pw-mint); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,138,108,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,138,108,0); }
}

/* ═══ Celebration Modal ═════════════════════════════════════ */
.celebration-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.celebration-content {
    background: var(--pw-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 320px;
}

/* ═══ Growth Plans ══════════════════════════════════════════ */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.plan-card {
    background: var(--pw-white, #FDFBF7);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.plan-card.completed { opacity: 0.7; }
.plan-card-cover { position: relative; height: 140px; overflow: hidden; background: linear-gradient(135deg, var(--pw-mint), var(--pw-lavender)); }
.plan-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.plan-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.5rem; color: rgba(255,255,255,0.6); }
.plan-card-info { padding: 16px; }
.plan-card-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--pw-gray); display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.plan-card-info h3 { font-size: 1.05rem; margin: 0 0 8px; font-weight: 700; }
.plan-card-books { font-size: 0.85rem; color: var(--pw-gray); }
.badge-lock { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.badge-info { color: var(--pw-lavender); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

.plan-active-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--pw-white, #FDFBF7);
    border-radius: var(--radius-lg, 16px);
    border-left: 4px solid var(--pw-lavender, #C4B1F0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    margin-bottom: 12px;
}
.plan-active-cover { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.plan-active-info { flex: 1; }
.plan-active-info h3 { font-size: 1rem; margin: 0 0 8px; }

.plan-progress-bar, .plan-progress-bar-lg {
    height: 8px;
    background: var(--pw-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.plan-progress-bar-lg { height: 10px; margin: 12px 0 4px; }
.plan-progress-fill { height: 100%; background: linear-gradient(90deg, var(--pw-lavender), var(--pw-mint)); border-radius: 4px; transition: width 0.5s ease; }
.plan-progress-text { font-size: 0.85rem; color: var(--pw-gray); }

.plan-header { margin-bottom: 28px; }
.plan-cover { border-radius: var(--radius-lg, 16px); overflow: hidden; max-height: 200px; margin-bottom: 16px; }
.plan-cover img { width: 100%; height: 200px; object-fit: cover; }
.plan-category-badge { font-size: 0.8rem; color: var(--pw-gray); display: inline-flex; align-items: center; gap: 4px; }

.plan-steps { margin-top: 8px; }
.plan-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    margin-bottom: 4px;
}
.plan-step:hover { background: rgba(0,0,0,0.03); }
.plan-step.unread { opacity: 0.55; }
.plan-step.next { background: rgba(168,230,207,0.1); border: 1px solid var(--pw-mint); }
.plan-step-number {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: var(--pw-cream-deep);
    color: var(--pw-gray);
}
.plan-step.read .plan-step-number { background: var(--pw-mint); color: #fff; }
.plan-step.next .plan-step-number { background: var(--pw-coral); color: #fff; }
.plan-step-cover { width: 48px; height: 64px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.plan-step-cover img { width: 100%; height: 100%; object-fit: cover; }
.plan-step-placeholder { width: 100%; height: 100%; background: var(--pw-cream-deep); display: flex; align-items: center; justify-content: center; color: var(--pw-gray-light); }
.plan-step-info { flex: 1; }
.plan-step-info h4 { margin: 0 0 2px; font-size: 0.95rem; }
.plan-step-author { font-size: 0.8rem; color: var(--pw-gray); margin: 0; }
.plan-step-time { font-size: 0.8rem; color: var(--pw-gray); }

/* XP Widget */
.xp-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(196,177,240,0.12), rgba(168,230,207,0.12));
    border-radius: 12px;
    margin-bottom: 16px;
}
.xp-level-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pw-lavender-deep);
    white-space: nowrap;
}
.xp-level-badge i { color: var(--pw-coral); }
.xp-progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.xp-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--pw-gray-pale);
    border-radius: 4px;
    overflow: hidden;
}
.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pw-lavender), var(--pw-coral));
    border-radius: 4px;
    transition: width 0.5s ease;
}
.xp-label {
    font-size: 0.8rem;
    color: var(--pw-gray);
    white-space: nowrap;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s;
}
.share-btn:hover { transform: scale(1.1); opacity: 0.9; color: #fff; }
.share-facebook { background: #1877F2; }
.share-messenger { background: #0099FF; }
.share-whatsapp { background: #25D366; }
.share-email { background: var(--pw-coral); }
.share-copy { background: var(--pw-gray); }
.share-copy.copied { background: var(--pw-mint); }

/* Leaderboard */
.leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.lb-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pw-dark);
    background: var(--pw-gray-pale);
    text-decoration: none;
    transition: all 0.2s;
}
.lb-tab.active, .lb-tab:hover {
    background: var(--pw-lavender);
    color: #fff;
}
.leaderboard-me {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(196,177,240,0.15), rgba(255,138,108,0.10));
    border: 2px solid var(--pw-lavender);
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    transition: background 0.15s;
}
.lb-row:hover { background: var(--pw-gray-pale); }
.lb-highlight { background: rgba(196,177,240,0.08); }
.lb-top3 { font-weight: 600; }
.lb-rank { width: 36px; text-align: center; font-weight: 700; color: var(--pw-gray); }
.lb-avatar { flex-shrink: 0; }
.lb-name { flex: 1; font-size: 0.95rem; }
.lb-xp { font-weight: 700; color: var(--pw-lavender-deep); white-space: nowrap; }

/* User Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
}
.analytics-card-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 768px) {
    .analytics-grid { grid-template-columns: 1fr; }
}
.analytics-card {
    background: var(--pw-white);
    border: 1px solid var(--pw-gray-pale);
    border-radius: 12px;
    padding: 16px;
}
.analytics-month-compare {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.month-stat { display: flex; flex-direction: column; }
.month-label { font-size: 0.8rem; color: var(--pw-gray); }
.month-value { font-size: 1.3rem; font-weight: 700; }
.month-change {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.month-change.positive { color: #2D9F6F; }
.month-change.negative { color: var(--pw-coral); }

/* ==========================================================
   MOBILE BOTTOM TAB BAR (Deepstash-inspired)
   ========================================================== */
.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(26, 27, 46, 0.06);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  box-shadow: 0 -2px 12px rgba(26, 27, 46, 0.06);
}
@media (max-width: 767px) {
  .bottom-tab-bar { display: flex; }
  /* Add bottom padding to body so content isn't hidden behind tab bar */
  body.has-bottom-tabs { padding-bottom: 72px; }
}

.bottom-tab-bar a,
.bottom-tab-bar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--pw-gray);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: color 0.2s;
  position: relative;
}
.bottom-tab-bar a i,
.bottom-tab-bar .tab-item i {
  font-size: 20px;
  transition: color 0.2s, transform 0.2s;
}
.bottom-tab-bar a.active,
.bottom-tab-bar .tab-item.active {
  color: var(--pw-lavender);
}
.bottom-tab-bar a.active i,
.bottom-tab-bar .tab-item.active i {
  transform: scale(1.1);
}
.bottom-tab-bar a.active::before,
.bottom-tab-bar .tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--pw-lavender);
  border-radius: 0 0 4px 4px;
}

/* ═══════════════════════════════════════════════════════════
   APPLE.COM-STYLE LANDING PAGE OVERRIDES
   Massive typography, full-viewport sections, scroll animations,
   parallax effects — keeping current colors & fonts
   ═══════════════════════════════════════════════════════════ */

/* --- Enhanced scroll reveal system --- */
.lp-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-scale variant */
.lp-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Slide from left */
.lp-reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.lp-reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children — parent gets this, children animate sequentially */
.lp-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.lp-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.lp-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.lp-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.lp-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.lp-stagger.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.lp-stagger.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.lp-stagger.revealed > *:nth-child(7) { transition-delay: 0.35s; }
.lp-stagger.revealed > *:nth-child(8) { transition-delay: 0.4s; }
.lp-stagger.revealed > *:nth-child(9) { transition-delay: 0.45s; }

/* --- Apple-style section titles (massive, centered) --- */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--pw-dark);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .section-title { font-size: 48px; } }
@media (min-width: 1024px) { .section-title { font-size: 56px; } }

.section-subtitle {
  font-size: 18px;
  color: var(--pw-gray);
  line-height: 1.6;
  max-width: 600px;
  font-weight: 500;
}
@media (min-width: 768px) { .section-subtitle { font-size: 21px; } }

/* --- Hero: Deepstash-style (light, centered, bold) --- */
.hero-ds {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--pw-cream);
}
.hero-ds::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.08) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.hero-ds::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.06) 0%, transparent 70%);
  bottom: -150px; left: -150px;
  pointer-events: none;
}

.hero-ds-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-ds-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--pw-dark);
  margin-bottom: 24px;
}
@media (min-width: 768px) { .hero-ds-title { font-size: 56px; } }
@media (min-width: 1024px) { .hero-ds-title { font-size: 68px; } }

.hero-ds-highlight {
  background: linear-gradient(135deg, var(--pw-lavender), var(--pw-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-ds-subtitle {
  font-size: 17px;
  color: var(--pw-gray);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
}
@media (min-width: 768px) { .hero-ds-subtitle { font-size: 19px; } }

.hero-ds-actions {
  margin-bottom: 0;
}

.hero-ds-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--pw-lavender), var(--pw-lavender-deep));
  color: #FFFFFF;
  padding: 18px 44px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 17px;
  border: none;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.35);
  transition: all 0.25s var(--ease-smooth);
  cursor: pointer;
  text-decoration: none;
}
.hero-ds-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 92, 252, 0.5);
  filter: brightness(1.05);
  color: #FFFFFF;
}
.hero-ds-cta:active {
  transform: translateY(1px);
}

/* Hero stats — Deepstash bold counters */
.hero-ds-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 56px auto 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .hero-ds-stats { gap: 40px; } }

.hero-ds-stat {
  text-align: center;
}
.hero-ds-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--pw-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
@media (min-width: 768px) { .hero-ds-stat-num { font-size: 48px; } }

.hero-ds-stat-label {
  font-size: 13px;
  color: var(--pw-gray);
  font-weight: 600;
  margin-top: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-ds-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--pw-gray-pale);
  flex-shrink: 0;
}
@media (max-width: 480px) { .hero-ds-stat-divider { display: none; } }

/* Hero feature cards — Deepstash style */
.hero-ds-cards {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}
@media (min-width: 768px) { .hero-ds-cards { gap: 18px; } }

.hero-ds-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-radius: 20px;
  border: 2px solid var(--pw-gray-pale);
  background: var(--pw-white);
  min-width: 100px;
  transition: all 0.3s var(--ease-spring);
  cursor: default;
}
.hero-ds-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
@media (min-width: 768px) { .hero-ds-card { padding: 24px 22px; min-width: 120px; } }

.hdc-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.hdc-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--pw-dark-soft);
  white-space: nowrap;
}
@media (min-width: 768px) { .hdc-label { font-size: 13px; } }

/* Card color variants */
.hdc-coral .hdc-icon { background: var(--pw-peach-soft); color: var(--pw-coral-deep); }
.hdc-coral:hover { border-color: var(--pw-coral); }
.hdc-lavender .hdc-icon { background: var(--pw-lavender-soft); color: var(--pw-lavender-deep); }
.hdc-lavender:hover { border-color: var(--pw-lavender); }
.hdc-mint .hdc-icon { background: var(--pw-mint-soft); color: var(--pw-mint-deep); }
.hdc-mint:hover { border-color: var(--pw-mint); }
.hdc-sun .hdc-icon { background: var(--pw-sun-soft); color: #b45309; }
.hdc-sun:hover { border-color: var(--pw-sun); }
.hdc-sky .hdc-icon { background: var(--pw-sky-soft); color: #3A8BBF; }
.hdc-sky:hover { border-color: var(--pw-sky); }
.hdc-rose .hdc-icon { background: var(--pw-peach-soft); color: #be185d; }
.hdc-rose:hover { border-color: var(--pw-rose); }

/* Responsive hero */
@media (max-width: 640px) {
  .hero-ds { padding: 80px 0 60px; }
  .hero-ds-title { font-size: 30px; }
  .hero-ds-stat-num { font-size: 28px; }
  .hero-ds-stats { gap: 16px; }
  .hero-ds-card { min-width: 85px; padding: 16px 12px; }
  .hdc-icon { width: 36px; height: 36px; font-size: 15px; }
  .hdc-label { font-size: 11px; }
}
@media (max-width: 480px) {
  .hero-ds-title { font-size: 26px; }
  .hero-ds-cta { padding: 16px 32px; font-size: 15px; }
}

/* --- Authority bar: minimal, Apple style --- */
.authority-bar {
  padding: 20px 0;
  background: transparent;
}

/* --- Topic cards: wrapping grid instead of horizontal scroll --- */
.topic-cards-section {
  padding: 10px 0 60px;
}
.topic-cards-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  overflow-x: visible;
  scroll-snap-type: none;
  padding: 8px 16px 16px;
}
.topic-card {
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- Card strip: wrapping grid on mobile, scroll on desktop --- */
.card-strip {
  padding: 100px 0;
  overflow: visible;
}
@media (min-width: 768px) { .card-strip { padding: 120px 0; } }

.card-strip-title {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
  text-align: center;
}
@media (min-width: 768px) { .card-strip-title { font-size: 52px; } }
@media (min-width: 1024px) { .card-strip-title { font-size: 60px; } }

.card-strip-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  overflow-x: visible;
  scroll-snap-type: none;
  padding: 8px 16px 20px;
}
@media (min-width: 768px) {
  .card-strip-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 8px 24px 20px;
  }
}

.strip-card {
  width: calc(50% - 8px);
  min-height: 200px;
  border-radius: 28px;
}
@media (min-width: 640px) { .strip-card { width: 220px; min-height: 260px; } }
@media (min-width: 768px) { .strip-card { width: 260px; min-height: 300px; } }

/* --- Explore section: full-width, Apple dark section --- */
.explore-section {
  padding: 100px 0;
  border-radius: 0;
  margin: 0;
}
@media (min-width: 768px) { .explore-section { padding: 140px 0; margin: 0; } }

.explore-section .section-title {
  color: var(--pw-surface-dark-text);
  font-size: 32px;
}
@media (min-width: 768px) { .explore-section .section-title { font-size: 52px; } }

/* --- Phone showcase: full-width Apple style --- */
.phone-showcase {
  padding: 100px 0;
}
@media (min-width: 768px) { .phone-showcase { padding: 140px 0; } }

/* --- Prose sections: Apple generous spacing --- */
.landing-prose {
  padding: 14px 0 32px;
}
@media (min-width: 768px) { .landing-prose { padding: 120px 0; } }

.prose-block {
  max-width: 680px;
}
.prose-block h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}
@media (min-width: 768px) { .prose-block h2 { font-size: 44px; } }
@media (min-width: 1024px) { .prose-block h2 { font-size: 52px; } }

.prose-block p {
  font-size: 18px;
  line-height: 1.8;
}
@media (min-width: 768px) { .prose-block p { font-size: 20px; } }

.prose-bridge {
  font-size: 24px !important;
}
@media (min-width: 768px) { .prose-bridge { font-size: 28px !important; } }

/* Remove rounded card styling — Apple uses full-bleed */
.pain-section {
  border-radius: 0;
  margin: 0;
  background: var(--pw-cream);
}
@media (min-width: 768px) { .pain-section { margin: 0; } }

.fomo-section {
  border-radius: 0;
  margin: 0;
  background: var(--pw-cream);
}
@media (min-width: 768px) { .fomo-section { margin: 0; } }

/* --- Product section: full-width, Apple grid --- */
.product-section {
  padding: 100px 0;
  border-radius: 0;
  margin: 0;
  background: var(--pw-white);
}
@media (min-width: 768px) { .product-section { padding: 140px 0; margin: 0; } }

.product-grid {
  max-width: 1000px;
  gap: 24px;
}

.product-feature {
  padding: 36px 28px;
  border-radius: 28px;
}
.product-feature-content h3 {
  font-size: 18px;
}

/* --- Benefits: Apple generous spacing --- */
.benefits-section {
  padding: 100px 0;
}
@media (min-width: 768px) { .benefits-section { padding: 140px 0; } }

.benefits-list {
  max-width: 720px;
}
.benefit-item {
  padding: 24px 28px;
  border-radius: 24px;
}
.benefit-item p { font-size: 17px; }

/* --- Included: Apple-style clean card --- */
.included-section {
  padding: 60px 0 100px;
}
.included-card {
  max-width: 620px;
  padding: 56px 44px;
  border-radius: 36px;
}

/* --- Bonuses: full-width Apple --- */
.bonuses-section {
  padding: 100px 0;
  border-radius: 0;
  margin: 0;
}
@media (min-width: 768px) { .bonuses-section { padding: 140px 0; margin: 0; } }

.bonus-card {
  padding: 40px 28px;
  border-radius: 28px;
}

/* --- Testimonials: Apple layout --- */
.testimonials {
  padding: 100px 0;
}
@media (min-width: 768px) { .testimonials { padding: 140px 0; } }

.testimonial-card {
  min-width: 320px;
  max-width: 380px;
  padding: 32px 28px;
  border-radius: 28px;
}

/* --- Pricing spacing --- */

.price-card {
  border-radius: 32px;
  padding: 44px;
}
.price-amount {
  font-size: 56px;
}
@media (min-width: 768px) { .price-amount { font-size: 64px; } }

/* --- FAQ: Apple clean --- */
.faq { padding: 100px 0; }
@media (min-width: 768px) { .faq { padding: 140px 0; } }

.faq-list { max-width: 720px; }
.faq-item { border-radius: 24px; }
.faq-question { padding: 24px 28px; font-size: 17px; }

/* --- Final CTA: Apple-style dark section --- */
.cta-section {
  padding: 60px 0 120px;
}
.cta-card {
  max-width: 800px;
  border-radius: 36px;
  padding: 72px 48px;
}
.cta-card h2 {
  font-size: 32px;
}
@media (min-width: 768px) { .cta-card h2 { font-size: 44px; } }

.cta-card p {
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto 36px;
}

/* --- Inline CTA: more breathing room --- */
.inline-cta {
  padding: 14px 0 32px;
}

/* --- Parallax background sections --- */
.apple-parallax-bg {
  position: relative;
  overflow: hidden;
}
.apple-parallax-bg::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* --- Gradient text utility --- */
.apple-gradient-text {
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Responsive overrides for Apple style --- */
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero-stat-num { font-size: 28px; }
  .hero-stats-row { gap: 24px; }
  .section-title { font-size: 28px; }
  .card-strip-title { font-size: 28px; }
  .prose-block h2 { font-size: 28px; }
  .explore-section .section-title { font-size: 28px; }
  .cta-card h2 { font-size: 26px; }
  .price-amount { font-size: 44px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero-stat-num { font-size: 24px; }
  .hero-float-card { width: 120px; padding: 16px 12px; }
  .section-title { font-size: 24px; }
}

/* ══════════════════════════════════════════════════════════════
   UI/UX REDESIGN — Mobile Bottom Nav, Cards, Summary, Accessibility
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Mobile Bottom Tab Bar ─────────────────────────────── */
.bottom-nav { display: none; }

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--pw-bottom-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--pw-gray-pale);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    text-decoration: none;
    color: var(--pw-gray);
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-display);
    min-width: 48px;
    min-height: 44px;
    justify-content: center;
    transition: color 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item i { font-size: 20px; line-height: 1; }
  .bottom-nav-item span { line-height: 1.2; }

  .bottom-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-peach-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--pw-lavender);
    object-fit: cover;
    border: 2px solid transparent;
  }
  img.bottom-nav-avatar {
    background: none;
  }
  #moreSheetBtn.active .bottom-nav-avatar {
    border-color: var(--pw-lavender);
  }

  .bottom-nav-item.active { color: var(--pw-lavender); }
  .bottom-nav-item.active i { font-weight: 900; }

  .bottom-nav-item.shorts-btn { color: var(--pw-gray); }
  .bottom-nav-item.shorts-btn.active { color: var(--pw-coral); }
  .bottom-nav-item.shorts-btn i { font-size: 20px; }

  /* Badge for due flashcards */
  .bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--pw-coral);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  /* Push body content above bottom nav — only when nav exists */
  body:has(.bottom-nav) { padding-bottom: 56px; }

  /* Move PWA banners above bottom nav */
  .pwa-install-banner.visible,
  .pwa-update-banner.visible { bottom: 72px; }
}

/* ── 2. More Sheet (bottom sheet overlay) ─────────────────── */
.more-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s;
}
.more-sheet-overlay.show {
  display: block;
  opacity: 1;
}

.more-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pw-cream);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 20px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.more-sheet.show {
  transform: translateY(0);
}

/* More sheet header with close button */
.more-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.more-sheet-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--pw-dark);
}
.more-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pw-gray-pale);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--pw-gray);
  transition: background 0.15s;
}
.more-sheet-close:active { background: var(--pw-border); }

/* Profile shortcut */
.more-sheet-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.more-sheet-profile:active { background: var(--pw-gray-pale); }
.more-sheet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pw-lavender-soft), var(--pw-peach-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--pw-lavender);
  flex-shrink: 0;
}
img.more-sheet-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: none;
}
.more-sheet-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
}
.more-sheet-subtitle {
  font-size: 12px;
  color: var(--pw-gray);
}

/* Row-style links (Install, Admin) */
.more-sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 8px;
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--pw-dark-soft);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.more-sheet-row:active { background: var(--pw-gray-pale); }
.more-sheet-row i { width: 20px; text-align: center; color: var(--pw-lavender); font-size: 16px; }

.more-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.more-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--pw-dark);
  background: var(--pw-white);
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.more-sheet-item:active { transform: scale(0.95); background: var(--pw-gray-pale); }
.more-sheet-item i { font-size: 22px; color: var(--pw-lavender); }
.more-sheet-item span { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3; }

/* More sheet footer (legal + languages) */
.more-sheet-footer {
  border-top: 1px solid var(--pw-gray-pale);
  margin-top: 12px;
  padding-top: 12px;
}
.more-sheet-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.more-sheet-legal a {
  font-size: 12px;
  color: var(--pw-gray);
  text-decoration: none;
}
.more-sheet-legal a:hover { color: var(--pw-lavender); }
.more-sheet-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.more-sheet-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--pw-gray);
  background: var(--pw-cream);
  text-decoration: none;
  transition: all 0.15s;
}
.more-sheet-lang.active {
  background: var(--pw-lavender-soft);
  color: var(--pw-lavender);
}
.more-sheet-lang:hover { background: var(--pw-lavender-soft); color: var(--pw-lavender); }
.more-sheet-copyright {
  font-size: 11px;
  color: var(--pw-gray);
  opacity: 0.6;
}

/* ── 3. Library Cards — Cover-first Redesign ──────────────── */
.library-grid .book-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.library-grid .book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.book-cover-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--pw-cream-deep);
}
.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.book-card:hover .book-cover-wrap img {
  transform: scale(1.05);
}
.book-cover-wrap .book-cover-generated {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.book-cover-wrap .book-lock,
.book-cover-wrap .book-read-badge {
  position: absolute;
  z-index: 2;
}

.book-card-info {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.book-card-info .book-category {
  font-size: 10px;
  margin-bottom: 0;
}
.book-card-info .book-title {
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card-info .book-author {
  font-size: 12px;
  margin-bottom: 2px;
}
.book-card-info .book-meta {
  font-size: 11px;
  gap: 8px;
  margin-top: 2px;
}

/* Library grid: 2 cols mobile, 3 tablet, 4 desktop */
@media (min-width: 480px) { .library-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 768px) { .library-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .library-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ── 4. Summary Page — Hero Redesign ──────────────────────── */
.summary-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.summary-hero .summary-cover {
  width: 160px;
  min-width: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.summary-hero .summary-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.summary-hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-hero-info .summary-category-badge { margin-bottom: 2px; }
.summary-hero-info .summary-title { margin-bottom: 2px; }
.summary-hero-info .summary-author { margin-bottom: 4px; }
.summary-hero-info .summary-meta { margin-bottom: 6px; }
.summary-hero-info .summary-age-tags { margin-bottom: 0; }

@media (min-width: 600px) {
  .summary-hero .summary-cover { width: 200px; min-width: 200px; }
}
@media (max-width: 480px) {
  .summary-hero { gap: 14px; }
  .summary-hero .summary-cover { width: 120px; min-width: 120px; }
  .summary-hero-info .summary-title { font-size: 18px; }
}

/* Actions bar */
.summary-actions-bar {
  display: flex;
  gap: 12px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.summary-actions-bar .action-cta {
  flex: 1;
  min-width: 140px;
}

/* About author section */
.about-author-section {
  background: var(--pw-cream-deep);
}

/* ── 5. Dashboard — Collapsible Stats ─────────────────────── */
.stats-collapsible {
  margin-bottom: 20px;
}
.stats-collapsible .stats-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  font-family: var(--font-display);
}
.stats-collapsible .stats-toggle::-webkit-details-marker { display: none; }
.stats-collapsible .stats-toggle h3 { margin: 0; font-size: 18px; }
.stats-collapsible .stats-toggle i {
  transition: transform 0.3s;
  color: var(--pw-gray);
}
.stats-collapsible[open] .stats-toggle i {
  transform: rotate(180deg);
}

/* ── 6. Accessibility & Focus ─────────────────────────────── */
/* Focus visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--pw-lavender);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* Ensure touch targets ≥ 44px */
.sidebar-link,
.mobile-menu-nav a,
.more-sheet-item,
.bottom-nav-item,
.filter-select,
.search-input,
.btn,
.btn-outline,
.btn-danger,
.action-cta {
  min-height: 44px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .book-card:hover { transform: none; }
  .book-card:hover .book-cover-wrap img { transform: none; }
}

/* ── 7. Mobile-specific layout fixes ──────────────────────── */
@media (max-width: 767px) {
  /* Hide sidebar on mobile (already done but reinforce) */
  .dashboard-sidebar { display: none !important; }

  /* Full-width dashboard content on mobile */
  .dashboard-layout {
    grid-template-columns: 1fr;
    padding: 12px 12px 24px;
    gap: 12px;
  }

  /* Summary page mobile fixes */
  .summary-actions-bar {
    flex-direction: column;
    gap: 8px;
  }
  .summary-actions-bar .action-cta {
    min-width: 0;
    width: 100%;
  }
}

/* ── Shorts TikTok-style sidebar ──────────────────────────── */
.short-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 60px;
  min-height: 0;
  overflow-y: auto;
}

.short-card-sidebar {
  position: absolute;
  right: 12px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.short-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  font-size: 0;
}
.short-sidebar-btn i { font-size: 20px; line-height: 1; }
.short-sidebar-btn:active { transform: scale(0.88); }
.short-sidebar-btn:hover { background: rgba(255,255,255,0.35); }

/* Like count below button */
.short-like-btn { position: relative; }
.short-like-btn .like-count {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.short-sidebar-btn.short-save-btn.saved {
  background: rgba(255,255,255,0.9);
  color: var(--pw-coral);
}

/* Hide old action containers */
.short-card-actions { display: none !important; }
.short-card-nav { display: none !important; }

/* Like button */
.short-like-btn { position: relative; }
.short-like-btn.liked { color: #FF2D55; background: rgba(255,45,85,0.3); }
.short-like-btn.liked i { animation: none; }
.short-sidebar-btn.short-save-btn.saved { color: #FFD93D; background: rgba(255,217,61,0.3); }
.short-like-btn .like-count {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  min-height: 12px;
}

/* Like pop animation */
.like-pop i {
  animation: likePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes likePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* Double-tap floating heart (TikTok style) */
.double-tap-heart {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  font-size: 60px;
  color: #FF2D55;
  transform: translate(-50%, -50%) scale(0);
  animation: doubleTapHeart 0.8s ease-out forwards;
}
@keyframes doubleTapHeart {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(0.8); opacity: 0; }
}

/* Adjust card link position */
.short-card-link {
  position: static;
  margin-top: 12px;
}

/* Mobile: move sidebar lower to avoid bottom nav overlap */
@media (max-width: 767px) {
  .short-card-sidebar { bottom: 20px; right: 10px; gap: 12px; }
  .short-sidebar-btn { width: 42px; height: 42px; }
  .short-sidebar-btn i { font-size: 18px; }
  .short-card-content { padding-right: 54px; }

  /* Shorts feed should account for bottom nav */
  .dashboard-content:has(.shorts-feed) { height: calc(100vh - 56px); }
  .shorts-feed { height: calc(100vh - 56px); }
}

/* ── Login page compact ───────────────────────────────────── */
.auth-header-emoji { display: none; }
.auth-card { padding: 24px; }
.auth-header { margin-bottom: 14px; }
.form-toggle { margin-bottom: 16px; }
.form-toggle-btn { font-size: 12px; padding: 8px 4px; white-space: nowrap; }
.form-group { margin-bottom: 12px; }
.form-input { padding: 10px 14px; font-size: 14px; }
.auth-footer { margin-top: 12px; }
@media (max-width: 400px) {
  .form-toggle-btn { font-size: 11px; padding: 8px 2px; }
  .auth-card { padding: 18px 14px; }
}

/* ══════════════════════════════════════════════════════════════
   ROUND 3 FIXES — Flash msgs, cards, takeaways, flashcards, shorts
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Hide flash notifications (welcome back, success, etc.) ── */
.flash-message { display: none !important; }

/* ── 2. Library cards — compact, 2-col mobile, info on white ── */
.book-cover-wrap { aspect-ratio: 3 / 4; }
.book-card-info { padding: 10px 10px 12px; gap: 2px; }
.book-card-info .book-title { font-size: 13px; font-weight: 700; line-height: 1.25; }
.book-card-info .book-author { font-size: 11px; }
.book-card-info .book-meta { font-size: 10px; gap: 6px; margin-top: 2px; }
.book-card-info .book-age-tags { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 3px; }
.book-card-info .age-tag { font-size: 9px; padding: 1px 5px; }

/* Library header + filters compact on mobile */
@media (max-width: 767px) {
  .library-header { padding: 14px 0 10px; }
  .library-header h1 { font-size: 22px; margin-bottom: 2px; }
  .library-header p { font-size: 13px; margin-bottom: 0; }
  .library-filters { gap: 8px; margin-bottom: 10px; padding-bottom: 10px; }
  .search-bar { gap: 4px; }
  .search-input { padding: 8px 12px; font-size: 13px; }
  .search-bar .btn { padding: 8px 14px; font-size: 12px; }
  .filter-row { gap: 4px; }
  .filter-select { padding: 6px 24px 6px 8px; font-size: 11px; min-height: 36px; }
  .results-count { font-size: 12px; margin-bottom: 8px; }

  /* ALWAYS 2 columns on mobile */
  .library-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .book-cover-wrap { aspect-ratio: 3 / 4; }
  .book-card-info { padding: 8px 8px 10px; }
  .book-card-info .book-title { font-size: 12px; -webkit-line-clamp: 2; }
  .book-card-info .book-author { font-size: 10px; }
  .book-card-info .book-meta { font-size: 9px; }
  .book-card-info .book-category { font-size: 8px; }
  .book-card-save { width: 28px; height: 28px; font-size: 12px; }
}

/* Save button on library cards */
.book-card-save {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.book-card-save:hover { background: rgba(0,0,0,0.6); }
.book-card-save:active { transform: scale(0.9); }
.book-card-save.saved { background: var(--pw-coral); }

/* ── 3. Key takeaways — compact numbers ── */
.takeaway-item {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px !important;
}
.takeaway-number, .takeaway-num {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  font-size: 12px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
}
.takeaway-item p { flex: 1; margin: 0; }

/* ── 4. Flashcard difficulty buttons — on card, single row, icon-only ── */
@media (max-width: 767px) {
  .fc-difficulty {
    position: relative;
    background: none;
    padding: 0;
    margin: 12px 0 0;
    box-shadow: none;
    text-align: center;
  }
  .fc-diff-question {
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--pw-gray);
  }
  .fc-diff-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .fc-diff-btn {
    flex: none;
    width: 56px;
    height: 56px;
    min-width: 0;
    padding: 0;
    border-radius: 50%;
    border-width: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
  }
  .fc-diff-btn i { font-size: 20px; }
  .fc-diff-label { font-size: 8px; font-weight: 700; }
  .fc-diff-hint { display: none; }
}

/* ── 5. Shorts — better mobile visibility ── */
@media (max-width: 767px) {
  .short-card { padding: 16px 14px; }
  .short-card-title { font-size: 1.15rem; margin-bottom: 8px; }
  .short-card-body { font-size: 0.9rem; line-height: 1.55; max-height: 40vh; }
  .short-card-content {
    padding-right: 56px;
    padding-bottom: 8px;
    padding-top: 40px;
    justify-content: flex-start;
  }
  .short-card-sidebar {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    right: 8px;
    gap: 14px;
  }
  .short-sidebar-btn {
    width: 42px;
    height: 42px;
  }
  .short-sidebar-btn i { font-size: 18px; }
  .short-like-btn .like-count { font-size: 10px; bottom: -12px; }
  .short-card-category { font-size: 0.7rem; top: 12px; left: 12px; }
  .short-card-link { font-size: 0.8rem; margin-top: 8px; }

  /* Shorts feed accounts for bottom nav */
  .shorts-feed { height: calc(100vh - 56px) !important; border-radius: 0; }
  .dashboard-content:has(.shorts-feed) { height: calc(100vh - 56px) !important; overflow: hidden; }
}

/* ── 6. Summary page save button ── */
.summary-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--pw-gray-pale);
  background: var(--pw-white);
  color: var(--pw-dark-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.summary-save-btn:hover { border-color: var(--pw-coral); color: var(--pw-coral); }
.summary-save-btn.saved { background: var(--pw-coral); color: white; border-color: var(--pw-coral); }

/* ── Explore More section on summary page ─────────────────── */
.summary-explore {
  background: var(--pw-cream-deep);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0 16px;
}
.summary-explore h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--pw-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-explore h2 i { color: var(--pw-lavender); font-size: 16px; }
.summary-explore .summary-actions-bar { margin: 0; }

/* CTA variant colors — neutral borders, colored icons only */
.action-cta.shorts-cta i { color: var(--pw-coral); }
.action-cta.challenge-cta i { color: var(--pw-sky); }
.action-cta.plan-cta i { color: var(--pw-mint-deep); }

/* ── Stories Strip (Facebook/Instagram style) ─────────────── */
.stories-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 12px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stories-strip::-webkit-scrollbar { display: none; }

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
  width: 64px;
}
.story-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--pw-dark-soft);
  text-align: center;
  line-height: 1.2;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  background: linear-gradient(135deg, var(--pw-lavender), var(--pw-coral));
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px var(--pw-lavender);
  transition: transform 0.2s;
}
.story-item:hover .story-circle { transform: scale(1.08); }

/* Category colors for story circles */
.story-circle[data-cat="sleep"] { background: linear-gradient(135deg, #6C5CE7, #3D2A8F); box-shadow: 0 0 0 2px #6C5CE7; }
.story-circle[data-cat="nutrition"] { background: linear-gradient(135deg, #00B894, #006D5B); box-shadow: 0 0 0 2px #00B894; }
.story-circle[data-cat="emotional"] { background: linear-gradient(135deg, #E84393, #A61D60); box-shadow: 0 0 0 2px #E84393; }
.story-circle[data-cat="discipline"] { background: linear-gradient(135deg, #E17055, #A14430); box-shadow: 0 0 0 2px #E17055; }
.story-circle[data-cat="brain"] { background: linear-gradient(135deg, #0984E3, #064F8C); box-shadow: 0 0 0 2px #0984E3; }
.story-circle[data-cat="play"] { background: linear-gradient(135deg, #FDCB6E, #C9950A); box-shadow: 0 0 0 2px #FDCB6E; color: #2D2016; }
.story-circle[data-cat="pregnancy"] { background: linear-gradient(135deg, #FD79A8, #C44573); box-shadow: 0 0 0 2px #FD79A8; }
.story-circle[data-cat="mental-health"] { background: linear-gradient(135deg, #55EFC4, #1A9A72); box-shadow: 0 0 0 2px #55EFC4; color: #0B3B2E; }
.story-circle[data-cat="screens"] { background: linear-gradient(135deg, #636E72, #2D3436); box-shadow: 0 0 0 2px #636E72; }
.story-circle[data-cat="health-safety"] { background: linear-gradient(135deg, #74B9FF, #2E7AC7); box-shadow: 0 0 0 2px #74B9FF; }
.story-circle[data-cat="philosophies"] { background: linear-gradient(135deg, #A29BFE, #6C5CE7); box-shadow: 0 0 0 2px #A29BFE; }
.story-circle[data-cat="special-needs"] { background: linear-gradient(135deg, #FAB1A0, #C77A6A); box-shadow: 0 0 0 2px #FAB1A0; }
.story-circle[data-cat="siblings"] { background: linear-gradient(135deg, #00CEC9, #00807D); box-shadow: 0 0 0 2px #00CEC9; }

/* "New" story button */
.story-new .story-circle {
  background: var(--pw-white);
  color: var(--pw-lavender);
  box-shadow: 0 0 0 2px var(--pw-gray-pale);
  border: 2px dashed var(--pw-lavender);
}
.story-new span { color: var(--pw-lavender); font-weight: 700; }

/* ── Compact book card variant (dashboard grids) ──────────── */
.book-card-compact .book-card-info { padding: 8px 8px 10px; }
.book-card-compact .book-card-info .book-title { font-size: 12px; }
.book-card-compact .book-card-info .book-author { font-size: 10px; }
.book-card-compact .book-card-info .book-category { font-size: 8px; }
.book-card-compact .book-card-info .book-meta { font-size: 9px; }

/* ── Highlights Tabs — clean, symmetric ───────────────────── */
.highlights-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--pw-gray-pale);
}
.highlights-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--pw-gray);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
}
.highlights-tab.active {
  color: var(--pw-lavender);
  border-bottom-color: var(--pw-lavender);
}
.highlights-tab:hover { color: var(--pw-dark-soft); }
.highlights-tab i { font-size: 12px; }
.tab-count {
  background: var(--pw-gray-pale);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.highlights-tab.active .tab-count {
  background: var(--pw-lavender-soft);
  color: var(--pw-lavender-deep);
}

/* Scroll offset for anchor links (account for sticky navbar) */
.highlights-group { scroll-margin-top: 80px; }
@media (max-width: 767px) {
  .highlights-tab { padding: 8px 10px; font-size: 12px; }
  .highlights-tab i { font-size: 11px; }
  .tab-count { font-size: 10px; padding: 1px 6px; }
  .highlights-group { scroll-margin-top: 70px; }
}

/* Highlight text link — looks like text but clickable */
a.highlight-item-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pw-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color 0.15s;
}
a.highlight-item-text:hover {
  color: var(--pw-lavender-deep);
  text-decoration: underline;
}
a.saved-short-card { text-decoration: none; color: inherit; display: block; }

/* ── Clean Pagination ─────────────────────────────────────── */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}
.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pw-white);
  color: var(--pw-dark-soft);
  border: 2px solid var(--pw-gray-pale);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.pagination-btn:hover { border-color: var(--pw-lavender); color: var(--pw-lavender); }
.pagination-btn.disabled { opacity: 0.3; pointer-events: none; }
.pagination-info {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--pw-dark-soft);
}

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE — Mobile Compact Overrides
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* 1. Hero cards — grid 3x2, all visible, compact */
  .hero-ds-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 8px;
    overflow: visible;
  }
  .hero-ds-card {
    padding: 8px 4px;
    min-width: 0;
    gap: 4px;
    border-radius: 12px;
    border-width: 1.5px;
  }
  .hdc-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
  .hdc-label { font-size: 9px; line-height: 1.2; text-align: center; }

  /* 2. Topic cards — grid 3x2, all visible, compact */
  .topic-cards-scroll {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    overflow: visible !important;
    padding: 0;
  }
  .topic-card { padding: 7px 6px; font-size: 10px; gap: 4px; border-radius: 12px; border-width: 1.5px; white-space: nowrap; justify-content: center; }
  .topic-card i { font-size: 11px; }

  /* 3. Explore pills — grid 3x2, all visible */
  .explore-pills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    overflow: visible;
  }
  .explore-pill { padding: 7px 6px; font-size: 11px; gap: 4px; border-radius: 16px; justify-content: center; }
  .explore-pill i { font-size: 10px; }

  /* 4. Phone showcase tabs (Browse, Read, Save, Shorts) — fit on screen */
  .phone-tab { min-width: 60px; padding: 8px 8px; gap: 4px; }
  .phone-tab i { width: 24px; height: 24px; font-size: 10px; border-radius: 8px; }
  .phone-tab span { font-size: 9px; }

  /* 5. Section spacing — much more compact */
  .section-title { font-size: 24px; margin-bottom: 8px; }
  .section-subtitle { font-size: 13px; margin-bottom: 16px !important; }
  .landing-prose { padding: 32px 0; }
  .prose-block h2 { font-size: 22px; }
  .prose-block p { font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
  .inline-cta { padding: 24px 0; }
  .product-section,
  .benefits-section,
  .bonuses-section,
  .included-section,
  .testimonials,
  .pricing,
  .faq-section { padding: 32px 0; }
  .phone-showcase { padding: 32px 0; }
  .explore-section { padding: 32px 0; margin: 0 12px 24px; border-radius: 20px; }
  .card-strip { padding: 24px 0 12px; }
  .card-strip-title { font-size: 22px; margin-bottom: 12px; }
  .features { padding: 32px 0; }

  /* 6. Phone showcase subtitle spacing */
  .phone-showcase .section-subtitle { margin-bottom: 24px !important; }

  /* 7. Explore preview — tighter */
  .explore-preview { gap: 16px; }
  .explore-keypoint-title { font-size: 16px; }
  .explore-keypoint-text { font-size: 13px; }
  .explore-cta { padding: 10px 20px !important; font-size: 13px !important; }

  /* 8. Product grid, benefits, bonuses — compact */
  .product-grid { gap: 12px; }
  .product-feature { padding: 14px; gap: 10px; }
  .product-feature-icon { width: 36px; height: 36px; font-size: 16px; }
  .product-feature h3 { font-size: 14px; }
  .product-feature p { font-size: 12px; }
  .benefits-list { gap: 8px; }
  .benefit-item { gap: 10px; font-size: 13px; }
  .benefit-check { font-size: 16px; }
  .bonuses-grid { gap: 12px; }
  .bonus-card { padding: 16px; }
  .bonus-card h3 { font-size: 15px; }
  .bonus-card p { font-size: 12px; }
  .included-list li { font-size: 13px; padding: 6px 0; }

  /* 9. Testimonials — compact */
  .testimonial-card { padding: 16px; min-width: 240px; }
  .testimonial-text { font-size: 13px; }

  /* 10. Hero section — tighter */
  .hero { padding: 24px 0 32px; }
  .hero h1 { margin-bottom: 10px; }
  .hero-ds-subtitle { font-size: 14px; margin-bottom: 16px; }
  .hero-ds-stats { gap: 20px; margin-bottom: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   NEW LANDING PAGE STYLES
   ══════════════════════════════════════════════════════════════ */

/* Top bar & urgency */
.lp-topbar { text-align: center; margin-bottom: 12px; }
.lp-topbar-cta { display: inline-block; padding: 8px 20px; background: var(--pw-lavender); color: white; border-radius: var(--radius-full); font-weight: 700; font-size: 14px; text-decoration: none; }
.lp-urgency-bar { text-align: center; background: var(--pw-sun-soft); color: var(--pw-dark-soft); padding: 10px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.lp-urgency-bar i { color: var(--pw-coral); }
.lp-countdown { font-weight: 800; font-family: var(--font-display); }
.lp-social-proof-line { text-align: center; font-size: 13px; color: var(--pw-gray); font-weight: 600; margin-bottom: 12px; }
.lp-cta-sub { text-align: center; font-size: 12px; color: var(--pw-gray); margin-top: 8px; }

/* Avatars row */
.lp-avatars-row { text-align: center; margin-top: 24px; }
.lp-avatars { display: flex; justify-content: center; gap: 0; margin-bottom: 6px; }
.lp-avatars span { width: 36px; height: 36px; border-radius: 50%; background: var(--pw-lavender-soft); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-left: -8px; border: 2px solid white; }
.lp-avatars span:first-child { margin-left: 0; }
.lp-rating-line { font-size: 13px; color: var(--pw-dark-soft); font-weight: 600; }
.lp-rating-line strong { color: var(--pw-dark); }
.lp-quote { font-family: 'Caveat', cursive; font-size: 16px; color: var(--pw-gray); margin-top: 4px; }

/* ── Landing — Apple/Stripe clean design (matches admin) ── */

/* Pain section */
.lp-pain { padding: 32px 0; }
.lp-pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.lp-pain-card { background: var(--pw-white); border-radius: 12px; padding: 20px; border: 1px solid var(--pw-border); box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow 0.2s; }
.lp-pain-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.lp-pain-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--pw-cream-deep); margin-bottom: 10px; }
.lp-pain-icon i { font-size: 18px; color: var(--pw-lavender-deep); }
.lp-pain-card h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--pw-dark); margin-bottom: 6px; line-height: 1.3; }
.lp-pain-card p { font-size: 13px; color: var(--pw-gray); line-height: 1.5; }
.lp-stat-block { text-align: center; padding: 28px 20px; background: var(--pw-white); border: 1px solid var(--pw-border); border-radius: 12px; margin-top: 20px; }
.lp-stat-big { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--pw-dark); margin-bottom: 8px; }
.lp-stat-block p { font-size: 14px; color: var(--pw-gray); line-height: 1.6; max-width: 480px; margin: 0 auto 8px; }
.lp-stat-bold { font-weight: 800; color: var(--pw-dark); font-size: 16px; }

/* How it works */
.lp-how { padding: 32px 0; }
.lp-steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
@media (min-width: 768px) { .lp-steps { grid-template-columns: 1fr 1fr 1fr; } }
.lp-step { text-align: center; padding: 24px 16px; background: var(--pw-white); border-radius: 12px; border: 1px solid var(--pw-border); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.lp-step-num { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--pw-lavender-deep); background: var(--pw-lavender-soft); padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px; }
.lp-step-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--pw-lavender-soft); margin: 12px auto; }
.lp-step-icon i { font-size: 20px; color: var(--pw-lavender-deep); }
.lp-step h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--pw-dark); margin-bottom: 6px; }
.lp-step p { font-size: 13px; color: var(--pw-gray); line-height: 1.5; }

/* Features grid */
.lp-features { padding: 32px 0; background: var(--pw-cream-deep); }
.lp-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
@media (min-width: 768px) { .lp-features-grid { grid-template-columns: 1fr 1fr 1fr; } }
.lp-feature-card { background: var(--pw-white); border-radius: 12px; padding: 20px; border: 1px solid var(--pw-border); box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow 0.2s; }
.lp-feature-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.lp-feature-badge { font-size: 11px; font-weight: 600; color: var(--pw-gray-light); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.lp-feature-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--pw-lavender-soft); margin-bottom: 10px; }
.lp-feature-icon i { font-size: 17px; color: var(--pw-lavender-deep); }
.lp-feature-card h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--pw-dark); margin-bottom: 6px; }
.lp-feature-card p { font-size: 12px; color: var(--pw-gray); line-height: 1.5; }

/* Testimonials */
.lp-testimonials { padding: 32px 0; }
.lp-testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
@media (min-width: 768px) { .lp-testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .lp-testimonials-grid { grid-template-columns: 1fr 1fr 1fr; } }
.lp-testimonial { background: var(--pw-white); border-radius: 12px; padding: 20px; border: 1px solid var(--pw-border); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.lp-t-stars { color: #F59E0B; font-size: 13px; margin-bottom: 6px; letter-spacing: 1px; }
.lp-t-badge { font-size: 13px; font-weight: 700; color: #059669; margin-bottom: 8px; }
.lp-testimonial p { font-size: 13px; color: var(--pw-dark-soft); line-height: 1.6; margin-bottom: 12px; font-style: italic; }
.lp-t-author { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--pw-border); padding-top: 12px; }
.lp-t-author span { font-size: 20px; width: 36px; height: 36px; background: var(--pw-cream-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lp-t-author strong { display: block; font-size: 13px; color: var(--pw-dark); }
.lp-t-author small { font-size: 11px; color: var(--pw-gray-light); display: block; }

/* Why section stats */
.lp-why { padding: 32px 0; background: var(--pw-cream-deep); }
.lp-why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
@media (min-width: 768px) { .lp-why-stats { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.lp-why-stat { text-align: center; padding: 20px 12px; background: var(--pw-white); border-radius: 12px; border: 1px solid var(--pw-border); }
.lp-why-num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--pw-dark); display: block; margin-bottom: 6px; }
.lp-why-stat p { font-size: 12px; color: var(--pw-gray); line-height: 1.4; }

/* Pricing */
.lp-pricing { padding: 32px 0; }
.lp-pricing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
@media (min-width: 768px) { .lp-pricing-grid { grid-template-columns: 1fr 1fr 1fr; } }
.lp-price-card { background: var(--pw-white); border-radius: 12px; padding: 24px 20px; border: 1px solid var(--pw-border); text-align: center; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.lp-price-card.popular { border-color: #8A9A82; border-width: 2px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.lp-popular-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: #8A9A82; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.lp-price-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--pw-dark); margin-bottom: 8px; }
.lp-price { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--pw-dark); }
.lp-price small { font-size: 14px; font-weight: 500; color: var(--pw-gray-light); }
.lp-price-desc { font-size: 12px; color: var(--pw-gray-light); margin: 4px 0 16px; }
.lp-price-card ul { list-style: none; text-align: left; margin-bottom: 20px; }
.lp-price-card li { font-size: 13px; padding: 4px 0; display: flex; align-items: center; gap: 8px; color: var(--pw-dark-soft); }
.lp-price-card li i.fa-check { color: #059669; font-size: 12px; }
.lp-price-card li i.fa-times { color: var(--pw-gray-light); font-size: 12px; }
.lp-price-card li.disabled { color: var(--pw-gray-light); }
.lp-guarantee { text-align: center; font-size: 12px; color: var(--pw-gray-light); margin-top: 16px; }
.lp-guarantee i { color: #059669; margin-right: 4px; }

/* FAQ */
.lp-faq { padding: 32px 0; }

/* Final CTA */
.lp-final-cta { padding: 32px 0; }
.lp-final-sub { font-family: var(--font-display); font-size: 17px; color: var(--pw-gray); margin-bottom: 8px; }
.lp-final-badges { display: flex; justify-content: center; gap: 16px; margin-top: 16px; font-size: 12px; color: var(--pw-gray-light); flex-wrap: wrap; }
.lp-final-badges i { color: #059669; margin-right: 3px; }

/* Countdown timer JS */
@media (max-width: 767px) {
  .lp-pain-grid { grid-template-columns: 1fr; }
  .lp-urgency-bar { font-size: 11px; padding: 8px 12px; }
  .lp-price { font-size: 32px; }
  .lp-feature-card { padding: 14px; }
  .lp-feature-card h3 { font-size: 13px; }
  .lp-feature-card p { font-size: 11px; }
  .lp-step h3 { font-size: 14px; }
  .lp-testimonial { padding: 16px; }

  /* Pricing cards — stack on mobile */
  .lp-pricing-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .lp-price-card { padding: 20px 16px; }
  .lp-popular-badge { font-size: 10px; padding: 3px 12px; }
  .lp-price-card ul { margin-bottom: 16px; }
  .lp-price-card li { font-size: 12px; padding: 3px 0; }
  .lp-guarantee { font-size: 11px; padding: 0 8px; }

  /* FAQ — prevent overflow */
  .lp-faq { padding: 24px 0; }
  .faq-question { padding: 12px 8px; font-size: 13px; }
  .faq-question span { flex: 1; min-width: 0; word-break: break-word; }
  .faq-answer p { font-size: 13px; padding: 0 8px 12px; }

  /* Final CTA — fit on screen */
  .lp-final-cta { padding: 24px 0; }
  .cta-card { padding: 24px 16px; }
  .cta-card h2 { font-size: 22px; }
  .cta-card .btn { font-size: 14px; padding: 12px 20px; white-space: normal; text-align: center; }
  .lp-final-sub { font-size: 15px; }
  .lp-final-badges { gap: 12px; font-size: 11px; }
  .lp-final-badges span { white-space: nowrap; }

  /* Global overflow prevention */
  .container { overflow-x: hidden; }
  section { overflow-x: hidden; }

  /* Phone showcase — hide on mobile if too wide */
  .phone-showcase-layout { overflow: hidden; }
  .phone-frame { transform: scale(0.85); transform-origin: top center; }
  .phone-tabs { overflow-x: auto; }
}

/* ── Global: consistent spacing under navbar on ALL pages ── */
.hero-ds,
.library-page,
.summary-page,
.tip-page,
.shorts-feed,
.pricing,
.auth-page,
.highlights-page,
.dashboard-content,
.lp-pain,
.lp-how,
.lp-features,
.lp-testimonials,
.lp-why,
.lp-pricing,
.lp-faq,
.lp-final-cta,
.crisis-page,
.course-page {
  padding-top: 14px;
}

/* ==========================================================
   PRICING PAGE — Extracted inline styles
   ========================================================== */

/* Main section wrapper */
.pricing-section {
  padding: 14px 0 32px;
}

/* Section header */
.pricing-section .pricing-header {
  max-width: 600px;
  margin: 0 auto 40px;
}
.pricing-section .pricing-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--pw-dark);
  margin-bottom: 12px;
}
.pricing-section .pricing-header p {
  font-size: 16px;
  color: var(--pw-gray);
  line-height: 1.6;
}

/* Already-premium banner */
.pricing-premium-banner {
  max-width: 600px;
  margin: 0 auto 40px;
  background: linear-gradient(135deg, var(--pw-mint-soft), var(--pw-lavender-soft));
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.pricing-premium-banner .premium-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.pricing-premium-banner .premium-icon i {
  color: var(--pw-sun);
}
.pricing-premium-banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pw-dark);
  margin-bottom: 8px;
}
.pricing-premium-banner p {
  font-size: 14px;
  color: var(--pw-dark-soft);
  margin-bottom: 16px;
}
/* Monthly / Yearly toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.pricing-toggle-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--pw-cream-deep);
  color: var(--pw-dark-soft);
}
.pricing-toggle-btn.active {
  background: var(--pw-coral);
  color: white;
}
.pricing-toggle-btn .pricing-save-badge {
  display: inline-block;
  background: var(--pw-mint-soft);
  color: var(--pw-mint-deep);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

/* Pricing cards grid */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .pricing-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Individual pricing card */
.pricing-card {
  background: var(--pw-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 2px solid var(--pw-gray-pale);
  text-align: center;
  transition: all 0.3s;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured {
  border: 2px solid var(--pw-coral);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

/* Card icon */
.pricing-card .card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.pricing-card .card-icon.premium-offset {
  margin-top: 8px;
}
.pricing-card .card-icon .fa-seedling {
  color: var(--pw-mint);
}
.pricing-card .card-icon .fa-crown {
  color: var(--pw-sun);
}

/* Card title + description */
.pricing-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--pw-dark);
  margin-bottom: 6px;
}
.pricing-card .card-desc {
  font-size: 14px;
  color: var(--pw-gray);
  margin-bottom: 20px;
}

/* Popular badge */
.pricing-card .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pw-coral), var(--pw-coral-deep));
  color: white;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card .popular-badge i {
  margin-right: 4px;
}

/* Price display */
.pricing-price {
  margin-bottom: 24px;
}
.pricing-price .price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  color: var(--pw-dark);
}
.pricing-price .price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--pw-dark);
}
.pricing-price .price-period {
  font-size: 14px;
  color: var(--pw-gray);
}
.pricing-price .price-equiv {
  margin-top: 6px;
}
.pricing-price .price-equiv span {
  font-size: 13px;
  color: var(--pw-gray);
}

/* Feature list */
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  padding: 0;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--pw-dark-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li i {
  color: var(--pw-success);
  font-size: 14px;
  flex-shrink: 0;
}

/* Guarantee note */
.pricing-guarantee-note {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--pw-gray);
}
.pricing-guarantee-note i {
  color: var(--pw-mint-deep);
  margin-right: 4px;
}

/* FAQ Section */
.pricing-faq {
  padding: 14px 0 32px;
}
.pricing-faq .container {
  max-width: 720px;
}
.pricing-faq h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--pw-dark);
  text-align: center;
  margin-bottom: 36px;
}

/* Accordion collapse (Bootstrap-free) */
.accordion-collapse.collapse { display: none; }
.accordion-collapse.collapse.show { display: block; }
.accordion-button { position: relative; cursor: pointer; width: 100%; text-align: left; border: none; display: flex; align-items: center; }
.accordion-button::after {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.accordion-button:not(.collapsed)::after { transform: rotate(-135deg); }

/* FAQ accordion overrides */
.pricing-faq .accordion-item {
  border: 1px solid var(--pw-gray-pale);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.pricing-faq .accordion-button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--pw-dark);
  background: var(--pw-cream);
  padding: 16px 20px;
}
.pricing-faq .accordion-button:not(.collapsed) {
  color: var(--pw-dark);
  background: var(--pw-cream);
  box-shadow: none;
}
.pricing-faq .accordion-button:focus {
  box-shadow: none;
}
.pricing-faq .accordion-body {
  font-size: 14px;
  color: var(--pw-dark-soft);
  line-height: 1.7;
  padding: 16px 20px;
}

/* Responsive pricing */
@media (max-width: 767px) {
  .pricing-section {
    padding: 10px 0 24px;
  }
  .pricing-section .pricing-header h1 {
    font-size: 26px;
  }
  .pricing-card {
    padding: 24px 20px;
  }
  .pricing-price .price-amount {
    font-size: 36px;
  }
  .pricing-faq h2 {
    font-size: 22px;
  }
}

/* ── Admin inline styles (moved from admin-header.php) ── */
body.admin * { box-sizing: border-box; }
.admin-flash { padding: 14px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.admin-flash i { font-size: 14px; }
.admin-flash.success { background: #E3EAE0; color: #7A8C72; border: 1px solid #A8B5A0; }
.admin-flash.error { background: #F5E6E0; color: #B8877A; border: 1px solid #D4A08E; }
.admin-flash.info { background: #EDECE7; color: #636363; border: 1px solid #E5E5E0; }
.admin-form-group { margin-bottom: 18px; }
.admin-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--a-text); margin-bottom: 6px; }
.admin-form-group input, .admin-form-group select, .admin-form-group textarea { width: 100%; padding: 10px 14px; background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 8px; color: var(--a-text); font-size: 14px; transition: all 0.15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.admin-form-group input:focus, .admin-form-group select:focus, .admin-form-group textarea:focus { border-color: var(--a-text); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.admin-form-group input::placeholder, .admin-form-group textarea::placeholder { color: #C9CDD3; }
.admin-form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.admin-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.lang-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--a-border); }
.lang-tab { padding: 9px 16px; font-size: 13px; font-weight: 500; color: var(--a-text3); border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.15s ease; background: none; border-top: none; border-left: none; border-right: none; }
.lang-tab.active { color: var(--a-text); border-bottom-color: var(--a-text); font-weight: 600; }
.lang-tab:hover:not(.active) { color: var(--a-text2); }
.lang-panel { display: none; }
.lang-panel.active { display: block; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--a-text2); cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: auto; accent-color: var(--a-text); }
.admin-empty { text-align: center; padding: 48px 24px; color: var(--a-text3); }
.admin-empty i { font-size: 36px; margin-bottom: 14px; display: block; color: #D1D5DB; }
.admin-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px; color: var(--a-text3); }
.admin-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; }
.admin-modal-overlay.show { display: flex; }
.admin-modal { background: #FFFFFF; border: 1px solid var(--a-border); border-radius: 16px; padding: 28px; max-width: 500px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06); }
.admin-modal h3 { font-family: var(--font-display); color: var(--a-text); margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.admin-modal p { color: var(--a-text2); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }

/* ── Admin mobile fixes (buttons, tabs, tables, KPI) ── */

/* Button styles unified at top of file — no duplicates here */

/* Admin content tabs — horizontal scroll on mobile */
.admin-tabs {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--a-border, #E5E5E0); margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a, .admin-tabs button {
  flex-shrink: 0; white-space: nowrap; padding: 10px 14px;
  font-size: 12px; font-weight: 600; color: #8A8A8A;
  border-bottom: 2px solid transparent; text-decoration: none;
  background: none; border-top: none; border-left: none; border-right: none; cursor: pointer;
}
.admin-tabs a.active, .admin-tabs button.active {
  color: #2D2D2D; border-bottom-color: #8A9A82;
}

/* ── Admin responsive ── */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-card { padding: 12px; border-radius: 10px; }
  .kpi-card .kpi-num, .kpi-num { font-size: 22px; }
  .kpi-card .kpi-label { font-size: 11px; }

  .admin-table th, .admin-table td { padding: 10px 12px; font-size: 12px; }
  .admin-table .user-cell { min-width: 180px; }
  .admin-table .actions-cell { white-space: nowrap; }

  .admin-form-row { grid-template-columns: 1fr; }
  .admin-form-actions .btn { width: 100%; }
  .admin-content canvas { max-height: 200px; }
  .admin-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  .admin-table th, .admin-table td { padding: 8px 10px; font-size: 11px; }
  .admin-table .user-avatar-sm { width: 28px; height: 28px; font-size: 11px; }
  .admin-table .user-name { font-size: 12px; }
  .admin-table .user-email { font-size: 10px; }
}

/* ── Admin card (white box sections) ── */
.admin-card {
  background: #fff;
  border: 1px solid var(--a-border, #E5E5E0);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.admin-card h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.admin-card p {
  font-size: 13px;
  color: var(--a-text2, #636363);
  margin-bottom: 12px;
}
@media (max-width: 1024px) {
  .admin-card { padding: 16px 12px; }
}

/* ── Admin utility classes (replacing inline styles) ── */
.admin-page-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 24px;
}
.admin-section-title {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
}
.admin-section-subtitle {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.admin-hint {
  font-size: 13px; color: var(--a-text2, #636363); margin-bottom: 16px;
}
.admin-hint a { color: var(--a-text, #2D2D2D); font-weight: 600; }
.admin-small { font-size: 11px; color: var(--a-text3, #8A8A8A); }
.admin-stat-inline {
  font-size: 13px; color: var(--a-text2, #636363);
  display: flex; align-items: center; gap: 8px;
}
.admin-info-box {
  margin-top: 24px; padding: 16px; background: var(--a-bg, #F5F4F0);
  border: 1px solid var(--a-border, #E5E5E0); border-radius: 12px;
}
.admin-info-box h3 { margin-bottom: 8px; font-size: 14px; }
.admin-info-box ul { font-size: 12px; color: var(--a-text2, #636363); line-height: 1.8; }
.admin-color-row {
  display: flex; gap: 8px; align-items: center;
}
.admin-color-input {
  width: 50px; height: 36px; padding: 2px; cursor: pointer;
}

