/* ==========================================================================
   Uncle Richard's Retirement Bible — Landing Page Stylesheet
   Harmonized Design System: Warm Cardigan Editorial & Neo-Brutalist Precision
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Uncle Richard Color Palette (Harmonized with Book & Character) */
  --bg-page: #FAF7F2;
  --bg-card: #ffffff;
  --bg-secondary: #F5EEE2;
  --bg-subtle: #FAF6EE;
  --bg-cardigan: #F5EEE2;
  --border-cardigan: #E4D5C1;
  --color-text: #1F242E;
  --color-muted: #4B5565;
  --color-subtle: #6B7280;
  
  --border-color: #0f172a;
  --border-light: #E4D5C1;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;

  /* Theme Accents from Uncle Richard's Bible */
  --blue-richard: #1E40AF;
  --blue-richard-dark: #1E3A8A;
  --blue-richard-light: #EFF6FF;
  --blue-richard-border: #BFDBFE;

  --accent-navy: #1E3A8A;
  --accent-gold: #c59b27;
  --accent-yellow: #FEF3C7;
  --accent-green: #15803D;
  --accent-blue: #1E40AF;

  --green-path: #15803D;
  --green-path-light: #F0FDF4;
  --green-path-border: #BBF7D0;

  --red-trap: #B91C1C;
  --red-trap-light: #FEF2F2;
  --red-trap-border: #FECACA;

  --amber-sign: #D97706;
  --amber-sign-light: #FFFBEB;
  --amber-sign-border: #FDE68A;
  
  --shadow-brutal: 4px 4px 0px #0f172a;
  --shadow-brutal-sm: 2px 2px 0px #0f172a;
  --shadow-brutal-lg: 6px 6px 0px #0f172a;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);

  /* Fonts matching Uncle Richard's Book Stylesheet */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Top Navigation
   -------------------------------------------------------------------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  padding: 12px 24px;
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-nav-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.nav-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  object-fit: cover;
  box-shadow: var(--shadow-brutal-sm);
}

.nav-creator-meta {
  display: flex;
  flex-direction: column;
}

.nav-creator-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-muted);
}

.nav-rating .stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
}

.nav-rating .rating-num {
  font-weight: 600;
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-share-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.nav-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 500px;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-price {
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Buttons & Micro-interactions
   -------------------------------------------------------------------------- */
.btn-primary {
  background-color: var(--border-color);
  color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-full);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-brutal-sm);
  user-select: none;
}

.btn-primary:hover {
  background-color: #262626;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-brutal);
}

.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.btn-large {
  padding: 16px 28px;
  font-size: 18px;
}

.btn-full {
  width: 100%;
}

.btn-outline {
  background-color: #ffffff;
  color: var(--color-text);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-full);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-brutal-sm);
}

.btn-outline:hover {
  background-color: var(--bg-secondary);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-brutal);
}

.pulse-btn {
  position: relative;
}

/* --------------------------------------------------------------------------
   Page Layout & Grid
   -------------------------------------------------------------------------- */
.page-layout {
  max-width: 1140px;
  margin: 32px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Main Card
   -------------------------------------------------------------------------- */
.main-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
}

/* Cover Wrapper - Full Bleed Artwork */
.cover-wrapper {
  position: relative;
  background: #10263e;
  border-bottom: 2px solid var(--border-color);
  cursor: pointer;
  overflow: hidden;
  display: block;
  padding: 0;
  width: 100%;
}

.cover-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: transform 0.35s ease;
}

.cover-wrapper:hover .cover-image {
  transform: scale(1.015);
}

.cover-zoom-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: var(--border-radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cover-zoom-badge:hover {
  background: #000;
  transform: scale(1.05);
}

/* Card Body */
.card-body {
  padding: 36px 40px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.edition-badge, .pages-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border: 1.5px solid var(--border-cardigan);
  border-radius: var(--border-radius-full);
  background: var(--bg-cardigan);
  color: #78350F;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pages-badge {
  background: var(--blue-richard-light);
  border-color: var(--blue-richard-border);
  color: var(--blue-richard-dark);
}

.product-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-richard-dark);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.product-summary {
  font-size: 19px;
  line-height: 1.55;
  color: #334155;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Creator Meta Strip */
.creator-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 20px;
  background-color: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-md);
  margin-bottom: 28px;
}

.creator-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  object-fit: cover;
  box-shadow: var(--shadow-brutal-sm);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-name {
  font-weight: 800;
  font-size: 16px;
}

.co-author {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 15px;
}

.author-location {
  font-size: 13px;
  color: var(--color-muted);
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: #ffffff;
  padding: 8px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-brutal-sm);
  transition: transform var(--transition-fast);
}

.rating-badge:hover {
  transform: translateY(-2px);
}

.star-icons {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.score-text {
  font-weight: 800;
  font-size: 15px;
  color: var(--color-text);
}

.count-pill {
  font-size: 13px;
  color: var(--color-muted);
}

/* Purchase Box Inline (Mobile & Tablet primary) */
.purchase-box-inline {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-brutal-sm);
}

.price-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: #000;
}

.price-sub {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 500;
}

.purchase-box-inline .btn-primary {
  width: 100%;
  margin-bottom: 14px;
}

.guarantee-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #2b3b2b;
  background: #edfbf5;
  border: 1px solid #b7ecd4;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
}

.preview-trigger-row {
  display: flex;
}

.preview-trigger-row .btn-outline {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Attributes Section
   -------------------------------------------------------------------------- */
.section-subheading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #0f172a;
}

.attribute-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attribute-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.attribute-row:hover {
  background: #ffffff;
  border-color: var(--border-color);
  transform: translateX(4px);
  box-shadow: var(--shadow-brutal-sm);
}

.attr-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.attr-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.attr-name {
  font-weight: 700;
  font-size: 15px;
  color: #000;
}

.attr-val {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.45;
}

.card-divider {
  border: 0;
  border-top: 2px dashed var(--border-light);
  margin: 40px 0;
}

/* --------------------------------------------------------------------------
   Chapter Search & Sections Grid
   -------------------------------------------------------------------------- */
.chapter-search-box {
  margin-bottom: 28px;
}

.search-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.search-label-row .section-subheading {
  margin-bottom: 0;
}

.search-count-badge {
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  color: #334155;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: #ffffff;
  outline: none;
  transition: box-shadow var(--transition-fast);
}

.search-input-wrapper input:focus {
  box-shadow: var(--shadow-brutal-sm);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  padding: 0 4px;
}

.clear-search-btn:hover {
  color: #000;
}

.editorial-intro {
  margin-bottom: 24px;
}

.lead-paragraph {
  font-size: 18px;
  line-height: 1.6;
  color: #1e293b;
  margin-bottom: 16px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.section-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  box-shadow: var(--shadow-brutal-sm);
  transition: all var(--transition-fast);
}

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

.sec-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.sec-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.sec-chapters {
  font-weight: 500;
  color: var(--color-muted);
  font-size: 13px;
}

.sec-summary {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* Editorial Callouts & ROI Box */
.editorial-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--border-radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.callout-icon {
  flex-shrink: 0;
}

.callout-content p {
  font-size: 14.5px;
  color: #1e3a8a;
  line-height: 1.55;
  margin-bottom: 8px;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

.roi-highlight-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fefce8;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-brutal-sm);
}

.roi-stat {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 800;
  color: #854d0e;
  border-right: 2px solid #ca8a04;
  padding-right: 20px;
  line-height: 1;
}

.roi-copy {
  font-size: 15px;
  color: #713f12;
  line-height: 1.5;
}

.access-guarantee-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.guarantee-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guarantee-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
}

.guarantee-bullets li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.author-signature {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-serif);
}

.sign-names {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}

.sign-place {
  font-size: 14px;
  color: var(--color-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Ratings & Reviews Section
   -------------------------------------------------------------------------- */
.ratings-section {
  padding-top: 8px;
}

.ratings-summary-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  background: var(--bg-subtle);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-brutal-sm);
}

.rating-big-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1.5px solid var(--border-light);
  padding-right: 20px;
}

.big-number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: #000;
}

.big-stars {
  color: #f59e0b;
  font-size: 20px;
  margin: 6px 0;
  letter-spacing: 2px;
}

.total-reviews {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 600;
}

.rating-breakdown-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition-fast);
  text-align: left;
  font-family: inherit;
}

.rating-bar-row:hover {
  background: #e2e8f0;
}

.rating-bar-row.active {
  background: #dbeafe;
  outline: 1.5px solid #2563eb;
}

.bar-star-label {
  width: 54px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.progress-track {
  flex-grow: 1;
  height: 12px;
  background: #e2e8f0;
  border-radius: var(--border-radius-full);
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.progress-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: var(--border-radius-full);
}

.bar-pct {
  width: 38px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-align: right;
}

.active-filter-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 13.5px;
  color: #1e40af;
  margin-bottom: 16px;
}

.active-filter-indicator button {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Reviews Feed */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.review-item {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  box-shadow: var(--shadow-brutal-sm);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.reviewer-name {
  font-weight: 700;
  font-size: 14.5px;
}

.verified-badge {
  font-size: 11.5px;
  color: #059669;
  font-weight: 600;
}

.review-stars-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.review-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.review-date {
  font-size: 12px;
  color: var(--color-subtle);
}

.review-headline {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.review-body {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 12px;
}

.review-helpful {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--color-muted);
}

.helpful-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-full);
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.helpful-btn:hover {
  background: #e2e8f0;
}

.helpful-btn.active {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1d4ed8;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Product 3-Tab Section (Reviews | Book Content | Explore Chapter)
   -------------------------------------------------------------------------- */
.product-tabs-wrapper {
  margin-top: 28px;
}

.tabs-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 6px;
}

.tabs-nav-instruction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tabs-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: none;
  border-radius: var(--border-radius-full);
  padding: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs-nav-bar::-webkit-scrollbar {
  display: none;
}

.tab-nav-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: none;
}

.tab-nav-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  color: #0f172a;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tab-nav-btn:active {
  transform: scale(0.98);
}

.tab-nav-btn.active {
  background: #0f172a;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transform: translateY(0);
}

.tab-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.tab-nav-btn:not(.active) .tab-chip {
  background: #e2e8f0;
  color: #334155;
}

.tab-chip-gold {
  background: #f59e0b !important;
  color: #000000 !important;
}

.content-tab-pane {
  animation: tabFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom Callout CTA (Static & Statistics Enriched) */
.bottom-callout-cta {
  position: static !important;
  background: #fafaf9;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin-top: 36px;
  box-shadow: var(--shadow-brutal);
}

.cta-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px 14px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-brutal-sm);
}

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

.cta-stat-number {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.cta-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
  margin-top: 4px;
}

.bottom-callout-cta h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  margin-bottom: 8px;
  color: #0f172a;
}

.bottom-callout-cta p {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Desktop Sticky Sidebar
   -------------------------------------------------------------------------- */
.desktop-sidebar {
  display: block;
}

.sidebar-sticky-card {
  position: static;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-brutal);
}

.sidebar-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.sidebar-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-muted);
}

.sidebar-price {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 800;
  color: #000;
}

.sidebar-sticky-card .btn-primary {
  margin-bottom: 12px;
}

.sidebar-sticky-card .btn-outline {
  margin-bottom: 20px;
}

.sidebar-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #edfbf5;
  border: 1px solid #b7ecd4;
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  margin-bottom: 20px;
}

.sidebar-shield {
  flex-shrink: 0;
}

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

.sidebar-guarantee-text strong {
  font-size: 13.5px;
  color: #14532d;
}

.sidebar-guarantee-text span {
  font-size: 12px;
  color: #166534;
}

.sidebar-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.sidebar-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
}

.sidebar-creator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  object-fit: cover;
}

.sidebar-creator-text {
  display: flex;
  flex-direction: column;
}

.sidebar-creator-name {
  font-weight: 700;
  font-size: 14.5px;
}

.sidebar-creator-sub {
  font-size: 12px;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Mobile Sticky Bottom Bar
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  display: none !important;
}

.mobile-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-bar-meta {
  display: flex;
  flex-direction: column;
}

.mobile-bar-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.mobile-bar-price {
  font-weight: 800;
  font-size: 15px;
  color: #000;
}

.mobile-bar-btn {
  padding: 10px 22px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Modal Systems (Checkout & Preview)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-brutal-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.preview-card {
  max-width: 680px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid var(--border-color);
  background: #fbfbfa;
}

.modal-product-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.modal-prod-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.modal-prod-seller {
  font-size: 12.5px;
  color: var(--color-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0 4px;
}

.modal-close-btn:hover {
  color: #000;
}

.modal-body {
  padding: 24px;
}

.checkout-price-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.checkout-amount {
  font-size: 20px;
  font-weight: 800;
  color: #000;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: #fff;
  outline: none;
}

.form-input:focus {
  box-shadow: var(--shadow-brutal-sm);
}

.form-helper {
  font-size: 12px;
  color: var(--color-muted);
}

.payment-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pay-tab {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pay-tab.active {
  background: #000;
  color: #fff;
  box-shadow: var(--shadow-brutal-sm);
}

.card-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.card-brands-icons {
  position: absolute;
  right: 12px;
  font-size: 18px;
  pointer-events: none;
}

.form-row {
  display: flex;
  gap: 12px;
}

.col-half {
  flex: 1;
}

.alt-pay-notice {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 16px;
  border-radius: var(--border-radius-sm);
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 16px;
  text-align: center;
}

.checkout-submit-btn {
  margin-top: 8px;
}

.modal-footer-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 18px;
}

/* Success State in Modal */
.success-state {
  text-align: center;
  padding: 36px 24px;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d1fae5;
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-msg {
  font-size: 15px;
  color: #475569;
  margin-bottom: 20px;
}

.order-details-box {
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-brutal-sm);
}

.order-details-box p {
  margin-bottom: 6px;
}

.order-details-box p:last-child {
  margin-bottom: 0;
}

.success-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-btn {
  background-color: #059669;
  border-color: #059669;
}

.download-btn:hover {
  background-color: #047857;
}

/* Preview Modal Body */
.preview-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.preview-tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #f1f5f9;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-full);
  cursor: pointer;
}

.preview-tab.active {
  background: #000;
  color: #fff;
  box-shadow: var(--shadow-brutal-sm);
}

.preview-content-box {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.6;
}

.sample-chapter h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 12px;
  color: #000;
}

.sample-lead {
  font-size: 15px;
  color: #334155;
  display: block;
  margin-bottom: 14px;
  background: #f8fafc;
  padding: 12px 14px;
  border-left: 3px solid #000;
}

.sample-chapter ul {
  padding-left: 20px;
  margin: 10px 0 14px;
}

.preview-footer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.preview-footer-action p {
  font-size: 13.5px;
  color: var(--color-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #000000;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--border-radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--border-color);
  background: #ffffff;
  padding: 40px 20px 60px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  object-fit: cover;
}

.footer-name {
  font-weight: 800;
  font-size: 16px;
}

.footer-note {
  font-size: 13.5px;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  body {
    background-color: var(--bg-card);
  }

  .page-layout {
    grid-template-columns: 1fr;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 100%;
    gap: 0;
  }

  .desktop-sidebar {
    display: none;
  }

  .mobile-bottom-bar {
    display: none !important;
  }

  .main-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .cover-wrapper {
    border: none;
    border-radius: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .cover-image {
    width: 100%;
    border: none;
    border-radius: 0;
  }

  .product-title {
    font-size: 32px;
  }

  .card-body {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 10px 16px;
    border-bottom: none;
  }

  .nav-container {
    justify-content: center;
    width: 100%;
  }

  .nav-buy-btn {
    width: 100%;
    max-width: 100%;
    padding: 11px 18px;
    font-size: 14.5px;
    justify-content: center;
  }

  .main-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .cover-wrapper {
    border: none;
    border-radius: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .cover-image {
    width: 100%;
    border: none;
    border-radius: 0;
  }

  .card-body {
    padding: 20px 16px;
  }

  .product-title {
    font-size: 26px;
  }

  .product-summary {
    font-size: 15px;
  }

  /* Responsive 2-Tab Bar */
  .tabs-nav-bar {
    gap: 6px;
    padding: 5px;
    border: none;
    border-radius: var(--border-radius-full);
  }

  .tab-nav-btn {
    padding: 9px 12px;
    font-size: 13px;
    gap: 6px;
    border: none;
  }

  .tab-chip {
    display: none;
  }

  .ratings-summary-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rating-big-score {
    border-right: none;
    border-bottom: 1.5px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 16px;
  }

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

  .roi-highlight-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .roi-stat {
    border-right: none;
    border-bottom: 2px solid #ca8a04;
    padding-right: 0;
    padding-bottom: 6px;
    width: 100%;
  }

  /* Responsive Static CTA & Statistics */
  .bottom-callout-cta {
    padding: 24px 16px;
  }

  .bottom-callout-cta h3 {
    font-size: 22px;
  }

  .cta-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .cta-stat-number {
    font-size: 20px;
  }

  .cta-stat-label {
    font-size: 11px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .tab-nav-btn span {
    font-size: 11.5px;
  }
}

/* --------------------------------------------------------------------------
   Whop Embedded Checkout & Digital Fulfillment Styling
   -------------------------------------------------------------------------- */
.buyer-init-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.buyer-init-box label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.buyer-input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.buyer-input-row input {
  width: 100%;
}

.buyer-input-row button {
  width: 100%;
}

.whop-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.whop-badge-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
}

.order-ref-tag {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  font-family: monospace;
}

.whop-checkout-box {
  min-height: 380px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manual-verify-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: var(--border-radius-sm);
  font-size: 12.5px;
  color: #64748b;
  margin-top: 10px;
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

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

/* Post Purchase Verified Review Prompt */
.verified-review-prompt {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--border-radius-md);
  text-align: left;
}

.review-prompt-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.review-prompt-header p {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.star-rating-select {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-opt {
  font-size: 24px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s;
}

.star-opt.active,
.star-opt:hover,
.star-opt:hover ~ .star-opt {
  color: #eab308;
}

.star-rating-text {
  margin-left: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-muted);
}

.review-success-note {
  margin-top: 10px;
  padding: 8px 12px;
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
}

/* Dynamic Verified Reviews Feed */
.dynamic-verified-feed .review-item {
  border-left: 4px solid #059669 !important;
  background: #fcfdfd;
}

.dynamic-verified-badge {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

/* --------------------------------------------------------------------------
   Customer Floating Support Widget
   -------------------------------------------------------------------------- */
.support-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
}

.support-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-fab:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.45);
}

.fab-avatar-badge {
  position: relative;
  width: 34px;
  height: 34px;
}

.fab-avatar-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.fab-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Expanded Chat Box */
.support-chat-box {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: supportPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes supportPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-box-header {
  padding: 16px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.chat-header-name {
  font-size: 14px;
  font-weight: 700;
}

.chat-header-status {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot-online {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.chat-close-btn:hover {
  color: #ffffff;
}

.chat-box-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.msg-author {
  align-self: flex-start;
}

.msg-customer {
  align-self: flex-end;
}

.chat-msg .msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}

.msg-author .msg-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
}

.msg-customer .msg-bubble {
  background: #1e3a8a;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.msg-meta {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 3px;
  padding: 0 4px;
}

.chat-box-footer {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.customer-identify-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.chat-sub-input {
  flex: 1;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
}

.chat-input-row input:focus {
  outline: none;
  border-color: #1e3a8a;
}

.btn-chat-send {
  background: #1e3a8a;
  color: #ffffff;
  border: none;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-chat-send:hover {
  background: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Reader Reviews Input & Verification Card
   -------------------------------------------------------------------------- */
.reader-review-action-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-brutal);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.review-action-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.review-action-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.review-action-header p {
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: 1.45;
}

.verify-stage-box {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 20px;
}

.verify-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-row {
  display: flex;
  gap: 10px;
}

.verify-row input {
  flex: 1;
}

.verify-status-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  margin-top: 10px;
  display: none;
}

.verify-status-msg.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  display: block;
}

.verify-status-msg.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  display: block;
}

.write-review-unlocked-box {
  animation: fadeInReview 0.3s ease-in-out;
}

@keyframes fadeInReview {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.verified-customer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.star-rating-interactive {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.star-interactive-item {
  font-size: 28px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.star-interactive-item.active,
.star-interactive-item:hover,
.star-interactive-item:hover ~ .star-interactive-item {
  color: #f59e0b;
}

.star-interactive-item:active {
  transform: scale(1.15);
}

.star-interactive-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  margin-left: 10px;
}

@media (max-width: 640px) {
  .reader-review-action-card {
    padding: 20px 16px;
  }
  .verify-row {
    flex-direction: column;
  }
  .verify-row button {
    width: 100%;
  }
}

/* ==========================================================================
   Uncle Richard Components (Copied & Harmonized from Book Stylesheet)
   ========================================================================== */

/* Uncle Richard's Speech Bubble Component */
.richard-talk-box {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  align-items: flex-start;
}

.richard-avatar-thumb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2.5px solid var(--blue-richard);
  background: var(--bg-cardigan);
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.richard-bubble {
  background: var(--bg-card);
  border: 2px solid var(--blue-richard-border);
  border-radius: 16px;
  padding: 16px 20px;
  position: relative;
  flex-grow: 1;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.06);
}

.richard-bubble::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--blue-richard-border);
}

.richard-bubble::after {
  content: '';
  position: absolute;
  top: 19px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid var(--bg-card);
}

.richard-bubble-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-richard);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.richard-bubble-text {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
}

/* Uncle Richard's Golden Rule / Principle Box */
.golden-rule {
  background: var(--amber-sign-light);
  border: 2px solid var(--amber-sign-border);
  border-left: 6px solid var(--amber-sign);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05);
}

.golden-rule-header {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #92400E;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.golden-rule-content {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #78350F;
  line-height: 1.45;
  margin: 0;
}

/* Story Narrative Container */
.story-container {
  background: #FFFDF9;
  border: 1.5px solid var(--border-cardigan);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.story-container p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 14px;
}

.story-container p:last-child {
  margin-bottom: 0;
}

/* Warning & Trap Box */
.warning-card {
  background: var(--red-trap-light);
  border: 2px solid var(--red-trap-border);
  border-left: 6px solid var(--red-trap);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.04);
}

.warning-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red-trap);
  margin-bottom: 6px;
}

.warning-card-body {
  font-size: 0.92rem;
  color: #7F1D1D;
  line-height: 1.5;
}

/* Chapter Number Pill */
.chapter-number-pill {
  display: inline-block;
  background: var(--bg-cardigan);
  border: 1.5px solid var(--border-cardigan);
  color: #78350F;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}


