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

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
  color-scheme: dark;
  /* 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"] {
  color-scheme: 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%;
  overflow-x: hidden;
  width: 100%;
  max-width: 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;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

#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);
  overflow-wrap: anywhere;
  word-break: break-word;
}

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;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(1.4rem, 5.2vw, 2.7rem); }
h2 { font-size: clamp(1.2rem, 3.8vw, 1.9rem); margin-top: 2rem; }
h3 { font-size: clamp(1.05rem, 2.8vw, 1.4rem); margin-top: 1.5rem; }
h4 { font-size: clamp(0.95rem, 2.2vw, 1.15rem); margin-top: 1.25rem; }

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

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);
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  max-width: 100% !important;
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   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(255, 255, 255, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

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

.brand-logo-link,
.brand-logo-link:hover,
.brand-logo-link:focus,
.brand-logo-link:active,
.brand-logo-link:visited {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  outline: none;
}

.brand-logo-link:hover .brand-title,
.brand-logo-link:hover .brand-subtitle,
.brand-logo-link:focus .brand-title,
.brand-logo-link:focus .brand-subtitle,
.brand-logo-link:active .brand-title,
.brand-logo-link:active .brand-subtitle,
.brand-title,
.brand-subtitle {
  text-decoration: none !important;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
}

.brand-icon-svg {
  width: 32px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none !important;
}

.brand-title {
  font-family: Georgia, Garamond, 'Cinzel', serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-decoration: none !important;
}

.brand-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.6px;
  white-space: nowrap;
  text-decoration: none !important;
}

[data-theme="light"] .brand-title {
  color: #111827;
}

[data-theme="light"] .brand-subtitle {
  color: #4b5563;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link.active {
  background: #2a2046;
  color: #d8b4fe;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .nav-link {
  color: #4b5563;
}

[data-theme="light"] .nav-link:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-link.active {
  background: #ede9fe;
  color: #6d28d9;
}

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

.lang-select {
  color-scheme: dark;
  background-color: #14172a;
  color: #f0f2f8;
  border: 1px solid rgba(229, 184, 105, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-select option {
  background-color: #14172a !important;
  color: #f0f2f8 !important;
  padding: 6px 10px;
}

.lang-select option:checked,
.lang-select option:hover,
.lang-select option:focus {
  background-color: #222642 !important;
  color: #fcd34d !important;
}

[data-theme="light"] .lang-select {
  color-scheme: light;
  background-color: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}

[data-theme="light"] .lang-select option {
  background-color: #ffffff !important;
  color: #111827 !important;
  padding: 6px 10px;
}

[data-theme="light"] .lang-select option:checked,
[data-theme="light"] .lang-select option:hover,
[data-theme="light"] .lang-select option:focus {
  background-color: #f3f4f6 !important;
  color: #b45309 !important;
}

.lang-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(229, 184, 105, 0.25);
}

.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: 3.25rem 0 2rem;
  text-align: center;
}

main > .hero-section:first-child {
  padding-top: 3.5rem;
}

.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-top: 0.5rem;
  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, #141124 0%, #0d0c18 55%, #080712 100%);
  border: 1px solid rgba(229, 184, 105, 0.32);
  border-radius: 20px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 184, 105, 0.08);
  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, #1b1730 0%, #141124 55%, #0e0c1a 100%);
  border-color: rgba(229, 184, 105, 0.45);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.3), 0 0 25px rgba(229, 184, 105, 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 #e5b869;
  border-left: 3px solid #e5b869;
  border-top-left-radius: 6px;
  box-shadow: -1px -1px 8px rgba(229, 184, 105, 0.4);
}

.corner-bracket.top-right {
  top: 14px;
  right: 14px;
  border-top: 3px solid #e5b869;
  border-right: 3px solid #e5b869;
  border-top-right-radius: 6px;
  box-shadow: 1px -1px 8px rgba(229, 184, 105, 0.4);
}

.corner-bracket.bottom-left {
  bottom: 14px;
  left: 14px;
  border-bottom: 3px solid #e5b869;
  border-left: 3px solid #e5b869;
  border-bottom-left-radius: 6px;
  box-shadow: -1px 1px 8px rgba(229, 184, 105, 0.4);
}

.corner-bracket.bottom-right {
  bottom: 14px;
  right: 14px;
  border-bottom: 3px solid #e5b869;
  border-right: 3px solid #e5b869;
  border-bottom-right-radius: 6px;
  box-shadow: 1px 1px 8px rgba(229, 184, 105, 0.4);
}

/* 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: Georgia, Garamond, serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e5b869;
  letter-spacing: 0.8px;
  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;
  }
}

/* ==========================================================================
   Typewriter Running Text Heading & Blinking Cursor
   ========================================================================== */
.typewriter-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 2.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
}

.typewriter-text {
  display: inline;
  color: inherit;
  font-family: Georgia, Garamond, serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

[data-theme="light"] .photoshot-calc-window .typewriter-text {
  color: #f3f4f6;
}

.typewriter-cursor {
  display: inline-block;
  color: #fcd34d;
  font-weight: 300;
  font-size: 1.15em;
  margin-left: 3px;
  line-height: 1;
  vertical-align: baseline;
  user-select: none;
  animation: typewriterCursorBlink 0.85s infinite;
}

@keyframes typewriterCursorBlink {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(252, 211, 77, 0.9);
  }
  50% {
    opacity: 0;
    text-shadow: none;
  }
}

.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: #e5b869;
  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(12, 10, 22, 0.85);
  border: 1px solid rgba(229, 184, 105, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-size: 1rem;
  transition: var(--transition);
}

.photoshot-calc-window .form-select option {
  background: #141124;
  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: #e5b869;
  background: rgba(18, 15, 32, 0.95);
  box-shadow: 0 0 0 3px rgba(229, 184, 105, 0.25);
}

.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 in Royal Celestial Gold */
.vibrant-btn {
  width: 100%;
  max-width: 380px;
  margin: 0.5rem auto 0;
  background: linear-gradient(135deg, #fcd34d 0%, #e5b869 45%, #b4832c 100%);
  color: #0b0c16 !important;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(229, 184, 105, 0.35), 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: all 0.22s ease;
  overflow: hidden;
}

.vibrant-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(229, 184, 105, 0.55);
  filter: brightness(1.04);
}

.vibrant-btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(229, 184, 105, 0.3);
}

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

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

.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;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(229, 184, 105, 0.25);
}

.card-role-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.card-role-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(229, 184, 105, 0.12);
  color: var(--gold-primary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(229, 184, 105, 0.4);
  line-height: 1.25;
}

.card-role-subtitle {
  font-size: 0.76rem;
  color: #a1a1aa;
  line-height: 1.35;
  font-weight: 500;
}

.card-roman-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.14) 0%, rgba(20, 22, 38, 0.95) 100%);
  border: 1px solid rgba(229, 184, 105, 0.45);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  min-width: 62px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 10px rgba(229, 184, 105, 0.12);
  text-align: center;
}

.card-roman-pill .roman-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #d4af37;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.card-roman-pill .roman-value {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(252, 211, 77, 0.35);
}

.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-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin: 0.6rem auto 0.4rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.card-name a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, #fef08a 0%, #fcd34d 50%, #e5b869 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.2s ease;
}

.card-name a:hover {
  opacity: 0.85;
}

.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-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(229, 184, 105, 0.35);
  border-radius: 8px;
  background: rgba(229, 184, 105, 0.05);
  transition: all 0.2s ease;
}

.btn-card-guide:hover {
  background: rgba(229, 184, 105, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  text-decoration: none;
  transform: translateY(-1px);
}

/* 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 rgba(229, 184, 105, 0.28);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(229, 184, 105, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-1px);
}

.action-btn.highlight {
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.2), rgba(139, 92, 246, 0.15));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(229, 184, 105, 0.2);
}

.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%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  position: relative;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(229, 184, 105, 0.35);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

.comp-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.comp-table th, .comp-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.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 {
  max-width: 860px;
  margin: 3.5rem auto !important;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.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);
}

.seo-content-article .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  display: block;
}

.seo-content-article table,
.seo-content-article table.comp-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  display: table !important;
}

.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 Marquee (Auto-scrolling Horizontal Format)
   ========================================================================== */
.reviews-section {
  padding: 3.5rem 0 3rem;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.reviews-main-title {
  text-align: center;
  margin: 0.5rem auto 0.75rem;
}

.reviews-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.25rem 0;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.reviews-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marqueeReviews 42s linear infinite;
  will-change: transform;
}

.reviews-marquee-wrapper:hover .reviews-track,
.reviews-marquee-wrapper:focus-within .reviews-track,
.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeReviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  flex: 0 0 320px;
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md), 0 0 12px rgba(229, 184, 105, 0.15);
}

.review-user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.25), rgba(139, 92, 246, 0.3));
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(229, 184, 105, 0.2);
}

.review-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.review-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.review-role {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-archetype-tag {
  display: inline-block;
  background: rgba(229, 184, 105, 0.08);
  border: 1px solid rgba(229, 184, 105, 0.22);
  color: var(--gold-primary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
  width: fit-content;
}

.review-stars {
  color: #fcd34d;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 0.45rem;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
  flex-grow: 1;
}

/* ==========================================================================
   11. FAQ Accordion
   ========================================================================== */
.faq-section {
  margin-top: 4.5rem;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid rgba(229, 184, 105, 0.3);
  position: relative;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.7);
}

.faq-hero-tag {
  color: #fcd34d !important;
  border-color: rgba(252, 211, 77, 0.5) !important;
  background: rgba(252, 211, 77, 0.12) !important;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.faq-yellow-text {
  color: #fcd34d !important;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.faq-main-title {
  text-align: center;
  margin: 0.5rem auto 0.75rem;
  color: #fcd34d !important;
  background: linear-gradient(135deg, #fef08a 0%, #fcd34d 50%, #e5b869 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.faq-accordion {
  margin: 1.75rem auto 0;
  max-width: 860px;
  width: 100%;
}

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

.faq-item.open {
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(229, 184, 105, 0.15);
}

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

.faq-header:hover {
  color: var(--gold-primary);
}

.faq-question {
  flex-grow: 1;
  line-height: 1.35;
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-primary);
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(229, 184, 105, 0.08);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(229, 184, 105, 0.2);
  color: var(--gold-light);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==========================================================================
   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) {
  .container {
    padding: 0 0.85rem;
  }

  .header-inner {
    height: 56px;
    gap: 0.5rem;
  }

  .brand-logo-wrap {
    gap: 0.45rem;
  }

  .brand-icon-svg {
    width: 26px;
    height: 30px;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.4px;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .lang-select {
    padding: 0.22rem 0.4rem;
    font-size: 0.75rem;
    max-width: 78px;
    border-radius: 6px;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0.25rem;
  }

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

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

  .photoshot-calc-window {
    padding: 1.15rem 1.15rem 1.65rem;
  }

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

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

  .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;
  }

  .seo-content-article {
    margin: 2.25rem auto !important;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .seo-content-article {
    margin: 1.75rem auto !important;
    padding: 0 0.75rem;
    line-height: 1.68;
  }

  .seo-content-article h2 {
    margin-top: 1.5rem;
    padding-bottom: 0.35rem;
  }

  .seo-content-article p,
  .seo-content-article li {
    font-size: 0.92rem;
  }

  .seo-content-article blockquote {
    padding: 0.85rem 1rem;
    margin: 1.15rem 0;
    font-size: 0.9rem;
  }

  .hero-section {
    padding: 2.75rem 0 1.25rem;
  }

  main > .hero-section:first-child {
    padding-top: 3.25rem;
  }

  .hero-tag {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .header-inner {
    height: 52px;
    gap: 0.35rem;
  }

  .brand-logo-wrap {
    gap: 0.4rem;
  }

  .brand-icon-svg {
    width: 24px;
    height: 28px;
  }

  .brand-title {
    font-size: 0.82rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .lang-select {
    max-width: 70px;
    font-size: 0.72rem;
    padding: 0.2rem 0.3rem;
  }

  .theme-toggle-btn, .mobile-menu-toggle {
    width: 30px;
    height: 30px;
  }

  .nav-menu {
    top: 52px;
  }

  .photoshot-calc-window {
    padding: 0.95rem 0.8rem 1.35rem;
    border-radius: 16px;
  }

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

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

  .calc-window-title {
    font-size: 0.74rem;
    letter-spacing: 0.5px;
  }

  .calc-window-dots {
    gap: 4px;
  }

  .window-dot {
    width: 8px;
    height: 8px;
  }

  .calc-window-status {
    font-size: 0.68rem;
  }

  .vibrant-btn {
    font-size: 0.88rem;
    padding: 0.65rem 1rem;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }

  .social-proof-bar {
    font-size: 0.75rem;
  }

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

  .reviews-section {
    padding: 2.25rem 0 2rem;
  }

  .faq-section {
    margin-top: 3.5rem !important;
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .reviews-main-title, .faq-main-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .review-card {
    flex: 0 0 270px;
    width: 270px;
    padding: 1.1rem;
  }

  .review-text {
    font-size: 0.84rem;
  }

  .faq-header {
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
  }

  .faq-content {
    padding: 0 0.95rem 0.95rem;
    font-size: 0.88rem;
  }

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

  .action-btn {
    width: 100%;
    justify-content: center;
    padding: 0.55rem;
    font-size: 0.82rem;
  }

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

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

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

  .typewriter-heading {
    min-height: 2.8rem;
    font-size: 1.15rem;
  }
}

@media (max-width: 380px) {
  .container,
  .reading-container,
  .tool-container {
    padding: 0 0.65rem;
  }

  .header-inner {
    gap: 0.25rem;
  }

  .brand-logo-wrap {
    gap: 0.35rem;
  }

  .brand-icon-svg {
    width: 22px;
    height: 26px;
  }

  .brand-title {
    font-size: 0.76rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
  }

  .lang-select {
    max-width: 65px;
    font-size: 0.7rem;
    padding: 0.18rem 0.25rem;
  }

  .theme-toggle-btn, .mobile-menu-toggle {
    width: 28px;
    height: 28px;
  }

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

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

  .typewriter-heading {
    min-height: 3.2rem;
    font-size: 1.05rem;
  }

  main > .hero-section:first-child {
    padding-top: 3rem;
  }

  .hero-tag {
    margin-top: 0.65rem;
  }
}
