/* ═══════════════════════════════════════════════════════════════
   TWOGEES ACADEMY — STORYBRAND × GLASSMORPHIC STYLING SYSTEM
   ═══════════════════════════════════════════════════════════════ */

@import url('/static/css/theme.css');
/* Font loaded via <link> in HTML for faster rendering — Inter from Google Fonts */

/* Base Resets */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Background Glow Effects */
.bg-glow-1 {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  top: 60%;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

/* Layout Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .container {
    max-width: 960px;
  }
}

/* Glassmorphism Card System */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--border-s);
  box-shadow: var(--shadow);
}

/* Responsive Grid System (DRY Layouts) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Sleek Buttons & Badges */
.btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--cta, var(--text));
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(var(--cta-rgb, 0, 0, 0), 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--cta, var(--text)), rgba(var(--cta-rgb, 0, 0, 0), 0.75));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--cta-rgb, 0, 0, 0), 0.45);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-deep);
  border-color: var(--border-s);
  transform: translateY(-2px);
}

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

.btn-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow svg {
  transform: translateX(4px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text2);
}

.badge-gold {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05), transparent);
}

.badge-green {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Custom Section Labels */
.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 24px;
}

.sec-label span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--text2);
  white-space: nowrap;
}

.sec-label .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text3);
  margin-top: 16px;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb i {
  font-size: 0.6rem;
}

.breadcrumb .current {
  color: var(--text3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Urgency Strip Alert */
.urgency-strip {
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.urgency-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.urgency-timer {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 800;
}

/* 1. Header System (Zero Escape Hatches) */
.header-wrap {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 999;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
}

.header-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--bg);
}
.header-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-theme {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.header-theme:hover {
  border-color: var(--border-s);
  color: var(--text);
}

/* 2. Hero Section */
.hero {
  text-align: center;
  padding: 24px 0 0;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(1.8rem, 5.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--gradient-partner));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: var(--text2);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 28px;
}

.price-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.price-hero .old {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--text3);
}

.price-hero .now {
  font-size: 1.45rem;
  font-weight: 800;
}

.price-hero .save {
  font-size: 0.58rem;
  font-weight: 800;
  background: var(--text);
  color: var(--bg);
  padding: 3px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.micro-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  font-size: 0.68rem;
  color: var(--text2);
  font-weight: 600;
}

.micro-proof .star {
  color: var(--warn);
}

.micro-proof .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-s);
}

/* Premium book cover mockup styling */
.mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 32px;
}

.flat-mockup {
  width: 190px;
  height: 260px;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  border: 1px solid var(--border-s);
  position: relative;
  background: linear-gradient(135deg, var(--accent), var(--bg-deep));
  box-shadow: var(--shadow), 0 16px 36px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s;
}

.flat-mockup:hover {
  transform: scale(1.03) rotate(1deg);
}

.flat-mockup::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent);
  z-index: 2;
}

.mockup-tag {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin: 0 auto;
}

.mockup-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: auto 0;
  word-break: break-word;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mockup-footer {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.format-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* 3. Social Proof / Trust Bar */
.trust-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 40px;
  text-align: center;
}

.trust-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.trust-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

.trust-stat em {
  font-style: normal;
  color: var(--accent);
}

.trust-stat i {
  color: var(--text2);
  font-size: 1.05rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0.5;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.trust-logos span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
}

/* 4. The Problem / Transformational Grid */
.trans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 600px) {
  .trans-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.trans-card.before {
  border-color: rgba(239, 68, 68, 0.15);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.02), var(--bg-card));
}

.trans-card.after {
  border-color: rgba(16, 185, 129, 0.15);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.02), var(--bg-card));
}

.trans-title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trans-card.before .trans-title {
  color: var(--danger);
}

.trans-card.after .trans-title {
  color: var(--success);
}

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

.trans-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.5;
}

.trans-card.before .trans-item i {
  color: var(--danger);
  font-size: 0.95rem;
  margin-top: 2px;
}

.trans-card.after .trans-item i {
  color: var(--success);
  font-size: 0.95rem;
  margin-top: 2px;
}

/* 5. The Solution & Guide Positioning */
.guide-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.guide-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.guide-name {
  font-size: 0.95rem;
  font-weight: 800;
}

.guide-role {
  font-size: 0.6rem;
  color: var(--text2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-text {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.7;
}

.guide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.guide-sig {
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
}

.guide-verified {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 6. Key Benefits */
.outcome-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.oc-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

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

.oc-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.oc-desc {
  font-size: 0.72rem;
  color: var(--text2);
  line-height: 1.5;
}

/* 7. Product & 3-Step Plan */
.step-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.purchase-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.pc-price {
  font-size: 1.45rem;
  font-weight: 800;
}

.pc-price .old {
  text-decoration: line-through;
  color: var(--text3);
  font-size: 0.85rem;
  margin-right: 8px;
}

.pc-note {
  font-size: 0.62rem;
  color: var(--text2);
  margin-top: 2px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .purchase-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

.course-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* 8. Value Stack */
.value-stack {
  background: var(--bg-card);
  border: 1.5px solid var(--text);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.vs-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 18px;
}

.vs-title em {
  font-style: normal;
  text-decoration: line-through;
  color: var(--text3);
}

.vs-items {
  display: flex;
  flex-direction: column;
}

.vs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.78rem;
}

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

.vs-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
}

.vs-item-name i {
  color: var(--text);
  font-size: 0.9rem;
}

.vs-item-val {
  font-weight: 700;
  color: var(--text);
}

.vs-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.vs-total-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.vs-total-old {
  text-decoration: line-through;
  color: var(--text3);
  font-size: 0.78rem;
}

.vs-total-now {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
}

.vs-save {
  text-align: center;
  margin-top: 14px;
}

.vs-save-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  background: var(--text);
  color: var(--bg);
  padding: 5px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 9. Testimonial Carousel */
.reviews-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  margin-bottom: 20px;
}

.reviews-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: var(--warn);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.reviews-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.reviews-sub {
  font-size: 0.62rem;
  color: var(--text2);
  margin-top: 2px;
}

.carousel-outer {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  padding: 4px;
}

.carousel-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

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

.review-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.65rem;
  border: 1px solid var(--border);
}

.review-verified {
  font-size: 0.5rem;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: var(--warn);
  font-size: 0.72rem;
}

.review-body {
  font-size: 0.76rem;
  color: var(--text2);
  line-height: 1.65;
}

.carousel-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  min-height: 36px;
  min-width: 36px;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--bg-deep);
  border-color: var(--border-s);
}

.carousel-btn.prev {
  left: -6px;
}

.carousel-btn.next {
  right: -6px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.c-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-s);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-dot.active {
  background: var(--text);
  width: 18px;
  border-radius: 6px;
}

/* 10. Curriculum Section */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding-left: 20px;
  margin-left: 4px;
  margin-bottom: 40px;
}

.content-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  background: var(--border);
  opacity: 0.8;
}

.content-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  animation: contentItemFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  transition: transform 0.2s, border-color 0.2s;
}

.content-item:hover {
  transform: translateX(4px);
  border-color: var(--border-s);
}

.content-item.locked {
  opacity: 0.65;
}

.c-node {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text3);
  z-index: 5;
  transition: all 0.2s;
}

.content-item.active .c-node {
  border-color: var(--text);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
  background: var(--accent);
}

.c-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg-deep);
  color: var(--text2);
}

.c-body {
  flex: 1;
  min-width: 0;
}

.c-title {
  font-size: 0.8rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.c-sub {
  font-size: 0.65rem;
  color: var(--text2);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.c-meta span {
  font-size: 0.55rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

.c-badge {
  font-size: 0.48rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 100px;
  text-transform: uppercase;
}

.c-badge.draft {
  background: rgba(250, 204, 21, 0.08);
  color: var(--warn);
}

.cache-badge {
  font-size: 0.5rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.cache-badge.off {
  background: var(--bg-deep);
  color: var(--text3);
}

.cache-badge.mid {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.cache-badge.on {
  background: var(--success-bg);
  color: var(--success);
}

.c-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.c-btn {
  padding: 6px 14px;
  min-height: 32px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  transition: all 0.2s;
}

.c-btn:hover {
  border-color: var(--border-s);
  background: var(--bg-card);
}

.c-btn.read {
  color: var(--text);
  border-color: var(--border-s);
  background: var(--bg-card);
}

.c-btn.locked {
  color: var(--text3);
  cursor: default;
  opacity: 0.6;
}

.cache-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.cache-btn:hover {
  background: var(--border);
  color: var(--text);
}

/* Spinner element */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 11. Guarantee Section */
.guarantee {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.guar-header{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(16,185,129,0.15)}
@media(max-width:480px){.guar-header{grid-template-columns:1fr;text-align:center}}
.guar-icon{font-size:2.4rem;color:var(--success);flex-shrink:0}
.guar-title{font-size:0.92rem;font-weight:800;color:var(--text)}
.guar-sub{font-size:0.72rem;color:var(--text2);margin-top:2px}
.guar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media(max-width:600px){.guar-grid{grid-template-columns:1fr}}
.guar-point{display:flex;align-items:center;gap:8px;font-size:0.72rem;font-weight:600;color:var(--text2);padding:10px 12px;background:rgba(16,185,129,0.06);border-radius:10px}
.guar-point i{color:var(--success);font-size:0.85rem;flex-shrink:0}

/* 12. FAQ Accordion System */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
  counter-reset: faq;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
  counter-increment: faq;
}

.faq-card:hover, .faq-card.open {
  border-color: var(--border-s);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  color: var(--text);
}

.faq-q::before {
  content: counter(faq, decimal-leading-zero);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text3);
  margin-right: 8px;
  flex-shrink: 0;
}

.faq-q i {
  font-size: 0.85rem;
  color: var(--text3);
  transition: transform 0.3s;
}

.faq-card.open .faq-q i {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-a-inner {
  padding: 0 16px 16px 36px;
  font-size: 0.76rem;
  color: var(--text2);
  line-height: 1.65;
}

/* 13. Final Close Card */
.close-card {
  margin-top: 48px;
  padding: 36px 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--text);
  box-shadow: var(--shadow);
  text-align: center;
}

.close-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 8px;
}

.close-title {
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.close-urgency {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--bg);
  background: var(--text);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 6px;
  vertical-align: middle;
}

.close-desc {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.65;
  margin: 12px auto 20px;
  max-width: 480px;
}

.close-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.close-trust span {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.close-trust i {
  font-size: 0.8rem;
}

.close-trust .green {
  color: var(--success);
}

/* Modals Overlay & Card Framework */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1500;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-head h3 {
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: none;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: var(--text);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Custom PDF/Video Stream Viewer Modals */
.viewer-modal {
  z-index: 2000;
  background: rgba(0, 0, 0, 0.97);
}

.viewer-modal .modal-card {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  height: 100%;
}

.viewer-head {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.viewer-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.viewer-close {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.viewer-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.viewer-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.viewer-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  display: none;
}

.viewer-body iframe.active {
  display: block;
}

.video-wrap {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16/9;
  background: #000000;
  position: relative;
  display: none;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrap.active {
  display: block;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Realistic Flipping Ebook Look-Inside Viewer */
.book-viewport {
  background: #fcfbf6;
  color: #181824;
  border-radius: 10px;
  padding: 22px;
  min-height: 250px;
  box-shadow: inset 1px 1px 8px rgba(0, 0, 0, 0.05), 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #dcdad0;
  position: relative;
  overflow: hidden;
  transition: opacity 0.15s, transform 0.15s;
}

.book-content {
  font-size: 0.78rem;
  line-height: 1.7;
  font-family: Georgia, serif;
}

.book-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #181824;
  margin-bottom: 8px;
  border-bottom: 2px solid #181824;
  padding-bottom: 4px;
}

.book-content p {
  margin-bottom: 8px;
}

.book-footer {
  position: absolute;
  bottom: 8px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: rgba(0, 0, 0, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 4px;
}

.book-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.book-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.book-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Secure Checkout Addons styling */
.checkout-quote {
  background: var(--bg-deep);
  border-left: 3px solid var(--text);
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 0 8px 8px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.checkout-quote .q-text {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text2);
  line-height: 1.5;
}

.checkout-quote .q-author {
  display: block;
  font-size: 0.58rem;
  color: var(--text3);
  margin-top: 4px;
  text-align: right;
  font-weight: 700;
}

.co-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.co-cover {
  width: 40px;
  height: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.co-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
}

.co-sub {
  font-size: 0.62rem;
  color: var(--text2);
  margin-top: 2px;
}

.co-section {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--text2);
  letter-spacing: 0.08em;
  margin: 16px 0 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.co-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Interactive Add-on Selection styling */
.addon {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.addon.selected {
  background: var(--bg-deep);
  border-color: var(--text);
}

.addon-cb {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.addon-cb input {
  display: none;
}

.cb-custom {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--border-s);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  flex-shrink: 0;
  transition: all 0.15s;
}

.addon.selected .cb-custom {
  background: var(--text);
  border-color: var(--text);
}

.addon.selected .cb-custom::after {
  content: '✓';
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 900;
}

.addon-info {
  flex: 1;
}

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

.addon-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.addon-price {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
}

.addon-desc {
  font-size: 0.62rem;
  color: var(--text2);
  line-height: 1.4;
  margin-bottom: 4px;
}

.addon-tag {
  font-size: 0.52rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.addon-tag.green {
  color: var(--success);
}

.addon-tag.blue {
  color: var(--accent);
}

/* Order Summary Box */
.summary-box {
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text2);
  margin-bottom: 6px;
}

.sum-row.divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.sum-row.total {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}

.pay-btn {
  width: 100%;
  padding: 14px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 14px;
  opacity: 0.65;
}

.trust-badges span {
  font-size: 0.58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--text2);
}

/* Sticky Bottom Purchase Bar styling */
.sticky-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  border-radius: 100px;
  padding: 1.5px;
  z-index: 997;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--border);
  width: calc(100% - 32px);
  max-width: 460px;
}

.sticky-bar.show {
  transform: translateX(-50%) translateY(0);
}

.sticky-inner {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 98px;
  padding: 6px 8px 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sb-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.sb-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-icon i {
  color: var(--text2);
  font-size: 0.95rem;
}

.sb-meta {
  min-width: 0;
  line-height: 1.2;
}

.sb-title {
  font-size: 0.68rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--success);
  margin-top: 1px;
}

.sb-price .old {
  font-size: 0.62rem;
  text-decoration: line-through;
  color: var(--text3);
  margin-right: 6px;
  font-weight: 500;
}

.sb-btn {
  padding: 8px 16px !important;
  min-height: 34px !important;
  font-size: 0.7rem !important;
  border-radius: 100px;
}

/* Junk Drawer Footer */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 56px;
  font-size: 0.72rem;
  color: var(--text2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0.65;
}

.footer-badges span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Live Purchase Social Proof popup */
.live-proof {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  z-index: 996;
  transform: translateY(140%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 280px;
}

.live-proof.show {
  transform: translateY(0);
  opacity: 1;
}

.live-proof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.live-proof-text {
  font-size: 0.68rem;
  color: var(--text2);
  line-height: 1.3;
}

.live-proof-text strong {
  color: var(--text);
  display: block;
}
@keyframes contentItemFadeIn {
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
