:root {
  --primary-color: #0b1d2e;

  /* Semi-transparent section backgrounds to allow body gradient to show */
  --section-a-bg: rgba(32, 33, 35, 0.3);
  --section-b-bg: rgba(55, 21, 30, 0.3);

  --gold: #d4af37;
  --accent-color: var(--gold);
  --text-color: #e9eef5;
  --white: #ffffff;
  --overlay-bg: rgba(0, 0, 0, 0.85);

  --font-main: 'Rubik', sans-serif;
  --spacing-base: 20px;

  /* Glassmorphism Tokens */
  --bg0: #0b1d2e;
  --bg1: #0f253a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --glow: rgba(212, 175, 55, 0.4);
  /* Updated glow to match new gold */
  --blur: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg0);

  /* Rich Layered Gradients + Noise simulation using repetition */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(20, 50, 80, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(80, 30, 50, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #0b1d2e 0%, #081624 100%);

  background-attachment: fixed;
  color: var(--text-color);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;

  /* 1) Page Background: Layered Aurora Gradients */
  background-image:
    radial-gradient(circle at 15% 25%, var(--bg1) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(60, 30, 40, 0.2) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg0) 0%, #020b12 100%);
  background-attachment: fixed;
}

/* Noise Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Liquid Light Blob (Floating) */
body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(202, 162, 74, 0.03) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: blobFloat 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  margin-top: 0;
  color: var(--white);
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}


/* --- LIQUID GLASS UTILS (Shared) --- */
/* Used for .gold-frame-card, .why-list li, .quote-card, .preview-card, .preview-placeholder */
.gold-frame-card,
.why-list li,
.quote-card,
.preview-card,
.preview-placeholder,
.mobile-menu {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  /* To contain liquid pseudo-elems */
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.4s;
}

/* Liquid Caustic Layer (::before) */
.gold-frame-card::before,
.why-list li::before,
.quote-card::before,
.preview-card::before,
.preview-placeholder::before,
.mobile-menu::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 60%);
  opacity: 0.15;
  mix-blend-mode: overlay;
  transform: rotate(30deg);
  animation: liquidShift 12s linear infinite;
  pointer-events: none;
}

/* Refraction/Thickness Rim (::after) */
.gold-frame-card::after,
.why-list li::after,
.quote-card::after,
.preview-card::after,
.preview-placeholder::after,
.mobile-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  /* border thickness simulation */
  background: linear-gradient(135deg, var(--rim-light) 0%, transparent 40%, transparent 60%, var(--rim-dark) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Hover States for Glass Panels */
.gold-frame-card:hover,
.why-list li:hover,
.quote-card:hover,
.preview-card:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.4);
}


/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Primary: Gold Gradient + Fluid Highlight */
.btn-primary {
  background: linear-gradient(135deg, #c5a028 0%, #e5c558 50%, #c5a028 100%);
  color: #051626;
  box-shadow: 0 4px 20px var(--glow);
}

.btn-primary::before {
  /* Liquid Sweep */
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  /* Smaller width for sharper shine */
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
  /* Slanted creative look */
  animation: btnShimmer 2s infinite cubic-bezier(0.19, 1, 0.22, 1);
  /* Creative easing with pause */
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(202, 162, 74, 0.6);
  background: linear-gradient(135deg, #d4af37 0%, #f3d576 50%, #d4af37 100%);
}

/* Remove hover dependency for the shine since it's now automatic */
.btn-primary:hover::before {
  /* No change needed on hover, animation runs continuously */
  display: block;
  /* Dummy rule to avoid empty ruleset lint */
}

@keyframes btnShimmer {
  0% {
    left: -100%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  50% {
    left: 200%;
    opacity: 0;
  }

  /* Fast sweep ending at 50% */
  100% {
    left: 200%;
    opacity: 0;
  }

  /* Pause for the rest */
}

/* 3D Book Effect */
.book-3d-container {
  width: 280px;
  height: 420px;
  position: relative;
  transform-style: preserve-3d;
  /* transform: perspective(2000px) rotateY(-25deg);  Overridden by animation */
  animation: bookFloat 6s ease-in-out infinite;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  margin: 0 auto;
}

@keyframes bookFloat {

  0%,
  100% {
    transform: perspective(2000px) rotateY(-25deg) rotateX(0deg) translateY(0);
  }

  50% {
    transform: perspective(2000px) rotateY(-15deg) rotateX(5deg) translateY(-10px);
  }
}

.book-3d-container:hover {
  transform: perspective(2000px) rotateY(-5deg) translateY(-10px);
}

.book-front {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translateZ(20px);
  z-index: 2;
  background: #0b1d2e;
}

.book-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  /* Slight radius */
  /* High Quality Rendering */
  image-rendering: auto;
  /* Let browser choose best interpolation */
  backface-visibility: hidden;
  /* Fix mobile flickering */
  transform: translateZ(1px);
  /* Avoid flickering */
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.5);
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.6) 20%, #000 100%);
  transform-origin: left;
  transform: rotateY(-90deg);
}

/* Shimmer Adjustment */
.book-shimmer-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  border-radius: 0 4px 4px 0;
}

.book-shimmer-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: bookShimmer 2.5s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes bookShimmer {
  0% {
    left: -100%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  75% {
    left: 200%;
    opacity: 0;
  }

  100% {
    left: 200%;
    opacity: 0;
  }
}

/* Secondary: Outline + Liquid Hover */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-secondary:hover {
  background: rgba(202, 162, 74, 0.08);
  /* faint gold tint */
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 15px var(--glow);
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: underline;
  font-family: var(--font-main);
  display: none;
}


/* --- HEADER --- */
.main-header {
  position: sticky;
  top: 0;
  background: rgba(5, 22, 38, 0.7);
  /* Slightly darker glass */
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(202, 162, 74, 0.4);
}

.desktop-nav {
  display: flex;
  gap: 30px;
}

.desktop-nav a {
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.desktop-nav a:hover {
  color: var(--gold);
  opacity: 1;
  text-shadow: 0 0 10px var(--glow);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--gold);
  transition: 0.3s;
}

/* Mobile Menu uses shared glass styles above */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px;
  border-top: 1px solid var(--stroke);
  margin-top: 1px;
}

.mobile-menu a {
  padding: 15px 0;
  border-bottom: 1px solid var(--stroke);
}


/* --- HERO --- */
.hero-section {
  padding: 80px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  /* Gradient Text */
  background: linear-gradient(135deg, #fff 30%, #ccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 15px rgba(255, 255, 255, 0.15));
}

.hero-desc {
  font-size: 1.1rem;
  color: #cedce8;
  margin-bottom: 30px;
  max-width: 90%;
}

.hero-ctas {
  display: flex;
  gap: 20px;
}

/* Book Visual (Glassy) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-placeholder-3d {
  width: 280px;
  height: 400px;
  position: relative;
  perspective: 1000px;
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Internal "Content" of book cover */
.book-cover-placeholder::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid var(--gold);
  opacity: 0.5;
}

.book-spine {
  position: absolute;
  top: 0;
  right: -12px;
  width: 14px;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  transform: skewY(4deg);
  transform-origin: left;
}


/* --- SECTIONS --- */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--gold);
  display: block;
  /* changed from inline-block to block for centering */
  text-align: center;
}

.section-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
  opacity: 0.9;
  text-align: justify;
}

.section-dark-a {
  padding: 80px 0;
}

.section-dark-b {
  padding: 80px 0;
}

.gold-frame-card {
  padding: 40px;
}

/* Note: Corner pseudo-elements from previous design are replaced by Liquid Glass Border (::after) */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 20px 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 10px var(--glow);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
}

.accent-list li {
  margin-bottom: 10px;
  padding-right: 20px;
  position: relative;
}

.accent-list li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  line-height: 1rem;
}

.author-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
}

.author-name {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.gold-bullets li {
  margin-bottom: 12px;
  padding-right: 25px;
  position: relative;
  border-right: 2px solid var(--gold);
  padding-left: 10px;
  background: linear-gradient(90deg, var(--glow), transparent);
}

.author-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent);
  box-shadow: 0 0 40px var(--glow);
}

/* Why List & Quote Cards use shared Glass Utils */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.why-list li {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.why-list .icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px var(--glow));
}

.why-list p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

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

.quote-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 200px;
  border-right: 3px solid var(--gold);
  /* Preserve accent */
}

.quote-content {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 500;
}

.quote-meta {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: bold;
  text-align: left;
}


/* --- PREVIEW --- */
.section-preview {
  padding: 80px 0;
}

.preview-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.preview-card {
  cursor: pointer;
  width: 240px;
  /* Fixed width for desktop centering */
  max-width: 100%;
}

.preview-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  margin-bottom: 10px;
}

.preview-label {
  display: block;
  text-align: center;
  font-weight: 500;
  opacity: 0.7;
}


/* --- CTA STRIP --- */
.cta-strip {
  background: rgba(32, 33, 35, 0.4);
  backdrop-filter: blur(10px);
  padding: 60px 0;
  border-top: 1px solid var(--stroke);
}

.cta-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 500;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.cta-note {
  font-size: 0.9rem;
  color: #a0aec0;
}


/* --- FOOTER --- */
.main-footer {
  background: rgba(5, 22, 38, 0.9);
  padding: 40px 0 20px;
  border-top: 1px solid var(--stroke);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo {
  font-weight: 900;
  color: var(--gold);
}

.footer-links {
  font-size: 0.9rem;
}

.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px 0;
  opacity: 0.5;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}


/* --- MODALS (Glass) --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.modal {
  /* Use glass utils manually or shared? Shared logic might conflict with modal specifics. Let's explicit */
  background: #0f253a;
  border: 1px solid var(--stroke);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  color: #fff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 10px;
}

.modal h2 {
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #ccc;
}

.input-group {
  margin-bottom: 15px;
  text-align: right;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #ccc;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
}

.input-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.full-width {
  width: 100%;
}

.error-msg {
  color: #fe8c8c;
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}

/* Preview Modal */
.preview-modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 800px;
  height: 80vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn-abs {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.large-preview-placeholder {
  width: 100%;
  height: 100%;
  background: #111;
  position: relative;
  border: 1px solid var(--stroke);
}

.large-preview-placeholder::after {
  content: 'مكان الصورة (فارغ)';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
}

/* --- ANIMATIONS & MOTION --- */
@keyframes liquidShift {
  0% {
    transform: translate(-10%, -10%) rotate(0deg);
  }

  50% {
    transform: translate(5%, 5%) rotate(5deg);
  }

  100% {
    transform: translate(-10%, -10%) rotate(0deg);
  }
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -55%) scale(1.05);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

  .hero-grid,
  .author-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .desktop-nav,
  .mobile-hide {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    font-size: 0.8rem;
    padding: 8px 12px;
    margin-right: auto;
    /* Push to left (next to hamburger in RTL) */
    margin-left: 10px;
    white-space: nowrap;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-section {
    padding: 30px 0;
    /* Reduced from 80px */
  }

  .hero-visual,
  .author-visual {
    order: -1;
    margin-bottom: -15px;
    /* Negative margin to pull text closer */
  }

  .book-3d-container {
    width: 160px;
    /* Mobile Size */
    height: 240px;
  }

  .book-spine {
    width: 20px;
  }

  /* Adjust Z-depth for mobile thickness */
  .book-front {
    transform: translateZ(10px);
  }

  .hero-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  /* Side-by-side pages on mobile as requested */
  .preview-grid {
    display: grid;
    /* Explicitly revert to grid for mobile */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .preview-card {
    width: auto;
    /* Reset width for grid fluid sizing */
  }

  .cta-actions {
    flex-direction: column;
  }

  .mobile-menu.active {
    display: flex;
  }

  .read-more-btn {
    display: block;
  }

  .hero-desc {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
  }

  .hero-desc.expanded {
    max-height: 500px;
  }
}

/* --- READER STYLES (Preserved & Adapted) --- */
.reader-container {
  background: #111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-main);
}

.page-viewer {
  max-width: 100%;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  min-width: 300px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
}

.page-viewer img {
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
}

.controls {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--gold);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.success-msg {
  color: #5cb85c;
  margin-top: 10px;
}

/* --- NEW SECTIONS STYLING --- */

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 500;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Intro Section */
.section-intro {
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(11, 29, 46, 0.8) 0%, rgba(11, 29, 46, 0) 70%);
}

.intro-hook {
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text {
  font-size: 1.2rem;
  color: #a0aec0;
  max-width: 700px;
  margin: 0 auto;
}

/* Contents Grid */
/* --- CONTENTS (Accordion Style) --- */
.contents-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.content-group {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.content-group:hover {
  background: var(--glass-hover);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.content-summary {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.content-summary::-webkit-details-marker {
  display: none;
}

.content-summary .icon {
  font-size: 2rem;
  margin-left: 20px;
}

.content-summary .summary-text h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--white);
}

.content-summary .summary-text small {
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0.8;
  display: block;
  margin-top: 4px;
}

.content-summary .arrow {
  margin-right: auto;
  color: var(--gold);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.content-group[open] .arrow {
  transform: rotate(180deg);
}

.content-group[open] {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}

/* Expansion Animation */
.chapter-list {
  padding: 0 20px 20px 20px;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chapter-list li {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ccc;
  font-size: 1rem;
  transition: color 0.2s, padding-right 0.2s;
}

.chapter-list li:last-child {
  border-bottom: none;
}

.chapter-list li:hover {
  color: var(--gold);
  padding-right: 15px;
  background: rgba(212, 175, 55, 0.05);
}

.chapter-list li.highlight {
  color: var(--gold);
  font-weight: bold;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 4px;
  margin-top: 10px;
  border-bottom: none;
}

/* Inline CTA */
.cta-inline {
  padding: 80px 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.cta-title-small {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--gold);
}

/* Reviews */
.section-reviews {
  padding: 80px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--gold);
  padding: 30px;
  border-radius: 0 12px 12px 0;
  position: relative;
}

.review-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  color: #d1d5db;
}

.review-author {
  display: block;
  font-weight: 700;
  color: var(--gold);
  text-align: left;
}

/* Secondary Promo */
.secondary-promo {
  padding: 60px 0;
}

.promo-card {
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg0) 100%);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
}

.exclusive-badge {
  position: absolute;
  top: 25px;
  right: -50px;
  background: var(--gold);
  color: #000;
  font-weight: 900;
  padding: 5px 60px;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  z-index: 10;
  text-align: center;
}

.promo-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.promo-info {
  padding-right: 0;
  /* Removed padding, will center instead */
  width: 100%;
  text-align: center;
  /* Center everything by default in this container */
}

.promo-info h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: var(--white);
  /* Ensure single line if possible, or wrap nicely */
  line-height: 1.3;
}

.promo-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 25px;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.promo-features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  /* Makes the list distinct block centered */
  text-align: right;
  /* Reset text align for list items */
  max-width: 600px;
}

.promo-features li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #e2e8f0;
  position: relative;
  padding-right: 25px;
  /* Space for the custom bullet */
  line-height: 1.6;
}

/* Elegant Custom Checkmark */
.promo-features li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  /* Align with first line text */
  width: 6px;
  height: 10px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.promo-action {
  flex-shrink: 0;
  margin-top: 20px;
  /* Separator if stacked */
}

/* Responsive Promo */
@media (max-width: 768px) {
  .promo-content-wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center;
    /* Center align items */
    gap: 20px;
  }

  .promo-info {
    padding-right: 0;
  }

  .promo-action {
    width: 100%;
    margin-top: 10px;
  }

  .promo-action button {
    width: 100%;
  }

  .exclusive-badge {
    top: 20px;
    right: -40px;
    font-size: 0.8rem;
    padding: 5px 50px;
  }

  .promo-features {
    text-align: right;
    /* Keep list right-aligned for readability */
    width: 100%;
  }
}

/* FAQ */
.section-faq {
  padding: 80px 0;
}

.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  outline: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  left: 20px;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.08);
}

.faq-item p {
  padding: 0 20px 20px;
  margin: 0;
  color: #cbd5e0;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 10px;
  padding-top: 10px;
}

/* Policies */
.section-policies {
  padding: 40px 0;
  border-top: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
}

.policies-links {
  margin-bottom: 15px;
}

.policies-links a {
  color: #a0aec0;
  font-size: 0.9rem;
}

.policies-links a:hover {
  color: var(--white);
}

.contact-email a {
  color: var(--gold);
  font-weight: bold;
}

/* Footer Nav Updates */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.footer-nav a {
  color: #a0aec0;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--white);
}

.btn-link {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-weight: bold;
  font-family: var(--font-main);
  padding: 0;
  font-size: 1rem;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
  .promo-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }

  .intro-hook {
    font-size: 1.6rem;
  }

  /* Distinct background for Intro tab on mobile */
  .section-intro {
    background-color: rgba(11, 29, 46, 1);
    /* distinct dark bg */
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 60px 20px;
    margin: 20px 0;
  }

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