/* ============================================================
   DREAMY PIPER — Main Stylesheet
   Custom Kids Primer Books in 7 Indian & English Languages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ──────────────────────────────────────────────────────────── */
/* CSS CUSTOM PROPERTIES                                        */
/* ──────────────────────────────────────────────────────────── */
:root {
  --primary:        #FF6B35;
  --primary-dark:   #E04E1A;
  --primary-light:  #FFD4BC;
  --secondary:      #6C63FF;
  --secondary-dark: #4F46E5;
  --secondary-light:#C4C1FF;
  --yellow:         #FFD166;
  --green:          #06D6A0;
  --pink:           #FF6B9D;
  --blue:           #4CC9F0;
  --teal:           #14B8A6;

  --dark:    #1A1A2E;
  --dark-2:  #2D2D44;
  --gray:    #6B7280;
  --mid-gray:#9CA3AF;
  --light-gray:#F3F4F6;
  --white:   #FFFFFF;

  --bg-cream: #FFFBF5;
  --bg-soft:  #F5F3FF;

  --font-heading: 'Baloo 2', cursive;
  --font-body:    'Nunito', sans-serif;

  --shadow-sm:  0 2px 8px  rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.13);
  --shadow-col: 0 8px 30px rgba(108,99,255,0.25);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --radius-full:9999px;

  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

::selection { background: var(--secondary-light); color: var(--dark); }

/* ──────────────────────────────────────────────────────────── */
/* TYPOGRAPHY                                                   */
/* ──────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 800;
  color: var(--dark);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-tag.orange { color: var(--primary); background: var(--primary-light); }
.section-tag.green  { color: #059669; background: #DCFCE7; }
.section-tag.pink   { color: #DB2777; background: #FCE7F3; }
.section-tag.teal   { color: #0F766E; background: #CCFBF1; }

/* ──────────────────────────────────────────────────────────── */
/* LAYOUT HELPERS                                               */
/* ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 120px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-header p  { color: var(--gray); font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

.bg-cream  { background: var(--bg-cream); }
.bg-soft   { background: var(--bg-soft); }
.bg-white  { background: var(--white); }
.bg-dark   { background: var(--dark); }

/* ──────────────────────────────────────────────────────────── */
/* BUTTONS                                                      */
/* ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(255,107,53,0.40);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,53,0.50);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(108,99,255,0.35);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108,99,255,0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { font-size: 0.9rem; padding: 10px 22px; }
.btn-lg { font-size: 1.1rem; padding: 18px 44px; }

/* ──────────────────────────────────────────────────────────── */
/* NAVIGATION                                                   */
/* ──────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,251,245,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0;
}

.navbar.page-nav {
  background: rgba(255,251,245,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

/* Image logo */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-img--footer {
  height: 80px;
}

/* Logo text alongside icon */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* White nav: gradient brand */
.navbar.scrolled .logo-brand,
.navbar.page-nav .logo-brand {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--secondary) 50%, var(--secondary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar.scrolled .logo-tagline,
.navbar.page-nav .logo-tagline { color: var(--mid-gray); }

/* Transparent hero nav: brand goes white */
.navbar:not(.scrolled):not(.page-nav) .logo-brand { color: var(--white); }
.navbar:not(.scrolled):not(.page-nav) .logo-tagline { color: rgba(255,255,255,0.75); }

.nav-logo .logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(108,99,255,0.3);
}

.nav-logo span.brand { color: var(--dark); }
.nav-logo span.accent { color: var(--primary); }

.navbar.scrolled .nav-logo,
.navbar.page-nav .nav-logo { color: var(--dark); }

.navbar:not(.scrolled):not(.page-nav) .nav-logo { color: var(--white); }
.navbar:not(.scrolled):not(.page-nav) .nav-logo span.brand { color: var(--white); }

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  color: var(--dark);
}

.navbar:not(.scrolled):not(.page-nav) .nav-links a:not(.nav-dropdown-item) { color: rgba(255,255,255,0.9); }

.nav-links a:hover,
.nav-links a.active {
  background: rgba(108,99,255,0.12);
  color: var(--secondary);
}

.navbar:not(.scrolled):not(.page-nav) .nav-links a:not(.nav-dropdown-item):hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.nav-links .cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(255,107,53,0.4);
}
.nav-links .signin-btn {
  margin-left: 8px;
}

/* ── Nav avatar + dropdown ────────────────────────────────────────────────── */
.nav-user {
  position: relative;
}
.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #9c94ff);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(108,99,255,0.35);
  margin-left: 8px;
}
.nav-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(108,99,255,0.45);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  min-width: 220px;
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-header strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--dark);
}
.nav-dropdown-header span {
  font-size: 0.8rem;
  color: #888;
}
.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-dropdown-item:hover {
  background: #f7f7fb;
}
.nav-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}
.nav-dropdown-signout {
  color: #e53e3e;
}

/* ── Our Books nav dropdown ───────────────────────── */
.nav-books-item {
  position: relative;
}
.nav-books-chevron {
  font-size: 0.7em;
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.2s;
}
.nav-books-item:hover .nav-books-chevron,
.nav-books-item.open  .nav-books-chevron {
  transform: rotate(180deg);
}
.nav-books-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* padding-top bridges the gap so hover doesn't break when crossing from link to menu */
  padding-top: 10px;
  min-width: 200px;
  z-index: 1000;
  animation: dropdownFadeIn 0.15s ease;
}
.nav-books-dropdown-inner {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  overflow: hidden;
}
.nav-books-item:hover .nav-books-dropdown,
.nav-books-item.open  .nav-books-dropdown {
  display: block;
}
.nav-dropdown-item--active {
  background: #f0eeff;
  color: var(--secondary);
}

.nav-links .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.5);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar:not(.scrolled):not(.page-nav) .hamburger span { background: var(--white); }

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--white);
  padding: 100px 32px 40px;
  z-index: 999;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--dark);
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--bg-soft); color: var(--secondary); }
.mobile-menu .cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  text-align: center;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(255,107,53,0.4);
}
.mobile-user {
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-user-info {
  padding: 8px 20px 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}
.mobile-user-info span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
}
.mobile-user a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: var(--dark);
  transition: var(--transition);
}
.mobile-user a:hover { background: var(--bg-soft); color: var(--secondary); }
.mobile-user .signout-btn {
  width: 100%;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: #e53e3e;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-user .signout-btn:hover { background: #fff5f5; }

/* ──────────────────────────────────────────────────────────── */
/* HERO SECTION                                                 */
/* ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D6B 40%, #0F3460 70%, #16213E 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(108,99,255,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(6,214,160,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 20%, rgba(255,107,53,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 6s ease-in-out infinite;
}
.hero-orb-1 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(108,99,255,0.4), transparent);
  top: 10%; left: 5%;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(6,214,160,0.3), transparent);
  top: 20%; right: 10%;
  animation-delay: 2s;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,209,102,0.2), transparent);
  bottom: 20%; right: 5%;
  animation-delay: 4s;
}
.hero-orb-4 {
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,107,53,0.3), transparent);
  bottom: 30%; left: 15%;
  animation-delay: 1s;
}

@keyframes floatOrb {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--yellow), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-langs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  overflow: visible;
}
.hero-langs span.label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  margin-right: 4px;
}
.lang-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 1;
  white-space: nowrap;
}
.lang-pill:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hero visual / book art */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 635px;
}

.book-stack {
  position: relative;
  width: 423px;
  height: 476px;
}

.book-card-art {
  position: absolute;
  width: 212px;
  height: 291px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: var(--transition-slow);
  cursor: pointer;
}

.book-card-art:hover { transform: rotate(0deg) scale(1.05) translateY(-10px); }

.book-card-art .book-emoji { font-size: 3.31rem; }
.book-card-art .book-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255,255,255,0.9);
  padding: 0 10px;
}
.book-card-art .book-lang-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255,255,255,0.25);
  color: var(--white);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.book-1 {
  background: linear-gradient(160deg, #FF6B35, #E04E1A);
  top: 0; left: 0;
  transform: rotate(-8deg);
  animation: floatBook1 4s ease-in-out infinite;
  z-index: 3;
}
.book-2 {
  background: linear-gradient(160deg, #6C63FF, #4F46E5);
  top: 40px; left: 106px;
  transform: rotate(3deg);
  animation: floatBook2 5s ease-in-out infinite;
  z-index: 4;
}
.book-3 {
  background: linear-gradient(160deg, #06D6A0, #059669);
  top: 79px; right: 0;
  transform: rotate(6deg);
  animation: floatBook3 4.5s ease-in-out infinite;
  z-index: 2;
}
.book-4 {
  background: linear-gradient(160deg, #FFD166, #F59E0B);
  bottom: 26px; left: 40px;
  transform: rotate(-4deg);
  animation: floatBook1 5.5s ease-in-out infinite;
  z-index: 3;
}
.book-5 {
  background: linear-gradient(160deg, #FF6B9D, #DB2777);
  bottom: 0; right: 26px;
  transform: rotate(8deg);
  animation: floatBook2 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes floatBook1 {
  0%,100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-14px); }
}
@keyframes floatBook2 {
  0%,100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-18px); }
}
@keyframes floatBook3 {
  0%,100% { transform: rotate(6deg) translateY(-8px); }
  50% { transform: rotate(4deg) translateY(6px); }
}

/* Stars floating around books */
.star-float {
  position: absolute;
  font-size: 1.2rem;
  animation: starFloat 3s ease-in-out infinite;
  pointer-events: none;
}
.star-float:nth-child(1) { top: -10px; left: 10%; animation-delay: 0s; }
.star-float:nth-child(2) { top: 40%; right: -10px; animation-delay: 1s; font-size: 1.6rem; }
.star-float:nth-child(3) { bottom: 10%; left: -5%; animation-delay: 2s; font-size: 0.9rem; }
@keyframes starFloat {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  50% { transform: translateY(-12px) rotate(20deg); opacity: 1; }
}

/* Hero wave */
/* ──────────────────────────────────────────────────────────── */
/* STATS BAND                                                   */
/* ──────────────────────────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  padding: 48px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--yellow);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}

/* ──────────────────────────────────────────────────────────── */
/* LANGUAGE OFFERINGS                                           */
/* ──────────────────────────────────────────────────────────── */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lang-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  text-decoration: none;
}

.lang-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lang-color, var(--secondary));
}

/* Gradient background layer */
.lang-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--lang-color, var(--secondary)) 12%, white), color-mix(in srgb, var(--lang-color, var(--secondary)) 5%, white));
  z-index: 0;
  transition: var(--transition);
}
.lang-card:hover .lang-card-bg {
  background: linear-gradient(145deg, color-mix(in srgb, var(--lang-color, var(--secondary)) 18%, white), color-mix(in srgb, var(--lang-color, var(--secondary)) 8%, white));
}

/* Large watermark script character */
.lang-card-script {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--lang-color, var(--secondary));
  opacity: 0.1;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition);
}
.lang-card:hover .lang-card-script { opacity: 0.18; }

/* Top color bar */
.lang-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--lang-color, var(--secondary));
  z-index: 3;
  transition: var(--transition);
}
.lang-card:hover::before { height: 6px; }

/* Book thumb — compact, top-aligned */
.lang-book-thumb {
  width: 150px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin: 20px auto 0;
}
.lang-book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.lang-card:hover .lang-book-thumb img { transform: scale(1.06); }
.lang-card:hover .lang-book-thumb { box-shadow: 0 10px 28px rgba(0,0,0,0.28); }

/* Card body text */
.lang-card-body {
  position: relative;
  z-index: 2;
  padding: 12px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
/* Cards WITHOUT a thumb: center content vertically */
.lang-card:not(:has(.lang-book-thumb)) .lang-card-body {
  justify-content: center;
  padding: 28px 16px;
}

.lang-flag { font-size: 2rem; margin-bottom: 8px; }
.lang-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.lang-script {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lang-color, var(--secondary));
  margin-bottom: 6px;
}
.lang-count {
  font-size: 0.72rem;
  color: var(--mid-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* lang color variants */
.lang-card[data-lang="english"]  { --lang-color: #3B82F6; }
.lang-card[data-lang="hindi"]    { --lang-color: #F97316; }
.lang-card[data-lang="telugu"]   { --lang-color: #10B981; }
.lang-card[data-lang="malayalam"]{ --lang-color: #8B5CF6; }
.lang-card[data-lang="punjabi"]  { --lang-color: #F59E0B; }
.lang-card[data-lang="gujarati"] { --lang-color: #EC4899; }
.lang-card[data-lang="marathi"]  { --lang-color: #14B8A6; }

/* 8th card — Explore All CTA */
.lang-card--cta {
  background: linear-gradient(145deg, var(--dark), #2D2B55);
  border: none;
  justify-content: center;
  align-items: center;
}
.lang-card--cta::before { background: var(--primary); }
.lang-card--cta:hover { border-color: var(--primary); }
.lang-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}
.lang-cta-icon { font-size: 2rem; }
.lang-cta-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  text-align: center;
}
.lang-cta-arrow {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s ease;
}
.lang-card--cta:hover .lang-cta-arrow { transform: translateX(6px); }

/* Book cover image in hero stack */
.book-card-art.has-cover {
  padding: 0;
  overflow: hidden;
  justify-content: flex-end;
  align-items: flex-end;
}
.book-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.book-card-art.has-cover .book-lang-tag {
  position: relative;
  z-index: 2;
  margin: 0 0 12px 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

/* ──────────────────────────────────────────────────────────── */
/* HOW IT WORKS                                                 */
/* ──────────────────────────────────────────────────────────── */
.how-it-works {
  background: linear-gradient(160deg, #1A1A2E, #2D2D6B);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.how-it-works .section-header h2 { color: var(--white); }
.how-it-works .section-header p  { color: rgba(255,255,255,0.6); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.step-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.step-number {
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.step-card:nth-child(1) .step-number {
  background: linear-gradient(135deg, var(--primary), #FF9A5C);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255,107,53,0.5);
}
.step-card:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--secondary), #A78BFA);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(108,99,255,0.5);
}
.step-card:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--green), #34D399);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(6,214,160,0.5);
}

.step-icon { font-size: 2.2rem; margin-bottom: 16px; }
.step-icon--svg { color: var(--primary); display: flex; justify-content: center; }  

.step-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.step-card p { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; }

/* ──────────────────────────────────────────────────────────── */
/* BOOK CARDS                                                   */
/* ──────────────────────────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.styles-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

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

.book-cover {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.book-cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.book-cover-emoji { font-size: 3rem; position: relative; z-index: 1; }
.book-cover-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.book-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.book-info {
  padding: 20px;
}

.book-lang-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.book-info h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark);
}

.book-info p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-age {
  font-size: 0.78rem;
  color: var(--mid-gray);
  font-weight: 600;
}

.book-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  background: var(--bg-soft);
  border: 1px solid var(--secondary-light);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  margin-bottom: 14px;
}

.book-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.book-cta-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.book-cta-link:hover { color: var(--secondary-dark); gap: 8px; }

/* ──────────────────────────────────────────────────────────── */
/* WHY CHOOSE US                                                */
/* ──────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.feature-icon-wrap {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card:nth-child(1) .feature-icon-wrap { background: #FEF3C7; }
.feature-card:nth-child(2) .feature-icon-wrap { background: #EDE9FE; }
.feature-card:nth-child(3) .feature-icon-wrap { background: #DCFCE7; }
.feature-card:nth-child(4) .feature-icon-wrap { background: #FCE7F3; }
.feature-card:nth-child(5) .feature-icon-wrap { background: #DBEAFE; }
.feature-card:nth-child(6) .feature-icon-wrap { background: #CCFBF1; }

.feature-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────── */
/* TESTIMONIALS                                                 */
/* ──────────────────────────────────────────────────────────── */
.testimonials { }

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--secondary-light);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: -10px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.author-info .name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}
.author-info .role {
  font-size: 0.8rem;
  color: var(--mid-gray);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

/* ──────────────────────────────────────────────────────────── */
/* FAQ                                                          */
/* ──────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.faq-item:hover { border-color: var(--secondary-light); }
.faq-item.open { border-color: var(--secondary); box-shadow: var(--shadow-col); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  transition: var(--transition);
}

.faq-item.open .faq-question { color: var(--secondary); }

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: var(--transition);
  color: var(--secondary);
}

.faq-item.open .faq-icon { background: var(--secondary); color: var(--white); transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.open .faq-answer { max-height: 300px; padding: 0 28px 22px; }

.faq-answer p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ──────────────────────────────────────────────────────────── */
/* CTA SECTION                                                  */
/* ──────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E");
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────── */
/* FOOTER                                                       */
/* ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-nav-logo { margin-bottom: 16px; color: var(--white); }
.footer-nav-logo .logo-img--footer { height: 40px; }
.footer-nav-logo .logo-brand { color: var(--white); font-size: 1.3rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a::before {
  content: '→';
  flex-shrink: 0;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); gap: 10px; }

.footer-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-lang-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.footer-lang-chip:hover {
  background: rgba(108,99,255,0.3);
  color: var(--white);
  border-color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { font-size: 0.85rem; }
.footer-bottom p a { color: var(--secondary-light); }
.footer-bottom p a:hover { color: var(--white); }

.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--white); }

/* ──────────────────────────────────────────────────────────── */
/* BOOKS PAGE                                                   */
/* ──────────────────────────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D6B 60%, #16213E 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 30%, rgba(108,99,255,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(6,214,160,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; }

.filter-bar {
  padding: 16px 0 20px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 76px;
  z-index: 10;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--light-gray);
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover { border-color: var(--secondary); color: var(--secondary); }

.filter-tab.active {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(108,99,255,0.35);
}

.filter-select-wrap { display: none; padding: 0 20px 18px; }

.filter-select {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--secondary);
  background: var(--white);
  color: var(--secondary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C63FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.books-all { padding: 64px 0 96px; }

.books-section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.books-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--light-gray);
}

.book-group { margin-bottom: 56px; }

/* ──────────────────────────────────────────────────────────── */
/* CONTACT PAGE                                                 */
/* ──────────────────────────────────────────────────────────── */
.contact-section { padding: 96px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  transform: translateX(6px);
  border-color: var(--secondary-light);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card:nth-child(1) .contact-card-icon { background: #FEF3C7; }
.contact-card:nth-child(2) .contact-card-icon { background: #EDE9FE; }
.contact-card:nth-child(3) .contact-card-icon { background: #DCFCE7; }
.contact-card:nth-child(4) .contact-card-icon { background: #FCE7F3; }

.contact-card-text .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-gray);
  margin-bottom: 4px;
}
.contact-card-text .value {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.languages-available h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid-gray);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.form-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--bg-cream);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(108,99,255,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-checkbox input[type="checkbox"] { margin-top: 3px; }
.form-checkbox label { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--gray); }

.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }

.success-message {
  display: none;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #166534;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}
.success-message.show { display: flex; }

/* Map placeholder */
.map-placeholder {
  background: linear-gradient(135deg, var(--bg-soft), var(--secondary-light));
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  margin-top: 64px;
  border: 2px dashed var(--secondary-light);
}
.map-placeholder .map-icon { font-size: 3rem; }
.map-placeholder p {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary);
}

/* Scroll-in animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ──────────────────────────────────────────────────────────── */
/* WAVE DIVIDERS                                                */
/* ──────────────────────────────────────────────────────────── */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ──────────────────────────────────────────────────────────── */
/* TRY IT FREE PAGE                                            */
/* ──────────────────────────────────────────────────────────── */

/* Nav link highlight */
.try-nav-link,
.nav-links a.active.try-nav-link {
  background: linear-gradient(135deg, #6C63FF, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
}
.mobile-menu a.try-nav-link { color: var(--secondary); font-weight: 700; }

/* Hero pills */
.try-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.try-pill {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Stepper */
.try-stepper {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 76px;
  z-index: 90;
}
.stepper-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}
.step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--border);
  color: var(--mid-gray);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
}
.stepper-step.active .step-bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}
.stepper-step.done .step-bubble {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.stepper-step.done .step-bubble::after {
  content: '✓';
}
.stepper-step.done .step-bubble { font-size: 0; }
.stepper-step.done .step-bubble::after { font-size: 0.9rem; }
.step-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.stepper-step.active .step-label { color: var(--primary); }
.stepper-step.done .step-label   { color: var(--secondary); }
.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 22px;
  min-width: 20px;
  max-width: 80px;
  transition: background 0.3s;
}

/* Try steps visibility */
.try-step { display: none; padding: 64px 0; }
.try-step.active { display: block; }

.try-step-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.try-step-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.try-step-header p { color: var(--gray); font-size: 1.05rem; }

/* Step nav buttons */
.step-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.step-nav-right { justify-content: flex-end; }
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--dark); }

/* ── Language selector ── */
.lang-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.lang-sel-btn {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.lang-sel-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.lang-sel-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,53,0.3);
}

/* ── Book selector grid ── */
.book-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 260px));
  gap: 20px;
  margin-bottom: 8px;
  justify-content: center;
}
.book-sel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  outline: none;
}
.book-sel-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.book-sel-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.book-sel-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.2);
}
.bsc-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bsc-cover.has-image {
  padding: 0;
  overflow: hidden;
}
.bsc-cover.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.book-sel-card:hover .bsc-cover.has-image img {
  transform: scale(1.04);
}
.bsc-cover.has-image .style-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.bsc-emoji { font-size: 2.2rem; }
.bsc-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.bsc-info {
  padding: 14px 16px;
}
.bsc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.bsc-meta { font-size: 0.78rem; color: var(--gray); }
.bsc-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}
.book-sel-card.selected .bsc-check { opacity: 1; transform: scale(1); }

/* ── Edition cards ── */
.edition-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 40px;
}
.edition-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  text-align: center;
}
.edition-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.edition-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15), var(--shadow-lg);
}
.edition-featured {
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(108,99,255,0.04), rgba(255,107,53,0.04));
}
.edition-featured.selected {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2), var(--shadow-lg);
}
.edition-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.edition-icon { font-size: 2.4rem; margin-bottom: 12px; }
.edition-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 16px;
}
.edition-perks {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.edition-perks li { font-size: 0.88rem; color: var(--gray); }
.edition-pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}
.ed-price { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--dark); }
.ed-format { font-size: 0.78rem; color: var(--mid-gray); }

/* ── Personalise form ── */
.personalise-form {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
  display: none;
}
.personalise-form.visible { display: block; }
.pform-header { margin-bottom: 28px; }
.pform-header h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--dark); margin-bottom: 6px; }
.pform-header p  { font-size: 0.85rem; color: var(--gray); }
.pform-fields { display: flex; flex-direction: column; gap: 24px; }
.pform-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.pform-field input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.pform-field input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.pfield-hint { display: block; font-size: 0.78rem; color: var(--mid-gray); margin-top: 6px; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.upload-zone:hover { border-color: var(--primary); background: rgba(255,107,53,0.03); }
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(255,107,53,0.06);
  transform: scale(1.01);
}
.upload-zone.has-photo { border-color: #10B981; border-style: solid; }
.upload-zone.upload-error { border-color: #EF4444; animation: shake 0.4s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: none;
}
.upload-icon { font-size: 2.4rem; margin-bottom: 10px; }
.upload-idle p { margin: 4px 0; font-size: 0.9rem; color: var(--gray); }
.upload-browse { color: var(--primary); font-weight: 700; text-decoration: underline; cursor: pointer; }
.upload-hint { font-size: 0.78rem; color: var(--mid-gray); margin-top: 10px; }
.upload-preview-wrap {
  position: relative;
  display: inline-block;
}
.upload-preview-wrap img#upload-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #10B981;
  display: block;
  margin: 0 auto;
}
.upload-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EF4444;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Preview spread ── */
.preview-spread {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 32px;
}
.preview-page {
  position: relative;
}
.preview-page-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 10px;
}

/* Book page base */
.book-page {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px;
  position: relative;
  background: linear-gradient(145deg, #3B82F6, #1D4ED8); /* overridden by JS */
  transition: background 0.4s;
}

/* Scattered dots decoration on book pages */
.book-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Cover page */
.bpage-ribbon {
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-align: center;
  backdrop-filter: blur(6px);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}
.bpage-photo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bpage-photo-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bpage-photo-ring canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bpage-photo-placeholder,
.bpage-small-placeholder {
  font-size: 2.5rem;
  line-height: 1;
}
.bpage-photo-stars {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}
.bpage-star {
  position: absolute;
  font-size: 1rem;
  animation: floatStar 3s ease-in-out infinite alternate;
}
.bpage-star.s1 { top: 0; left: 10%; animation-delay: 0s; }
.bpage-star.s2 { top: 15%; right: 0; animation-delay: 0.8s; font-size: 0.8rem; }
.bpage-star.s3 { bottom: 0; right: 15%; animation-delay: 1.5s; }
@keyframes floatStar {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-8px) rotate(20deg); }
}
.bpage-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  text-align: center;
  z-index: 2;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bpage-book-title {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  text-align: center;
  z-index: 2;
}
.bpage-lang {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}

/* Letter page */
.book-page-letter {
  position: relative;
  gap: 0;
  justify-content: flex-start;
  padding-top: 18px;
}
.bpage-big-letter {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 5rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 4px 20px rgba(0,0,0,0.15);
  line-height: 1;
  z-index: 2;
  align-self: center;
}
.bpage-small-photo-wrap {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.7);
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.bpage-small-photo-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bpage-small-placeholder { font-size: 1.5rem; }
.bpage-letter-text {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  z-index: 2;
  width: 100%;
  line-height: 1.5;
  margin-top: auto;
}
.blt-letter {
  font-size: 1.4rem;
  font-weight: 800;
}
.blt-name {
  color: var(--yellow);
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.bpage-alphabet-row {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  z-index: 2;
  padding-bottom: 4px;
}

/* Preview lock strip */
.preview-lock-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  max-width: 800px;
  margin: 0 auto 8px;
  color: #fff;
}
.lock-left { display: flex; align-items: center; gap: 14px; }
.lock-icon { font-size: 1.8rem; }
.lock-left strong { display: block; font-family: var(--font-heading); font-size: 1rem; font-weight: 800; }
.lock-sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.lock-cta { flex-shrink: 0; }

/* ── Format cards ── */
.format-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto 32px;
}
.format-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.format-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.format-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15), var(--shadow-lg);
}
.format-card-featured {
  border-color: var(--secondary);
  background: linear-gradient(135deg, rgba(108,99,255,0.04), rgba(255,107,53,0.04));
}
.fmt-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.fmt-icon { font-size: 2.2rem; margin-bottom: 10px; }
.format-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.fmt-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.fmt-price span, .fmt-price-std span { font-size: 0.78rem; font-weight: 600; color: var(--gray); }
.fmt-price-std {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 4px;
}
.fmt-perks {
  list-style: none;
  text-align: left;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fmt-perks li { font-size: 0.84rem; color: var(--gray); }

/* Add-on row */
.addon-row {
  max-width: 700px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: var(--light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.addon-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.addon-toggle input[type="checkbox"] { display: none; }
.addon-toggle-track {
  width: 40px;
  height: 22px;
  border-radius: 100px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.addon-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.addon-toggle input:checked ~ .addon-toggle-track { background: var(--primary); }
.addon-toggle input:checked ~ .addon-toggle-track::after { transform: translateX(18px); }
.addon-label { font-size: 0.9rem; color: var(--dark); font-weight: 600; }
.addon-label em { font-style: normal; color: #10B981; font-weight: 700; }

/* Order recap + action */
.order-recap {
  max-width: 420px;
  margin: 0 auto 28px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
}
.recap-book { display: flex; align-items: center; gap: 16px; }
.recap-cover {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.recap-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--dark);
}
.recap-meta { font-size: 0.8rem; color: var(--gray); margin-top: 3px; }

.order-action {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 8px;
}
.order-note { font-size: 0.8rem; color: var(--mid-gray); margin-top: 10px; }

/* ── Personalise badge on book cards (books.html) ── */
.book-personalise-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(108,99,255,0.08);
  border: 1.5px solid rgba(108,99,255,0.25);
  border-radius: 100px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.book-personalise-btn:hover {
  background: rgba(108,99,255,0.16);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* Personalisation banner (books.html) */
.personalise-banner {
  background: linear-gradient(135deg, #6C63FF, #FF6B35);
  color: #fff;
  padding: 14px 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.personalise-banner a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: underline;
}

/* ── Responsive: try page ── */
@media (max-width: 900px) {
  .preview-spread { grid-template-columns: 1fr; max-width: 360px; }
  .preview-lock-strip { flex-direction: column; text-align: center; }
  .lock-left { flex-direction: column; }
}

@media (max-width: 768px) {
  .try-stepper { top: 70px; }
  .stepper-track { gap: 0; }
  .step-label { display: none; }
  .stepper-line { min-width: 14px; max-width: 50px; }
  .edition-cards { grid-template-columns: 1fr; max-width: 400px; }
  .format-cards  { grid-template-columns: 1fr; max-width: 400px; }
  .book-page { padding: 16px 12px; }
  .bpage-photo-ring { width: 90px; height: 90px; }
  .bpage-big-letter { font-size: 3.5rem; }
}

@media (max-width: 600px) {
  .step-bubble { width: 30px; height: 30px; font-size: 0.8rem; }
  .lang-selector { gap: 8px; }
  .lang-sel-btn { padding: 8px 14px; font-size: 0.82rem; }
  .book-selector-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bsc-cover { height: 80px; }
  .bsc-emoji { font-size: 1.8rem; }
  .personalise-form { padding: 20px 16px; }
  .bpage-ribbon { font-size: 0.55rem; padding: 4px 10px; }
  .bpage-name { font-size: 0.95rem; }
  .bpage-big-letter { font-size: 3rem; }
  .try-hero-pills { gap: 8px; }
  .try-pill { font-size: 0.8rem; padding: 6px 14px; }
}

/* ──────────────────────────────────────────────────────────── */
/* TRUST GRID (contact page)                                   */
/* ──────────────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

@media (max-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 375px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trust-grid .reveal > div:first-child { font-size: 2rem; }
}

/* ──────────────────────────────────────────────────────────── */
/* TOUCH & INTERACTION (all sizes)                             */
/* ──────────────────────────────────────────────────────────── */
.btn, .filter-tab, .faq-question, .nav-links a, .hamburger,
.lang-card, .book-card, .social-link, .cta-btn,
.mobile-menu a, .book-cta-link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Minimum touch target on interactive elements */
.btn, .filter-tab, .faq-question { min-height: 44px; }
.nav-links a, .social-link { min-height: 40px; }

/* Prevent horizontal overflow */
.hero, .stats-band, .how-it-works, .cta-section,
.testimonials, .filter-bar, .footer { overflow-x: hidden; }

/* ──────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                   */
/* ──────────────────────────────────────────────────────────── */

/* ── 1280px: Large tablet / small laptop ── */
@media (max-width: 1280px) {
  .container { padding: 0 32px; }
  .hero-inner { gap: 40px; }
  .book-stack { width: 280px; height: 320px; }
  .book-card-art { width: 140px; height: 195px; }
  .footer-grid { gap: 36px; }
}

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { gap: 24px; }
  .section { padding: 80px 0; }
  .section--lg { padding: 100px 0; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .styles-showcase-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 900px: Tablet portrait ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
    gap: 40px;
  }
  .hero-content p { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-langs { justify-content: center; }
  .hero-visual { display: none; }

  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

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

  .how-it-works { padding: 72px 0; }
  .cta-section { padding: 72px 0; }
  .section--lg { padding: 88px 0; }
}

/* ── 768px: Mobile landscape / large phone portrait ── */
@media (max-width: 768px) {
  /* --- Navbar --- */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { padding: 14px 20px; }

  /* --- Filter bar: dropdown on mobile --- */
  .filter-bar {
    top: 70px;
    padding: 12px 0 0;
  }
  .lang-tabs { display: none; }
  .filter-select-wrap { display: block; }

  /* --- Grids --- */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .languages-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .styles-showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  /* --- Spacing --- */
  .section { padding: 64px 0; }
  .section--sm { padding: 48px 0; }
  .section--lg { padding: 76px 0; }
  .stats-band { padding: 40px 20px; }
  .how-it-works { padding: 64px 0; }
  .cta-section { padding: 64px 0; }
  .footer { padding: 60px 0 32px; }
  .footer-grid { margin-bottom: 40px; }
  .page-hero { padding: 120px 0 56px; }

  /* --- Component padding --- */
  .lang-card { min-height: 180px; }
  .lang-book-thumb { width: 120px; }
  .feature-card { padding: 24px; }
  .testimonial-card { padding: 24px; }
  .step-card { padding: 28px 20px; }
  .contact-form-wrapper { padding: 32px 24px; }
  .faq-question { padding: 18px 20px; font-size: 0.95rem; }
  .faq-answer { padding: 0 20px; }
  .faq-item.open .faq-answer { padding: 0 20px 18px; }

  /* --- Section header --- */
  .section-header { margin-bottom: 44px; }
  .section-header h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }

  /* --- CTA --- */
  .cta-buttons .btn { min-width: 180px; }
}

/* ── 600px: Small phone landscape / large phone portrait ── */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  /* --- Grids --- */
  .languages-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lang-book-thumb { width: 125px; }
  .books-grid { grid-template-columns: 1fr; }
  .styles-showcase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* --- Hero --- */
  .hero-content h1 { font-size: clamp(1.85rem, 7vw, 2.5rem); }
  .hero-badge { font-size: 0.78rem; padding: 6px 14px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-langs { flex-wrap: wrap; }
  .hero-inner { padding-top: 100px; padding-bottom: 44px; }

  /* --- Stats --- */
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.82rem; }

  /* --- Books page heading --- */
  .books-section-title { font-size: 1.2rem; }

  /* --- Contact --- */
  .contact-form-wrapper { padding: 24px 18px; border-radius: var(--radius-lg); }

  /* --- Spacing --- */
  .section { padding: 56px 0; }
  .section--sm { padding: 40px 0; }
  .stats-band { padding: 32px 16px; }
  .cta-section { padding: 56px 0; }
  .how-it-works { padding: 56px 0; }
  .page-hero { padding: 110px 0 48px; }

  /* --- CTA buttons: stack vertically --- */
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* --- Footer bottom --- */
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-bottom-links { justify-content: center; gap: 16px; }

  /* --- Page hero --- */
  .page-hero h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
}

/* ── 480px: Small phone portrait ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* --- Nav --- */
  .nav-inner { padding: 12px 16px; }
  .nav-logo { font-size: 1.3rem; }
  .nav-logo .logo-icon { width: 36px; height: 36px; font-size: 1rem; }

  /* --- Hero --- */
  .hero-content h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .hero-langs { gap: 8px; }
  .lang-pill { font-size: 0.72rem; padding: 3px 10px; }
  .hero-inner { padding-top: 84px; padding-bottom: 36px; }
  .hero-badge { margin-bottom: 20px; }
  .hero-content h1 { margin-bottom: 14px; }
  .hero-content p { font-size: 1.05rem; margin-bottom: 24px; }
  .hero-cta { margin-bottom: 28px; }

  /* --- Stats --- */
  .stat-number { font-size: 1.85rem; }

  /* --- Languages --- */
  .languages-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lang-card { min-height: 160px; }
  .lang-book-thumb { width: 110px; }

  /* --- Buttons --- */
  .btn-lg { font-size: 1rem; padding: 14px 28px; }

  /* --- FAQ --- */
  .faq-question { padding: 16px; font-size: 0.9rem; gap: 10px; }
  .faq-answer { padding: 0 16px; }
  .faq-item.open .faq-answer { padding: 0 16px 16px; }
  .faq-icon { width: 24px; height: 24px; font-size: 1rem; }

  /* --- Feature cards: stack icon above text, centred --- */
  .feature-card { flex-direction: column; align-items: center; text-align: center; padding: 20px; gap: 14px; }
  .feature-icon-wrap { width: 52px; height: 52px; font-size: 1.5rem; }

  /* --- Step cards --- */
  .step-card { padding: 24px 16px; }
  .step-number { width: 60px; height: 60px; font-size: 1.2rem; }

  /* --- Book cards --- */
  .book-cover { height: 170px; }
  .book-cover-emoji { font-size: 2.4rem; }
  .books-section-title { font-size: 1.1rem; gap: 8px; }
  .book-info { padding: 16px; }

  /* --- Contact --- */
  .contact-form-wrapper { padding: 20px 16px; }
  .form-title { font-size: 1.3rem; }
  .contact-card { padding: 16px 18px; }
  .contact-card-icon { width: 40px; height: 40px; font-size: 1.2rem; }

  /* --- Testimonials --- */
  .testimonial-card { padding: 20px 18px; }
  .testimonial-quote { font-size: 2rem; margin-bottom: -6px; }
  .testimonial-author { flex-direction: column; align-items: center; text-align: center; gap: 8px; }

  /* --- Page Hero --- */
  .page-hero { padding: 96px 0 44px; }
  .page-hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); }

  /* --- Footer --- */
  .footer { padding: 48px 0 28px; }
  .footer-grid { gap: 28px; margin-bottom: 32px; }

  /* --- Section header --- */
  .section-header { margin-bottom: 36px; }
  .section-header p { font-size: 0.95rem; }
}

/* ── 375px: Very small phones (iPhone SE, mini) ── */
@media (max-width: 375px) {
  .container { padding: 0 14px; }

  .nav-logo { font-size: 1.1rem; }
  .nav-logo .logo-icon { width: 32px; height: 32px; font-size: 0.9rem; }
  .logo-tagline { display: none; }
  .logo-img { height: 38px; }
  .logo-brand { font-size: 1rem; }

  .hero-content h1 { font-size: 1.65rem; }
  .hero-badge { font-size: 0.7rem; padding: 5px 12px; }
  .hero-inner { padding-top: 76px; padding-bottom: 28px; }

  .btn { font-size: 0.88rem; padding: 12px 20px; }
  .btn-lg { font-size: 0.92rem; padding: 13px 24px; }

  .stat-number { font-size: 1.6rem; }
  .stats-grid { gap: 10px; }

  .filter-tab { font-size: 0.78rem; padding: 8px 14px; }

  .lang-card { min-height: 150px; }
  .lang-book-thumb { width: 95px; }
  .lang-flag { font-size: 1.8rem; }
  .lang-name { font-size: 0.88rem; }
  .lang-script { font-size: 0.95rem; }

  .section-header h2 { font-size: 1.45rem; }
  .section-tag { font-size: 0.7rem; letter-spacing: 0.1em; }

  .faq-question { font-size: 0.85rem; }

  .testimonial-text { font-size: 0.88rem; }
  .testimonial-quote { font-size: 1.6rem; }

  .footer-bottom p,
  .footer-bottom-links a { font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════════════════════════
   BOOKS CATALOG — STYLE SYSTEM (Phase 5)
   ═══════════════════════════════════════════════════════════════ */

/* Style legend */
.style-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  align-items: center;
}
.style-legend strong {
  font-size: 0.85rem;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.style-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 600;
}
.style-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.style-dot-digital { background: #3B82F6; }
.style-dot-fantasy  { background: #8B5CF6; }
.style-dot-pencil   { background: #10B981; }

/* Section subtitle */
.books-section-sub {
  color: var(--mid-gray);
  margin: -8px 0 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Full-bleed image book cover */
.book-cover-photo {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.book-cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.book-card:hover .book-cover-photo img {
  transform: scale(1.04);
}

/* Style badge overlaid on cover */
.style-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  z-index: 2;
  letter-spacing: 0.03em;
}
.style-digital { background: rgba(59, 130, 246, 0.85); color: #fff; }
.style-fantasy  { background: rgba(139, 92, 246, 0.85); color: #fff; }
.style-pencil   { background: rgba(16, 185, 129, 0.85); color: #fff; }

/* Coming Soon badge variant */
.book-badge.soon {
  background: rgba(0, 0, 0, 0.55);
  color: var(--yellow);
}

/* Personalise & Order button — full width, centered */
.book-personalise-btn--full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   BOOK DETAIL PAGE
═══════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.book-detail-breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: .6rem 0;
  font-size: .85rem;
}
.breadcrumb-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 .4rem; color: var(--muted); }
.breadcrumb-current { color: var(--muted); }

/* Hero */
.book-detail-hero {
  padding: 2rem 0 2rem;
}
.book-detail-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.book-detail-cover-wrap,
.book-detail-info {
  min-width: 0;
}
.book-detail-cover-wrap {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}
.book-detail-info {
  min-width: 0;
}
@media (max-width: 768px) {
  .book-detail-hero-inner {
    grid-template-columns: 1fr;
  }
  .book-detail-cover-wrap {
    position: static;
  }
  .book-detail-title-row {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
}

.book-detail-cover {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  display: block;
}
.book-detail-cover-placeholder {
  background: linear-gradient(135deg,#667eea,#764ba2);
  aspect-ratio: 3/4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

.book-detail-lang-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .25rem .75rem;
  margin-top: 0;
  margin-bottom: 0;
  white-space: nowrap;
}
.book-detail-age-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .25rem .75rem;
  white-space: nowrap;
  background: #FEF3C7;
  color: #92400E;
}
.book-detail-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: var(--dark);
}
.book-detail-title-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: baseline;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.book-detail-title-row .book-detail-desc {
  margin: 0;
}
.book-detail-header {
  margin-bottom: 1.25rem;
}
.book-detail-desc-row {
  margin-bottom: .5rem;
}
.book-detail-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.book-detail-desc {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Style switcher */
.book-detail-style-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.style-switcher-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0;
  white-space: nowrap;
}
.style-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
@media (max-width: 480px) {
  .style-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
  }
  .style-tab { flex-shrink: 0; }
}
.style-tab {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 8px;
  padding: .45rem .9rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.style-tab:hover {
  background: rgba(99,102,241,.08);
}
.style-tab.active {
  background: var(--primary);
  color: #fff;
}

/* CTAs */
.book-detail-ctas {
  margin-bottom: 1rem;
  text-align: center;
}
.book-detail-ctas .btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: .45rem .9rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  display: inline-block;
}
.book-detail-ctas .btn-primary:hover { opacity: .88; }
.btn-order {
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  padding: .65rem 1.4rem;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(255,209,102,.4);
  transition: opacity .15s;
}
.btn-order:hover { opacity: .88; }
.btn-full { width: 100%; text-align: center; }

/* Gallery */
.book-detail-gallery-section {
  padding: 2rem 0 3rem;
  background: var(--surface);
}
.gallery-heading {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.gallery-panel { display: none; }
.gallery-panel.active {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: .75rem;
  padding-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.15) transparent;
}
.gallery-panel.active::-webkit-scrollbar { height: 5px; }
.gallery-panel.active::-webkit-scrollbar-track { background: transparent; }
.gallery-panel.active::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 99px; }
.page-gallery {
  display: block;
  width: 100%;
  overflow: hidden;
}
.page-thumb-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 150px;
}
.page-thumb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.page-thumb {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
@media (max-width: 480px) {
  .page-thumb-btn { width: 150px; }
  .page-thumb { width: 150px; height: 150px; }
}
.gallery-empty {
  color: var(--muted);
  font-size: .9rem;
}

/* Gallery scroll arrows — overlay on hover */
.gallery-scroller-wrap {
  position: relative;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  padding: 0;
  opacity: 0;
  transition: opacity .2s, background .15s, box-shadow .15s;
  pointer-events: none;
}
.gallery-arrow-left  { left: .5rem; }
.gallery-arrow-right { right: .5rem; }
.gallery-scroller-wrap:hover .gallery-arrow {
  opacity: 1;
  pointer-events: auto;
}
.gallery-arrow:hover {
  background: var(--primary, #f97316);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.gallery-arrow:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

/* Preview form */
.preview-form-section {
  padding: 3rem 0;
}
.preview-form-section.hidden { display: none; }
.preview-form-inline {
  margin-top: 1.5rem;
  border-top: 1.5px solid var(--light-gray);
  padding-top: 0;
}
.preview-form-inline.hidden { display: none; }
.preview-form-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.preview-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: var(--dark);
}
.preview-form-sub {
  color: var(--muted);
  font-size: .95rem;
}
.preview-form .form-group {
  margin-bottom: 1.25rem;
}
.preview-form label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .375rem;
}
.preview-form input[type="text"],
.preview-form select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.preview-form input[type="text"]:focus,
.preview-form select:focus {
  border-color: var(--primary);
}
.preview-form input[type="range"] {
  width: 100%;
}
.gender-toggle {
  display: flex;
  gap: .5rem;
}
.gender-btn {
  flex: 1;
  padding: .5rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.gender-btn.active {
  border-color: var(--primary);
  background: rgba(99,102,241,.08);
  color: var(--primary);
}

/* Photo upload widget */
.photo-upload-group { margin-bottom: 1rem; }
.photo-upload-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.photo-upload-icon { font-size: 1.25rem; color: #f97316; }
.photo-upload-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; }
.photo-tips {
  background: #f8f8f8;
  border-radius: 12px;
  padding: .875rem 1rem;
  margin-bottom: .875rem;
}
.photo-tips-heading {
  font-size: .85rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: .5rem;
}
.photo-tips-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}
.photo-tips-list li {
  font-size: .85rem;
  color: #555;
  margin-bottom: .2rem;
}
.photo-drop-zone {
  display: block;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fff;
}
.photo-drop-zone:hover,
.photo-drop-zone.drag-over {
  border-color: #f97316;
  background: #fff8f3;
}
.photo-drop-inner { pointer-events: none; }
.photo-drop-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: #f59e0b;
  border-radius: 18px;
  margin-bottom: .875rem;
}
.photo-drop-btn-icon svg { stroke: white; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.photo-drop-main { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin: 0 0 .25rem; }
.photo-drop-sub { font-size: .875rem; color: #666; margin: 0 0 .35rem; }
.photo-drop-hint { font-size: .8rem; color: #888; margin: 0; }
.photo-drop-selected { font-size: .85rem; color: #f97316; font-weight: 600; margin: .5rem 0 0; }
.photo-input-hidden { display: none; }

/* Photo preview panel (shown after upload) */
.photo-preview-section { margin-top: .5rem; text-align: center; }
.photo-preview-frame {
  position: relative;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  display: inline-block;
  max-width: 100%;
}
.photo-remove-btn {
  position: absolute;
  top: .6rem;
  left: .6rem;
  width: 32px;
  height: 32px;
  background: #ef4444;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
  transition: background .15s, opacity .15s;
  opacity: 0;
}
.photo-preview-frame:hover .photo-remove-btn { opacity: 1; }
.photo-remove-btn:hover { background: #dc2626; }
.photo-preview-img {
  display: block;
  object-fit: fill;
  border-radius: 11px;
  max-width: 100%;
}

/* Lightbox */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox::backdrop {
  background: rgba(0,0,0,.8);
}
.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 8px;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Field errors & age label */
.field-error {
  display: block;
  font-size: .8rem;
  color: #dc2626;
  margin-top: .25rem;
}
.age-label {
  font-weight: 600;
  color: var(--primary);
}
#btn-continue-preview {
  margin-top: .5rem;
}

/* ── Login Modal ──────────────────────────────────────────────────────────── */
#login-modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  width: min(480px, 90vw);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  background: #fff;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
#login-modal::backdrop {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.login-modal-inner {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
}
.login-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.login-modal-close:hover {
  background: rgba(0,0,0,0.06);
  color: #333;
}
.login-modal-icon svg {
  width: 56px;
  height: 56px;
}
.login-modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.login-modal-body {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}
.login-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}
.login-modal-cancel {
  background: none;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.login-modal-cancel:hover {
  border-color: #bbb;
  color: #333;
}
.login-google-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255,107,53,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.login-google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.5);
}

/* ── Preview generating spinner ───────────────────────────────── */
.preview-generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  border: 2px dashed #d0cfc8;
  border-radius: 1rem;
  background: #fafaf8;
  text-align: center;
}

.preview-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #ece9e0;
  border-top-color: #e07b39;
  border-radius: 50%;
  animation: preview-spin 0.9s linear infinite;
}

@keyframes preview-spin {
  to { transform: rotate(360deg); }
}

.preview-generating-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2d2d2d;
  margin: 0;
}

.preview-generating-body {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  max-width: 380px;
}

.preview-done-icon {
  font-size: 2rem;
  line-height: 1;
}

/* ── Alphabet tap game ────────────────────────────────────────── */
.alphabet-game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.alphabet-game-header {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  border-radius: 2rem;
  padding: 0.45rem 1.4rem;
  letter-spacing: 0.01em;
}

#alphabet-canvas {
  border-radius: 0.875rem;
  cursor: pointer;
  touch-action: none;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.alphabet-game-hud {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff8f2 0%, #f3f0ff 100%);
  border: 2px solid #ede9fe;
  border-radius: 1rem;
  padding: 0.6rem 1.5rem;
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  justify-content: space-between;
}

.game-target {
  color: #f97316;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.game-target-letter {
  display: inline-block;
  background: #f97316;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0 0.45rem;
  margin-left: 0.2rem;
  font-size: 1.6rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(249,115,22,0.35);
}

.game-score  { color: #8b5cf6; font-size: 1.35rem; }

.alphabet-game-instructions {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
  max-width: 460px;
  line-height: 1.5;
  margin: 0;
}

.alphabet-game-lang-picker {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

.lang-chip {
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 0.28rem 1rem;
  border-radius: 2rem;
  border: 2px solid;
  cursor: pointer;
  letter-spacing: 0.02em;
  line-height: 1.4;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.lang-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.lang-chip[data-lang="en"]         { border-color: #06b6d4; color: #06b6d4; }
.lang-chip[data-lang="en"].active  { background: #06b6d4;   color: #fff; box-shadow: 0 2px 10px rgba(6,182,212,0.4); }
.lang-chip[data-lang="hi"]         { border-color: #f97316; color: #f97316; }
.lang-chip[data-lang="hi"].active  { background: #f97316;   color: #fff; box-shadow: 0 2px 10px rgba(249,115,22,0.4); }
.lang-chip[data-lang="mr"]         { border-color: #ec4899; color: #ec4899; }
.lang-chip[data-lang="mr"].active  { background: #ec4899;   color: #fff; box-shadow: 0 2px 10px rgba(236,72,153,0.4); }
.lang-chip[data-lang="pa"]         { border-color: #8b5cf6; color: #8b5cf6; }
.lang-chip[data-lang="pa"].active  { background: #8b5cf6;   color: #fff; box-shadow: 0 2px 10px rgba(139,92,246,0.4); }
.lang-chip[data-lang="ml"]         { border-color: #10b981; color: #10b981; }
.lang-chip[data-lang="ml"].active  { background: #10b981;   color: #fff; box-shadow: 0 2px 10px rgba(16,185,129,0.4); }
.lang-chip[data-lang="te"]         { border-color: #3b82f6; color: #3b82f6; }
.lang-chip[data-lang="te"].active  { background: #3b82f6;   color: #fff; box-shadow: 0 2px 10px rgba(59,130,246,0.4); }
.lang-chip[data-lang="ta"]         { border-color: #ef4444; color: #ef4444; }
.lang-chip[data-lang="ta"].active  { background: #ef4444;   color: #fff; box-shadow: 0 2px 10px rgba(239,68,68,0.4); }
.lang-chip[data-lang="or"]         { border-color: #f59e0b; color: #f59e0b; }
.lang-chip[data-lang="or"].active  { background: #f59e0b;   color: #fff; box-shadow: 0 2px 10px rgba(245,158,11,0.4); }
.lang-chip[data-lang="bn"]         { border-color: #6366f1; color: #6366f1; }
.lang-chip[data-lang="bn"].active  { background: #6366f1;   color: #fff; box-shadow: 0 2px 10px rgba(99,102,241,0.4); }
.lang-chip[data-lang="kn"]         { border-color: #d97706; color: #d97706; }
.lang-chip[data-lang="kn"].active  { background: #d97706;   color: #fff; box-shadow: 0 2px 10px rgba(217,119,6,0.4); }
.lang-chip[data-lang="gu"]         { border-color: #14b8a6; color: #14b8a6; }
.lang-chip[data-lang="gu"].active  { background: #14b8a6;   color: #fff; box-shadow: 0 2px 10px rgba(20,184,166,0.4); }

/* ═══════════════════════════════════════════════════════════════
   PREVIEW PAGE  (/preview/<id>)
═══════════════════════════════════════════════════════════════ */

/* Dark navbar variant (used on preview page) */
.navbar--dark,
.navbar--dark.scrolled {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D6B 60%, #0F3460 100%) !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25) !important;
}
.navbar--dark .logo-brand { color: #fff !important; }
.navbar--dark .logo-tagline { color: rgba(255,255,255,0.75) !important; }
.navbar--dark .nav-logo { color: #fff !important; }
.navbar--dark .nav-links a:not(.cta-btn):not(.nav-dropdown-item) { color: rgba(255,255,255,0.85) !important; }
.navbar--dark .nav-links a:not(.cta-btn):not(.nav-dropdown-item):hover { color: #fff !important; }

.pv-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
}

.pv-back-row { margin-bottom: 1rem; }
.pv-back-link { font-size: 0.9rem; color: #555; text-decoration: none; font-weight: 500; }
.pv-back-link:hover { color: #e07b39; }

.pv-header { text-align: center; margin-bottom: 2.5rem; }
.pv-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.35rem;
}
.pv-subtitle { font-size: 0.95rem; color: #666; margin: 0; }

/* Two-column layout */
.pv-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Left: pages */
.pv-pages { display: flex; flex-direction: column; gap: 3rem; }

.pv-page-item {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.pv-page-chip {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e0ddd5;
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1;
}

.pv-page-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.15);
  display: block;
}

/* Locked chip variant */
.pv-page-chip--locked {
  background: #f1f0ec;
  color: #888;
  border-color: #dddbd3;
}

/* Locked page placeholder body */
.pv-locked-body {
  aspect-ratio: 1 / 1;
  max-width: 680px;
  width: 100%;
  background: #f5f4f0;
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.pv-locked-icon {
  width: 52px;
  height: 52px;
  color: #b0aea6;
  margin-bottom: 0.25rem;
}

.pv-locked-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #666;
  margin: 0;
}

.pv-locked-sub {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}

/* Right: sticky sidebar */
.pv-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  /* hide scrollbar visually but keep it functional */
  scrollbar-width: none;
}
.pv-sidebar::-webkit-scrollbar { display: none; }

/* Accordion toggle button */
.pv-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
}
.pv-accordion-btn .pv-accordion-chevron {
  transition: transform 0.25s;
}
.pv-accordion-btn[aria-expanded="false"] .pv-accordion-chevron {
  transform: rotate(-90deg);
}
.pv-accordion-body {
  transition: max-height 0.3s ease, opacity 0.25s;
}
.pv-accordion-body.collapsed {
  max-height: 0 !important;
  opacity: 0;
}

@media (max-width: 820px) {
  .pv-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* CTA card */
.pv-cta-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  text-align: center;
}
.pv-cta-eyebrow { font-size: 0.85rem; color: #555; margin: 0 0 0.9rem; }
.pv-pay-btn {
  display: block;
  width: 100%;
  background: #F59E0B;
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}
.pv-pay-btn:hover { background: #D97706; transform: translateY(-1px); }
.pv-cta-note { font-size: 0.79rem; color: #888; margin: 0; line-height: 1.5; }

/* Delivery card */
.pv-delivery-card {
  background: #fffdf7;
  border: 1px solid #f0ead8;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.pv-delivery-title { font-weight: 700; font-size: 0.95rem; color: #2d2d2d; margin: 0 0 0.15rem; }
.pv-delivery-sub { font-size: 0.8rem; color: #999; margin: 0 0 1.25rem; }

/* Steps */
.pv-steps { display: flex; flex-direction: column; }

.pv-step { display: flex; align-items: center; gap: 0.8rem; }

.pv-step-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-step-icon svg { width: 20px; height: 20px; }

.pv-step--done .pv-step-icon   { background: #e07b39; color: #fff; }
.pv-step--active .pv-step-icon { background: transparent; border: 2px solid #e07b39; color: #e07b39; }
.pv-step--pending .pv-step-icon{ background: transparent; border: 2px solid #d0d0d0; color: #bbb; }
.pv-step--green .pv-step-icon  { background: #16a34a; color: #fff; }

.pv-step-info { display: flex; flex-direction: column; }
.pv-step-label { font-size: 0.85rem; font-weight: 700; color: #2d2d2d; }
.pv-step--pending .pv-step-label { color: #aaa; }
.pv-step-date { font-size: 0.78rem; color: #999; }

.pv-connector {
  width: 2px;
  height: 18px;
  background: #e07b39;
  margin-left: 19px;
}
.pv-connector--grey  { background: #ddd; }
.pv-connector--green { background: #16a34a; }

/* accordion: static headers replaced by accordion button on all screens */
.pv-accordion-static-header { display: none; }
