/* Font loaded via <link> in HTML for faster non-blocking load */

:root {
  --bg: #0a0a1a;
  --surface: #12122a;
  --card: #1a1a3a;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --accent: #7c4dff;
  --accent-light: #b388ff;
  --gold: #ffd54f;
  --radius: 12px;
  --tarot-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 340' width='200' height='340'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%230d0630'/%3E%3Cstop offset='50%25' stop-color='%231a0a3e'/%3E%3Cstop offset='100%25' stop-color='%230d0630'/%3E%3C/linearGradient%3E%3Cpattern id='diamonds' x='0' y='0' width='20' height='20' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Crect width='20' height='20' fill='none'/%3E%3Cline x1='0' y1='10' x2='20' y2='10' stroke='rgba(255,213,79,0.08)' stroke-width='0.5'/%3E%3Cline x1='10' y1='0' x2='10' y2='20' stroke='rgba(255,213,79,0.08)' stroke-width='0.5'/%3E%3C/pattern%3E%3CradialGradient id='glow' cx='50%25' cy='40%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='rgba(124,77,255,0.15)'/%3E%3Cstop offset='100%25' stop-color='rgba(0,0,0,0)'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='200' height='340' rx='10' fill='url(%23bg)'/%3E%3Crect width='200' height='340' rx='10' fill='url(%23diamonds)'/%3E%3Crect width='200' height='340' rx='10' fill='url(%23glow)'/%3E%3Crect x='4' y='4' width='192' height='332' rx='8' fill='none' stroke='rgba(255,213,79,0.4)' stroke-width='1.5'/%3E%3Crect x='12' y='12' width='176' height='316' rx='6' fill='none' stroke='rgba(255,213,79,0.2)' stroke-width='0.8'/%3E%3Cg fill='none' stroke='rgba(255,213,79,0.35)' stroke-width='0.8'%3E%3Cpath d='M20,30 Q20,20 30,20'/%3E%3Cpath d='M24,34 Q24,24 34,24'/%3E%3Cpath d='M180,30 Q180,20 170,20'/%3E%3Cpath d='M176,34 Q176,24 166,24'/%3E%3Cpath d='M20,310 Q20,320 30,320'/%3E%3Cpath d='M24,306 Q24,316 34,316'/%3E%3Cpath d='M180,310 Q180,320 170,320'/%3E%3Cpath d='M176,306 Q176,316 166,316'/%3E%3C/g%3E%3Cg transform='translate(100,170)' fill='none' stroke='rgba(255,213,79,0.25)' stroke-width='0.8'%3E%3Ccircle r='35'/%3E%3Ccircle r='25'/%3E%3Ccircle r='15'/%3E%3Cline x1='0' y1='-40' x2='0' y2='-20'/%3E%3Cline x1='0' y1='20' x2='0' y2='40'/%3E%3Cline x1='-40' y1='0' x2='-20' y2='0'/%3E%3Cline x1='20' y1='0' x2='40' y2='0'/%3E%3Cline x1='-28' y1='-28' x2='-14' y2='-14'/%3E%3Cline x1='14' y1='14' x2='28' y2='28'/%3E%3Cline x1='28' y1='-28' x2='14' y2='-14'/%3E%3Cline x1='-14' y1='14' x2='-28' y2='28'/%3E%3C/g%3E%3Cg fill='rgba(255,213,79,0.2)'%3E%3Ccircle cx='40' cy='55' r='1.5'/%3E%3Ccircle cx='160' cy='55' r='1.5'/%3E%3Ccircle cx='40' cy='285' r='1.5'/%3E%3Ccircle cx='160' cy='285' r='1.5'/%3E%3Ccircle cx='100' cy='65' r='1.2'/%3E%3Ccircle cx='100' cy='275' r='1.2'/%3E%3Ccircle cx='55' cy='110' r='1'/%3E%3Ccircle cx='145' cy='110' r='1'/%3E%3Ccircle cx='55' cy='230' r='1'/%3E%3Ccircle cx='145' cy='230' r='1'/%3E%3Ccircle cx='70' cy='80' r='0.8'/%3E%3Ccircle cx='130' cy='80' r='0.8'/%3E%3Ccircle cx='70' cy='260' r='0.8'/%3E%3Ccircle cx='130' cy='260' r='0.8'/%3E%3C/g%3E%3Cg fill='none' stroke='rgba(255,213,79,0.2)' stroke-width='0.8'%3E%3Cpath d='M90,45 A8,8 0 0,1 110,45 A10,10 0 0,0 90,45'/%3E%3Cpath d='M90,295 A8,8 0 0,0 110,295 A10,10 0 0,1 90,295'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
h1 { font-family: 'Cinzel', Georgia, 'Times New Roman', serif; }

html { overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Pre-allocate canvas space before JS runs to prevent FOUC/layout shift */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}

/* 3D Canvas Background */
#celestial-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  animation: celestialFadeIn 2s ease-out;
}
@keyframes celestialFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

header {
  position: relative;
  z-index: 1;
  padding: 1.25rem 2.5rem;
  padding-bottom: 2.5rem;
  background: rgba(10, 10, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to bottom,
    black 0%,
    black 40%,
    rgba(0, 0, 0, 0.85) 55%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0.1) 93%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    black 0%,
    black 40%,
    rgba(0, 0, 0, 0.85) 55%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.3) 85%,
    rgba(0, 0, 0, 0.1) 93%,
    transparent 100%
  );
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; font-size: 1.25rem; }
nav a:hover { color: var(--accent-light); }
.logo { font-family: 'Cinzel', serif; font-size: 2.75rem; font-weight: 700; color: var(--gold) !important; letter-spacing: 1px; display: flex; align-items: center; gap: 0.85rem; }
.logo-img { height: 125px; width: 125px; }

header, main, footer { max-width: 100vw; }
main { width: min(1200px, 100%); margin-inline: auto; padding: 2rem 1.5rem; position: relative; z-index: 1; }
main > * { max-width: 100%; }

/* Hero — text hidden until intro swoop completes */
.hero {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.hero h1 {
  font-size: 4rem;
  max-width: 100%;
  word-wrap: break-word;
  background: linear-gradient(135deg, var(--gold), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.hero p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1.6rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease 0.3s, transform 1.2s ease 0.3s;
}
.hero.hero-revealed h1,
.hero.hero-revealed p {
  opacity: 1;
  transform: translateY(0);
}

/* Zodiac Grid */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding: 1rem 0 3rem;
  margin-top: 80vh;
  scroll-margin-top: 2rem;
}

.zodiac-tile {
  position: relative;
  background: rgba(26, 26, 58, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 77, 255, 0.15);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
}
/* Scroll reveal: only hide tiles after JS initializes (prevents layout shift) */
.zodiac-grid.scroll-ready .zodiac-tile {
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  transition: all 0.3s, opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--stagger, 0) * 0.06s);
}
.zodiac-grid.scroll-ready .zodiac-tile.tile-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.zodiac-tile:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124, 77, 255, 0.25);
  background: rgba(26, 26, 58, 0.7);
}
.zodiac-symbol { font-size: 3.4rem; }
.zodiac-name { font-weight: 600; font-size: 1.35rem; }
.zodiac-dates { font-size: 1.05rem; color: var(--text-muted); }

.zodiac-fav {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 1.4rem;
  height: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.3s, transform 0.2s;
  line-height: 1;
}

.zodiac-fav:hover {
  color: rgba(255, 215, 0, 0.5);
  transform: scale(1.2);
}

.zodiac-fav.active {
  color: rgba(255, 215, 0, 0.85);
}

.zodiac-fav.active:hover {
  color: rgba(255, 215, 0, 1);
}

/* Horoscope Display */
.horoscope-display { padding: 1rem 0 3rem; scroll-margin-top: 2rem; }
.back-btn {
  background: none;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-family: inherit;
}
.back-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }

.horoscope-card {
  background: rgba(26, 26, 58, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: var(--radius);
  padding: 3rem;
}
.horoscope-card h2 { font-size: 2.8rem; margin-bottom: 0.25rem; }
.sign-date { color: var(--text-muted); margin-bottom: 0.25rem; }
.sign-profile { color: var(--accent-light); font-size: 1rem; margin-bottom: 1.5rem; letter-spacing: 0.5px; }
.horoscope-content p { margin-bottom: 1rem; line-height: 1.8; }

/* Forecast Grid */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(124, 77, 255, 0.15);
}
.forecast-item {
  background: rgba(18, 18, 42, 0.5);
  border: 1px solid rgba(124, 77, 255, 0.1);
  border-radius: 10px;
  padding: 1.25rem;
}
.forecast-item h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.forecast-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.horoscope-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(124, 77, 255, 0.15);
}
.meta-item { text-align: center; }
.meta-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.meta-value { display: block; font-size: 1.3rem; font-weight: 600; color: var(--gold); margin-top: 0.25rem; }

/* Cosmic Intensity Dots */
.intensity-bar { display: flex; gap: 3px; justify-content: center; margin-top: 0.35rem; }
.intensity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(124, 77, 255, 0.2);
}
.intensity-dot.active { background: var(--gold); }

/* Cosmic Profile */
.cosmic-profile {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(124, 77, 255, 0.15);
}
.cosmic-profile h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.5rem;
}
.profile-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(124, 77, 255, 0.08);
}
.profile-item-label { color: var(--text-muted); font-size: 0.85rem; }
.profile-item-value { color: var(--text); font-weight: 500; font-size: 0.85rem; }

/* Planetary Influence Note */
.planetary-note {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(18, 18, 42, 0.4);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.planetary-note h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}
.planetary-note p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

/* CTA */
.cta {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 1rem;
  border-radius: var(--radius);
  background: rgba(18, 18, 42, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 77, 255, 0.1);
}
.cta h2 { font-size: 2.7rem; margin-bottom: 0.5rem; }
.cta p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.35rem; }
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 12px;
  font-size: 1.3rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.cta-button:hover { background: var(--accent-light); }

/* Blog List */
.blog-list { padding: 2rem; }
.blog-list h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--gold), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--card);
  border: 1px solid rgba(124, 77, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}
.post-card:hover { transform: translateY(-2px); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.2rem; }
.post-card-body h2 { font-size: 1.1rem; margin: 0.5rem 0; }
.post-card-body h2 a { color: var(--text); text-decoration: none; }
.post-card-body h2 a:hover { color: var(--accent-light); }
.post-card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.post-card-body time { font-size: 0.8rem; color: var(--text-muted); }

.category {
  display: inline-block;
  background: rgba(124, 77, 255, 0.15);
  color: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.load-more {
  display: block;
  text-align: center;
  margin-top: 2rem;
  color: var(--accent-light);
  text-decoration: none;
}
.empty { text-align: center; color: var(--text-muted); padding: 3rem 0; }

/* Blog Post */
.blog-post { max-width: 800px; margin: 0 auto; padding: 2rem; }
.blog-post .hero-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.5rem; }
.blog-post .image-credit { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }
.blog-post h1 { font-size: 2rem; margin: 0.75rem 0 0.5rem; }
.blog-post time { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 2rem; }
.blog-post .content { line-height: 1.8; }
.blog-post .content p { margin-bottom: 1.2rem; }
.blog-post .content h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; color: var(--gold); }
.blog-post .content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.6rem; }
.blog-post .content ul, .blog-post .content ol { margin: 1rem 0 1rem 1.5rem; }
.blog-post .content li { margin-bottom: 0.4rem; }
.back-link { display: inline-block; margin-top: 2rem; color: var(--accent-light); text-decoration: none; }

/* Footer */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 1.15rem;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(124, 77, 255, 0.1);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }

/* Legal Pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-page .last-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; display: block; }
.legal-page h2 { font-size: 1.3rem; color: var(--gold); margin: 2rem 0 0.8rem; }
.legal-page p { margin-bottom: 1rem; line-height: 1.8; }
.legal-page ul { margin: 0.5rem 0 1rem 1.5rem; }
.legal-page li { margin-bottom: 0.4rem; line-height: 1.6; }
.legal-page a { color: var(--accent-light); }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(18, 18, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(124, 77, 255, 0.3);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 1.1rem;
}
.cookie-banner p { color: var(--text); margin: 0; }
.cookie-banner a { color: var(--accent-light); }
.cookie-banner-actions { display: flex; gap: 0.75rem; }
.cookie-btn {
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept { background: var(--accent); color: white; }
.cookie-btn-reject { background: transparent; color: var(--text-muted); border: 1px solid var(--text-muted); }

/* Language Selector */
.lang-selector { position: relative; }

.lang-btn {
  background: none;
  border: 1px solid rgba(136, 136, 170, 0.3);
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }
.lang-btn svg { width: 22px; height: 22px; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18, 18, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 180px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.15s;
  white-space: nowrap;
}
.lang-option:hover { background: rgba(124, 77, 255, 0.15); }
.lang-option.active { color: var(--gold); font-weight: 600; }

/* Nav layout for language selector */
nav { gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }

/* RTL support */
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] nav { direction: rtl; }

/* ── Tablet (601px–1024px) ── */
@media (max-width: 1024px) {
  main { padding: 1.5rem 1.25rem; }
  .hero { padding: 3rem 1rem 1.5rem; min-height: 30vh; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.35rem; }
  .zodiac-grid { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-top: 60vh; }
  .zodiac-tile { padding: 1.8rem 1.2rem; }
  .zodiac-symbol { font-size: 2.8rem; }
  .zodiac-name { font-size: 1.15rem; }
  .cta { padding: 2.5rem 1.25rem; }
  .cta h2 { font-size: 2.2rem; }
  .cta-button { padding: 1rem 2.2rem; font-size: 1.15rem; }
  .forecast-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .blog-post { padding: 1.5rem 1.25rem; }
  .legal-page { padding: 1.5rem 1.25rem; }
}

/* ── Phone (≤600px) ── */
@media (max-width: 600px) {
  header { padding: 0.5rem 1rem; }
  .logo { font-size: 1.9rem; }
  .logo-img { height: 75px; width: 75px; }
  nav a { font-size: 1.05rem; }
  main { padding: 1rem; }
  .hero { padding: 2rem 0.5rem 1rem; min-height: 25vh; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.15rem; }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 50vh; }
  .zodiac-tile { padding: 1.4rem 0.8rem; }
  .zodiac-symbol { font-size: 2.4rem; }
  .zodiac-name { font-size: 1.05rem; }
  .zodiac-dates { font-size: 0.85rem; }
  .horoscope-card { padding: 1.8rem; }
  .horoscope-card h2 { font-size: 1.9rem; }
  .forecast-grid { grid-template-columns: 1fr; }
  .horoscope-meta { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .sign-profile { font-size: 0.85rem; }
  .cta { padding: 2rem 1rem; }
  .cta h2 { font-size: 1.8rem; }
  .cta p { font-size: 1.15rem; }
  .cta-button { padding: 1rem 2rem; font-size: 1.1rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-post { padding: 1rem; }
  .blog-post h1 { font-size: 1.5rem; }
  .legal-page { padding: 1rem; }
  .legal-page h1 { font-size: 1.5rem; }
  footer { padding: 1.5rem 1rem; }
  .footer-links { gap: 1rem; }
  .cookie-banner { padding: 0.75rem 1rem; gap: 0.75rem; font-size: 0.95rem; flex-direction: column; text-align: center; }
  .lang-dropdown { min-width: 160px; right: -1rem; }
  .lang-btn { width: 36px; height: 36px; }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  header { background: rgba(10, 10, 26, 0.95); }
  .zodiac-tile { background: rgba(26, 26, 58, 0.9); }
  .horoscope-card { background: rgba(26, 26, 58, 0.92); }
  .cta { background: rgba(18, 18, 42, 0.9); }
  footer { background: rgba(10, 10, 26, 0.95); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  #celestial-bg { animation: none; }
  .hero h1, .hero p { opacity: 1; transform: none; transition: none; }
  .zodiac-tile { transition: none; opacity: 1; transform: none; }
  .post-card { transition: none; }
  .cta-button { transition: none; }
  nav a { transition: none; }
}

/* Hide canvas when printing */
@media print {
  #celestial-bg { display: none; }
  header, .zodiac-tile, .horoscope-card, .cta, footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: white;
    color: black;
    border-color: #ccc;
  }
  .hero h1 { -webkit-text-fill-color: black; background: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   PLANET SECTIONS — Multi-page scroll experience
   ═══════════════════════════════════════════════════════════════════ */

/* 1. Planet Section Layout */
.planet-section {
  contain: layout style;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* First section (earth/birth chart) has no extra top spacing */
.planet-section[data-planet="earth"] {
  padding-top: 2rem;
}

/* Non-earth sections get scroll spacer room for camera transitions */
.planet-section[data-planet="moon"],
.planet-section[data-planet="venus"],
.planet-section[data-planet="mercury"],
.planet-section[data-planet="jupiter"],
.planet-section[data-planet="saturn"],
.planet-section[data-planet="neptune"],
.planet-section[data-planet="sun"] {
  margin-top: 80vh;
}

/* 2. Glassmorphism Planet Card */
.planet-card.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(26, 26, 58, 0.6);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 12px;
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  scroll-margin-top: 2rem;
}

/* 3. Planet Title + Accent Colors */
.planet-title {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.moon-accent { color: #e0e0e8; }
.venus-accent { color: #ffcc80; }
.mercury-accent { color: #b0b0c0; }
.jupiter-accent { color: #ffab40; }
.saturn-accent { color: #ffe082; }
.neptune-accent { color: #4dd0e1; }
.constellation-accent { color: #a8c8ff; }

/* 4. Planet Tagline */
.planet-tagline {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* 5. Form Styling */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: rgba(18, 18, 42, 0.8);
  border: 1px solid rgba(124, 77, 255, 0.2);
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent-light);
}

.form-input::placeholder {
  color: rgba(136, 136, 170, 0.5);
}

/* Select styling to match inputs */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* Planet Button (base) */
.planet-btn {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 1rem;
  width: 100%;
}

.planet-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.35);
}

.planet-btn:active {
  transform: translateY(0);
}

/* Planet-specific button colors */
.moon-btn { background: #9e9eaf; }
.moon-btn:hover { box-shadow: 0 4px 20px rgba(224, 224, 232, 0.3); }

.venus-btn { background: #e6a84d; }
.venus-btn:hover { box-shadow: 0 4px 20px rgba(255, 204, 128, 0.3); }

.mercury-btn { background: #8a8a9e; }
.mercury-btn:hover { box-shadow: 0 4px 20px rgba(176, 176, 192, 0.3); }

.jupiter-btn { background: #e68a1a; }
.jupiter-btn:hover { box-shadow: 0 4px 20px rgba(255, 171, 64, 0.3); }

.saturn-btn { background: #d4b84a; }
.saturn-btn:hover { box-shadow: 0 4px 20px rgba(255, 224, 130, 0.3); }

.neptune-btn { background: #26a4b3; }
.neptune-btn:hover { box-shadow: 0 4px 20px rgba(77, 208, 225, 0.3); }

/* 6. Section Entry Animations */
.planet-section .planet-card {
  opacity: 0;
  transform: translateY(40px);
}

.planet-section.section-visible .planet-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 7. Big Three Results */
.bigthree-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.bigthree-item {
  text-align: center;
  background: rgba(18, 18, 42, 0.5);
  border: 1px solid rgba(124, 77, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem 1rem;
}

.bigthree-sign {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.bigthree-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.bigthree-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 8. Compatibility Results */
.compat-heart {
  font-size: 3rem;
  text-align: center;
  margin: 1rem 0;
  color: #ff5252;
  line-height: 1;
}

.compat-score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(124, 77, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  background: rgba(18, 18, 42, 0.5);
}

.compat-summary {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  color: var(--text);
}

.compat-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.compat-detail {
  background: rgba(18, 18, 42, 0.5);
  border: 1px solid rgba(124, 77, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
}

.compat-detail h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.compat-detail p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

/* 9. Transit Display */
.transit-display {
  margin-top: 1.5rem;
}

.transit-planet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(124, 77, 255, 0.08);
}

.transit-planet:last-child {
  border-bottom: none;
}

.transit-planet-name {
  font-weight: 600;
  font-size: 1rem;
}

.transit-planet-sign {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.transit-retrograde {
  display: inline-block;
  background: rgba(255, 82, 82, 0.2);
  color: #ff5252;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* 10. Chinese Zodiac Results */
.chinese-animal {
  font-size: 5rem;
  text-align: center;
  line-height: 1.2;
  margin: 1rem 0 0.5rem;
}

.chinese-animal-name {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.chinese-element {
  text-align: center;
  font-size: 1.1rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.chinese-fortune {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.fortune-item {
  background: rgba(18, 18, 42, 0.5);
  border: 1px solid rgba(124, 77, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.fortune-item h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.fortune-item p {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.chinese-desc {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* 11. Saturn Return Timeline */
.saturn-return-tracker {
  margin-top: 1.5rem;
}

.saturn-tracker-loading {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem 1rem;
}

.saturn-timeline-header {
  text-align: center;
  margin-bottom: 2rem;
}

.saturn-current-age {
  font-size: 1rem;
  color: var(--text-muted);
}

.saturn-current-age span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-left: 0.5rem;
}

/* Visual Timeline Bar */
.saturn-timeline-bar {
  position: relative;
  height: 80px;
  background: linear-gradient(90deg,
    rgba(255, 224, 130, 0.1) 0%,
    rgba(255, 224, 130, 0.2) 50%,
    rgba(255, 224, 130, 0.1) 100%);
  border: 1px solid rgba(255, 224, 130, 0.3);
  border-radius: 40px;
  margin: 2rem 0;
  overflow: visible;
}

.saturn-timeline-current,
.saturn-timeline-return {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.saturn-timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.current-marker {
  background: var(--gold);
  border: 3px solid rgba(255, 213, 79, 0.5);
  box-shadow: 0 0 20px rgba(255, 213, 79, 0.6);
  animation: currentPulse 2s ease-in-out infinite;
}

@keyframes currentPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 213, 79, 0.6); }
  50% { box-shadow: 0 0 30px rgba(255, 213, 79, 0.9); }
}

.return-marker {
  background: #ffe082;
  border: 2px solid rgba(255, 224, 130, 0.8);
}

.saturn-timeline-label {
  position: absolute;
  top: -35px;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.saturn-timeline-age {
  position: absolute;
  bottom: -30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffe082;
}

/* Return Cards Grid */
.saturn-returns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.saturn-return-card {
  background: rgba(18, 18, 42, 0.5);
  border: 1px solid rgba(255, 224, 130, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.saturn-return-card.in-return {
  border-color: var(--gold);
  background: rgba(255, 224, 130, 0.08);
  box-shadow: 0 0 25px rgba(255, 213, 79, 0.3);
}

.saturn-return-card.approaching {
  border-color: rgba(255, 224, 130, 0.4);
}

.saturn-return-card.past {
  opacity: 0.7;
  border-color: rgba(255, 224, 130, 0.15);
}

.saturn-return-header {
  margin-bottom: 1rem;
}

.saturn-return-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: #ffe082;
  margin: 0 0 0.25rem;
}

.saturn-return-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.saturn-return-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.in-return-status {
  background: rgba(255, 213, 79, 0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.approaching-status {
  background: rgba(255, 224, 130, 0.15);
  color: #ffe082;
  border: 1px solid rgba(255, 224, 130, 0.3);
}

.past-status {
  background: rgba(136, 136, 170, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(136, 136, 170, 0.2);
}

.future-status {
  background: rgba(255, 224, 130, 0.1);
  color: rgba(255, 224, 130, 0.8);
  border: 1px solid rgba(255, 224, 130, 0.2);
}

.saturn-pulse {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: saturnPulse 1.5s ease-in-out infinite;
}

@keyframes saturnPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Progress bar for active return */
.saturn-return-progress {
  margin: 1rem 0;
}

.saturn-progress-bar {
  height: 8px;
  background: rgba(255, 224, 130, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.saturn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffe082);
  border-radius: 4px;
  transition: width 1s ease;
}

.saturn-progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.saturn-return-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

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

  .saturn-timeline-bar {
    height: 60px;
  }
}

@media (max-width: 600px) {
  .saturn-timeline-bar {
    height: 50px;
    margin: 1.5rem 0;
  }

  .saturn-timeline-label {
    font-size: 0.65rem;
    top: -30px;
  }

  .saturn-timeline-age {
    font-size: 0.75rem;
    bottom: -25px;
  }

  .saturn-timeline-marker {
    width: 12px;
    height: 12px;
  }

  .saturn-return-card {
    padding: 1.25rem;
  }

  .saturn-return-title {
    font-size: 1.1rem;
  }

  .saturn-current-age span {
    font-size: 1.4rem;
  }
}

/* 12. Tarot */
/* ── Tarot Animation Styles ── */
.tarot-stage { position: relative; min-height: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.tarot-btn {
  background: linear-gradient(135deg, #0d0630 0%, #1a0a3e 40%, #2d1b69 100%);
  color: #ffd54f;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 79, 0.35);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem auto;
  box-shadow: 0 0 20px rgba(255, 213, 79, 0.08), inset 0 1px 0 rgba(255, 213, 79, 0.1);
  position: relative;
  overflow: hidden;
}
.tarot-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 213, 79, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.tarot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 213, 79, 0.2), 0 8px 25px rgba(26, 10, 62, 0.5);
  border-color: rgba(255, 213, 79, 0.6);
}
.tarot-btn:active { transform: translateY(0); }

.tarot-icon {
  opacity: 0.7;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}
.tarot-btn:hover .tarot-icon { opacity: 1; }

.tarot-btn-text {
  text-shadow: 0 0 12px rgba(255, 213, 79, 0.3);
}

/* Deck (shuffle phase) */
.tarot-deck {
  position: relative;
  width: 100px; height: 150px;
  margin: 1.5rem auto;
  display: none;
}
.tarot-deck.active { display: block; }

.deck-card {
  position: absolute;
  width: 100px; height: 150px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 50%, #1a0a3e 100%);
  border: 2px solid rgba(255, 213, 79, 0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  top: 0; left: 0;
}

@keyframes shuffle-left {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -5px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes shuffle-right {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -5px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.deck-card.shuffle-l { animation: shuffle-left 0.35s ease-in-out; }
.deck-card.shuffle-r { animation: shuffle-right 0.35s ease-in-out; }

/* Fan (pick phase) */
.tarot-fan {
  display: none;
  justify-content: center;
  align-items: flex-end;
  height: 200px;
  margin: 1.5rem auto;
  position: relative;
  width: 100%;
  max-width: 400px;
}
.tarot-fan.active { display: flex; }

.fan-card {
  width: 80px; height: 130px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a0a3e 0%, #2d1b69 50%, #1a0a3e 100%);
  border: 2px solid rgba(255, 213, 79, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  cursor: pointer;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(calc((var(--fan-idx) - 2) * 12deg)) translateY(calc((var(--fan-idx) - 2) * (var(--fan-idx) - 2) * 4px));
  transition: transform 0.3s ease, opacity 0.4s ease, box-shadow 0.3s ease;
  opacity: 0;
}
.fan-card.visible { opacity: 1; }
.fan-card:hover { transform: translateX(-50%) rotate(calc((var(--fan-idx) - 2) * 12deg)) translateY(calc((var(--fan-idx) - 2) * (var(--fan-idx) - 2) * 4px - 12px)); box-shadow: 0 6px 20px rgba(255, 213, 79, 0.3); }

.fan-card.selected {
  box-shadow: 0 0 25px 8px rgba(255, 200, 50, 0.6);
  border-color: var(--gold);
  transform: translateX(-50%) rotate(calc((var(--fan-idx) - 2) * 12deg)) translateY(calc((var(--fan-idx) - 2) * (var(--fan-idx) - 2) * 4px - 8px)) scale(1.08);
  z-index: 10;
}
.fan-card.dimmed { opacity: 0.25; pointer-events: none; filter: grayscale(0.5); }

/* Card back — inline SVG (no network fetch, renders instantly) */
.fan-card, .deck-card {
  background: var(--tarot-back) center/cover no-repeat;
}
.fan-card::after, .deck-card::after { display: none; }

/* SVG Orrery */
.tarot-orrery {
  display: none;
  width: 150px; height: 150px;
  margin: 1rem auto;
}
.tarot-orrery.active { display: block; }

.orrery-orbit { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 0.5; }
.orrery-planet { fill: rgba(200,200,220,0.7); }
.orrery-sun { fill: #ffd54f; }
.orrery-line { fill: none; stroke: #e53935; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1.5s ease-in-out; }

/* Reveal area */
.tarot-reveal { display: none; text-align: center; width: 100%; }
.tarot-reveal.active { display: block; }

.tarot-card-display {
  width: 120px; height: 180px;
  margin: 1rem auto;
  perspective: 600px;
}
.tarot-card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}
.tarot-card-inner.flipped { transform: rotateY(180deg); }

.tarot-card-face {
  position: absolute;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  border: 2px solid rgba(255, 213, 79, 0.4);
}
.tarot-back {
  background: var(--tarot-back) center/cover no-repeat;
}
.tarot-front {
  background: linear-gradient(135deg, #0d0630 0%, #1a0a3e 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Card glow pulse */
@keyframes card-glow {
  0%, 100% { box-shadow: 0 0 15px 4px rgba(255, 200, 50, 0.3); }
  50% { box-shadow: 0 0 30px 10px rgba(255, 200, 50, 0.5); }
}
.tarot-card-display.glow { animation: card-glow 2s ease-in-out infinite; }

.tarot-card-name {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tarot-card-name.visible { opacity: 1; }

.tarot-meaning {
  font-size: 1rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}
.tarot-meaning.visible { opacity: 1; }

.tarot-reading {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}
.tarot-reading.visible { opacity: 1; }

/* 13. Dot Navigation */
.dot-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 100;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(136, 136, 170, 0.3);
  border: 1px solid rgba(136, 136, 170, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.dot:hover {
  background: rgba(136, 136, 170, 0.6);
  transform: scale(1.3);
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent-light);
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.5);
  transform: scale(1.3);
}

/* Dot tooltip (optional — shows planet name on hover) */
.dot[title] {
  position: relative;
}

/* 14. Responsive — Planet Sections */
@media (max-width: 1024px) {
  .planet-card.glass {
    padding: 2.5rem;
    max-width: 600px;
  }

  .planet-title {
    font-size: 2rem;
  }

  .bigthree-grid {
    gap: 1rem;
  }

  .numerology-grid {
    gap: 1rem;
  }

  .planet-section[data-planet="moon"],
  .planet-section[data-planet="venus"],
  .planet-section[data-planet="mercury"],
  .planet-section[data-planet="jupiter"],
  .planet-section[data-planet="saturn"],
  .planet-section[data-planet="neptune"],
  .planet-section[data-planet="sun"] {
    margin-top: 60vh;
  }
}

@media (max-width: 600px) {
  .planet-section {
    padding: 2rem 1rem;
  }

  .planet-section[data-planet="moon"],
  .planet-section[data-planet="venus"],
  .planet-section[data-planet="mercury"],
  .planet-section[data-planet="jupiter"],
  .planet-section[data-planet="saturn"],
  .planet-section[data-planet="neptune"],
  .planet-section[data-planet="sun"] {
    margin-top: 50vh;
  }

  .planet-card.glass {
    padding: 1.5rem;
    max-width: 100%;
  }

  .planet-title {
    font-size: 1.6rem;
  }

  .planet-tagline {
    font-size: 0.95rem;
  }

  /* Form stacks vertically */
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Grids collapse to 1 column */
  .bigthree-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .compat-details {
    grid-template-columns: 1fr;
  }

  .chinese-fortune {
    grid-template-columns: 1fr;
  }

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

  /* Smaller elements */
  .compat-score-ring {
    width: 100px;
    height: 100px;
    font-size: 1.6rem;
  }

  .chinese-animal {
    font-size: 3.5rem;
  }

  .chinese-animal-name {
    font-size: 1.6rem;
  }

  .tarot-btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
  }

  .tarot-card-name {
    font-size: 1.4rem;
  }

  .fan-card {
    width: 60px; height: 100px;
  }

  .tarot-card-display {
    width: 90px; height: 135px;
  }

  .tarot-fan {
    height: 150px;
    max-width: 300px;
  }

  .numerology-number {
    font-size: 2.4rem;
  }

  /* Dot nav moves closer to edge on mobile */
  .dot-nav {
    right: 0.75rem;
    gap: 0.6rem;
  }

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

/* 15. Reduced Motion — Planet Sections */
@media (prefers-reduced-motion: reduce) {
  .planet-section .planet-card {
    opacity: 1;
    transform: none;
  }

  .planet-section.section-visible .planet-card {
    transition: none;
  }

  .planet-btn {
    transition: none;
  }

  .tarot-btn {
    transition: none;
  }

  .tarot-card-inner { transition: none; }
  .fan-card { transition: none; }
  .tarot-card-name, .tarot-meaning, .tarot-reading { transition: none; opacity: 1; }
  .deck-card.shuffle-l, .deck-card.shuffle-r { animation: none; }

  .dot {
    transition: none;
  }
}

/* ── Mars Section ─────────────────────────────────────── */
.mars-accent { color: #ff4444; }
.mars-btn { background: linear-gradient(135deg, #cc2200, #ff4444); }
.mars-btn:hover { background: linear-gradient(135deg, #ff4444, #ff6644); }
.mars-subtitle { color: #ff6644; font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.mars-return-desc { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 1rem; }

.mars-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.mars-stat {
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.15);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.mars-stat-label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; }
.mars-stat-value { display: block; font-size: 1.1rem; font-weight: 600; margin-top: 0.3rem; }
.retrograde-active { color: #ff4444; }
.direct-active { color: #44ff88; }

.mars-retro-alert {
  background: rgba(255,68,68,0.12);
  border: 1px solid rgba(255,68,68,0.3);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #ffaa88;
  margin-bottom: 1rem;
}
.mars-direct-note {
  background: rgba(68,255,136,0.08);
  border: 1px solid rgba(68,255,136,0.15);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.mars-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.mars-result-item {
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.15);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.mars-result-label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.mars-result-value { display: block; font-size: 1.1rem; font-weight: 600; color: #ff6644; margin-top: 0.3rem; }
.mars-return-meaning { color: rgba(255,255,255,0.7); font-style: italic; font-size: 0.9rem; }

.planetary-hour-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.planetary-hour-symbol { font-size: 2rem; }
.planetary-hour-name { font-size: 1.1rem; font-weight: 600; }
.planetary-hour-time { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-left: auto; }

/* ── Egyptian Astrology Section ─────────────────────── */
.egyptian-accent { color: #d4a843; }
.egyptian-btn {
  background: linear-gradient(135deg, #d4a843 0%, #8b6914 100%);
  border: 1px solid #d4a84366;
}
.egyptian-btn:hover { background: linear-gradient(135deg, #e6bc56 0%, #a07a1a 100%); }
.egyptian-card { border: 1px solid #d4a84322; }

.egyptian-deity-reveal { text-align: center; margin-bottom: 2rem; }
.deity-symbol { font-size: 4rem; margin-bottom: 0.5rem; }
.deity-name { font-family: 'Cinzel', serif; font-size: 2rem; color: #d4a843; margin: 0.25rem 0; }
.deity-egyptian-name { color: #d4a843aa; font-style: italic; font-size: 1.1rem; }
.deity-traits { color: #ccc; margin-top: 0.75rem; line-height: 1.6; max-width: 500px; margin-left: auto; margin-right: auto; }

.egyptian-profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
.egyptian-profile-item { background: rgba(212,168,67,0.08); border: 1px solid #d4a84322; border-radius: 10px; padding: 0.75rem; text-align: center; }
.ep-label { display: block; font-size: 0.8rem; color: #d4a843aa; text-transform: uppercase; letter-spacing: 0.05em; }
.ep-value { display: block; font-size: 1.05rem; color: #e8d5a3; margin-top: 0.25rem; }

.decan-info { text-align: center; margin: 1rem 0 1.5rem; padding: 1rem; background: rgba(212,168,67,0.06); border-radius: 10px; border: 1px solid #d4a84315; }
.decan-label { color: #d4a843; font-weight: 600; }
.decan-quality { color: #aaa; font-style: italic; margin-top: 0.25rem; }

.egyptian-loading, .hathors-loading { text-align: center; color: #d4a843aa; font-style: italic; padding: 1.5rem; animation: egyptPulse 2s ease-in-out infinite; }
@keyframes egyptPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.egyptian-readings { display: grid; gap: 1rem; margin: 1.5rem 0; }
.reading-card { background: rgba(18,18,42,0.6); border-radius: 12px; padding: 1.25rem; border: 1px solid #d4a84318; }
.reading-title { color: #d4a843; font-size: 1.1rem; margin: 0 0 0.5rem; }
.reading-subtitle { color: #d4a843aa; font-size: 0.85rem; font-weight: 400; }
.reading-energy { display: inline-block; background: #d4a84320; color: #d4a843; padding: 0.2rem 0.75rem; border-radius: 20px; font-size: 0.85rem; text-transform: capitalize; margin-bottom: 0.5rem; }
.reading-text { color: #ccc; line-height: 1.6; margin: 0; }

.maat-scale { margin: 0.75rem 0; }
.maat-bar { height: 8px; background: linear-gradient(90deg, #4a1942 0%, #d4a843 50%, #f0e6c8 100%); border-radius: 4px; position: relative; }
.maat-indicator { width: 16px; height: 16px; background: #d4a843; border: 2px solid #fff; border-radius: 50%; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); transition: left 0.8s ease; box-shadow: 0 0 10px #d4a84366; }
.maat-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: #888; margin-top: 0.25rem; }
.maat-advice { color: #d4a843cc; font-style: italic; margin-top: 0.5rem; font-size: 0.95rem; }

.sacred-word-container { text-align: center; margin: 1.5rem 0; }
.sacred-label { display: block; font-size: 0.8rem; color: #d4a843aa; text-transform: uppercase; letter-spacing: 0.1em; }
.sacred-word-text { display: block; font-family: 'Cinzel', serif; font-size: 2rem; color: #d4a843; margin-top: 0.25rem; }

.hathors-title { text-align: center; color: #d4a843; font-family: 'Cinzel', serif; font-size: 1.4rem; margin: 2rem 0 0.25rem; }
.hathors-subtitle { text-align: center; color: #888; font-style: italic; margin-bottom: 1.5rem; }
.hathors-decrees { display: grid; gap: 0.75rem; }
.hathor-decree { background: rgba(212,168,67,0.06); border-left: 3px solid #d4a843; padding: 0.75rem 1rem; border-radius: 0 8px 8px 0; opacity: 0; transform: translateX(-20px); animation: decreeReveal 0.5s ease forwards; }
.hathor-decree:nth-child(1) { animation-delay: 0.1s; }
.hathor-decree:nth-child(2) { animation-delay: 0.3s; }
.hathor-decree:nth-child(3) { animation-delay: 0.5s; }
.hathor-decree:nth-child(4) { animation-delay: 0.7s; }
.hathor-decree:nth-child(5) { animation-delay: 0.9s; }
.hathor-decree:nth-child(6) { animation-delay: 1.1s; }
.hathor-decree:nth-child(7) { animation-delay: 1.3s; }
@keyframes decreeReveal { to { opacity: 1; transform: translateX(0); } }
.decree-domain { color: #d4a843; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.decree-text { color: #ccc; margin-top: 0.25rem; line-height: 1.5; }

@media (max-width: 767px) {
  .egyptian-profile-grid { grid-template-columns: 1fr; }
  .deity-symbol { font-size: 3rem; }
  .deity-name { font-size: 1.5rem; }
}

/* ── Giza Atmospheric Scene ─────────────────────────── */
.planet-section[data-planet="earth_egypt"] {
  position: relative;
}

.planet-section[data-planet="earth_egypt"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 26, 0.3) 0%,
    rgba(45, 30, 10, 0.6) 40%,
    rgba(80, 50, 15, 0.7) 70%,
    rgba(50, 30, 5, 0.9) 100%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.planet-section[data-planet="earth_egypt"].section-visible::before {
  opacity: 1;
}

.planet-section[data-planet="earth_egypt"] .planet-card {
  position: relative;
  z-index: 1;
}

/* Pyramid silhouettes */
.planet-section[data-planet="earth_egypt"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: 
    linear-gradient(transparent 0%, rgba(30, 20, 5, 0.4) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpolygon points='300,200 400,40 500,200' fill='%23120a02' opacity='0.6'/%3E%3Cpolygon points='420,200 530,20 640,200' fill='%23180e04' opacity='0.7'/%3E%3Cpolygon points='500,200 560,80 620,200' fill='%23100802' opacity='0.5'/%3E%3Cpolygon points='0,200 50,180 100,200' fill='%230d0803' opacity='0.3'/%3E%3Cpolygon points='150,200 180,170 220,200' fill='%230d0803' opacity='0.25'/%3E%3Cpolygon points='700,200 740,160 780,200' fill='%230d0803' opacity='0.2'/%3E%3Cpolygon points='900,200 960,150 1020,200' fill='%230d0803' opacity='0.25'/%3E%3Cpolygon points='1050,200 1100,170 1150,200' fill='%230d0803' opacity='0.2'/%3E%3Crect x='370' y='180' width='2' height='20' fill='%230d0803' opacity='0.3'/%3E%3Cellipse cx='375' cy='175' rx='8' ry='15' fill='%230d0803' opacity='0.25'/%3E%3Crect x='680' y='175' width='2' height='25' fill='%230d0803' opacity='0.3'/%3E%3Cellipse cx='685' cy='168' rx='10' ry='18' fill='%230d0803' opacity='0.25'/%3E%3Crect x='850' y='170' width='2' height='30' fill='%230d0803' opacity='0.3'/%3E%3Cellipse cx='855' cy='163' rx='9' ry='16' fill='%230d0803' opacity='0.25'/%3E%3C/svg%3E") bottom/100% auto no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 2s ease 0.5s;
}

.planet-section[data-planet="earth_egypt"].section-visible::after {
  opacity: 1;
}

/* Sand particles animation */
@keyframes sandDrift {
  0% { transform: translateX(-10%) translateY(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateX(110%) translateY(-20px); opacity: 0; }
}

.egyptian-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(1px 1px at 20% 30%, rgba(212,168,67,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 70%, rgba(212,168,67,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 20%, rgba(212,168,67,0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 80%, rgba(212,168,67,0.2) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 10% 50%, rgba(212,168,67,0.15) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 40%, rgba(212,168,67,0.2) 50%, transparent 50%);
  background-size: 200px 200px;
  animation: sandDrift 8s linear infinite;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease 1s;
}

.planet-section[data-planet="earth_egypt"].section-visible .egyptian-card::before {
  opacity: 1;
}

.egyptian-card > * {
  position: relative;
  z-index: 1;
}

/* ── Sun Section — Auth / Account ─────────────────────── */
.sun-accent { color: #ffb300; }
.sun-btn {
  background: linear-gradient(135deg, #ff8f00, #ffb300);
  color: #1a1a3a;
  font-weight: 700;
}
.sun-btn:hover {
  background: linear-gradient(135deg, #ffb300, #ffd54f);
  box-shadow: 0 4px 20px rgba(255, 179, 0, 0.4);
}
.sun-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 179, 0, 0.4);
  color: #ffb300;
}
.sun-btn-outline:hover {
  border-color: #ffb300;
  background: rgba(255, 179, 0, 0.08);
}
.sun-card { border-color: rgba(255, 179, 0, 0.15); }

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 179, 0, 0.2);
}
.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  color: #ffb300;
  border-bottom-color: #ffb300;
}

/* Auth Forms */
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form .form-group { margin-bottom: 1rem; }
.auth-form .form-input:focus { border-color: #ffb300; }

/* Auth Messages */
.auth-error {
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.3);
  color: #ff5252;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-error.visible { display: block; }

.auth-success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #66bb6a;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-success.visible { display: block; }

/* Auth Welcome (logged-in state) */
.auth-container { display: block; }
.auth-welcome { display: none; text-align: center; }
.auth-welcome.active { display: block; }
.auth-container.logged-in .auth-welcome { display: block; }
.auth-container.logged-in .auth-tabs,
.auth-container.logged-in .auth-form { display: none; }

.welcome-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.welcome-name {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: #ffb300;
  margin-bottom: 0.25rem;
}
.welcome-email {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.welcome-since {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Header Auth Link */
.auth-link {
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.auth-link:hover {
  opacity: 1;
  color: #ffb300 !important;
}

/* User Menu (logged-in header) */
.user-menu { display: none; align-items: center; gap: 0.5rem; }
.user-menu.active { display: flex; }
.user-menu-btn {
  background: none;
  border: 1px solid rgba(255, 179, 0, 0.3);
  color: #ffb300;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.user-menu-btn:hover {
  background: rgba(255, 179, 0, 0.1);
  border-color: #ffb300;
}
.user-greeting {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .auth-link { font-size: 0.85rem !important; }
  .user-greeting { display: none; }
  .welcome-name { font-size: 1.3rem; }
}

/* ── Moon Phase Widget ────────────────────────────────────── */
.moon-phase-widget {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(158,158,175,0.08);
  border: 1px solid rgba(158,158,175,0.15);
  border-radius: 12px;
}

.moon-phase-title {
  color: #e0e0e8;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.moon-phase-display {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.moon-phase-icon {
  font-size: 4rem;
  line-height: 1;
  flex-shrink: 0;
}

.moon-phase-info {
  flex: 1;
}

.moon-phase-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.moon-phase-illumination {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.moon-phase-next {
  font-size: 0.85rem;
  color: var(--accent-light);
}

.moon-phase-interpretation {
  text-align: center;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(158,158,175,0.15);
}

/* ── Planetary Hours Schedule ─────────────────────────────── */
.planetary-hours-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.planetary-hour-current {
  margin-bottom: 1.5rem;
}

.planetary-hour-card.current {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 2px solid;
  border-radius: 12px;
  padding: 1.5rem;
}

.planetary-hour-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.planetary-hour-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.planetary-hour-activity {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.planetary-hours-schedule {
  margin-top: 1.5rem;
}

.schedule-subtitle {
  color: #ff6644;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.day-ruler-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.day-ruler-badge .ruler-symbol {
  font-size: 1.2rem;
}

.hours-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hour-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.hour-chip.now {
  background: rgba(255,68,68,0.15);
  border-color: rgba(255,68,68,0.4);
  color: #fff;
  font-weight: 600;
}

.hour-chip .h-sym {
  font-size: 0.95rem;
}

.hour-chip .h-time {
  font-size: 0.7rem;
  opacity: 0.6;
}

.aspects-today {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.aspects-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.6rem;
}

.aspect-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.aspect-glyph {
  font-size: 1rem;
  width: 1.2rem;
  text-align: center;
}

.aspect-type {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
}

.aspect-type.hard { background: rgba(255,68,68,0.1); color: rgba(255,100,100,0.7); }
.aspect-type.soft { background: rgba(68,255,68,0.1); color: rgba(100,255,100,0.7); }

/* Responsive adjustments */
@media (max-width: 600px) {
  .moon-phase-display {
    flex-direction: column;
    text-align: center;
  }

  .moon-phase-icon {
    font-size: 3rem;
  }

  .planetary-hour-card.current {
    flex-direction: column;
    text-align: center;
  }

  .hours-grid {
    gap: 0.3rem;
  }

  .hour-chip {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ── Constellation Section - Immersive Starfield ─────── */
.constellation-immersive {
  position: relative;
}

.constellation-immersive .planet-card {
  display: none !important;
}

.constellation-overlay-ui {
  position: absolute;
  left: 1.5rem;
  bottom: 2rem;
  max-width: 320px;
  background: rgba(4, 6, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 12px;
  padding: 1.2rem;
  z-index: 10;
  pointer-events: auto;
}

.constellation-header {
  margin-bottom: 0.8rem;
}

.constellation-title {
  font-size: 1.1rem;
  color: #c8b6ff;
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.constellation-tagline {
  font-size: 0.75rem;
  color: rgba(200, 182, 255, 0.6);
  margin: 0;
}

.constellation-visible-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: visible;
}

.constellation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.25);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  font-size: 0.8rem;
  color: rgba(200, 200, 255, 0.85);
  max-width: 100%;
  white-space: nowrap;
}

.constellation-chip:hover,
.constellation-chip.active {
  background: rgba(124, 77, 255, 0.3);
  border-color: #7c4dff;
  color: #fff;
  box-shadow: 0 0 8px rgba(124, 77, 255, 0.4);
}

.constellation-chip .chip-symbol {
  font-size: 1rem;
}

.constellation-chip .chip-pos {
  display: none;
}

.constellation-loading {
  color: rgba(200, 182, 255, 0.5);
  font-style: italic;
  font-size: 0.8rem;
}

/* Lore tooltip */
.constellation-lore {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(124, 77, 255, 0.15);
}

.constellation-lore-text {
  color: rgba(200, 182, 255, 0.7);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
}

.constellation-lore-text::first-line {
  color: rgba(168, 200, 255, 0.9);
  font-style: normal;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

/* Planets compact strip */
.constellation-planets-compact {
  position: absolute;
  right: 1.5rem;
  bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

#constellation-planet-grid {
  display: flex;
  gap: 0.4rem;
}

.const-planet-chip {
  padding: 0.3rem 0.6rem;
  background: rgba(4, 6, 18, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Hemisphere toggle compact */
.hemisphere-toggle {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.hemi-btn {
  background: rgba(168, 200, 255, 0.08);
  border: 1px solid rgba(168, 200, 255, 0.2);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.hemi-btn:hover {
  background: rgba(168, 200, 255, 0.15);
  color: var(--text);
}
.hemi-btn.active {
  background: rgba(168, 200, 255, 0.2);
  border-color: #a8c8ff;
  color: #a8c8ff;
}
.hemi-auto {
  font-size: 0.8rem;
}

.constellation-chart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.constellation-chart.visible {
  opacity: 1;
}

.constellation-chart svg {
  width: 100%;
  height: 100%;
}

.const-chart-star {
  fill: #e8e0ff;
  filter: drop-shadow(0 0 4px rgba(200, 182, 255, 0.8));
}

.const-chart-line {
  stroke: rgba(124, 77, 255, 0.5);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.const-chart-name {
  fill: rgba(200, 182, 255, 0.5);
  font-size: 14px;
  font-family: inherit;
  text-anchor: middle;
}

.const-chart-star-label {
  fill: rgba(200, 182, 255, 0.35);
  font-size: 9px;
  font-family: inherit;
}

@media (max-width: 768px) {
  .constellation-chart {
    width: 260px;
    height: 260px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .constellation-overlay-ui {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 1rem;
    max-width: none;
  }
  
  .constellation-planets-compact {
    right: 0.75rem;
    bottom: auto;
    top: 1rem;
  }
}

/* -- Google Earth Zoom Overlay (Egypt Section) -- */
#egypt-map-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  will-change: opacity;
}
#egypt-map-overlay.active {
  opacity: 1;
}
#egypt-map3d {
  width: 100%;
  height: 100%;
}

/* Sky chart styles removed — constellation section now uses immersive starfield with chip UI */

/* ── "I don't know" birth time checkbox ── */
.unknown-time-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: rgba(200, 210, 230, 0.7);
  cursor: pointer;
  user-select: none;
}
.unknown-time-label input[type="checkbox"] {
  accent-color: var(--accent, #a8c8ff);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
