/* ==========================================================================
   ZodiacDuo - Free Cosmic Zodiac Compatibility
   Theme System, Celestial Glassmorphism & Responsive Layout
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Element Colors (Constant) */
  --color-fire: #FF5E36;
  --color-fire-glow: rgba(255, 94, 54, 0.25);
  --color-earth: #10B981;
  --color-earth-glow: rgba(16, 185, 129, 0.25);
  --color-air: #38BDF8;
  --color-air-glow: rgba(56, 189, 248, 0.25);
  --color-water: #818CF8;
  --color-water-glow: rgba(129, 140, 248, 0.25);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --container-max: 1200px;
}

/* --- Dark Theme (Default) --- */
[data-theme="dark"] {
  --bg-primary: #090B14;
  --bg-secondary: #101426;
  --bg-card: rgba(19, 24, 46, 0.65);
  --bg-card-hover: rgba(26, 33, 62, 0.85);
  --bg-input: rgba(14, 18, 36, 0.7);
  --bg-pill: rgba(255, 255, 255, 0.08);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #9D7BFF;
  --border-glow: rgba(157, 123, 255, 0.4);

  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  --accent-gold: #F5C518;
  --accent-gold-glow: rgba(245, 197, 24, 0.35);
  --accent-violet: #8B5CF6;
  --accent-violet-glow: rgba(139, 92, 246, 0.4);
  --accent-cyan: #06B6D4;

  --gradient-cosmic: linear-gradient(135deg, #F5C518 0%, #D946EF 50%, #6366F1 100%);
  --gradient-btn: linear-gradient(135deg, #7C3AED 0%, #C026D3 50%, #F59E0B 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));

  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(124, 58, 237, 0.3);
  --glass-blur: blur(16px);
  --canvas-opacity: 0.85;
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg-primary: #F8F9FE;
  --bg-secondary: #EEF2FF;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-input: #FFFFFF;
  --bg-pill: rgba(0, 0, 0, 0.05);

  --border-subtle: rgba(99, 102, 241, 0.15);
  --border-focus: #7C3AED;
  --border-glow: rgba(124, 58, 237, 0.25);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --accent-gold: #D97706;
  --accent-gold-glow: rgba(217, 119, 6, 0.25);
  --accent-violet: #7C3AED;
  --accent-violet-glow: rgba(124, 58, 237, 0.25);
  --accent-cyan: #0284C7;

  --gradient-cosmic: linear-gradient(135deg, #B45309 0%, #9333EA 50%, #4F46E5 100%);
  --gradient-btn: linear-gradient(135deg, #6D28D9 0%, #A21CAF 50%, #D97706 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 0, 0, 0.05));

  --shadow-card: 0 16px 36px -8px rgba(79, 70, 229, 0.08);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.15);
  --glass-blur: blur(12px);
  --canvas-opacity: 0.35;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  /* Instant theme switching with zero lag */
}

/* Twinkling Starfield Canvas */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: var(--canvas-opacity);
}

/* Common Layout Helpers */
.hidden {
  display: none !important;
}

.gradient-text {
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Slide-Out Mobile Navigation Drawer (Slides from Left) --- */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 295px;
  max-width: 85vw;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.drawer-close-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.drawer-nav-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  gap: 0.4rem;
  flex: 1;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.drawer-item:hover,
.drawer-item.active {
  background: var(--bg-pill);
  color: var(--text-primary);
  border-left: 3px solid var(--accent-violet);
}

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

.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-pill-info {
  font-size: 0.82rem;
  color: var(--accent-gold);
  text-align: center;
  font-weight: 600;
}

/* --- Header / Navigation Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(9, 11, 20, 0.88);
  border-bottom: 1px solid var(--border-subtle);
}

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

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto; /* Pushes sections navigation to middle-to-right */
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.65rem;
  animation: pulseStar 3s ease-in-out infinite;
}

@keyframes pulseStar {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 6px var(--accent-gold)); }
  50% { transform: scale(1.15) rotate(15deg); filter: drop-shadow(0 0 16px var(--accent-gold)); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

.theme-toggle-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--border-focus);
}

[data-theme="dark"] .light-icon { display: block; }
[data-theme="dark"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: none; }
[data-theme="light"] .dark-icon { display: block; }

.mobile-menu-toggle {
  display: none;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: transform var(--transition-fast);
}

.mobile-menu-toggle:hover {
  border-color: var(--border-focus);
  transform: scale(1.05);
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* --- Main Content Container --- */
.main-content {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
}

/* --- Glass Panel Common Class --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* --- Hero Section --- */
.hero-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-sparkle {
  color: var(--accent-gold);
  animation: pulseStar 2s infinite;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Preset Chips */
.preset-chips-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.preset-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.preset-chip {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  border-color: var(--border-focus);
  background: rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

/* --- Calculator Card --- */
.calculator-wrapper {
  margin-bottom: 4rem;
}

.calculator-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-violet-glow) 0%, transparent 70%);
  pointer-events: none;
}

.calc-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.calc-heading {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.calc-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Partners Grid (2 Columns + Match Connector) */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.partner-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition-fast);
}

[data-theme="light"] .partner-card {
  background: rgba(255, 255, 255, 0.6);
}

.partner-card:hover {
  border-color: var(--border-focus);
}

.partner-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.partner-name-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.partner-name-input:focus {
  border-bottom-color: var(--accent-gold);
}

.partner-name-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.95rem;
}

/* Mode Switch Tabs */
.mode-tabs {
  display: flex;
  background: var(--bg-pill);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.mode-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-tab.active {
  background: var(--accent-violet);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-violet-glow);
}

/* Input Fields */
.input-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.styled-select,
.styled-date-input,
.styled-input,
.styled-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.styled-select:focus,
.styled-date-input:focus,
.styled-input:focus,
.styled-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--border-glow);
}

.styled-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.input-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Sign Preview Card in Partner Column */
.sign-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
}

.sign-preview-symbol {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--accent-gold-glow));
}

.sign-preview-info {
  display: flex;
  flex-direction: column;
}

.sign-preview-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}

.sign-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* Element Badges */
.element-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.element-fire {
  background: var(--color-fire-glow);
  color: var(--color-fire);
  border: 1px solid rgba(255, 94, 54, 0.4);
}

.element-earth {
  background: var(--color-earth-glow);
  color: var(--color-earth);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.element-air {
  background: var(--color-air-glow);
  color: var(--color-air);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.element-water {
  background: var(--color-water-glow);
  color: var(--color-water);
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.date-tag {
  color: var(--text-muted);
}

/* Match Connector */
.match-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.connector-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-violet-glow);
  animation: pulseConnector 2.5s infinite;
}

@keyframes pulseConnector {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--accent-violet-glow); }
  50% { transform: scale(1.08); box-shadow: 0 0 30px var(--accent-gold-glow); }
}

.connector-icon {
  font-size: 1.5rem;
  color: #fff;
}

.connector-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Submit Row */
.calc-submit-row {
  text-align: center;
}

.cosmic-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--gradient-btn);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.1rem 2.75rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.cosmic-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px -5px rgba(217, 70, 239, 0.6);
}

.cosmic-cta-btn:active {
  transform: translateY(-1px);
}

/* --- RESULTS SECTION --- */
.results-section {
  margin-bottom: 5rem;
  animation: fadeIn 0.6s ease-out;
}

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

.results-container {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-top: 4px solid var(--accent-gold);
}

/* Top Banner */
.result-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.pair-names-display {
  font-size: 0.95rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.result-pair-signs {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.elemental-dynamic-tag {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Radial Score Card */
.score-radial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.score-circle-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-bg {
  fill: none;
  stroke: var(--bg-pill);
  stroke-width: 12;
}

.score-bar {
  fill: none;
  stroke: url(#scoreGrad);
  stroke: var(--accent-gold);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-number-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-percent {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}

.score-pct-sign {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.score-subtext {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.score-bracket-pill {
  background: var(--gradient-btn);
  color: #fff;
  padding: 0.35rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px var(--accent-violet-glow);
}

/* Quick Summary Box */
.result-summary-box {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-violet);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-sm);
}

.box-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.summary-paragraph {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Dimension Scores Grid */
.section-subheading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.dimension-card {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.dim-icon {
  font-size: 1.1rem;
  margin-right: 0.4rem;
}

.dim-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.dim-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.dim-meter-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="light"] .dim-meter-track {
  background: rgba(0, 0, 0, 0.08);
}

.dim-meter-fill {
  height: 100%;
  background: var(--gradient-btn);
  border-radius: 9999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Deep Dive 2 Columns: Working vs Fixing */
.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.analysis-box {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.working-box {
  border-top: 4px solid var(--color-earth);
}

.fixing-box {
  border-top: 4px solid var(--accent-gold);
}

.box-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.box-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.box-icon {
  font-size: 1.5rem;
}

.analysis-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.analysis-list li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.working-box .analysis-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--color-earth);
  font-weight: 900;
  font-size: 1.1rem;
}

.fixing-box .analysis-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 1rem;
}

.analysis-list li strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

/* Result Action Bar */
.result-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.btn-secondary {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--border-focus);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--accent-violet-glow);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-violet-glow);
}

/* Toast Message */
#toast-message {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.toast-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* --- SCORE BRACKETS REFERENCE TABLE SECTION --- */
.score-reference-section {
  margin-bottom: 5rem;
}

.section-header-centered {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
}

.section-tag {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.table-responsive {
  overflow-x: auto;
  padding: 1.5rem;
}

.cosmic-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cosmic-table th {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.cosmic-table td {
  padding: 1.35rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  vertical-align: top;
}

.score-row {
  transition: background-color var(--transition-fast);
}

.score-row:hover {
  background-color: var(--bg-pill);
}

.score-row.highlighted {
  background-color: rgba(245, 197, 24, 0.12);
  border-left: 4px solid var(--accent-gold);
}

.table-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.range-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.badge-tier-5 { background: rgba(16, 185, 129, 0.2); color: #10B981; border: 1px solid #10B981; }
.badge-tier-4 { background: rgba(56, 189, 248, 0.2); color: #38BDF8; border: 1px solid #38BDF8; }
.badge-tier-3 { background: rgba(139, 92, 246, 0.2); color: #A78BFA; border: 1px solid #8B5CF6; }
.badge-tier-2 { background: rgba(245, 158, 11, 0.2); color: #F59E0B; border: 1px solid #F59E0B; }
.badge-tier-1 { background: rgba(239, 68, 68, 0.2); color: #EF4444; border: 1px solid #EF4444; }

/* --- 12 ZODIAC SIGNS COMPENDIUM --- */
.signs-directory-section {
  margin-bottom: 4rem;
}

.signs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.sign-compendium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.sign-compendium-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: 0 12px 30px var(--shadow-glow);
}

.sign-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sign-card-symbol {
  font-size: 2.2rem;
  line-height: 1;
}

.sign-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.sign-card-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sign-card-traits {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sign-card-action {
  font-size: 0.8rem;
  color: var(--accent-violet);
  font-weight: 600;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* --- DEDICATED INFO PAGES (About, Privacy, Terms, Contact) --- */
.page-view {
  animation: fadeIn 0.4s ease-out;
}

.info-page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-content {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.info-content h2 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.45rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.method-card {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.method-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.method-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-back-cta {
  margin-top: 3rem;
  text-align: center;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-form-card,
.contact-faq-card {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-form-card h3,
.contact-faq-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--color-earth);
  color: var(--color-earth);
}

/* Contact Info Card (Replaces old Contact FAQ) */
.contact-info-card {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.support-points-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.support-icon {
  font-size: 1.5rem;
  line-height: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-point strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.support-point p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.inline-cosmic-link {
  color: var(--accent-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.inline-cosmic-link:hover {
  color: var(--accent-gold);
}

/* --- SEO MASTERCLASS GUIDE SECTION --- */
.seo-guide-section {
  margin-bottom: 5rem;
}

.guide-container {
  padding: 3.5rem 3rem;
  border-left: 4px solid var(--accent-violet);
}

.guide-article {
  max-width: 960px;
  margin: 2rem auto 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-article h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

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

.lead-paragraph {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.guide-callout-box {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.98rem;
}

.guide-callout-box .callout-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.guide-bracket-breakdown,
.element-alchemy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.5rem 0 1rem 0;
}

.guide-bracket-breakdown li,
.element-alchemy-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.98rem;
}

.guide-bracket-breakdown li::before,
.element-alchemy-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-size: 1rem;
}

.chart-aspects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.chart-aspect-card {
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.chart-aspect-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.chart-aspect-card strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
}

.chart-aspect-card span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --- DEDICATED MAIN PAGE FAQ SECTION --- */
.main-faq-section {
  margin-bottom: 5rem;
}

.faq-container {
  padding: 3.5rem 3rem;
  border-top: 4px solid var(--accent-gold);
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 960px;
  margin: 2rem auto 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-item.open {
  border-color: var(--border-focus);
  box-shadow: 0 4px 20px var(--shadow-glow);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
  gap: 1rem;
}

.faq-trigger:hover {
  color: var(--accent-violet);
}

.faq-chevron {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-gold);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-content p strong {
  color: var(--text-primary);
}

.faq-item.open .faq-content {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* --- FOOTER --- */
.site-footer {
  position: relative;
  z-index: 10;
  background: rgba(8, 10, 18, 0.85);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
  padding: 4rem 1.5rem 2rem 1.5rem;
}

[data-theme="light"] .site-footer {
  background: rgba(238, 242, 255, 0.85);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-group h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

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

.element-badges-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.footer-sub-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.dot-separator {
  color: var(--border-subtle);
}

/* --- RESPONSIVE MEDIA QUERIES & MOBILE OPTIMIZATIONS --- */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }

  .header-container {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
    grid-column: 1;
    justify-self: start;
  }

  .brand-logo {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .brand-tagline {
    display: none;
  }
}

@media (max-width: 860px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .match-connector {
    flex-direction: row;
    margin: 0.25rem 0;
  }

  .connector-circle {
    width: 48px;
    height: 48px;
  }

  .connector-icon {
    font-size: 1.25rem;
  }

  .deep-dive-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .guide-container,
  .faq-container {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  .brand-icon {
    font-size: 1.4rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-section {
    margin-bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.3rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .preset-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  /* Form inputs optimized for touch and preventing iOS zoom */
  .styled-select,
  .styled-date-input,
  .styled-input,
  .styled-textarea,
  .partner-name-input {
    font-size: 16px !important; /* Critical to prevent iOS auto-zoom on focus */
  }

  .partner-card {
    padding: 1.25rem 1rem;
  }

  .calculator-card {
    padding: 1.35rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .mode-tab {
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
  }

  .cosmic-cta-btn {
    width: 100%;
    padding: 1.05rem 1.25rem;
    font-size: 1rem;
  }

  .results-container {
    padding: 1.75rem 1rem;
    border-radius: var(--radius-md);
  }

  .result-top-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .result-pair-signs {
    font-size: 1.85rem;
  }

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

  .analysis-box {
    padding: 1.35rem 1.1rem;
  }

  .result-action-bar {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-secondary,
  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .cosmic-table th,
  .cosmic-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.84rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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