/* ==========================================================================
   AstroTrio - Sun Moon Rising Calculator Stylesheet
   Theme: Modern Celestial Dark / Glassmorphism
   Target Keyword: sun moon rising calculator
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #07080d;
  --bg-secondary: #0e111a;
  --bg-card: rgba(18, 22, 36, 0.72);
  --bg-card-hover: rgba(26, 32, 52, 0.85);
  --bg-input: rgba(12, 15, 26, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(168, 85, 247, 0.5);
  --border-glow: rgba(168, 85, 247, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-bright: #ffffff;

  /* Astrological Accents */
  --accent-gold: #fbbf24;
  --accent-sun: #f59e0b;
  --accent-moon: #cbd5e1;
  --accent-rising: #a855f7;
  --accent-purple: #8b5cf6;
  --accent-cyan: #38bdf8;
  --accent-pink: #ec4899;

  /* Elements */
  --elem-fire: #f87171;
  --elem-earth: #34d399;
  --elem-air: #38bdf8;
  --elem-water: #818cf8;

  /* Gradients */
  --grad-hero: radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.15), transparent 60%);
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --grad-card-sun: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(18, 22, 36, 0.85) 100%);
  --grad-card-moon: linear-gradient(180deg, rgba(203, 213, 225, 0.1) 0%, rgba(18, 22, 36, 0.85) 100%);
  --grad-card-rising: linear-gradient(180deg, rgba(168, 85, 247, 0.15) 0%, rgba(18, 22, 36, 0.85) 100%);

  /* Typography */
  --font-heading: 'Cinzel', 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(168, 85, 247, 0.25);
  --shadow-sun-glow: 0 0 30px rgba(245, 158, 11, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 74px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Base Headings & Links */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

p {
  color: var(--text-muted);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-spacing {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--accent-gold); }
.text-purple { color: var(--accent-rising); }
.text-cyan { color: var(--accent-cyan); }
.text-bright { color: var(--text-bright); }

/* ==========================================================================
   Navigation Bar (Header)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(7, 8, 13, 0.95);
  border-bottom-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.brand-name span {
  background: linear-gradient(135deg, #fbbf24 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Nav CTA Button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--grad-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
  color: #ffffff;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
  z-index: 1001;
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(14, 17, 26, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-subtle);
  padding: 5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
  transition: right var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer-links a {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  color: var(--accent-rising);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

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

/* ==========================================================================
   Hero Section with Canvas Particle System
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

#celestial-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

.hero-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.18) 0%, transparent 65%),
              radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-rising);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-rising);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-rising);
  animation: pulseDot 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #a855f7 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Two Hero Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2.25rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--grad-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.7);
  background: linear-gradient(135deg, #b86bfc 0%, #7073f8 100%);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-highlight-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

/* ==========================================================================
   AdSense Placement Placeholders (AdSense Compliant)
   ========================================================================== */
.adsense-unit {
  max-width: 970px;
  margin: 2.5rem auto;
  padding: 0.85rem;
  background: rgba(14, 17, 26, 0.6);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
  display: block;
}

.ad-box-mock {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 4px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.ad-box-mock span {
  opacity: 0.7;
}

/* ==========================================================================
   Calculator Section & Interactive Tool
   ========================================================================== */
.calculator-section {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 5rem;
  z-index: 10;
}

.calculator-card-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

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

.calc-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.calc-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.calc-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* Form Styles */
.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-note {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 400;
}

.date-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 0.75rem;
}

.form-select,
.form-input {
  width: 100%;
  height: 52px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0 1rem;
  color: var(--text-bright);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background-color: #0e111a;
  color: #f8fafc;
}

.form-select:focus,
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  background-color: rgba(18, 22, 36, 0.95);
}

.form-input::placeholder {
  color: var(--text-subtle);
}

/* Time & Location Row */
.time-place-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 1rem;
}

/* Custom Autocomplete Container */
.autocomplete-container {
  position: relative;
}

.suggestions-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(14, 17, 26, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  z-index: 50;
  display: none;
}

.suggestions-list.active {
  display: block;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.focused {
  background: rgba(168, 85, 247, 0.15);
  color: var(--text-bright);
}

.suggestion-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  display: block;
}

/* Unknown Time Switch */
.unknown-time-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: -0.25rem;
}

.checkbox-custom {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.checkbox-custom input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  margin-right: 0.5rem;
  transition: all var(--transition-fast);
}

.checkbox-custom input:checked ~ .checkmark {
  background-color: var(--accent-rising);
  border-color: var(--accent-rising);
}

.checkbox-custom input:checked ~ .checkmark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: 2px 0 0 5px;
}

/* Submit Button */
.btn-calc-submit {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-calc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.65);
}

.calc-guarantee-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: -0.5rem;
}

/* ==========================================================================
   Calculator Results View
   ========================================================================== */
.results-wrapper {
  margin-top: 3rem;
  display: none;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.results-wrapper.active {
  display: block;
}

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

.results-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.results-divider .line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.results-divider .tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-rising);
  font-weight: 700;
}

/* Big 3 Cards Grid */
.big3-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.sign-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.sign-card:hover {
  transform: translateY(-4px);
}

/* Custom Card Top Highlights */
.sign-card.sun-card {
  border-top: 3px solid var(--accent-sun);
  background: var(--grad-card-sun);
}
.sign-card.sun-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--shadow-sun-glow);
}

.sign-card.moon-card {
  border-top: 3px solid var(--accent-moon);
  background: var(--grad-card-moon);
}
.sign-card.moon-card:hover {
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 0 30px rgba(203, 213, 225, 0.15);
}

.sign-card.rising-card {
  border-top: 3px solid var(--accent-rising);
  background: var(--grad-card-rising);
}
.sign-card.rising-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: var(--shadow-glow);
}

.card-badge {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-glyph-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.zodiac-glyph {
  font-size: 2.5rem;
  line-height: 1;
}

.sun-card .zodiac-glyph { color: var(--accent-sun); }
.moon-card .zodiac-glyph { color: var(--accent-moon); }
.rising-card .zodiac-glyph { color: var(--accent-rising); }

.sign-name-degree {
  display: flex;
  flex-direction: column;
}

.sign-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
}

.sign-degree {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  font-family: monospace;
}

.sign-meta-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-pill {
  font-size: 0.6875rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.meta-pill.elem-Fire { color: var(--elem-fire); border-color: rgba(248, 113, 113, 0.3); }
.meta-pill.elem-Earth { color: var(--elem-earth); border-color: rgba(52, 211, 153, 0.3); }
.meta-pill.elem-Air { color: var(--elem-air); border-color: rgba(56, 189, 248, 0.3); }
.meta-pill.elem-Water { color: var(--elem-water); border-color: rgba(129, 140, 248, 0.3); }

.sign-interpretation {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.85rem;
}

/* Unknown Time Rising Sign Notice */
.unknown-time-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--accent-gold);
}

/* Bonus: Personal Planets (Mercury, Venus, Mars) */
.bonus-planets-box {
  background: rgba(18, 22, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bonus-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.planet-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1rem;
}

.planet-item-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}

.planet-item-sign {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0.25rem 0;
}

.planet-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Elemental Harmony Balance Bar */
.element-balance-card {
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.balance-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-bar-container {
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  overflow: hidden;
  margin-bottom: 1rem;
}

.balance-segment {
  height: 100%;
  transition: width 1s ease;
}

.seg-fire { background: var(--elem-fire); }
.seg-earth { background: var(--elem-earth); }
.seg-air { background: var(--elem-air); }
.seg-water { background: var(--elem-water); }

.balance-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
}

.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Result Actions (Share & Recalculate) */
.result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-action {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-action-share {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--accent-rising);
}

.btn-action-share:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
}

.btn-action-reset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-action-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
}

/* ==========================================================================
   Editorial Content Sections (High-Value SEO Optimized for Sun Moon Rising)
   ========================================================================== */
.seo-content-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 5;
}

.content-article {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(14, 17, 26, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.content-article h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.content-article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.content-article h2:first-of-type {
  margin-top: 0;
}

.content-article h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.content-article p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.content-article ul,
.content-article ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.content-article strong {
  color: var(--text-bright);
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

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

.astro-table th {
  background: rgba(22, 27, 46, 0.9);
  color: var(--text-bright);
  font-family: var(--font-heading);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.03em;
}

.astro-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.astro-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Zodiac Reference Grid */
.zodiac-grid-reference {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.zodiac-ref-card {
  background: rgba(18, 22, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.zodiac-ref-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.ref-sign-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ref-sign-title {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ref-sign-dates {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Callout Box */
.astro-callout {
  background: rgba(168, 85, 247, 0.08);
  border-left: 3px solid var(--accent-rising);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.astro-callout p {
  margin-bottom: 0;
  color: var(--text-main);
  font-size: 0.975rem;
}

/* ==========================================================================
   FAQ Section (Accordion with Schema Support)
   ========================================================================== */
.faq-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 5;
}

.faq-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.faq-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.faq-subtitle {
  color: var(--text-muted);
}

.faq-accordion-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(18, 22, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(168, 85, 247, 0.4);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--accent-rising);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-rising);
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Proper 4-Column Footer
   ========================================================================== */
.site-footer {
  background: #05060a;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-brand-info p {
  font-size: 0.9rem;
  color: var(--text-subtle);
  line-height: 1.7;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--accent-rising);
  transform: translateX(3px);
}

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

.footer-bottom-bar a {
  color: var(--text-muted);
}

.footer-bottom-bar a:hover {
  color: var(--text-bright);
}

/* ==========================================================================
   Compliance & Policy Pages Styling (About, Contact, Privacy, Terms, Disclaimer)
   ========================================================================== */
.policy-page-header {
  padding-top: calc(var(--nav-height) + 3.5rem);
  padding-bottom: 2.5rem;
  background: radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  text-align: center;
}

.policy-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.policy-meta {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.policy-body {
  max-width: 860px;
  margin: 0 auto 5rem;
  background: rgba(18, 22, 36, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.policy-body h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-bright);
}

.policy-body h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-rising);
}

.policy-body p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: #94a3b8;
}

.policy-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #94a3b8;
}

.policy-body li {
  margin-bottom: 0.4rem;
}

/* Contact Form Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

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

.contact-info-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-rising);
  flex-shrink: 0;
}

.contact-form textarea.form-input {
  height: 140px;
  padding-top: 0.75rem;
  resize: vertical;
}

.form-feedback {
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
  margin-top: 1rem;
}

.form-feedback.success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  display: block;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .big3-cards-grid {
    grid-template-columns: 1fr;
  }

  .time-place-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .date-grid {
    grid-template-columns: 1fr;
  }

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

  .balance-legend {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
