/**
 * Utility Classes
 *
 * Common utility patterns using design tokens.
 * These classes help migrate inline styles to reusable CSS.
 *
 * Naming convention follows Tailwind-like patterns for familiarity.
 */

@import 'design-tokens.css';

/* ==========================================================================
   Display Utilities
   ========================================================================== */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox alignment */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* ==========================================================================
   Spacing Utilities (margin & padding)
   Uses design token scale: xs=4px, sm=8px, md=16px, lg=24px, xl=32px, 2xl=48px
   ========================================================================== */

/* Margin - all sides */
.m-0 { margin: 0; }
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }
.m-auto { margin: auto; }

/* Margin - vertical (y-axis) */
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-sm { margin-top: var(--space-sm); margin-bottom: var(--space-sm); }
.my-md { margin-top: var(--space-md); margin-bottom: var(--space-md); }
.my-lg { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }
.my-xl { margin-top: var(--space-xl); margin-bottom: var(--space-xl); }

/* Margin - horizontal (x-axis) */
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-sm { margin-left: var(--space-sm); margin-right: var(--space-sm); }
.mx-md { margin-left: var(--space-md); margin-right: var(--space-md); }

/* Margin - top */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* Margin - bottom */
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Margin - left */
.ml-0 { margin-left: 0; }
.ml-xs { margin-left: var(--space-xs); }
.ml-sm { margin-left: var(--space-sm); }
.ml-md { margin-left: var(--space-md); }
.ml-auto { margin-left: auto; }

/* Margin - right */
.mr-0 { margin-right: 0; }
.mr-xs { margin-right: var(--space-xs); }
.mr-sm { margin-right: var(--space-sm); }
.mr-md { margin-right: var(--space-md); }
.mr-auto { margin-right: auto; }

/* Padding - all sides */
.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

/* Padding - vertical (y-axis) */
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Padding - horizontal (x-axis) */
.px-0 { padding-left: 0; padding-right: 0; }
.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }

/* Padding - individual sides */
.pt-0 { padding-top: 0; }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }

.pb-0 { padding-bottom: 0; }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }

.pl-0 { padding-left: 0; }
.pl-sm { padding-left: var(--space-sm); }
.pl-md { padding-left: var(--space-md); }

.pr-0 { padding-right: 0; }
.pr-sm { padding-right: var(--space-sm); }
.pr-md { padding-right: var(--space-md); }

/* Gap utilities for flex/grid */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ==========================================================================
   Text Utilities
   ========================================================================== */

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

/* Text colors using design tokens */
.text-primary { color: var(--color-primary); }
.text-indigo { color: var(--color-primary); }
.text-gold { color: var(--color-secondary-accessible); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-error { color: var(--color-error); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-white { color: white; }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Font sizes */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

/* Line height */
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* ==========================================================================
   Background Utilities
   ========================================================================== */
.bg-white { background-color: white; }
.bg-primary { background-color: var(--bg-primary); }
.bg-card { background-color: var(--bg-card); }
.bg-surface { background-color: var(--bg-surface); }
.bg-indigo { background-color: var(--color-primary); }
.bg-gold { background-color: var(--color-secondary); }
.bg-transparent { background-color: transparent; }

/* ==========================================================================
   Border Utilities
   ========================================================================== */
.border { border: 1px solid var(--border-color); }
.border-0 { border: none; }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }

/* Border radius */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

/* ==========================================================================
   Shadow Utilities
   ========================================================================== */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ==========================================================================
   Width & Height Utilities
   ========================================================================== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-full { max-width: 100%; }
.max-w-prose { max-width: 700px; }
.max-w-lg { max-width: 600px; }
.min-w-0 { min-width: 0; }

/* Cancel button background for modals */
.bg-muted { background: #6c757d; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* Touch target sizing */
.touch-target { min-height: var(--touch-min); min-width: var(--touch-min); }
.touch-target-optimal { min-height: var(--touch-optimal); min-width: var(--touch-optimal); }

/* ==========================================================================
   Position Utilities
   ========================================================================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ==========================================================================
   Overflow Utilities
   ========================================================================== */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ==========================================================================
   Cursor Utilities
   ========================================================================== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ==========================================================================
   Visibility & Accessibility
   ========================================================================== */

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Not screen reader only - reverse of sr-only */
.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ==========================================================================
   Component-specific Utilities
   ========================================================================== */

/* Icon sizing (for emoji icons in templates) */
.icon-sm { font-size: 1.25rem; }
.icon-md { font-size: 1.5rem; }
.icon-lg { font-size: 2rem; }
.icon-xl { font-size: 2.5rem; }
.icon-2xl { font-size: 3rem; }

/* Table cell styling (common inline pattern) */
.table-cell {
  padding: var(--space-sm);
  border: 1px solid var(--border-color);
}

/* Card base styling */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}

.card-lg {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
}

/* ==========================================================================
   Calculator Page Utilities
   ========================================================================== */

/* TL;DR Box styling */
.tldr-box {
  background: rgba(106, 75, 196, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #6a4bc4;
}

.tldr-box h2 {
  margin-top: 0;
  font-size: 1.3em;
  color: #4B0082;
}

.tldr-box p {
  margin-bottom: 10px;
}

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

/* Key Facts Box */
.key-facts {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.key-facts h3 {
  margin-top: 0;
  color: #4B0082;
}

.key-facts ul {
  margin-bottom: 0;
}

/* Context Banners */
.context-banner {
  display: none;
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.context-banner--natal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.context-banner--dasha {
  background: linear-gradient(135deg, #4b0082 0%, #7b2cbf 100%);
}

.context-banner--dasha .arrow {
  color: #ffd700;
  font-weight: bold;
}

/* Dasha Callout CTA */
.dasha-callout {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dasha-callout h3 {
  color: white;
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.dasha-callout p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
}

.dasha-callout-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #F59E0B;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

/* FAQ Section styling */
.faq-section {
  margin-bottom: 4rem;
}

/* Footer Links Grid */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

/* Processing spinner animation */
.processing-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* Processing content box */
.processing-content {
  text-align: center;
  padding: 40px;
}

/* Checkout price display */
.checkout-price-box {
  margin-top: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Guarantee badge */
.guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
}

/* Error content styling */
.error-content {
  text-align: center;
  padding: 20px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* View More FAQs styling */
.faq-view-more {
  text-align: center;
  margin-top: 2rem;
}

.faq-view-more summary {
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 600;
}

.faq-view-more .faq-grid {
  text-align: left;
}

/* ==========================================================================
   Landing Page Utilities (for inline calculator pages)
   ========================================================================== */

/* Inline Calculator Section wrapper */
.inline-calculator-section {
  padding: 48px 20px;
  background: var(--bg-card, white);
  border-radius: 16px;
  margin-bottom: 48px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.inline-calculator-section--dasha {
  padding: 48px 20px;
  background: white;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(75, 0, 130, 0.1);
}

/* Section headers for landing pages */
.landing-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.landing-section-title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900, #0f172a);
  margin-bottom: 12px;
}

.landing-section-title--dasha {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4b0082;
  margin-bottom: 12px;
}

.landing-section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-600, #475569);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.landing-section-subtitle--dasha {
  font-size: 1.1rem;
  color: #666;
  max-width: 500px;
  margin: 0 auto;
}

/* Calculator wrapper - constrains width and centers */
.inline-calculator-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

/* CTA guarantee checkmarks */
.cta-checkmark {
  color: var(--color-secondary, #f59e0b);
  font-size: 1.25rem;
}

/* CTA subtext */
.cta-subtext {
  color: var(--slate-600, #475569);
  margin-top: 24px;
  font-size: 0.875rem;
}

/* Modal inline styles (convert to classes) */
.modal-display-none {
  display: none;
}

/* Premium CTA section */
.premium-cta-mockup-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.premium-cta-content {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.premium-cta-mockup {
  flex: 0 0 auto;
}

/* Transition section title */
.transitions-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a1a2e;
  margin-bottom: 20px;
}

/* Transition section note */
.transitions-note {
  color: #666;
  font-style: italic;
  margin-top: 20px;
  font-size: 0.95rem;
}

/* Featured snippet box (for GEO optimization) */
.featured-snippet-box {
  background: rgba(106, 75, 196, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #6a4bc4;
}

.featured-snippet-box-title {
  margin-top: 0;
  margin-bottom: 15px;
  color: #6a4bc4;
  font-size: 1.3em;
}

/* Premium CTA box (dark gradient variant) */
.premium-cta-box {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  color: white;
  text-align: center;
}

.premium-cta-box-title {
  color: #d4af37;
  margin-top: 0;
  margin-bottom: 15px;
}

/* Info box variants */
.info-box {
  padding: 15px;
  border-radius: 8px;
}

.info-box--gold {
  background: rgba(212, 175, 55, 0.1);
}

.info-box--purple {
  background: rgba(106, 75, 196, 0.1);
}

.info-box--centered {
  text-align: center;
  padding: 25px;
}

/* Classical source blockquote */
.classical-blockquote {
  background: rgba(212, 175, 55, 0.1);
  border-left: 4px solid #d4af37;
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #4a5568;
}

.classical-blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: #6a4bc4;
  font-size: 0.9rem;
}

/* Premium mockup image */
.premium-mockup-img {
  max-width: 300px;
  height: auto;
}

/* TL;DR Box variant for hero sections (light background) */
.tldr-box--hero {
  background: rgba(255, 255, 255, 0.95);
  border-left: 4px solid #ffd700;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 700px;
  border-radius: 8px;
  text-align: left;
  position: relative;
}

.tldr-label {
  color: #4b0082;
}

.tldr-text {
  color: #333;
}

/* Section titles for dasha/vedic pages */
.vedic-section-title {
  text-align: center;
  color: #4b0082;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.vedic-section-title--lg {
  text-align: center;
  color: #4b0082;
  font-size: 1.8rem;
  margin-bottom: 40px;
}

/* Key facts box */
.key-facts-box {
  background: white;
  border: 2px solid #4b0082;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.key-facts-box h3 {
  color: #4b0082;
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.key-facts-box ul {
  margin: 0;
  padding-left: 20px;
  color: #444;
  line-height: 1.8;
}

/* Analogy/insight box */
.insight-box {
  line-height: 1.8;
  color: #444;
  font-size: 1.05rem;
  margin: 20px 0;
  padding: 16px;
  background: linear-gradient(135deg, #f8f4ff 0%, #fff 100%);
  border-radius: 8px;
}

.insight-box strong {
  color: #4b0082;
}

/* Mid-page CTA section */
.mid-cta-section {
  background: linear-gradient(135deg, #4b0082 0%, #7b2cbf 100%);
  padding: 50px 30px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
  color: white;
}

.mid-cta-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.mid-cta-subtitle {
  margin-bottom: 24px;
  opacity: 0.9;
}

.mid-cta-badges {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Classical source section */
.classical-sources-section {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
}

.classical-sources-section h3 {
  color: #4b0082;
  margin-bottom: 16px;
}

.classical-sources-section p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.classical-sources-section .note {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Classical quote blockquote */
.classical-quote {
  border-left: 4px solid #4b0082;
  padding-left: 20px;
  margin: 0 0 20px 0;
  font-style: italic;
  color: #666;
}

.classical-quote cite {
  font-style: normal;
  font-weight: 600;
}

/* ==========================================================================
   Kundli Page Utilities
   ========================================================================== */

/* Hero image cover */
.hero-cover-image {
  max-height: 300px;
  object-fit: cover;
  width: 100%;
}

/* Page title dark blue */
.page-title-dark {
  color: #1a365d;
}

/* Chart generated card */
.chart-generated-card {
  border: 2px solid #d4af37;
}

.chart-generated-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.chart-generated-title {
  color: #1a365d;
  margin-bottom: 15px;
}

/* Button variants */
.btn-purple-outline {
  border-color: #6a4bc4;
  color: #6a4bc4;
}

.btn-purple {
  background: #6a4bc4;
  border-color: #6a4bc4;
}

.btn-gold {
  background: #d4af37;
  color: #1a365d;
  font-weight: 600;
  padding: 12px 30px;
}

/* Small muted link */
.link-small-muted {
  font-size: 0.85rem;
  color: #6a4bc4;
}

/* Premium CTA feature list */
.premium-feature-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.premium-feature-list li {
  margin-bottom: 8px;
}

.premium-feature-list .checkmark {
  color: #d4af37;
}

/* Premium CTA pricing note */
.premium-pricing-note {
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.premium-pricing-hint {
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Content paragraph spacing */
.content-paragraph {
  margin-bottom: 10px;
}

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

/* ==========================================================================
   Navigation Dropdown (base.html)
   ========================================================================== */

/* Dropdown panel */
.nav-dropdown-panel {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  min-width: 250px;
  z-index: 1000;
}

/* Dropdown section heading */
.nav-dropdown-heading {
  margin: 0 0 var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Dropdown link items */
.nav-dropdown-link {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--text-color);
  text-decoration: none;
}

/* Dropdown section with top border separator */
.nav-dropdown-section--bordered {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Exit Intent Modal (base.html)
   ========================================================================== */

/* Modal overlay */
.exit-intent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Modal dialog */
.exit-intent-dialog {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  margin: 20px;
  text-align: center;
  position: relative;
}

/* Modal close button */
.exit-intent-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

/* Modal title */
.exit-intent-title {
  color: #1a365d;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Modal message */
.exit-intent-message {
  color: #4a5568;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Modal CTA button */
.exit-intent-cta {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 8px;
  color: #1a1a1a;
  font-weight: 600;
}

/* Modal trust line */
.exit-intent-trust {
  margin-top: 15px;
  color: rgba(26, 54, 93, 0.6);
  font-size: 0.9rem;
}

/* ==========================================================================
   Learn Page Shared Components
   ========================================================================== */

/* Contextual CTA Box (gold variant - used across learn pages) */
.contextual-cta-box {
  background: rgba(212, 175, 55, 0.1);
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #d4af37;
}

/* Contextual CTA Box (blue/indigo variant) */
.contextual-cta-box--blue {
  background: rgba(75, 106, 196, 0.1);
  border-left-color: #4b6ac4;
}

/* Contextual CTA Box (purple variant) */
.contextual-cta-box--purple {
  background: rgba(75, 0, 130, 0.05);
  border-left-color: #4b0082;
}

/* CTA box heading */
.cta-box-heading {
  color: #1a365d;
  margin-bottom: 10px;
}

/* CTA box description */
.cta-box-description {
  color: #4a5568;
  margin-bottom: 15px;
}

/* Helper text (small muted text below CTAs) */
.helper-text {
  margin-top: 10px;
  color: rgba(26, 54, 93, 0.6);
  font-size: 0.85rem;
}

/* Knowledge application box (gradient) */
.knowledge-application-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(75, 0, 130, 0.1) 100%);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  margin: 25px 0;
}

/* Learn page hero image (full width, centered) */
.learn-hero-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
}

/* Table header row (purple background) */
.table-header-row {
  background: rgba(106, 75, 196, 0.2);
}

/* Table alternating row */
.table-alt-row {
  background: rgba(255, 255, 255, 0.02);
}

/* Comparison table container */
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

/* Expert quote cite */
.expert-quote cite {
  font-style: normal;
  color: #6a4bc4;
}

/* AI definition info box (green variant) */
.info-box-green {
  background: rgba(16, 185, 129, 0.05);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #10b981;
}

/* AI definition info box (purple variant) */
.info-box-purple {
  background: rgba(106, 75, 196, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #6a4bc4;
}

/* AI definition info box (red/calculation variant) */
.info-box-red {
  background: rgba(239, 68, 68, 0.05);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #ef4444;
}

/* Featured snippet title */
.featured-snippet-title {
  margin-top: 0;
  font-size: 1.3em;
}

/* Featured snippet text */
.featured-snippet-text {
  margin-bottom: 10px;
}

.featured-snippet-text:last-child {
  margin-bottom: 0;
}

/* AI definition heading (no top margin) */
.ai-definition h3 {
  margin-top: 0;
}

/* Action button dark text (for gold buttons) */
.action-button-dark-text {
  color: #1a1a1a;
}

/* Floating CTA box (centered, with padding) */
.floating-cta-box {
  text-align: center;
  margin: 25px 0;
  padding: 15px;
  background: rgba(75, 0, 130, 0.05);
  border-radius: 8px;
}

/* Learn hero image - medium variant (600px) */
.learn-hero-image--medium {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  display: block;
}

/* AI Calculation boxes (semantic code/math blocks) */
.ai-calculation {
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
}

.ai-calculation h3 {
  margin-top: 0;
}

.ai-calculation--green { background: rgba(75, 196, 106, 0.1); }
.ai-calculation--purple { background: rgba(196, 75, 196, 0.1); }
.ai-calculation--cyan { background: rgba(75, 196, 196, 0.1); }
.ai-calculation--yellow { background: rgba(196, 196, 75, 0.1); }
.ai-calculation--blue { background: rgba(75, 75, 196, 0.1); }
.ai-calculation--red { background: rgba(196, 75, 75, 0.1); }

/* Technical accuracy info box */
.technical-accuracy {
  background: rgba(196, 106, 75, 0.1);
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
}

.technical-accuracy h3 {
  margin-top: 0;
}

/* Citation facts box */
.citation-facts {
  background: rgba(255, 196, 75, 0.1);
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
}

.citation-facts h3 {
  margin-top: 0;
}

/* Info box - gold tint variant */
.info-box--gold-tint {
  background: rgba(212, 175, 55, 0.05);
  border-left-color: #d4af37;
}

/* Info box - purple tint variant */
.info-box--purple-tint {
  background: rgba(106, 75, 196, 0.05);
}

/* Info box - centered gold CTA variant */
.info-box--centered-gold {
  text-align: center;
  background: rgba(212, 175, 55, 0.1);
  border-left: 4px solid #d4af37;
  margin: 30px 0;
}

/* Info box - centered blue CTA variant */
.info-box--centered-blue {
  text-align: center;
  background: rgba(75, 106, 196, 0.1);
  border-left: 4px solid #4b6ac4;
  margin: 40px 0;
}

/* CTA action button - gold variant */
.action-button--gold {
  background: #d4af37;
  color: #1a365d;
  display: inline-block;
  margin: 10px 0;
}

/* CTA action button - blue variant */
.action-button--blue {
  background: #4b6ac4;
  color: white;
}

/* CTA action button - large size */
.action-button--large {
  font-size: 1.1em;
  padding: 15px 30px;
}

/* CTA footer text */
.cta-footer-text {
  margin-top: 10px;
  font-size: 0.9em;
  color: #666;
}

/* Nakshatra reference table */
.nakshatra-table {
  margin: 25px 0;
}

.nakshatra-table table {
  font-size: 0.9rem;
}

.nakshatra-table thead {
  background: #1a365d;
  color: white;
}

/* Signification table (houses & planets) */
.signification-table {
  overflow-x: auto;
  margin: 20px 0;
}

.signification-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.signification-table th {
  padding: 12px;
  text-align: left;
  background: #4B0082;
  color: white;
}

.signification-table td {
  padding: 10px;
}

.signification-table tr:nth-child(even) {
  background: #f8f9fa;
}

/* Comparison table (learn pages - sign positions, nakshatras) */
.comparison-table {
  overflow-x: auto;
  margin: 20px 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead tr {
  background: rgba(106, 75, 196, 0.2);
}

.comparison-table th {
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

.comparison-table td {
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.comparison-table tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

/* Continue learning grid */
.continue-learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.continue-learning-link {
  display: block;
  padding: 15px;
  background: rgba(106, 75, 196, 0.05);
  border: 1px solid rgba(106, 75, 196, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: #1a365d;
  font-weight: 500;
}

.continue-learning-link--highlight {
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid #d4af37;
  font-weight: 600;
}

/* Continue learning link (bordered variant for houses_planets) */
.continue-learning-link--bordered {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
}

.continue-learning-link--cta {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

/* Learn page float layout (image + text side by side) */
.learn-float-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 1.5em;
}

.learn-float-image {
  width: 250px;
  height: auto;
  border-radius: var(--border-radius);
  margin-top: 5px;
  flex-shrink: 0;
}

/* Final CTA section (knowledge application, gradient background) */
.final-cta-section {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(106, 75, 196, 0.1) 100%);
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  margin: 30px 0;
}

/* ==========================================================================
   Mobile Floating CTA
   ========================================================================== */
.mobile-floating-cta {
  z-index: 1000;
  border-top: 2px solid var(--color-primary, #4F46E5);
}

/* Indigo button variant */
.btn-indigo {
  background-color: var(--color-primary, #4F46E5);
  color: white;
  font-weight: 600;
}

/* ATF CTA highlight border */
.atf-cta-box {
  border-color: var(--color-primary, #4F46E5) !important;
}

/* Mobile CTA spacer */
.mobile-cta-spacer {
  height: 80px;
}

/* ==========================================================================
   Opacity Utilities
   ========================================================================== */
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
