/* ==========================================================================
   THE LAST MONEY BOOK YOU'LL EVER NEED - LUXURY PRESENTATION STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES & COLOR PALETTE
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #07090E;
  --bg-card: rgba(15, 22, 35, 0.65);
  --bg-card-hover: rgba(22, 32, 50, 0.85);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --bg-glass-border-hover: rgba(245, 158, 11, 0.35);

  --color-gold: #F59E0B;
  --color-gold-light: #FBBF24;
  --color-gold-dark: #D97706;
  --color-emerald: #10B981;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);
  --color-cyan: #06B6D4;
  --color-purple: #8B5CF6;
  
  --text-main: #F9FAFB;
  --text-body: #E5E7EB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.25);
  --shadow-emerald-glow: 0 0 35px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   TYPOGRAPHY & UTILITIES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

.text-center { text-align: center; }
.margin-top-md { margin-top: 1.5rem; }

.text-gold {
  color: var(--color-gold);
}
.text-emerald {
  color: var(--color-emerald);
}

.gradient-gold-text {
  background: linear-gradient(135deg, #FFF 10%, #F59E0B 60%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   AMBIENT GLOW BACKDROPS
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  top: 40%;
  right: -200px;
}

.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 10%;
  left: 20%;
}

/* --------------------------------------------------------------------------
   GLASSMORPHISM CARD COMPONENT
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--bg-glass-border-hover);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.gold-border-glow {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

/* --------------------------------------------------------------------------
   BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 60%, var(--color-gold-dark) 100%);
  color: #07090E;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #FFE082 0%, var(--color-gold-light) 60%, var(--color-gold) 100%);
}

.btn-glow {
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
  100% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.7); }
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
  color: #FFF;
}

.btn-primary-text {
  font-size: 1.05rem;
}
.btn-subtext {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-emerald);
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-icon {
  color: var(--color-gold);
  font-size: 1.3rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-gold);
}

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

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Hero Stats Bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 2.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.stars {
  color: var(--color-gold);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero CTA Group */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Format Pills Bar */
.format-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.format-pill {
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.format-pill:hover {
  border-color: var(--color-gold);
  background: rgba(245, 158, 11, 0.1);
}

/* --------------------------------------------------------------------------
   3D BOOK COVER & TILT EFFECT
   -------------------------------------------------------------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-3d-wrapper {
  position: relative;
  perspective: 1200px;
  cursor: pointer;
}

.book-3d-card {
  width: 320px;
  height: 480px;
  border-radius: 12px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(8deg);
  transition: transform 0.15s ease-out;
  box-shadow: 
    -20px 20px 40px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(245, 158, 11, 0.2);
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.book-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(255,255,255,0.1));
  transform: rotateY(-90deg) translateZ(7px);
  border-radius: 4px 0 0 4px;
}

/* Floating Elements around Book */
.floating-coin {
  position: absolute;
  width: 90px;
  height: 90px;
  top: -25px;
  right: -25px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  animation: floatAnim 4s ease-in-out infinite alternate;
}

@keyframes floatAnim {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(10deg); }
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(15, 22, 35, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 0.8rem;
  z-index: 5;
}

.badge-avatar {
  font-size: 1.4rem;
}

.badge-author {
  bottom: 20px;
  left: -40px;
}

.badge-tilbury {
  top: 50%;
  right: -50px;
}

.floating-badge strong {
  display: block;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.floating-badge span {
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   FEATURES GRID SECTION
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  position: relative;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-glass-border);
}

.gold-glow { box-shadow: 0 0 20px rgba(245, 158, 11, 0.2); }
.emerald-glow { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); }
.cyan-glow { box-shadow: 0 0 20px rgba(6, 182, 212, 0.2); }
.purple-glow { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   TICKER BANNER
   -------------------------------------------------------------------------- */
.section-ticker {
  background: rgba(245, 158, 11, 0.05);
  border-y: 1px solid rgba(245, 158, 11, 0.15);
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.ticker-wrapper {
  display: flex;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-gold-light);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   INTERACTIVE CHAPTERS EXPLORER
   -------------------------------------------------------------------------- */
.explorer-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-box svg {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-box input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  background: rgba(15, 22, 35, 0.8);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.filter-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--color-gold);
  color: #07090E;
  border-color: var(--color-gold);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Chapters Grid */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.chapter-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chapter-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

.chapter-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chapter-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.chapter-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.chapter-source {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.chapter-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-gold-light);
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   INTERACTIVE QUIZ SECTION
   -------------------------------------------------------------------------- */
.quiz-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
}

.quiz-title {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.quiz-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-opt-btn {
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-opt-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--color-gold);
  transform: translateX(5px);
}

/* Quiz Result Box */
.quiz-result-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: left;
}

.quiz-result-card h4 {
  font-size: 1.4rem;
  color: var(--color-emerald);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   CALCULATOR SECTION
   -------------------------------------------------------------------------- */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.check-list span {
  color: var(--color-emerald);
  font-weight: 900;
}

.calculator-card {
  padding: 2.5rem;
}

.calc-card-title {
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.calc-control {
  margin-bottom: 1.5rem;
}

.calc-control label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.calc-control input[type="range"] {
  width: 100%;
  accent-color: var(--color-gold);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.calc-result-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.calc-result-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.25rem;
}

.calc-result-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.calc-result-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   AUTHOR SPOTLIGHT
   -------------------------------------------------------------------------- */
.author-card {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}

.author-avatar-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--bg-glass-border);
}

.author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-light);
  border: 1px solid var(--bg-glass-border);
}

.author-name {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.author-bio-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-bottom: 1rem;
}

.author-bio-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.author-quote {
  border-left: 3px solid var(--color-gold);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   REVIEWS & TESTIMONIALS
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.review-text {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-author strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--text-main);
}

.review-author span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   PRICING & FINAL CTA
   -------------------------------------------------------------------------- */
.cta-box {
  padding: 4rem 2.5rem;
}

.cta-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card.featured {
  background: rgba(245, 158, 11, 0.06);
  border-color: var(--color-gold);
  transform: scale(1.04);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.2);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-5px);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--bg-glass-border);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-tag.gold {
  background: var(--color-gold);
  color: #07090E;
  border: none;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.pricing-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   FOOTER & STICKY BAR
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--color-gold);
}

/* Sticky Buy Bar */
.sticky-buy-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  z-index: 90;
  background: rgba(15, 22, 35, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.8rem 0;
  transition: bottom var(--transition-normal);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.sticky-buy-bar.visible {
  bottom: 0;
}

.sticky-bar-content {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-thumb {
  width: 38px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
}

.sticky-info {
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
  margin-right: auto;
}

.sticky-info strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-main);
}

.sticky-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   MODAL DIALOG OVERLAY
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  padding: 1.5rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 850px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  background: rgba(15, 22, 35, 0.95);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(245, 158, 11, 0.3);
}

/* Reader Content Styling inside Modal */
.modal-body h2 {
  font-size: 2rem;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.modal-body h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-emerald);
}

.modal-body p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.6rem;
  color: var(--text-body);
}

.modal-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.modal-tab-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.modal-tab-btn.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .hero-stats {
    justify-content: center;
  }

  .hero-cta-group, .format-pills {
    justify-content: center;
  }

  .calculator-grid, .author-card {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

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

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

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
  }

  .book-3d-card {
    width: 250px;
    height: 375px;
  }

  .floating-badge {
    display: none;
  }
}
