/* ============================================================
   MOONREADING.NET — Cosmic Design System
   ============================================================ */

/* ----- Custom Properties / Tokens ----- */
:root {
  /* Palette */
  --color-bg-deep:       #0a0e27;
  --color-bg-cosmic:     #1a1a4e;
  --color-bg-card:       rgba(26, 26, 78, 0.55);
  --color-bg-card-hover: rgba(26, 26, 78, 0.80);
  --color-gold:          #ffd700;
  --color-gold-dim:      #b8960f;
  --color-silver:        #c0c0c0;
  --color-white:         #ffffff;
  --color-text:          #e0e0f0;
  --color-text-muted:    #9a9ac0;
  --color-accent-purple: #7b2ff7;
  --color-accent-pink:   #f72f8e;
  --color-accent-blue:   #2f8ef7;
  --color-border:        rgba(255, 215, 0, 0.15);
  --color-border-hover:  rgba(255, 215, 0, 0.45);
  --color-overlay:       rgba(10, 14, 39, 0.85);

  /* Gradients */
  --gradient-cosmic:  linear-gradient(135deg, #0a0e27 0%, #1a1a4e 50%, #0d1137 100%);
  --gradient-nebula:  linear-gradient(160deg, #1a0533 0%, #0a0e27 40%, #0d1b3e 70%, #1a1a4e 100%);
  --gradient-gold:    linear-gradient(135deg, #ffd700 0%, #f0c040 50%, #ffd700 100%);
  --gradient-card:    linear-gradient(145deg, rgba(26,26,78,0.6) 0%, rgba(10,14,39,0.8) 100%);
  --gradient-btn:     linear-gradient(135deg, #ffd700 0%, #f0a000 100%);
  --gradient-btn-hover: linear-gradient(135deg, #ffe44d 0%, #ffd700 100%);

  /* Glow */
  --glow-gold:   0 0 20px rgba(255, 215, 0, 0.3);
  --glow-purple: 0 0 30px rgba(123, 47, 247, 0.3);
  --glow-text:   0 0 10px rgba(255, 215, 0, 0.5);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width:    1200px;
  --header-height: 72px;

  /* Borders */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  30px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2a2a6e #0a0e27;
  scrollbar-width: thin;
  overflow-x: hidden;
}

/* Custom scrollbar — WebKit */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0e27;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3a3a7e, #1a1a4e);
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a5aae, #2a2a6e);
}
::-webkit-scrollbar-corner {
  background: #0a0e27;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-white); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ----- Cosmic Background ----- */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background: var(--gradient-nebula);
}

.cosmic-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 20%, rgba(123,47,247,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 80% 60%, rgba(47,142,247,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 50% 90%, rgba(247,47,142,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ----- Starfield Canvas Container ----- */
#starfield-canvas {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

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

.section-title {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-title p {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

/* Responsive Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }

  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }

  .container { padding: 0 var(--space-md); }
  .section   { padding: var(--space-2xl) 0; }
}

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

/* Flex helpers */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.flex-wrap  { flex-wrap: wrap; }
.items-center   { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.text-center { text-align: center; }

/* ----- Header / Navigation ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 14, 39, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
}

.logo svg {
  width: 36px;
  height: 36px;
}

.logo .logo-text span {
  color: var(--color-gold);
}

.site-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
  flex-shrink: 0;
}

.locale-switcher {
  position: relative;
  z-index: 1002;
}

.locale-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.locale-switcher__toggle:hover,
.locale-switcher.open .locale-switcher__toggle {
  border-color: rgba(255,215,0,0.35);
  background: rgba(255,215,0,0.08);
  color: var(--color-gold);
}

.locale-switcher__label {
  white-space: nowrap;
}

.locale-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 0.45rem 0;
  margin: 0;
  list-style: none;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(123,47,247,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.locale-switcher.open .locale-switcher__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.locale-switcher__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
  border-left: 2px solid transparent;
}

.locale-switcher__menu a:hover,
.locale-switcher__menu a.is-current {
  color: var(--color-gold);
  background: rgba(255,215,0,0.08);
  border-left-color: var(--color-gold);
  padding-left: 1.15rem;
}

.locale-switcher__code {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: clamp(1rem, 2.4vw, 2.5rem);
  flex-shrink: 1;
}

@media (min-width: 769px) and (max-width: 1220px) {
  .header-inner {
    gap: 0.75rem;
  }

  .nav-menu {
    gap: 0.85rem;
    margin-left: 1.1rem;
  }

  .nav-link {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }

  .locale-switcher__toggle {
    padding: 0.42rem 0.7rem;
  }

  .locale-switcher__label {
    max-width: 4.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.nav-link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

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

/* Dropdown arrow */
.dd-arrow {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

/* Dropdown container */
.nav-dropdown {
  position: relative;
}

/* Invisible bridge so hover doesn't break between link and submenu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* Dropdown submenu */
.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1001;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(123, 47, 247, 0.1);
}

.nav-dropdown:hover > .nav-sub,
.nav-dropdown.open > .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover > .nav-link .dd-arrow,
.nav-dropdown.open > .nav-link .dd-arrow {
  transform: rotate(180deg);
}

.nav-dropdown:hover > .nav-link,
.nav-dropdown.open > .nav-link {
  color: var(--color-gold);
}

.nav-sub li {
  list-style: none;
}

.nav-sub a {
  display: block;
  padding: 0.6rem 1.3rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
  border-left: 2px solid transparent;
}

.nav-sub a:hover {
  color: var(--color-gold);
  background: rgba(255, 215, 0, 0.08);
  padding-left: 1.5rem;
  border-left-color: var(--color-gold);
}

.nav-sub a.active {
  color: var(--color-gold);
  border-left-color: var(--color-gold);
}

/* Mobile burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    padding: 0 var(--space-md);
    gap: var(--space-sm);
  }

  .site-controls {
    gap: 0.35rem;
  }

  .locale-switcher__toggle {
    min-height: 36px;
    padding: 0.4rem 0.7rem;
  }

  .logo {
    font-size: var(--fs-lg);
    min-width: 0;
  }

  .logo .logo-text {
    white-space: nowrap;
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-top: var(--space-xl);
    margin: 0;
    background: var(--color-overlay);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu > li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: var(--fs-lg);
    display: block;
    padding: 0.75rem var(--space-lg);
  }

  .nav-sub {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    border: none;
    border-radius: 0;
    background: rgba(10, 14, 39, 0.6);
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.open > .nav-sub {
    max-height: 500px;
    padding: 0.3rem 0;
    transform: none;
  }

  .nav-dropdown:hover > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    padding: 0;
  }

  .nav-dropdown:hover.open > .nav-sub {
    max-height: 500px;
    padding: 0.3rem 0;
  }

  .nav-sub a {
    font-size: var(--fs-base);
    padding: 0.6rem var(--space-xl);
  }

  .hero {
    min-height: 100dvh;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    font-size: var(--fs-base);
    margin-bottom: var(--space-xl);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    white-space: normal;
  }

  .hero-video {
    object-position: center 38%;
  }

  .hero-orb {
    width: 320px;
    height: 320px;
    filter: blur(42px);
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .header-inner {
    padding: 0 0.75rem;
  }

  .site-controls {
    gap: 0.25rem;
  }

  .locale-switcher__toggle {
    min-height: 34px;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .locale-switcher__label {
    max-width: 3.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  .logo .logo-text {
    font-size: 1rem;
  }

  .nav-link {
    font-size: var(--fs-base);
  }

  .hero {
    padding: calc(var(--header-height) + var(--space-xl)) 0.875rem var(--space-xl);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.8vw, 2.35rem);
  }

  .hero .badge {
    font-size: 0.65rem;
  }

  .hero-cta .btn {
    padding: 0.9rem 1rem;
  }

  .hero-orb {
    width: 240px;
    height: 240px;
    filter: blur(34px);
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--color-bg-deep);
  box-shadow: var(--glow-gold);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  color: var(--color-bg-deep);
}

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

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
  color: var(--color-gold);
}

.btn-ghost {
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--color-gold);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-base);
}

/* ----- Cards ----- */
.card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-lg);
  color: var(--color-gold);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  color: var(--color-gold);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.card-link:hover {
  gap: var(--space-sm);
}

/* Zodiac card variant */
.zodiac-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.zodiac-card .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.zodiac-card .zodiac-dates {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.zodiac-card .zodiac-card-img {
  width: 120px;
  min-width: 120px;
  height: 120px;
  max-width: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  display: block;
  border: 2px solid rgba(255, 215, 0, 0.2);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.zodiac-card:hover .zodiac-card-img {
  transform: scale(1.05);
  border-color: rgba(255, 215, 0, 0.5);
}

/* ----- Hero Section ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
}

.hero--video {
  overflow: hidden;
  isolation: isolate;
  background: #0a0e27;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 39, 0.5), rgba(10, 14, 39, 0.9));
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
}

.hero p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating cosmic element behind hero */
.hero-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,247,0.15) 0%, transparent 70%);
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-orb--left  { top: 20%; left: -10%; }
.hero-orb--right { bottom: 10%; right: -10%; background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%); animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-30px); }
}

/* ----- Footer ----- */
.site-footer {
  background: rgba(10, 14, 39, 0.95);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

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

.footer-brand p {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.footer-links li + li {
  margin-top: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: var(--glow-gold);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

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

/* ----- Divider with Star ----- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.divider svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* ----- Badge ----- */
.badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: rgba(255, 215, 0, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.badge--purple {
  background: rgba(123, 47, 247, 0.12);
  color: var(--color-accent-purple);
  border-color: rgba(123, 47, 247, 0.2);
}

/* ----- Scroll-to-top ----- */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: var(--color-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* ----- Utility: Fade-in on scroll ----- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: if JS fails or observer doesn't fire, show content after 2s */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
/* Ensure clickability even before fade-in completes */
.fade-in a, .fade-in button, .fade-in .btn {
  position: relative;
  z-index: 1;
}

/* ----- Glowing Border Effect ----- */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--color-gold), var(--color-accent-purple), var(--color-accent-blue), var(--color-gold));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glow-border:hover::after {
  opacity: 0.5;
}

/* ----- Shimmer text ----- */
.shimmer {
  background: linear-gradient(
    120deg,
    var(--color-gold) 0%,
    var(--color-white) 25%,
    var(--color-gold) 50%,
    var(--color-white) 75%,
    var(--color-gold) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ----- Skip to content (a11y) ----- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-gold);
  color: var(--color-bg-deep);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ----- Horoscope Preview Cards ----- */
.horoscope-preview__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.horoscope-preview__icon {
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* ----- Testimonials ----- */
.testimonial {
  display: flex;
  flex-direction: column;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.testimonial__quote {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-lg);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: auto;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: var(--color-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 600;
  color: var(--color-white);
  font-size: var(--fs-sm);
}

.testimonial__sign {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* ----- Reactions ----- */
.reaction-bar {
  margin-top: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-md);
}

.reaction-bar--compact {
  margin-top: var(--space-sm);
  padding: 0;
  border: 0;
  background: transparent;
}

.reaction-buttons {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.reaction-btn {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: rgba(10, 14, 39, 0.82);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.24rem 0.46rem;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.reaction-btn:hover:not(:disabled) {
  border-color: rgba(255, 215, 0, 0.6);
  color: var(--color-white);
  transform: translateY(-1px);
}

.reaction-btn.is-selected {
  color: var(--color-gold);
  border-color: rgba(255, 215, 0, 0.65);
  background: rgba(255, 215, 0, 0.12);
}

.reaction-btn:disabled {
  opacity: 0.95;
  cursor: default;
}

.reaction-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  line-height: 1;
}

.reaction-icon svg {
  width: 100%;
  height: 100%;
}

.reaction-count {
  min-width: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.04rem 0.24rem;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.reaction-btn[data-reaction="heart"] .reaction-icon {
  color: inherit;
}

.reaction-btn[data-reaction="fire"] .reaction-icon {
  color: inherit;
}

.reaction-btn[data-reaction="sparkle"] .reaction-icon {
  color: inherit;
}

.reaction-btn[data-reaction="star"] .reaction-icon {
  color: inherit;
}

/* ----- Newsletter ----- */
.newsletter-box {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .newsletter-box {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }
}

.newsletter-content h3 {
  font-family: var(--font-heading);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.newsletter-content p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  max-width: 400px;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.newsletter-form input[type="email"] {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: var(--fs-sm);
  min-width: 260px;
  transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input[type="email"] {
    min-width: auto;
    width: 100%;
  }
}

/* ----- Screen reader only ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----- Breadcrumbs ----- */
.breadcrumb {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb__sep {
  margin: 0 var(--space-sm);
  opacity: 0.5;
}

/* ----- Article Page Body ----- */
.article-page__header {
  margin-bottom: var(--space-2xl);
}

.article-page__header h1 {
  margin-top: var(--space-md);
}

.article-body h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: var(--fs-2xl);
}

.article-body h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-xl);
  color: var(--color-gold);
}

.article-body p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.article-body a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-white);
}

/* ----- Article Card (index page) ----- */
.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.article-card .card-title a {
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.article-card .card-title a:hover {
  color: var(--color-gold);
}
