/**
 * Tarot Birth Card Calculator - Core Design System & Stylesheet
 * 100% Vanilla CSS, Zero external CDN dependencies
 */

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0a0b12;
  --bg-surface: #121422;
  --bg-card: #181b2e;
  --bg-card-hover: #20243d;
  --bg-input: #101220;
  
  --border-color: rgba(229, 184, 105, 0.22);
  --border-glow: rgba(229, 184, 105, 0.45);
  
  --gold-primary: #e5b869;
  --gold-light: #fcd34d;
  --gold-dark: #b4832c;
  --gold-subtle: rgba(229, 184, 105, 0.12);
  
  --violet-accent: #8b5cf6;
  --violet-subtle: rgba(139, 92, 246, 0.15);
  
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-inverse: #0a0b12;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(229, 184, 105, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  
  --transition: all 0.25s ease-in-out;
}

[data-theme="light"] {
  --bg-primary: #faf8f5;
  --bg-surface: #ffffff;
  --bg-card: #f3f0e8;
  --bg-card-hover: #ece6da;
  --bg-input: #ffffff;
  
  --border-color: rgba(184, 134, 11, 0.28);
  --border-glow: rgba(184, 134, 11, 0.5);
  
  --gold-primary: #b8860b;
  --gold-light: #d4af37;
  --gold-dark: #8c6508;
  --gold-subtle: rgba(184, 134, 11, 0.1);
  
  --violet-accent: #6d28d9;
  --violet-subtle: rgba(109, 40, 217, 0.1);
  
  --text-primary: #1a1e29;
  --text-secondary: #374151;
  --text-muted: #4b5563;
  --text-inverse: #ffffff;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 16px rgba(184, 134, 11, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#constellation-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.28;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2rem; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin-top: 1.5rem; }
h4 { font-size: 1.1rem; margin-top: 1.25rem; }

p {
  margin-bottom: 1.15rem;
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
}

code {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: var(--gold-primary);
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.tool-container {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  width: 100%;
}

.reading-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(250, 248, 245, 0.92);
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img,
.brand-logo-svg {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover .brand-logo-svg {
  transform: scale(1.02);
}

.brand-logo-svg .logo-adaptive-text {
  fill: var(--text-primary);
  transition: fill 0.3s ease;
}

[data-theme="light"] .brand-logo-svg .logo-adaptive-text {
  fill: #111827;
}

[data-theme="light"] .brand-logo-svg .logo-sub-text {
  fill: #4b5563;
}

[data-theme="dark"] .brand-logo-svg .logo-adaptive-text {
  fill: #f9fafb;
}

[data-theme="dark"] .brand-logo-svg .logo-sub-text {
  fill: #9ca3af;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-select:focus {
  border-color: var(--gold-primary);
}

.theme-toggle-btn {
  background: var(--bg-surface);
  color: var(--gold-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--gold-primary);
  background: var(--gold-subtle);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.4rem;
  cursor: pointer;
}

/* ==========================================================================
   5. Hero & Intro Section
   ========================================================================== */
.hero-section {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-subtle);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. Photoshoot Window Calculator Tool
   ========================================================================== */
.photoshot-calc-window {
  position: relative;
  background: linear-gradient(165deg, #1d1238 0%, #150d2a 50%, #0e081c 100%);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 20px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 40px rgba(168, 85, 247, 0.15);
  margin-bottom: 2.5rem;
  padding: 1.25rem 2rem 2.25rem;
  overflow: hidden;
  transition: var(--transition);
}

[data-theme="light"] .photoshot-calc-window {
  background: linear-gradient(165deg, #20133a 0%, #190e2e 50%, #120924 100%);
  border-color: rgba(147, 51, 234, 0.35);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.25), 0 0 30px rgba(236, 72, 153, 0.12);
  color: #f3f4f6;
}

[data-theme="light"] .photoshot-calc-window h2,
[data-theme="light"] .photoshot-calc-window .hero-subtitle {
  color: #f3f4f6;
}

/* 4 Camera / Viewfinder Corner Brackets */
.corner-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 2;
}

.corner-bracket.top-left {
  top: 14px;
  left: 14px;
  border-top: 3px solid #ff5722;
  border-left: 3px solid #ff5722;
  border-top-left-radius: 6px;
}

.corner-bracket.top-right {
  top: 14px;
  right: 14px;
  border-top: 3px solid #ff5722;
  border-right: 3px solid #ff5722;
  border-top-right-radius: 6px;
}

.corner-bracket.bottom-left {
  bottom: 14px;
  left: 14px;
  border-bottom: 3px solid #ff5722;
  border-left: 3px solid #ff5722;
  border-bottom-left-radius: 6px;
}

.corner-bracket.bottom-right {
  bottom: 14px;
  right: 14px;
  border-bottom: 3px solid #ff5722;
  border-right: 3px solid #ff5722;
  border-bottom-right-radius: 6px;
}

/* Window Top Bar with OS dots, Title, and Live Blinking Dot */
.calc-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.25rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.calc-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.window-dot.red { background-color: #ff5f56; }
.window-dot.yellow { background-color: #ffbd2e; }
.window-dot.green { background-color: #27c93f; }

.calc-window-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-align: center;
}

.calc-window-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #34d399;
}

/* Live Blinking Dot */
.live-blinking-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: liveBlinkPulse 1.4s infinite ease-in-out;
}

@keyframes liveBlinkPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 2px #10b981;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px #34d399, 0 0 20px #10b981;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 2px #10b981;
  }
}

.calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.calculator-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.date-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.input-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  letter-spacing: 0.5px;
}

/* Photoshot Window Form Inputs */
.photoshot-calc-window .input-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.photoshot-calc-window .input-icon {
  font-size: 0.95rem;
}

.form-select, .form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.photoshot-calc-window .form-select,
.photoshot-calc-window .form-input {
  background: rgba(15, 10, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-size: 1rem;
  transition: var(--transition);
}

.photoshot-calc-window .form-select option {
  background: #18112e;
  color: #ffffff;
}

.form-select:focus, .form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

.photoshot-calc-window .form-select:focus,
.photoshot-calc-window .form-input:focus {
  border-color: #ec4899;
  background: rgba(22, 14, 40, 0.95);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.28);
}

.calc-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-dark));
  color: #0f111d;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(229, 184, 105, 0.35);
  transition: var(--transition);
}

.calc-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 184, 105, 0.5);
}

.calc-submit-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

/* Vibrant CTA Button Matching User Specification */
.vibrant-btn {
  width: 100%;
  background: linear-gradient(90deg, #ec4899 0%, #ff5722 55%, #f59e0b 100%);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 1.05rem 1.75rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 28px -4px rgba(255, 87, 34, 0.48), 0 4px 12px rgba(236, 72, 153, 0.3);
  transition: all 0.25s ease;
  overflow: hidden;
}

.vibrant-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(255, 87, 34, 0.65), 0 6px 16px rgba(236, 72, 153, 0.4);
  filter: brightness(1.06);
}

.vibrant-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 6px 18px -2px rgba(255, 87, 34, 0.45);
}

.vibrant-btn .btn-sparkle {
  font-size: 1.25rem;
  margin-right: 0.6rem;
}

.vibrant-btn .btn-arrow {
  margin-left: auto;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.vibrant-btn:hover:not(:disabled) .btn-arrow {
  transform: translateX(4px);
}

/* Social Proof Bar */
.social-proof-bar {
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 1rem;
}

.social-proof-bar strong {
  color: #f472b6;
}

.calc-spinner {
  display: none;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

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

.form-error-alert {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: left;
}

/* ==========================================================================
   7. Result Panel
   ========================================================================== */
#result-container {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3.5rem;
  scroll-margin-top: 85px;
}

.result-header-bar {
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.result-dob-tag {
  font-size: 1.05rem;
  color: var(--gold-primary);
  margin-bottom: 0;
}

.result-cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pair-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.triad-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.single-grid { grid-template-columns: minmax(300px, 500px); justify-content: center; }

.result-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-role-badge {
  background: var(--gold-subtle);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.card-num-roman {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.card-illustration-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
}

.card-art-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 240 / 360;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(229, 184, 105, 0.4);
  box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.6), 0 0 18px rgba(229, 184, 105, 0.18);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card-art-img:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.75), 0 0 26px rgba(229, 184, 105, 0.35);
}

.card-hero-showcase {
  display: flex;
  justify-content: center;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.card-hero-frame {
  display: inline-block;
  position: relative;
  padding: 10px;
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.15), rgba(25, 17, 45, 0.6));
  border: 1px solid rgba(229, 184, 105, 0.35);
  border-radius: 18px;
  box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.6), 0 0 35px rgba(229, 184, 105, 0.15);
}

.card-hero-img {
  max-width: 220px;
  height: auto;
  aspect-ratio: 240 / 360;
  border-radius: 10px;
  display: block;
}

/* Pair Hero Showcase */
.pair-hero-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto 2.5rem;
  flex-wrap: wrap;
}

.pair-card-item {
  text-align: center;
}

.pair-card-item .card-role-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.pair-plus-symbol {
  font-size: 2.2rem;
  color: var(--gold-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
}

.year-card-art-col .card-art-img {
  max-width: 180px;
}

.card-mini-art {
  width: 90px;
  height: 130px;
  background: linear-gradient(145deg, #1f2238, #0f111d);
  border: 2px solid var(--gold-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: relative;
}

.card-inner-frame {
  width: 78px;
  height: 118px;
  border: 1px dashed rgba(229, 184, 105, 0.5);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.card-art-number {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 6px;
}

.card-name {
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.card-name a {
  color: inherit;
  text-decoration: none;
}

.card-short-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1rem;
}

.card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.kw-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-details-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 0.9rem;
  flex-grow: 1;
}

.card-details-section h4 {
  font-size: 0.92rem;
  color: var(--gold-primary);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.card-details-section ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.card-details-section li {
  margin-bottom: 0.25rem;
}

.card-reflection-quote {
  background: var(--gold-subtle);
  border-left: 3px solid var(--gold-primary);
  padding: 0.6rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.card-guide-link {
  margin-top: 1.25rem;
  text-align: center;
}

.btn-card-guide {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-primary);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-card-guide:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  text-decoration: none;
}

/* Action Toolbar */
.result-actions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.action-btn.highlight {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Steps Breakdown */
.calc-steps-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.steps-meta {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.steps-list {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.steps-list li {
  margin-bottom: 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
}

/* Comparison Table */
.comparison-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.comp-desc {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comp-table th, .comp-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.comp-table th {
  background: var(--bg-surface);
  color: var(--gold-primary);
  font-weight: 600;
}

.comp-table tr:hover td {
  background: var(--bg-card-hover);
}

.badge-gold {
  display: inline-block;
  background: var(--gold-subtle);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.method-diff-note {
  background: var(--bg-surface);
  border-left: 3px solid var(--gold-primary);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem;
}

.method-diff-note h4 {
  margin-top: 0;
  color: var(--text-primary);
}

/* ==========================================================================
   8. Feature Cards Grid
   ========================================================================== */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}

.feature-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.feature-card-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   9. SEO Content Typography & Tables
   ========================================================================== */
.seo-content-article {
  margin: 3.5rem 0;
  line-height: 1.75;
}

.seo-content-article h2 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.seo-content-article ul, .seo-content-article ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.seo-content-article li {
  margin-bottom: 0.4rem;
}

.seo-content-article blockquote {
  border-left: 3px solid var(--gold-primary);
  background: var(--bg-surface);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
}

.breadcrumbs-nav {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs-nav a {
  color: var(--text-muted);
}

.breadcrumbs-nav a:hover {
  color: var(--gold-primary);
}

/* ==========================================================================
   10. User Reviews Carousel
   ========================================================================== */
.reviews-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.carousel-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.carousel-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.reviews-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.reviews-carousel::-webkit-scrollbar {
  height: 6px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.review-archetype {
  font-size: 0.78rem;
  color: var(--gold-primary);
}

/* ==========================================================================
   11. FAQ Accordion
   ========================================================================== */
.faq-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.faq-accordion {
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--gold-primary);
}

.faq-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
}

.faq-icon {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

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

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

.faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   12. Disclaimer & Footer
   ========================================================================== */
.site-disclaimer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
}

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

.footer-col h4 {
  color: var(--gold-primary);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   13. Year Card Tool Specifics
   ========================================================================== */
.year-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.year-result-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.year-meta-sub {
  color: var(--gold-primary);
  font-size: 0.95rem;
}

.year-card-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.year-card-art-col {
  flex-shrink: 0;
}

.year-card-info-col h3 {
  margin-top: 0;
  color: var(--gold-primary);
}

.year-card-steps {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  margin: 0.85rem 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   14. Print Stylesheet
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  #constellation-canvas,
  .site-header,
  .hero-section,
  .calculator-card,
  .result-actions-toolbar,
  .feature-cards-grid,
  .seo-content-article,
  .reviews-section,
  .faq-section,
  .site-disclaimer,
  .site-footer,
  .toast-notification {
    display: none !important;
  }

  #result-container {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .result-card-box {
    border: 1px solid #333 !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid;
  }

  .card-name, .card-role-badge, .card-num-roman {
    color: #000 !important;
  }
}

/* ==========================================================================
   15. Mobile & Responsive Queries
   ========================================================================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .photoshot-calc-window {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .date-inputs-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .calculator-card, #result-container {
    padding: 1.5rem;
  }

  .pair-grid, .triad-grid, .single-grid {
    grid-template-columns: 1fr;
  }

  .pair-hero-showcase {
    gap: 1rem;
  }

  .pair-card-item .card-hero-img {
    max-width: 150px;
  }

  .year-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0 1.5rem;
  }

  .photoshot-calc-window {
    padding: 1rem 0.85rem 1.5rem;
    border-radius: 16px;
  }

  .corner-bracket {
    width: 16px;
    height: 16px;
  }

  .corner-bracket.top-left { top: 8px; left: 8px; }
  .corner-bracket.top-right { top: 8px; right: 8px; }
  .corner-bracket.bottom-left { bottom: 8px; left: 8px; }
  .corner-bracket.bottom-right { bottom: 8px; right: 8px; }

  .calc-window-title {
    font-size: 0.75rem;
  }

  .vibrant-btn {
    font-size: 1rem;
    padding: 0.95rem 1.25rem;
  }

  .calculator-card, #result-container {
    padding: 1.15rem;
  }

  .result-actions-toolbar {
    flex-direction: column;
    width: 100%;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }

  .card-hero-img {
    max-width: 180px;
  }

  .pair-card-item .card-hero-img {
    max-width: 125px;
  }

  .pair-plus-symbol {
    font-size: 1.5rem;
  }
}
