/* ==========================================================================
   KITAAB.WORLD (کتاب) - STYLESHEET
   Dynamic Theme System: Light & Dark + Glassmorphic Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme Variables
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  /* 🌫️ Canvas & Surfaces (Polarized, anti-glare light base) */
  --bg-canvas: #F3F5F9;          /* Crisp cool mist white */
  --surface-glass: #FFFFFF;      /* Milky frosted plate */
  --surface-glass-rgb: 255, 255, 255;
  
  /* 🔮 Primary & Accents */
  --primary-color: #6366F1;      /* Electric Indigo */
  --primary-hover: #4F46E5;      /* Reactive deep indigo */
  --accent-glow: rgba(99, 102, 241, 0.12); /* Soft violet aura */
  --accent-secondary: #EC4899;   /* Rose highlight */

  /* 🦴 Structural Borders */
  --border-glass: rgba(0, 0, 0, 0.08);   /* Subdued structural edge */
  --border-focus: rgba(99, 102, 241, 0.25); /* Prismatic active boundary line */

  /* ✍️ Typography */
  --heading-color: #0F172A;      /* Midnight slate */
  --text-body: #475569;          /* Lead gray */
  --text-muted: #94A3B8;         /* Ash silver */

  /* Backward compatibility aliases */
  --secondary-color: #ECEFF5;
  --secondary-accent: #E2E8F0;
  --surface-color: var(--surface-glass);
  --border-color: var(--border-glass);

  /* Shadows & Glows */
  --card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  --elevated-shadow: 0 30px 60px -20px rgba(99, 102, 241, 0.16);
  --glass-card-bg: rgba(255, 255, 255, 0.75);
  --glass-card-bg-subtle: rgba(255, 255, 255, 0.5);
  --glass-input-bg: rgba(255, 255, 255, 0.9);
  --mesh-orb-1: rgba(99, 102, 241, 0.18);
  --mesh-orb-2: rgba(236, 72, 153, 0.12);
  --badge-bg: rgba(99, 102, 241, 0.1);
  --badge-text: #4F46E5;
  --gold-star: #F59E0B;
}

[data-theme="dark"],
.dark {
  /* 🌌 Canvas & Surfaces (Deep void) */
  --bg-canvas: #090A0F;          /* Deep Abyssal Ink */
  --surface-glass: #12131C;      /* Translucent dark plate base */
  --surface-glass-rgb: 18, 19, 28;
  
  /* 🔮 Primary & Accents */
  --primary-color: #9D7BFF;      /* Ethereal Nebula Lavender */
  --primary-hover: #B399FF;      /* Shimmering hover bloom */
  --accent-glow: rgba(157, 123, 255, 0.18); /* Ambient aura blur */
  --accent-secondary: #F472B6;   /* Soft ethereal rose */

  /* 🦴 Structural Borders */
  --border-glass: rgba(255, 255, 255, 0.08); /* Weightless edge definition */
  --border-focus: rgba(157, 123, 255, 0.35); /* Magical active focus ring */

  /* ✍️ Typography */
  --heading-color: #E6E9EF;      /* Crisp frosted silver-white */
  --text-body: #A1A7B8;          /* Slate */
  --text-muted: #646A7E;         /* Ghostly gray */

  /* Backward compatibility aliases */
  --secondary-color: #171924;
  --secondary-accent: #1E2030;
  --surface-color: var(--surface-glass);
  --border-color: var(--border-glass);

  /* Shadows & Glows */
  --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --elevated-shadow: 0 30px 60px -15px rgba(157, 123, 255, 0.2);
  --glass-card-bg: rgba(18, 19, 28, 0.72);
  --glass-card-bg-subtle: rgba(23, 25, 36, 0.55);
  --glass-input-bg: rgba(18, 19, 28, 0.85);
  --mesh-orb-1: rgba(157, 123, 255, 0.16);
  --mesh-orb-2: rgba(99, 102, 241, 0.14);
  --badge-bg: rgba(157, 123, 255, 0.15);
  --badge-text: #C4B5FD;
  --gold-star: #FBBF24;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* Arabic / Urdu brand font */
.urdu-font {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif;
}

/* --------------------------------------------------------------------------
   Atmospheric Ambient Background
   -------------------------------------------------------------------------- */
.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.8;
  transition: transform 0.8s ease;
  will-change: transform;
}

.orb-primary {
  width: 550px;
  height: 550px;
  top: -150px;
  left: 20%;
  background: var(--mesh-orb-1);
  animation: orbFloat1 22s ease-in-out infinite alternate;
}

.orb-secondary {
  width: 480px;
  height: 480px;
  top: 40%;
  right: -100px;
  background: var(--mesh-orb-2);
  animation: orbFloat2 26s ease-in-out infinite alternate;
}

.orb-accent {
  width: 420px;
  height: 420px;
  bottom: 5%;
  left: -80px;
  background: var(--mesh-orb-1);
  animation: orbFloat3 18s ease-in-out infinite alternate;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-glass) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
  100% { transform: translate(-40px, 40px) scale(0.95); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.2); }
  100% { transform: translate(50px, 50px) scale(0.9); }
}

@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, -80px) scale(1.1); }
}

/* --------------------------------------------------------------------------
   Layout Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

main {
  padding-top: 5rem;
}


.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--glass-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

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

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

.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
  transition: transform 0.3s ease;
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.08) rotate(-2deg);
}

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

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-glass);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--surface-color);
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  transform: rotate(15deg) scale(1.05);
  box-shadow: 0 0 16px var(--accent-glow);
}

.theme-icon-light,
.theme-icon-dark {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: var(--glass-card-bg);
  border: 1px solid var(--border-focus);
  box-shadow: 0 4px 20px var(--accent-glow);
  margin-bottom: 1.75rem;
  animation: fadeInDown 0.8s ease;
}

.pill-glow-spark {
  color: var(--primary-color);
  font-size: 0.95rem;
}

.pill-text {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--heading-color);
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--heading-color);
  max-width: 900px;
  margin: 0 auto 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-body);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.65;
}

/* Launch Note & Countdown */
.launch-badge-bar {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.launch-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  padding: 0.6rem 0.5rem;
  background: var(--glass-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.countdown-block:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.countdown-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.countdown-unit {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.countdown-separator {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: -0.6rem;
}

/* Email Signup Form */
.signup-box {
  max-width: 540px;
  margin: 0 auto;
}

.signup-form {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.4rem 0.35rem 1.25rem;
  background: var(--glass-input-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.signup-form:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--border-focus), var(--card-shadow);
}

.signup-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--heading-color);
  font-family: inherit;
  padding: 0.5rem 0;
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.65rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #FFFFFF;
  border: none;
  outline: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow), 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.btn-primary:active {
  transform: translateY(0);
}

.form-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.785rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   Founding Member Perk Ribbon
   -------------------------------------------------------------------------- */
.perk-section {
  padding: 1.5rem 0 3.5rem;
}

.perk-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--glass-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.perk-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.perk-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  animation: shimmerPass 6s infinite;
  pointer-events: none;
}

@keyframes shimmerPass {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

.perk-info-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.perk-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}

.perk-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.2rem;
}

.perk-desc {
  font-size: 0.85rem;
  color: var(--text-body);
}

.perk-progress-wrap {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.perk-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--heading-color);
}

.perk-track {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: var(--border-glass);
  overflow: hidden;
  position: relative;
}

.perk-fill {
  height: 100%;
  width: 76.8%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-secondary) 100%);
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--primary-color);
}

/* --------------------------------------------------------------------------
   Mock App Preview (Interactive 3D Stage)
   -------------------------------------------------------------------------- */
.preview-section {
  padding: 3rem 0 5rem;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* 3D Stage Perspective */
.stage-perspective {
  perspective: 1200px;
  max-width: 1060px;
  margin: 0 auto;
}

.app-mockup-frame {
  background: var(--glass-card-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  box-shadow: var(--elevated-shadow);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.mockup-header {
  padding: 1.1rem 1.75rem;
  background: var(--glass-card-bg-subtle);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 0.45rem;
}

.w-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.w-red { background: #FF5F56; }
.w-yellow { background: #FFBD2E; }
.w-green { background: #27C93F; }

.mockup-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-canvas);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
}

.mock-tab-btn {
  background: transparent;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mock-tab-btn.active {
  background: var(--surface-color);
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.live-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--border-glass);
}

/* Mockup Content Grid */
.mockup-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.25rem;
  align-items: start;
}

/* Book Cover Card Showcase */
.mock-book-card {
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.mock-book-card:hover {
  transform: translateY(-4px);
}

.cover-wrapper {
  width: 180px;
  height: 270px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.cover-wrapper:hover .cover-img {
  transform: scale(1.05);
}

.book-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.15rem;
}

.book-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.genre-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.rating-stars-row {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--gold-star);
  font-size: 0.9rem;
}

.rating-stars-row span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-left: 0.35rem;
}

/* Mockup Interactive Modules */
.mockup-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Floating Review Card */
.mock-review-card {
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: border-color 0.25s ease;
}

.mock-review-card:hover {
  border-color: var(--primary-color);
}

.review-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #FFFFFF;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.verified-check {
  color: #10B981;
  font-size: 0.8rem;
}

.reviewer-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-pill-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.review-quote {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-color);
}

.review-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 0.85rem;
}

.helpful-btn {
  background: var(--bg-canvas);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--heading-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.helpful-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.03);
}

.spoiler-toggle-btn {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.spoiler-toggle-btn:hover {
  color: var(--heading-color);
}

/* Secondary Mock Widgets (Streaks + Shelf) */
.mock-widgets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.widget-box {
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.widget-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.streak-number-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.streak-big-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1;
}

.streak-sub {
  font-size: 0.8rem;
  color: var(--text-body);
}

.days-row {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.day-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-canvas);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.day-bubble.active {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Shelf tracker widget */
.shelf-status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.shelf-count {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading-color);
}

.shelf-target {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.shelf-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 9999px;
  background: var(--border-glass);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.shelf-progress-fill {
  height: 100%;
  width: 72%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #10B981 0%, var(--primary-color) 100%);
}

.shelf-quote-mini {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Feature Teasers (Bento Grid)
   -------------------------------------------------------------------------- */
.features-section {
  padding: 4rem 0 6rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.bento-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: var(--elevated-shadow);
}

.bento-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--badge-bg);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px var(--accent-glow);
}

.bento-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.bento-desc {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Interactive Bento micro-modules */
.bento-micro-module {
  background: var(--surface-color);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-top: auto;
}

/* Micro: Tags Cloud */
.genre-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-interactive-pill {
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--bg-canvas);
  color: var(--heading-color);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s ease;
}

.genre-interactive-pill:hover,
.genre-interactive-pill.selected {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* Micro: Reader Follow Row */
.reader-follow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reader-mini-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, var(--primary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.mini-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--heading-color);
}

.mini-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.follow-toggle-btn {
  background: var(--primary-color);
  color: #FFFFFF;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.follow-toggle-btn.following {
  background: var(--bg-canvas);
  color: var(--heading-color);
  border: 1px solid var(--border-glass);
}

/* Micro: Streak & Shelf tab pill */
.shelf-tabs-mini {
  display: flex;
  gap: 0.4rem;
}

.shelf-pill {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0.2rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-canvas);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shelf-pill.active {
  background: var(--primary-color);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Second Signup Band (Bottom CTA)
   -------------------------------------------------------------------------- */
.bottom-signup-section {
  padding: 4rem 0 6rem;
}

.bottom-cta-card {
  background: linear-gradient(135deg, var(--glass-card-bg) 0%, var(--surface-color) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: 36px;
  padding: 4.5rem 2.5rem;
  box-shadow: var(--elevated-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottom-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.cta-arabic-watermark {
  font-family: 'Amiri', serif;
  position: absolute;
  font-size: 14rem;
  color: var(--primary-color);
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.bottom-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.bottom-cta-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2.5rem;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-arabic {
  font-family: 'Amiri', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.footer-brand-details {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--heading-color);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-link-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--glass-card-bg);
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-link-btn:hover {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px var(--accent-glow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-link:hover {
  text-decoration: underline;
}

.back-to-top-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.back-to-top-btn:hover {
  color: var(--heading-color);
}

/* --------------------------------------------------------------------------
   Toast Notification & Confetti Overlay
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  box-shadow: var(--elevated-shadow);
  color: var(--heading-color);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.25rem;
  color: #10B981;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .stage-perspective {
    perspective: none;
  }

  .app-mockup-frame {
    transform: none !important;
  }

  .mockup-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .mock-book-card {
    max-width: 340px;
    width: 100%;
  }

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

  .perk-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .perk-info-wrap {
    flex-direction: column;
    text-align: center;
  }

  .perk-progress-wrap {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Slim & Fixed Mobile Header */
  .navbar {
    padding: 0;
  }

  .navbar .container {
    padding: 0;
    max-width: 100%;
    width: 100%;
  }

  .nav-shell {
    padding: 0.5rem 1rem;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(var(--surface-glass-rgb), 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  .brand-logo-wrap {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-arabic {
    font-size: 1.15rem;
  }

  .brand-sub {
    display: none; /* Hide verbose subtitle to keep navbar slim on 1 line */
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .status-chip {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  main {
    padding-top: 4.25rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.5rem 0 2.5rem;
  }

  .hero-pill-badge {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.12;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 2rem;
  }

  /* Compact Countdown */
  .launch-badge-bar {
    width: 100%;
    margin-bottom: 1.75rem;
  }

  .countdown-grid {
    gap: 0.35rem;
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .countdown-block {
    min-width: 50px;
    flex: 1;
    padding: 0.45rem 0.2rem;
    border-radius: 10px;
  }

  .countdown-number {
    font-size: 1.2rem;
  }

  .countdown-unit {
    font-size: 0.58rem;
  }

  .countdown-separator {
    font-size: 1.1rem;
    margin-top: -0.4rem;
  }

  /* Full-width responsive form */
  .signup-box {
    width: 100%;
  }

  .signup-form {
    flex-direction: column;
    padding: 0.5rem;
    border-radius: 18px;
    gap: 0.5rem;
    width: 100%;
  }

  .signup-input {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .btn-primary {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Mock App Showcase mobile responsiveness */
  .preview-section {
    padding: 2rem 0 3.5rem;
  }

  .app-mockup-frame {
    border-radius: 20px;
  }

  .mockup-header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mockup-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem;
    scrollbar-width: none;
  }

  .mockup-tabs::-webkit-scrollbar {
    display: none;
  }

  .mock-tab-btn {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }

  .mockup-body {
    padding: 1.25rem 0.85rem;
    gap: 1.25rem;
  }

  .cover-wrapper {
    width: 140px;
    height: 210px;
  }

  .mock-review-card {
    padding: 1.1rem;
  }

  .review-quote {
    font-size: 0.85rem;
  }

  .mock-widgets-grid {
    grid-template-columns: 1fr;
  }

  /* Bento cards */
  .features-section {
    padding: 2.5rem 0 4rem;
  }

  .bento-card {
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }

  .bento-title {
    font-size: 1.2rem;
  }

  /* Bottom CTA */
  .bottom-signup-section {
    padding: 2.5rem 0 4rem;
  }

  .bottom-cta-card {
    padding: 3rem 1.25rem;
    border-radius: 24px;
  }

  .bottom-cta-title {
    font-size: 1.85rem;
  }

  .cta-arabic-watermark {
    font-size: 7rem;
  }

  /* Footer */
  .site-footer {
    padding: 3rem 0 2rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

@media (max-width: 440px) {
  .nav-shell {
    padding: 0.5rem 0.75rem;
  }

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

  /* On ultra-compact screens, show just the glowing dot to save space */
  .status-chip .status-text {
    display: none;
  }

  .status-chip {
    padding: 0.4rem;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    justify-content: center;
  }

  .countdown-grid {
    max-width: 290px;
  }

  .countdown-block {
    min-width: 44px;
    padding: 0.35rem 0.15rem;
  }

  .countdown-number {
    font-size: 1.1rem;
  }
}

