/* Vedic Timeline - Celestial Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #060813;
  --bg-surface: #0c1024;
  --bg-surface-elevated: #131938;
  --bg-glass: rgba(15, 20, 48, 0.7);
  --bg-glass-card: rgba(19, 27, 62, 0.6);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(245, 158, 11, 0.3);
  --border-focus: #f59e0b;
  
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.25);
  
  --cosmic-purple: #8b5cf6;
  --cosmic-indigo: #6366f1;
  --cosmic-cyan: #38bdf8;
  
  --status-auspicious: #10b981;
  --status-auspicious-bg: rgba(16, 185, 129, 0.12);
  --status-auspicious-border: rgba(16, 185, 129, 0.35);
  
  --status-unfavourable: #ef4444;
  --status-unfavourable-bg: rgba(239, 68, 68, 0.12);
  --status-unfavourable-border: rgba(239, 68, 68, 0.35);
  
  --status-neutral: #818cf8;
  --status-neutral-bg: rgba(129, 140, 248, 0.12);
  --status-neutral-border: rgba(129, 140, 248, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #fbbf24;

  /* Typography */
  --font-serif: 'Cinzel', serif, Georgia;
  --font-display: 'Cinzel', serif, Georgia;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --glow-gold: 0 0 24px rgba(245, 158, 11, 0.25);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Starfield Canvas Background */
#starfield,
#starfieldCanvas,
.starfield-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Strict Flexbox Child Containment: Prevent children from expanding flex container */
.content-wrapper > * {
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box !important;
}

/* Typography Helpers */
h1, h2, h3, h4, .brand-logo, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
  font-weight: 700;
}

.text-gold { color: var(--gold-light); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 19, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  padding: 12px 24px;
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.brand-glyph {
  font-size: 1.5rem;
  color: var(--gold-light);
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7));
  animation: cosmicPulse 4s infinite ease-in-out;
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  margin: 0 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 500;
  white-space: nowrap !important;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.nav-link.active {
  color: var(--gold-light);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  border-radius: 2px;
}

/* Distinctive glow for Book Consultation */
.nav-link.consult-pill-nav {
  color: #fde68a !important;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.nav-link.consult-pill-nav:hover,
.nav-link.consult-pill-nav.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Astrologer Portal link */
.nav-link.astrologer-link-nav {
  color: #c4b5fd;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.35);
  transition: all 0.2s ease;
}

.nav-link.astrologer-link-nav:hover,
.nav-link.astrologer-link-nav.active {
  background: rgba(139, 92, 246, 0.26);
  border-color: rgba(167, 139, 250, 0.8);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Universal Nav Actions (right side of all navbars) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-auth-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* Language Switcher Segmented Control */
.lang-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 24px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #060813;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #060813;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

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

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

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.08);
}

/* Hero Section */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #fbbf24 85%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Birth Details Form Card */
.form-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 25, 58, 0.85) 0%, rgba(12, 16, 36, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.12);
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-header h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(6, 8, 19, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  outline: none;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f1430;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-lg);
  display: none;
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

.autocomplete-item:hover, .autocomplete-item.active {
  background: rgba(245, 158, 11, 0.15);
  color: #fff;
}

/* Coordinate overrides toggle */
.coord-details {
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Astrological Pillars Section */
.section {
  max-width: 1240px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-subtitle {
  color: var(--gold-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.3rem;
  color: #fff;
  margin-bottom: 16px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #fff;
}

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

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--gold-light);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.footer {
  background: #04050d;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 24px 30px;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 400px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 3D Kundli Astrological Yantra Stage */
.kundli-stage-3d {
  perspective: 1200px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.kundli-svg-container {
  width: 100%;
  max-width: 490px;
  aspect-ratio: 1;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  border-radius: 16px;
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.92),
    0 0 40px rgba(245, 158, 11, 0.22),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at 50% 50%, #151b3b 0%, #080c1d 100%);
  padding: 10px;
  box-sizing: border-box;
}

.kundli-svg-container:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1.02);
  box-shadow: 
    0 32px 75px -15px rgba(0, 0, 0, 0.98),
    0 0 50px rgba(245, 158, 11, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.kundli-svg-container svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.2));
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin: 20px auto;
  max-width: 900px;
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.6;
}

/* Animations */
@keyframes cosmicPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.8)); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Calculation Loader Dialog */
.calc-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.calc-spinner {
  width: 70px;
  height: 70px;
  border: 3px solid rgba(245, 158, 11, 0.15);
  border-top: 3px solid var(--gold-primary);
  border-radius: 50%;
  animation: spinSlow 1s linear infinite;
  margin-bottom: 24px;
}

.calc-step {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 8px;
  min-height: 24px;
}

/* Mobile Navigation Toggle & Drawer */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-accent);
  color: var(--gold-light);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  transition: var(--transition-fast);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus-visible {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold-primary);
}

.mobile-nav-drawer {
  display: none;
}

/* Fluid Base & Container Safe-Area */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
    gap: 36px;
  }
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 1180px) {
  .nav-links {
    gap: clamp(6px, 1vw, 12px);
  }
  .nav-link {
    font-size: 0.84rem;
  }
  .brand-logo {
    font-size: 1.18rem;
  }
}

@media (max-width: 1040px) {
  .navbar {
    padding: 12px 16px;
  }

  .nav-container {
    width: 100%;
  }

  .brand-logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .brand-glyph {
    font-size: 1.35rem;
  }

  .desktop-nav-links, .desktop-nav-cta {
    display: none !important;
  }

  /* Hide auth buttons and nav buttons from top bar on mobile; they live in the mobile drawer */
  .nav-cta,
  .nav-actions .btn,
  .nav-actions a.nav-link,
  .btn-astrologer-nav,
  .nav-auth-container {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
  }

  .mobile-nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: rgba(6, 8, 19, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-accent);
    padding: 18px 20px 28px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 99;
    max-height: calc(100dvh - 61px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
  }

  .mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .drawer-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-light);
    font-weight: 700;
  }

  .drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
  }

  .drawer-close-btn:hover {
    color: #fff;
  }

  .drawer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .drawer-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-light);
    transform: translateX(4px);
  }

  .drawer-link.highlight {
    color: var(--gold-light);
    font-weight: 600;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
  }

  .drawer-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
  }

  .drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
  }

  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-fast);
  }

  .mobile-nav-item:hover, .mobile-nav-item:focus {
    color: var(--gold-light);
    padding-left: 6px;
  }

  .mobile-drawer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
  }

  .hero {
    padding: 20px 16px 36px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-card {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-input, .form-select {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    padding: 12px 14px;
  }

  .section {
    padding: 32px 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pillar-card {
    padding: 20px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 18px 16px;
  }

  .footer {
    padding: 36px 16px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 12px;
  }

  .brand-logo {
    font-size: 1.05rem;
  }

  .btn-lg {
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  .form-card {
    padding: 18px 12px;
  }
}

/* Universal Cosmic Cross-Navigation Container (Consistent 18px Gap & 1240px Max Width) */
.cross-nav-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 0;
  box-sizing: border-box;
}

/* Universal Cosmic Cross-Navigation Ribbon (5 Pillars & Portals) */
.cross-nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  margin: 0 auto 24px;
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  backdrop-filter: blur(12px);
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.cross-nav-bar::-webkit-scrollbar {
  display: none;
}
.cross-nav-link {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.cross-nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.cross-nav-link.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(139, 92, 246, 0.26) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.65) !important;
  color: #fef08a !important;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.28), inset 0 0 10px rgba(245, 158, 11, 0.12);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
  .cross-nav-container {
    padding: 16px 12px 0;
  }
  .cross-nav-bar {
    padding: 6px 8px;
    gap: 6px;
    margin-bottom: 16px;
    border-radius: 14px;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .cross-nav-link {
    font-size: 0.78rem;
    padding: 6px 12px;
    gap: 5px;
    border-radius: 10px;
    min-height: 34px;
    box-sizing: border-box;
  }
}

/* =========================================================
   Universal Cosmic Empty/Unselected Profile State Card
   ========================================================= */
.empty-profile-card {
  max-width: 860px;
  margin: 20px auto 48px;
  background: radial-gradient(circle at 50% 25%, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(245, 158, 11, 0.05);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.empty-profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 2.2rem;
  margin-bottom: 22px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.empty-profile-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.3;
}

.empty-profile-desc {
  color: var(--text-secondary, #94a3b8);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 30px;
}

.empty-profile-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .empty-profile-card {
    padding: 32px 18px;
    margin: 16px auto 36px;
  }
  .empty-profile-title {
    font-size: 1.45rem;
  }
  .empty-profile-desc {
    font-size: 0.9rem;
  }
}

.future-journey-paywall-card {
  margin: 36px 0 30px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 32px rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.future-journey-paywall-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.paywall-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full, 9999px);
  color: var(--gold-light, #fbbf24);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.future-journey-paywall-card h3.paywall-main-title {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.future-journey-paywall-card p.paywall-lead-desc {
  max-width: 680px;
  margin: 0 auto 28px;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Paywall 2-Tier Pricing Grid */
.paywall-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: left;
}

.paywall-plan-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal, all 0.25s ease);
}

.paywall-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.paywall-plan-card.plan-featured {
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.95) 0%, rgba(20, 24, 45, 0.95) 100%);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.18);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060813;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.plan-title {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0 16px;
}

.plan-price-row .curr {
  font-size: 1.2rem;
  color: var(--gold-light, #fbbf24);
  font-weight: 700;
}

.plan-price-row .val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.plan-price-row .per {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-left: 4px;
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.plan-feature-list li span.check {
  color: #34d399;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.paywall-security-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

@media (max-width: 768px) {
  .future-journey-paywall-card {
    padding: 22px 14px;
    margin: 24px 0 18px;
    border-radius: var(--radius-md, 12px);
  }
  .future-journey-paywall-card h3.paywall-main-title {
    font-size: 1.4rem;
  }
  .future-journey-paywall-card p.paywall-lead-desc {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }
  .paywall-pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .paywall-plan-card {
    padding: 18px 16px;
  }
  .plan-feature-list {
    font-size: 0.82rem;
    gap: 7px;
  }
}



/* ==========================================================================
   Vedic Timeline — Cosmic Tarot Reading System
   ========================================================================== */

.tarot-container {
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 18px 20px 80px;
}

.tarot-hero {
  text-align: center;
  max-width: 840px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto 28px;
  padding: 0;
}

.tarot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: var(--radius-full);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.tarot-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tarot-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Tarot Engine Architecture Banner */
.tarot-engine-banner {
  margin: 22px auto 0;
  max-width: 840px;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.16), rgba(15, 23, 42, 0.72) 80%);
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.engine-banner-icon {
  font-size: 2.1rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.5));
}

.engine-banner-content {
  flex: 1;
}

.engine-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.engine-pill-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #c4b5fd;
}

.engine-banner-title strong {
  color: #f1f5f9;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.engine-banner-desc {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.54;
}

/* Spread Selector Tabs */
.spread-selector-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.spread-selector-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.spread-tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.spread-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-secondary);
}

.spread-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.spread-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(139, 92, 246, 0.18));
  border-color: var(--gold-light);
  color: #fff;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.2);
}

.spread-tab-btn .tab-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.spread-tab-btn .tab-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Tarot Cosmic Altar */
.tarot-altar {
  background: radial-gradient(ellipse at 50% 30%, rgba(30, 27, 75, 0.85) 0%, rgba(10, 12, 28, 0.95) 70%, rgba(6, 8, 19, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 28px;
  padding: 30px 24px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(245, 158, 11, 0.06);
  margin-bottom: 40px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tarot-altar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 28px;
  background-image: radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}

.altar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.altar-title-block h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.altar-title-block p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.altar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Altar Action Controls Bar & Buttons */
.altar-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin-bottom: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 5;
}

.altar-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-altar-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.btn-altar-action:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(139, 92, 246, 0.26));
  border-color: rgba(245, 158, 11, 0.75);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
}

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

.btn-altar-action#tarotAutoDrawBtn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(245, 158, 11, 0.22));
  border-color: rgba(167, 139, 250, 0.45);
  color: #fef08a;
}

.btn-altar-action#tarotAutoDrawBtn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(245, 158, 11, 0.35));
  border-color: rgba(245, 158, 11, 0.85);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.altar-deck-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.altar-deck-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.btn-tarot-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060813;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-tarot-shuffle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
  filter: brightness(1.1);
}

.btn-tarot-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tarot-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Fan Deck for Intuitive Selection */
.deck-selection-area {
  margin: 30px 0 36px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.deck-prompt-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  color: #fef08a;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.12);
  max-width: 100%;
  box-sizing: border-box;
  /* Glow-only pulse: scaling would overflow the altar and get clipped on mobile */
  animation: ribbonGlow 3s ease-in-out infinite;
}

@keyframes ribbonGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.12); }
  50% { box-shadow: 0 4px 22px rgba(245, 158, 11, 0.35), inset 0 0 14px rgba(245, 158, 11, 0.22); }
}

.fan-container {
  margin: 24px auto 16px;
  text-align: center;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
}

.fan-title {
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  color: rgba(254, 240, 138, 0.85);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 22px;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.fan-cards-track,
.interactive-card-fan {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
  position: relative;
  margin: 0 auto;
  max-width: 960px;
  padding: 0 20px;
  user-select: none;
}

/* Completed-draw state: track auto-sizes so the Reveal All panel is never clipped */
.fan-container.is-complete .fan-title {
  display: none;
}
.fan-cards-track.is-complete,
.interactive-card-fan.is-complete {
  height: auto;
  min-height: 0;
  padding: 0;
}
.fan-complete-panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 20px;
  text-align: center;
  box-sizing: border-box;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.55) 70%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  animation: fanPanelIn 0.35s ease-out;
}
.fan-complete-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}
.fan-complete-title {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.fan-complete-desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.fan-complete-btn {
  padding: 11px 24px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  white-space: normal;
  max-width: 100%;
}
@keyframes fanPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fan-card-item {
  width: 86px;
  height: 140px;
  border-radius: 12px;
  position: absolute;
  left: 50%;
  top: 34px;
  margin-left: -43px;
  cursor: pointer;
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--rot, 0deg));
  transform-origin: 50% 120%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: radial-gradient(circle at center, #1e1b4b 0%, #090a1a 100%);
  overflow: hidden;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  touch-action: manipulation;
  pointer-events: auto;
}

.fan-card-item:hover,
.fan-card-item.is-hovered {
  transform: translate(var(--x, 0px), calc(var(--y, 0px) - 20px)) rotate(var(--rot, 0deg)) scale(1.05) !important;
  z-index: 250 !important;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.55), 0 0 24px rgba(139, 92, 246, 0.45) !important;
  filter: brightness(1.18);
  border-color: #fbbf24 !important;
}

.fan-card-item.drawing {
  transform: translate(var(--x, 0px), calc(var(--y, 0px) - 60px)) scale(1.15) !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.7) !important;
  opacity: 0.6;
}

.fan-card-inner-pattern {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-image: repeating-linear-gradient(45deg, rgba(245, 158, 11, 0.05) 0, rgba(245, 158, 11, 0.05) 2px, transparent 0, transparent 8px);
}

.fan-card-seal {
  font-size: 1.4rem;
  color: var(--gold-light);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

/* Spread Slots on the Altar */
.spread-reading-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin: 36px auto 30px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  padding: 0 16px;
  box-sizing: border-box;
}

.spread-reading-grid.cards-1 {
  max-width: 320px;
}

.spread-reading-grid.cards-3 {
  max-width: 860px;
  gap: 24px;
}

.spread-reading-grid.cards-5 {
  max-width: 1180px;
  gap: 16px;
}

.spread-card-slot {
  flex: 0 1 220px;
  min-width: 175px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}

.spread-reading-grid.cards-5 .spread-card-slot {
  flex: 0 1 190px;
  min-width: 155px;
  max-width: 205px;
}

.slot-position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  padding: 7px 14px;
  border-radius: 14px;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
  min-height: 48px;
  transition: all 0.25s ease;
}

.spread-reading-grid.cards-5 .slot-position-badge {
  font-size: 0.69rem;
  padding: 6px 10px;
  min-height: 52px;
  letter-spacing: 0.03em;
}

.slot-position-badge.has-card {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.slot-position-badge.is-flipped {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

/* 3D Flippable Tarot Card */
.tarot-card-3d-wrap {
  width: 180px;
  height: 290px;
  perspective: 1200px;
  cursor: pointer;
  position: relative;
}

.tarot-card-flipper {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tarot-card-flipper.flipped {
  transform: rotateY(180deg);
}

.tarot-card-face {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
  overflow: hidden;
}

/* Card Back Design */
.tarot-card-back {
  background: radial-gradient(ellipse at 50% 50%, #1e1b4b 0%, #0c0e24 70%, #050612 100%);
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(245, 158, 11, 0.15);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.card-back-ornament-frame {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.card-back-symbol {
  font-size: 2.2rem;
  color: var(--gold-light);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.8));
}

.card-back-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Card Front Design */
.tarot-card-front {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #13172e 0%, #0d1020 100%);
  border: 2px solid var(--gold-light);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.35);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.tarot-card-front.reversed-card {
  border-color: #f59e0b;
}

.tarot-card-front.reversed-card .card-art-box {
  transform: rotate(180deg);
}

.card-front-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-light);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.card-numeral {
  font-family: var(--font-display, serif);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.card-astrology-tag {
  color: #c4b5fd;
  font-size: 0.72rem;
}

.card-art-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  transition: transform 0.4s ease;
}

.card-art-emblem {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.5));
  margin-bottom: 6px;
}

.card-element-pill {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-weight: 600;
}

.card-front-bottom {
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding-top: 6px;
}

.card-title-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display, serif);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.card-orientation-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-orientation-label.upright {
  color: #34d399;
}

.card-orientation-label.reversed {
  color: #f87171;
}

/* Reading Synthesis & Report Container */
.tarot-report-section {
  display: none;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tarot-report-section.active {
  display: block;
}

.synthesis-card-hero {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.synthesis-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.synthesis-title-wrap h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.synthesis-narrative-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 24px;
}

/* Element Balance Bars */
.elements-balance-bar {
  display: flex;
  gap: 8px;
  margin: 16px 0 24px;
  flex-wrap: wrap;
}

.element-pill-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.element-pill-badge strong {
  color: #fff;
}

/* Card by Card Breakdown Cards */
.cards-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card-detail-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-detail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-detail-mini-art {
  width: 50px;
  height: 75px;
  border-radius: 8px;
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #111428;
  flex-shrink: 0;
}

.card-detail-meta h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

.card-detail-meta .slot-name {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
}

.detail-keywords-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.keyword-tag {
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c4b5fd;
  font-weight: 500;
}

.detail-text-block {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.detail-aspects-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.82rem;
}

.aspect-col strong {
  display: block;
  color: var(--gold-light);
  margin-bottom: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* Astrological Consultation Banner */
.tarot-consult-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.tarot-consult-content h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 6px;
}

.tarot-consult-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 680px;
}

@media (max-width: 768px) {
  .tarot-container {
    padding: 16px 12px 60px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .tarot-hero {
    margin-bottom: 20px;
  }
  .tarot-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 10px;
  }
  .tarot-title {
    font-size: clamp(1.4rem, 6vw, 1.95rem);
    margin-bottom: 8px;
    word-break: break-word;
  }
  .tarot-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
  }

  /* Spread Selection Box */
  .spread-selector-box {
    padding: 14px 12px;
    border-radius: 16px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .spread-selector-title {
    font-size: 0.78rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .spread-tabs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .spread-tab-btn {
    padding: 10px 12px;
    border-radius: 12px;
  }
  .spread-tab-btn .tab-name {
    font-size: 0.86rem;
  }
  .spread-tab-btn .tab-desc {
    font-size: 0.74rem;
  }

  /* Tarot Altar & Controls */
  .tarot-altar {
    padding: 18px 10px 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .altar-controls-bar {
    padding: 10px 12px;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .altar-controls-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .btn-altar-action {
    padding: 8px 10px;
    font-size: 0.78rem;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .altar-deck-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.76rem;
    padding: 5px 10px;
    box-sizing: border-box;
  }
  .deck-prompt-ribbon {
    font-size: 0.78rem;
    padding: 6px 14px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  /* Fan Deck for Intuitive Selection */
  .fan-container {
    margin: 16px auto 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .fan-container.is-complete {
    overflow: visible;
    margin: 8px auto 6px;
  }
  .fan-complete-panel {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .fan-complete-icon {
    font-size: 1.6rem;
  }
  .fan-complete-title {
    font-size: 0.95rem;
  }
  .fan-complete-desc {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }
  .fan-complete-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.92rem;
    justify-content: center;
  }
  .fan-title {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }
  .fan-cards-track,
  .interactive-card-fan {
    height: 160px;
    padding: 0 4px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .fan-card-item {
    width: 58px;
    height: 96px;
    border-radius: 8px;
    margin-left: -29px;
    top: 20px;
  }
  .fan-card-item:hover,
  .fan-card-item.is-hovered,
  .fan-card-item.hovered {
    transform: translate(var(--x, 0px), calc(var(--y, 0px) - 16px)) rotate(var(--rot, 0deg)) scale(1.06) !important;
  }
  .fan-card-seal {
    font-size: 0.95rem;
  }
  .fan-card-inner-pattern {
    padding: 3px;
  }

  .tarot-engine-banner {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
    gap: 10px;
  }
  .engine-banner-title {
    justify-content: center;
  }

  /* Spread Slots Grid on Altar */
  .spread-reading-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px auto;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }
  .spread-reading-grid.cards-3,
  .spread-reading-grid.cards-5 {
    gap: 12px;
  }
  .spread-card-slot,
  .spread-reading-grid.cards-5 .spread-card-slot {
    flex: 1 1 140px;
    min-width: 130px;
    max-width: 165px;
    gap: 8px;
  }
  .slot-position-badge,
  .spread-reading-grid.cards-5 .slot-position-badge {
    font-size: 0.66rem;
    padding: 5px 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-wrap: balance;
    line-height: 1.25;
    min-height: 42px;
    border-radius: 10px;
  }
  .tarot-card-3d-wrap {
    width: 135px;
    height: 220px;
  }
  .tarot-card-face {
    border-radius: 12px;
  }
  .tarot-card-back {
    padding: 8px;
  }
  .card-back-symbol {
    font-size: 1.6rem;
  }
  .card-back-hint {
    font-size: 0.62rem;
  }
  .tarot-card-front {
    padding: 8px 8px 10px;
  }
  .card-art-emblem {
    font-size: 2.2rem;
    margin-bottom: 4px;
  }
  .card-numeral {
    font-size: 0.76rem;
  }
  .card-astrology-tag {
    font-size: 0.64rem;
  }
  .card-element-pill {
    font-size: 0.6rem;
    padding: 1px 6px;
  }
  .card-title-name {
    font-size: 0.78rem;
    line-height: 1.2;
  }
  .card-orientation-label {
    font-size: 0.62rem;
  }

  /* Reading Synthesis & Report */
  .synthesis-card-hero {
    padding: 18px 14px;
    border-radius: 18px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .synthesis-title-wrap h2 {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .synthesis-narrative-text {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .elements-balance-bar {
    gap: 6px;
    margin: 12px 0 18px;
  }
  .element-pill-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .cards-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
  }
  .card-detail-card {
    padding: 16px 14px;
    border-radius: 16px;
    gap: 10px;
  }
  .card-detail-meta h4 {
    font-size: 0.98rem;
  }
  .detail-text-block {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .detail-aspects-box {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .consult-banner-box {
    padding: 22px 14px !important;
    border-radius: 16px !important;
    margin-top: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .consult-banner-box h2 {
    font-size: 1.25rem !important;
  }
  .consult-banner-box p {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 360px) {
  .spread-card-slot {
    min-width: 120px;
    max-width: 140px;
  }
  .tarot-card-3d-wrap {
    width: 120px;
    height: 195px;
  }
}
