/* Import Google Fonts - Professional Book Site Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  /* Layout Variables */
  --header-height: 80px;
  --footer-height: 200px;
  
  /* Royal Navy Blue, Burgundy, Dark Green + Golden Accents Color Scheme */
  --primary-navy: #1a237e;
  --primary-navy-light: #3949ab;
  --primary-navy-dark: #0d1650;
  --primary-burgundy: #8b1538;
  --primary-burgundy-light: #ad1e4a;
  --primary-burgundy-dark: #6b1028;
  --primary-green: #0d4f3c;
  --primary-green-light: #0f6349;
  --primary-green-dark: #0a3d2e;
  --accent-gold: #d4af37;
  --accent-gold-light: #f4d03f;
  --accent-gold-dark: #b8941f;
  --success-green: var(--primary-green);
  --error-red: #ef4444;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-display: 'Playfair Display', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--gray-600);
}

.lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  font-weight: 400;
}

/* Modern Navigation Header */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-normal);
}

.navbar {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy) !important;
  text-decoration: none;
  transition: var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--primary-burgundy) !important;
}

/* Hamburger Menu */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--primary-navy);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Navigation */
.desktop-menu {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-navy);
  background-color: var(--gray-50);
}

.nav-link.active {
  color: var(--primary-navy);
  background-color: rgba(26, 35, 126, 0.1);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
}

.logout-btn {
  color: var(--primary-burgundy) !important;
}

.logout-btn:hover {
  background-color: rgba(139, 21, 56, 0.1) !important;
}

/* Mobile Navigation - Shadcn Style */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--gray-200);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu .nav-links {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  height: calc(100vh - 80px);
  gap: 0.25rem;
  padding: 1.5rem;
  margin-top: 80px;
  overflow-y: auto;
  width: 100%;
  background: var(--white);
}

.mobile-menu .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 0.75rem;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0.125rem;
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid transparent;
}

.mobile-menu .nav-link:hover {
  background: var(--gray-50);
  color: var(--primary-navy);
}

.mobile-menu .nav-link.active {
  background: rgba(26, 35, 126, 0.1);
  color: var(--primary-navy);
  font-weight: 600;
}

.mobile-menu .nav-link.active::after {
  content: unset;
}

.mobile-cta {
  margin-top: 1.5rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border-radius: 0.375rem !important;
  background: var(--primary-navy) !important;
  color: white !important;
  border: 1px solid var(--primary-navy) !important;
}

.mobile-cta:hover {
  background: var(--primary-burgundy) !important;
  border-color: var(--primary-burgundy) !important;
}

.mobile-menu .logout-btn {
  color: var(--primary-burgundy) !important;
  margin-top: 1.5rem !important;
  border-top: 1px solid var(--gray-200) !important;
  padding-top: 1.5rem !important;
  font-weight: 500 !important;
}

.mobile-menu .logout-btn:hover {
  background: rgba(139, 21, 56, 0.1) !important;
  color: var(--primary-burgundy) !important;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  
  .desktop-menu, .footer-section-title {
    display: none;
  }
  
  .mobile-menu {
    display: flex;
  }
}

/* Shadcn-Style Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-navy);
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Primary Button - Brand Colors */
.btn-primary {
  background: var(--primary-navy);
  color: white;
  border: 1px solid var(--primary-navy);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: var(--primary-burgundy);
  border-color: var(--primary-burgundy);
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
  color: white;
}

.btn-primary:active {
  background: #151f6b;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Secondary Button */
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
  padding: 0.5rem 1rem;
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

/* Outline Button */
.btn-outline-primary {
  background: transparent;
  color: var(--primary-navy);
  border: 1px solid var(--primary-navy);
  padding: 0.5rem 1rem;
}

.btn-outline-primary:hover {
  background: var(--primary-navy);
  color: white;
}

/* Success Button */
.btn-success {
  background: linear-gradient(135deg, var(--primary-green), #0a4d3a);
  color: white;
  border: 1px solid var(--primary-green);
  padding: 0.5rem 1rem;
}

.btn-success:hover {
  background: linear-gradient(135deg, #0a4d3a, var(--primary-green));
  box-shadow: 0 4px 12px rgba(13, 79, 60, 0.3);
  transform: translateY(-1px);
  color: white;
}

/* Accent Button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), #b8941f);
  color: var(--primary-navy);
  border: 1px solid var(--accent-gold);
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #b8941f, var(--accent-gold));
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
  color: var(--primary-navy);
}

/* Button Sizes */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section - Clean, Professional */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
  font-weight: 400;
  max-width: 600px;
}

.hero-actions {
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  margin-top: var(--space-2xl);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Book Cards - Clean, Modern Design */
.books-section {
  padding: var(--space-3xl) 0;
  background-color: var(--white);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--gray-600);
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.book-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition-normal);
  height: 100%;
}

.book-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gray-200);
}

.book-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.book-author {
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.book-description {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.book-price {
  margin-bottom: var(--space-lg);
}

.price-current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.price-original {
  font-size: 1.25rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: var(--space-sm);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-lg);
}

.book-page .book-cover {
  transform: none;
  border-width: 0;
  max-width: 100%;
}

.book-page .book-cover-container {
  border-radius: 8px;
}

.bg-grad-1 {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-burgundy) 50%, var(--primary-green) 100%);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--gray-600);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: 600;
}

/* Reviews Section */
.reviews-section {
  padding: var(--space-3xl) 0;
  background-color: var(--gray-50);
}

.review-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  height: 100%;
  transition: var(--transition-normal);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.review-text {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
  line-height: 1.6;
}

.review-author {
  font-weight: 600;
  color: var(--gray-900);
}

.review-role {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  color: white;
}

.cta-title {
  color: white;
  text-align: center;
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
}

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

/* Forms */
.form-control {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-900);
}

.card-body {
  padding: var(--space-lg);
}

/* Footer */
footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-2xl) 0;
}

footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition-fast);
}

footer a:hover {
  color: white;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--space-sm);
}

.col-md-4, .col-md-6, .col-md-8, .col-lg-6, .col-lg-8 {
  padding: 0 var(--space-sm);
}

.col-md-4 { flex: 0 0 33.333333%; }
.col-md-6 { flex: 0 0 50%; }
.col-md-8 { flex: 0 0 66.666667%; }
.col-lg-6 { flex: 0 0 50%; }
.col-lg-8 { flex: 0 0 66.666667%; }

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .col-md-4, .col-md-6, .col-md-8, .col-lg-6, .col-lg-8 {
    flex: 0 0 100%;
  }
  
  .hero-actions {
    text-align: center;
  }
  
  .hero-actions .btn {
    display: block;
    width: 100%;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Modern Footer */
.modern-footer {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 3rem 0 1rem;
  margin-top: auto;
  border-top: 1px solid var(--gray-200);
}

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

.footer-section {
  position: relative;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.footer-toggle {
  display: none;
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  color: var(--gray-700);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
}

.footer-arrow {
  transition: transform 0.3s ease;
  color: var(--accent-gold);
}

.footer-toggle.active .footer-arrow,
.footer-arrow.rotated {
  transform: rotate(180deg);
}

.footer-content-section {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Desktop: Always show footer content */
@media (min-width: 769px) {
  .footer-content-section {
    max-height: none !important;
    opacity: 1 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
}

/* Always visible footer sections (like social links) */
.footer-content-always-visible {
  max-height: none !important;
  opacity: 1 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-navy);
  transform: translateX(4px);
}

.footer-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-navy);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-300);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom-content p {
  margin: 0.25rem 0;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-tagline {
  color: var(--accent-gold);
  font-style: italic;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-section:first-child {
    margin-bottom: 2rem;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: flex;
  }
  
  .footer-toggle {
    border-bottom: 1px solid var(--gray-300);
  }
  
  .footer-content-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
  }
  
  .footer-content-section.active {
    max-height: 300px;
    opacity: 1;
    padding: 1rem 0;
  }
  
  .social-links {
    justify-content: center;
  }

  .footer-content-always-visible {
    margin-top: 1.5rem;
  }
}

/* Pagination Styling */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pagination .page-link:hover {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
  color: var(--primary-navy);
}

.pagination .page-item.active .page-link {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: white;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
  width: auto;
  padding: 0 0.75rem;
}

@media (max-width: 768px) {
  .pagination .page-link {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }
  
  .pagination .page-link[rel="prev"],
  .pagination .page-link[rel="next"] {
    padding: 0 0.5rem;
  }
}

/* Shadcn-Style Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-control {
  display: flex;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background-color: var(--white);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-control:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-control::placeholder {
  color: var(--gray-400);
}

/* Input Variants */
.form-control.error {
  border-color: var(--error-red);
}

.form-control.error:focus {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.success {
  border-color: var(--success-green);
}

.form-control.success:focus {
  border-color: var(--success-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Textarea */
textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* Select */
select.form-control {
  cursor: pointer;
}

/* File Input */
.file-input {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 100%;
}

.file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  color: var(--gray-600);
  transition: var(--transition-fast);
  cursor: pointer;
}

.file-input:hover .file-input-label,
.file-input-label.dragover {
  border-color: var(--primary-navy);
  background: rgba(26, 35, 126, 0.05);
  color: var(--primary-navy);
}

/* Form Validation Messages */
.form-error {
  color: var(--error-red);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.form-success {
  color: var(--success-green);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Modern Checkbox and Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.form-check input[type="radio"] {
  border-radius: 50%;
}

.form-check input[type="checkbox"]:checked {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 25%;
  width: 5px;
  height: 10px;
  border: 2px solid white;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  margin: auto;
}

.form-check input[type="radio"]:checked {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
}

.form-check input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.form-check input:hover {
  border-color: var(--primary-navy);
}

.form-check input:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-check label {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* Modern Profile Page */
.modern-profile-page {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.profile-header-section {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.profile-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-200), var(--shadow-lg);
  position: relative;
}

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

.modern-profile-page .avatar-placeholder {
  width: 100%;
  height: 100%;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: var(--primary-navy);
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.avatar-edit-btn:hover {
  background: var(--primary-burgundy);
  transform: scale(1.1);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.profile-display-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  font-family: var(--font-display);
}

.name-edit-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition-fast);
}

.name-edit-btn:hover {
  background: var(--gray-50);
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

.profile-email {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.profile-member-since {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition-normal);
}

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

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
}

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

.view-all-link {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.view-all-link:hover {
  color: var(--primary-burgundy);
}

.recent-books {
  display: grid;
  gap: 1.5rem;
}

.recent-books .book-cover {
  width: 90px;
  height: 120px;
  border-radius: 4px;
  box-shadow: unset;
}

.book-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.book-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.book-cover {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

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

.book-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.book-info {
  flex: 1;
  min-width: 0;
}

.book-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.book-info p {
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.purchase-date {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.book-actions {
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.empty-icon {
  margin-bottom: 1.5rem;
  color: var(--gray-400);
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-large {
  max-width: 600px;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.upload-section {
  margin-bottom: 2rem;
}

.crop-section {
  margin-bottom: 2rem;
}

.crop-container {
  max-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
  .profile-header-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .profile-name-section {
    justify-content: center;
  }
  
  .profile-display-name {
    font-size: 1.75rem;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .profile-actions .btn {
    justify-content: center;
  }
  
  .book-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .book-actions {
    width: 100%;
  }
  
  .book-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .modal-content {
    max-width: 95vw;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--primary-burgundy), var(--primary-navy));
  transform: translateY(0) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top .icon {
  width: 24px;
  height: 24px;
  transition: var(--transition-fast);
}

.scroll-to-top:hover .icon {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }
  
  .scroll-to-top .icon {
    width: 20px;
    height: 20px;
  }
}

/* Modern Books Page */
.modern-books-page {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.books-grid .book-cover-placeholder {
  width: 100%;
}

.modern-book-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.book-cover-link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.book-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
}

.book-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-cover-link:hover .book-cover-image {
  transform: scale(1.1);
}

.book-cover-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(26, 35, 126, 0.2), rgba(139, 21, 56, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-cover-link:hover::after {
  opacity: 1;
}

.book-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s ease;
}

.book-title-link:hover {
  color: var(--primary-navy);
}

.book-info {
  padding: 1.5rem;
}

.book-meta {
  margin-bottom: 1rem;
}

.book-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  line-height: 1.4;
  font-family: var(--font-display);
}

.book-author {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin: 0;
}

.book-description {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.stars {
  display: flex;
  gap: 2px;
}

.star-wrapper {
  position: relative;
  width: 16px;
  height: 16px;
}

.star {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

.star.star-bg {
  fill: var(--gray-300);
}

.star.star-fill {
  fill: var(--accent-gold);
}

.rating-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.review-count {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.no-rating {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-style: italic;
}

.book-pricing {
  margin-bottom: 1.5rem;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  font-family: var(--font-display);
}

.original-price {
  font-size: 1rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.discount-badge {
  background: var(--primary-green);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.book-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-primary-action,
.btn-secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.875rem;
}

.btn-primary-action {
  background: linear-gradient(135deg, var(--primary-navy), #151f6b);
  color: white;
  border: 1px solid var(--primary-navy);
  box-shadow: 0 2px 4px rgba(26, 35, 126, 0.1);
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #151f6b, var(--primary-navy));
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary-action {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary-action:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

.btn-success.btn-primary-action {
  background: linear-gradient(135deg, var(--primary-green), #0a4d3a);
  border-color: var(--primary-green);
}

.btn-success.btn-primary-action:hover {
  background: linear-gradient(135deg, #0a4d3a, var(--primary-green));
  box-shadow: 0 6px 20px rgba(13, 79, 60, 0.3);
}

/* Responsive Design for Books Page */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .book-cover-container {
    aspect-ratio: 3/4;
  }
  
  .book-info {
    padding: 1.25rem;
  }
}

/* Modern Auth Pages */
.modern-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gray-50);
}

.minimal-auth-page {
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.auth-container.centered {
  max-width: 480px;
  grid-template-columns: 1fr;
  min-height: auto;
  padding: 3rem 2rem;
}

.auth-brand {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  color: white;
  padding: 3rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
  opacity: 0.5;
}

.brand-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.brand-logo h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  color: var(--white);
}

.brand-logo-minimal {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-logo-minimal h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0;
  font-family: var(--font-display);
  color: var(--primary-navy);
}

.brand-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
}

.brand-features {
  margin-bottom: 2rem;
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
}

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

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent-gold);
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.author-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-form-section {
  padding: 3rem;
  display: flex;
  align-items: center;
}

.form-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.form-subtitle {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.5;
}

.modern-form {
  margin-bottom: 1.5rem;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-help {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.form-check-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.forgot-password {
  font-size: 0.875rem;
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  color: var(--primary-burgundy);
}

.btn-full {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error-red);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.success-message svg, .error-message svg {
  flex-shrink: 0;
}

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

.form-footer p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.signup-link {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 500;
}

.signup-link:hover {
  color: var(--primary-burgundy);
}

/* Success Message Styles */
.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary-green);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Compact Login Method Switcher */
.login-method-switcher {
  margin-bottom: 1rem;
}

.login-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.25rem;
}

.login-tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.login-tab-btn:hover {
  color: var(--primary-navy);
}

.login-tab-btn.active {
  color: var(--primary-navy);
  border-bottom-color: var(--primary-navy);
}

.login-tab-content {
  position: relative;
}

.login-tab-panel {
  display: none;
}

.login-tab-panel.active {
  display: block;
}

.login-magic-info {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.login-magic-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.btn-secondary {
  background: var(--primary-green);
  color: var(--white);
  border: 1px solid var(--primary-green);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
  color: var(--white);
}

.btn-secondary:focus {
  box-shadow: 0 0 0 3px rgba(13, 79, 60, 0.1);
}

/* Modern Book Detail Styles */
.modern-book-detail {
  padding: 3rem 0;
  background: var(--gray-50);
}

.book-hero {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}

.book-cover-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.book-cover-image {
  max-width: 100%;
  height: auto;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.book-initial {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-display);
}

.book-hero-content {
  padding-left: 2rem;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.book-category {
  background: var(--primary-green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.ownership-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

.ownership-icon {
  width: 1rem;
  height: 1rem;
}

.book-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.book-author {
  margin-bottom: 1.5rem;
}

.author-name {
  color: var(--primary-navy);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Modern Star Rating System */
.rating-section {
  margin-bottom: 1.5rem;
}

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

.star-rating {
  display: flex;
  gap: 0.25rem;
}

.star-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
}

.star-bg,
.star-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.rating-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-score {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 1.125rem;
}

.rating-count {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.book-description {
  color: var(--gray-700);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.book-price-section {
  margin-bottom: 2rem;
}

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

.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.original-price {
  font-size: 1.5rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.savings-badge {
  background: var(--error-red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
}

.book-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-normal);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary {
  background: var(--primary-navy);
  color: var(--white);
  border: none;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-burgundy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary-navy);
  color: var(--white);
}

/* Guarantee Section */
.guarantee-section {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.guarantee-icon {
  width: 2rem;
  height: 2rem;
  color: var(--success-green);
  flex-shrink: 0;
}

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

.guarantee-title {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 1rem;
}

.guarantee-desc {
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* Modern Tabs */
.book-content-tabs {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tabs-container {
  width: 100%;
}

.tab-nav {
  display: flex;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.tab-button {
  flex: 1;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.tab-button:hover {
  color: var(--primary-navy);
  background: var(--white);
}

.tab-button.active {
  color: var(--primary-navy);
  background: var(--white);
  font-weight: 600;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-navy);
}

.tab-content {
  padding: 3rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Overview Tab */
.overview-content h3 {
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.overview-content h4 {
  color: var(--gray-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.book-description-full {
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.feature-item:last-child {
  border-bottom: none;
}

.brand-features .feature-item {
  margin-bottom: 0;
}

.brand-content .testimonial .author-name {
  color: #fff;
  margin-bottom: 0;
}

.feature-check {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success-green);
  flex-shrink: 0;
}

/* Author Tab */
.author-profile {
  margin-bottom: 3rem;
}

.author-profile:last-child {
  margin-bottom: 0;
}

.author-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.author-avatar {
  flex-shrink: 0;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
}

.author-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
}

.author-info {
  flex: 1;
}

.author-name {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.author-age {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.author-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.author-bio {
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.author-other-books h4 {
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.other-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.other-book-item {
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: var(--transition-normal);
}

.other-book-item:hover {
  transform: translateY(-4px);
}

.other-book-item img,
.other-book-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.other-book-placeholder {
  background: var(--primary-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.other-book-title {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.4;
}

.author-separator {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: var(--gray-200);
}

/* Reviews Tab */
.reviews-header {
  margin-bottom: 3rem;
}

.reviews-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

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

.rating-score-large {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.rating-stars-large {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.star-wrapper-large {
  position: relative;
  width: 28px;
  height: 28px;
}

.rating-summary-text {
  color: var(--gray-600);
  margin: 0;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  gap: 1rem;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.reviewer-details {
  flex: 1;
}

.reviewer-name {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.review-rating {
  display: flex;
  gap: 0.25rem;
}

.star-filled,
.star-empty {
  width: 16px;
  height: 16px;
}

.star-filled {
  color: var(--accent-gold);
}

.star-empty {
  color: var(--gray-300);
}

.review-date {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.review-content p {
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

.review-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.verified-purchase {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success-green);
  font-size: 0.875rem;
  font-weight: 500;
}

.verified-icon {
  width: 1rem;
  height: 1rem;
}

.no-reviews {
  text-align: center;
  padding: 4rem 2rem;
}

.no-reviews-icon {
  margin: 0 auto 2rem;
  width: 4rem;
  height: 4rem;
  color: var(--gray-400);
}

.no-reviews h3 {
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.no-reviews p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Details Tab */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.detail-label {
  font-weight: 500;
  color: var(--gray-600);
}

.detail-value {
  font-weight: 600;
  color: var(--gray-900);
}

/* Modals */
.preview-modal,
.reader-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

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

.preview-header h3,
.reader-header h3 {
  margin: 0;
  color: var(--gray-900);
}

.preview-close,
.reader-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-close:hover,
.reader-close:hover {
  color: var(--gray-900);
}

.preview-body,
.reader-body {
  padding: 0;
}

.preview-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.preview-footer p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* Responsive Design for Auth Pages */
@media (max-width: 768px) {
  .modern-auth-page {
    padding: 1rem;
  }
  
  .auth-container {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }
  
  .auth-brand {
    padding: 2rem;
    order: 2;
  }
  
  .brand-features {
    margin-bottom: 2rem;
  }
  
  .testimonial {
    display: none;
  }
  
  .auth-form-section {
    padding: 2rem;
    order: 1;
  }
  
  /* Book Detail Responsive */
  .modern-book-detail {
    padding: 1rem 0;
  }
  
  .book-hero {
    padding: 1.5rem;
  }
  
  .book-hero-content {
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .book-title {
    font-size: 2rem;
  }
  
  .book-actions {
    flex-direction: column;
  }
  
  .guarantee-section {
    padding: 1.5rem;
  }
  
  .tab-nav {
    flex-direction: column;
  }
  
  .tab-button {
    padding: 1rem;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .author-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .reviews-summary {
    flex-direction: column;
    gap: 2rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .form-title {
    font-size: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-check-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn-cookie {
    padding: 0.5rem 1rem;
  }
}

/* ========================================
   MODERN HOMEPAGE STYLES
   ======================================== */

/* Modern Hero Section */
.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #1D976C;
  background: -webkit-linear-gradient(to left, var(--primary-green), var(--primary-green-light));
  background: linear-gradient(to left, var(--primary-green), var(--primary-green-light));
  padding: 4rem 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.1) 0%, transparent 70%),
    linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-burgundy) 50%, var(--primary-green) 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-highlight {
  background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0;
  border: 0;
  margin: 0;
}

.feature-icon {
  font-size: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  min-width: 200px;
  justify-content: center;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: var(--white);
}

.hero-proof {
  animation: fadeInUp 0.8s ease-out 1s both;
}

.social-proof {
  display: flex;
  gap: 1rem;
}

.avatars {
  display: flex;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-left: -12px;
  position: relative;
  background: var(--gray-200);
}

.avatar:first-child {
  margin-left: 0;
}

.proof-text {
  color: rgba(255, 255, 255, 0.9);
}

.proof-text p {
  color: inherit;
  margin-bottom: 0;
}

.stars {
  color: var(--accent-gold);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
}

.book-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.book-3d {
  position: relative;
  perspective: 1000px;
  animation: float 6s ease-in-out infinite;
}

.book-cover, .book-cover-placeholder {
  width: 450px;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 100px rgba(212, 175, 55, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.book-cover:hover, .book-cover-placeholder:hover {
  transform: rotateY(-12deg) rotateX(3deg) scale(1.02);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.4),
    0 0 150px rgba(212, 175, 55, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.book-cover-placeholder {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Enhanced book cover image styling */
.book-cover img, .book-cover-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Professional book spine effect */
.book-cover::before, .book-cover-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.3) 0%, 
    rgba(0,0,0,0.1) 50%, 
    rgba(255,255,255,0.1) 100%);
  border-radius: 0 0 0 1rem;
  transform: skewY(-45deg);
  transform-origin: top;
}

/* Professional CSS-based book cover */
.professional-cover {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  text-align: center;
}

.cover-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--primary-navy) 0%, 
    var(--primary-navy-light) 30%, 
    var(--primary-burgundy) 70%, 
    var(--primary-green) 100%);
  z-index: -1;
}

.cover-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cover-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover-title {
  margin-top: 1rem;
}

.title-line {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
  color: var(--white);
  text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

.title-line.gold {
  background: linear-gradient(90deg, var(--accent-gold-light), var(--accent-gold), var(--accent-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-top: 1rem;
}

.cover-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.center-circle {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.center-circle::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
}

.dollar-symbol {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--accent-gold-light), var(--accent-gold), var(--accent-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-features {
  margin: 1rem 0;
}

.feature-item {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.cover-author {
  margin-top: 1rem;
}

.author-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 400;
}

/* Trust badges styling */
.trust-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
}

.proof-text p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Testimonial location styling */
.testimonial-location {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
  font-style: italic;
}

/* CTA Additional Features Styling */
.cta-additional-features {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-feature-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  text-align: left;
}

.cta-feature-highlight .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cta-feature-highlight span:last-child {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .cta-additional-features {
    gap: 0.75rem;
  }
  
  .cta-feature-highlight {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Legal Document Styling */
.legal-document {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}

.legal-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  text-align: center;
}

.legal-updated {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-content {
  max-width: none;
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-gold);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-burgundy);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.legal-section p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.legal-section ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.contact-info {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-gold);
  margin: 1rem 0;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .legal-document {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  .legal-title {
    font-size: 2rem;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.floating-stat:nth-child(1) {
  top: 20%;
  right: -20%;
  animation: float 4s ease-in-out infinite;
}

.floating-stat:nth-child(2) {
  bottom: 30%;
  left: -10%;
  animation: float 5s ease-in-out infinite 1s;
}

.floating-stat:nth-child(3) {
  top: 60%;
  right: -10%;
  animation: float 6s ease-in-out infinite 2s;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Interactive Features Section */
.features-section {
  padding: 4rem 0;
  background: var(--white);
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  color: var(--white);
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-gold);
}

.feature-visual {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.feature-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
}

.animation-element {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.animation-element.pulse {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  animation: pulse 2s infinite;
}

.animation-element.bounce {
  background: radial-gradient(circle, rgba(26, 35, 126, 0.2) 0%, transparent 70%);
  animation: bounce 2s infinite;
}

.animation-element.float {
  background: radial-gradient(circle, rgba(13, 79, 60, 0.2) 0%, transparent 70%);
  animation: float 3s infinite;
}

.animation-element.float-2 {
  background: radial-gradient(circle, rgba(13, 79, 60, 0.2) 0%, transparent 70%);
  animation: float-2 3s infinite;
}

.feature-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-benefits li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* Book Showcase Section */
.book-showcase-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.book-spotlight {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.book-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-burgundy) 50%, var(--primary-green) 100%);
}

.book-visual-enhanced {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-3d, .book-cover-3d.placeholder {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15),
  0 0 50px rgba(212, 175, 55, 0.08);
  transform: perspective(1000px) rotateY(-8deg) rotateX(1deg);
  transition: transform 0.3s ease;
}

.book-cover-3d.placeholder {
  background: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.book-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: glow 4s ease-in-out infinite alternate;
}

.book-content-enhanced {
  padding-left: 3rem;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.book-category {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stars-large {
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.book-title-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  line-height: 1.2;
}

.book-author-enhanced {
  font-size: 1.125rem;
  color: var(--primary-navy);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.book-description-large {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.book-highlights {
  margin-bottom: 2.5rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-50);
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
}

.highlight-icon {
  font-size: 1.65rem;
}

.highlight-content {
  display: flex;
  gap: 4px;
  flex-direction: column;
}

.highlight-number {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1;
}

.highlight-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.pricing-showcase {
  background: linear-gradient(135deg, var(--gray-50), var(--white));
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  border: 2px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
}

.pricing-showcase::before {
  content: '💰 Best Value';
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--primary-navy);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom-left-radius: 1rem;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.currency {
  font-size: 1.5rem;
  color: var(--primary-navy);
  font-weight: 600;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-navy);
  font-family: var(--font-display);
}

.price-compare {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.original-price {
  font-size: 1.25rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.savings-badge {
  background: var(--error-red);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.guarantees {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
}

.guarantee-icon {
  font-size: 1.25rem;
}

.book-actions-enhanced {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  min-width: 250px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gradient {
  background: var(--primary-navy);
  color: var(--white);
  border: 1px solid var(--primary-navy);
  box-shadow: 0 2px 8px rgba(26, 35, 126, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  transition: left 0.5s;
}

.btn-gradient:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
  color: var(--white);
}

.btn-gradient:hover::before {
  left: 100%;
}

.btn-text {
  font-weight: 600;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-burgundy-dark) 100%);
  color: var(--white);
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="40" cy="40" r="2"/></g></svg>');
  opacity: 0.8;
}

.testimonials-section .section-header {
  position: relative;
  z-index: 1;
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--gray-900);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar, .testimonial-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-avatar-placeholder {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.testimonial-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1rem;
}

.testimonial-metric {
  text-align: right;
  margin-left: auto;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-style: italic;
  quotes: '"' '"';
}

.testimonial-quote::before {
  content: open-quote;
  font-size: 2rem;
  color: var(--accent-gold);
  font-weight: bold;
  line-height: 0;
  margin-right: 0.25rem;
}

.testimonial-proof {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.verified-badge {
  color: var(--primary-green);
  font-weight: 500;
}

.read-time {
  color: var(--gray-500);
}

.stats-showcase {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
}

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

.stats-grid .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.stats-grid .stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Preview Section */
.preview-section {
  padding: 4rem 0;
  background: var(--white);
}

.preview-showcase {
  margin-bottom: 4rem;
}

.chapter-preview {
  background: var(--gray-50);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
}

.chapter-header {
  margin-bottom: 1.5rem;
}

.chapter-number {
  background: var(--primary-navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.chapter-header h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.preview-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: column;
  margin-bottom: 1rem;
}

.preview-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
  padding: 0;
  margin-bottom: 0;
}

.preview-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-mockup {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3.2 / 5;
  background: var(--gray-900);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
}

.preview-interface {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  margin-right: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-navy);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.interface-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.interface-content p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.exercise-interaction {
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 1.5rem;
}

.input-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.text-area-demo {
  width: 100%;
  height: 80px;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  position: relative;
}

.text-area-demo::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--gray-300);
}

.preview-cta {
  margin-top: 3rem;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--primary-navy);
  border: none;
  font-weight: 600;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  color: var(--primary-navy);
}

.preview-note {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 1rem;
}

/* Final CTA Section */
.final-cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-burgundy) 50%, var(--primary-green) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%),
    url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="50" cy="50" r="3"/></g></svg>');
}

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

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  font-weight: 500;
}

.cta-actions {
  margin-bottom: 3rem;
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--primary-navy);
  border: none;
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-subtext {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-icon {
  font-size: 1.125rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-2 {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes glow {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .book-cover-3d, .book-cover-3d.placeholder {
    width: 300px;
    height: 400px;
  }
  
  .cta-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-hero, .btn-xl {
    width: 100%;
    justify-content: center;
  }

  .hero-proof {
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .book-spotlight {
    padding: 2rem;
  }
  
  .book-content-enhanced {
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .highlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .book-actions-enhanced {
    flex-direction: column;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .testimonial-metric {
    margin-left: 0;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .device-mockup {
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 2.5rem;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 1.5rem;
  }

  .features-section, .book-showcase-section, .testimonials-section, .preview-section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero-section, .features-section, .book-showcase-section, .testimonials-section, .preview-section {
    padding: 2.5rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-badge {
    margin-bottom: 1.25rem;
  }
  
  .book-cover, .book-cover-placeholder {
    width: 275px;
  }
  
  .floating-stat {
    display: none;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .book-spotlight {
    padding: 1.5rem;
  }
  
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .btn-cta {
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
  }

  a.btn.btn-primary.btn-xl.btn-gradient.btn-cta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Enhanced Professional Design Elements - More Refined Styling */

/* Refined Section Headers */
.section-header {
  position: relative;
  padding-bottom: 2rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 2px;
}

/* Enhanced Typography */
.hero-title .title-highlight {
  position: relative;
  display: inline-block;
}

/* Refined Button Styling */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn:hover {
  letter-spacing: 1px;
}

/* Enhanced Card Interactions */
.feature-card:hover::before {
  transform: scaleX(1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-gold);
  opacity: 0.3;
  font-family: var(--font-display);
}

/* Refined Spacing and Polish */
.stats-grid .stat-item {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.stats-grid .stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Enhanced Input Fields */
.form-control {
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  outline: none;
}

/* Professional Badge System */
.hero-badge, .section-badge {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Star Rating for Homepage */
.stars-large {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.stars-large .star-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
}

.stars-large .star {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.stars-large .star-fill {
  fill: var(--accent-gold);
}

.stars-large .star-bg {
  fill: #e5e7eb;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

section#reviews .section-badge, .hero-badge {
  color: #fff;
}

/* Hero Section Avatar Styles */
.avatar-placeholder {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-proof .avatars > * {
  position: relative;
}

.social-proof .avatars > *:not(:first-child) {
  margin-left: -7px;
}

.social-proof .avatars > *:nth-child(1) {
  z-index: 1;
}
.social-proof .avatars > *:nth-child(2) {
  z-index: 2;
}
.social-proof .avatars > *:nth-child(3) {
  z-index: 3;
}
.social-proof .avatars > *:nth-child(4) {
  z-index: 4;
}

/* Mobile Responsive Testimonial Slider */
.testimonials-slider-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
}

.testimonial-slide {
  /* Flex properties will be set dynamically by JavaScript */
  flex-shrink: 0;
  flex-grow: 0;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  background: var(--white);
  border: 2px solid var(--primary-navy);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-navy);
}

.slider-btn:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: scale(1.05);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--accent-gold);
}

/* Enhanced Testimonial Cards for Slider */
.testimonial-slide .testimonial-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.testimonial-slide .testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent-gold);
  opacity: 0.3;
  font-family: var(--font-display);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.testimonial-avatar-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-burgundy));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.testimonial-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-navy);
  font-size: 1.1rem;
  font-weight: 600;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
}

.testimonial-stars .star-wrapper {
  width: 16px;
  height: 16px;
}

.testimonial-quote {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

.verified-badge {
  color: var(--success-green);
  font-weight: 500;
}

.book-spotlight, .testimonials-slider-container, .preview-showcase, .features-grid {
  margin-top: 4rem;
}

.preview-content .feature-icon {
  width: unset;
  height: unset;
}

.reviews-list .review-rating {
  position: relative;
  margin-top: 10px;
}

.reviews-list .review-rating .star {
  position: relative;
}

#reviews .review-card {
  box-shadow: unset;
}

#reviews .review-card:hover {
  transform: unset;
}

.purchase-card .guarantees {
  align-items: flex-start;
}

/* Reviews Infinite Scroll Styles */
.review-item {
  transition: opacity 0.3s ease-in-out;
}

.review-item.loading {
  opacity: 0.5;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.avatar-sm {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.star-sm {
  display: inline-block;
  vertical-align: middle;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  .slider-controls {
    margin-top: 1.5rem;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
  }
  
  .slider-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .testimonial-slide .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-header {
    margin-bottom: 1rem;
  }

  .book-spotlight, .testimonials-slider-container, .preview-showcase, .features-grid {
    margin-top: 2rem;
  }

  .book-visual-enhanced {
    padding-top: 1rem;
  }

  .guarantees {
    gap: 1rem;
  }

  .price-container {
    margin-bottom: 1rem;
  }

  .social-proof {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-proof .stars {
    justify-content: center;
  }

  .hero-proof .trust-badges {
    padding-bottom: 25px;
    justify-content: center;
  }

  .btn-xl {
    font-size: 1.1rem;
  }

  .price-container {
    gap: 1rem;
  }

  .price-container .amount {
    font-size: 2rem;
    line-height: 1;
  }

  .pricing-showcase {
    padding: 1rem;
    padding-top: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .price-container .original-price {
    font-size: 1rem;
  }

  .price-container .savings-badge {
    display: none;
  }
}