/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --void: #060614;
  --cosmos: #0a0a1a;
  --nebula: #0d0d2b;
  --surface: rgba(15,23,42,0.4);
  --surface-hover: rgba(15,23,42,0.6);
  --glass: rgba(10,10,30,0.65);
  --glass-vivid: rgba(10,10,30,0.85);
  --border: rgba(0,212,255,0.06);
  --border-hover: rgba(0,212,255,0.15);
  --border-active: rgba(0,212,255,0.35);
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-dim: #d4a843;
  --gold-glow: rgba(245,158,11,0.15);
  --cyan: #00d4ff;
  --cyan-dim: #0ea5e9;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --teal: #10b981;
  --rose: #fb7185;
  --rose-bright: #f43f5e;
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --muted: #64748b;
  --fire: #f97316;
  --earth: #22c55e;
  --air: #eab308;
  --water: #3b82f6;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(0,212,255,0.04);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #00d4ff, #8b5cf6);
  --gradient-accent: linear-gradient(135deg, #0ea5e9, #a78bfa);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
}
/* Legacy aliases for JS-generated markup */
:root {
  --glass-border: var(--border);
  --glass-border-hover: var(--border-hover);
  --bg: var(--void);
  --bg2: var(--nebula);
  --surface2: rgba(15,23,42,0.5);
  --surface3: rgba(15,23,42,0.7);
  --gold-glow-color: #fbbf24;
  --rose-dim: #be1e3e;
  --purple-dim: #6d3fd9;
}
[data-theme="light"] {
  --void: #ffffff;
  --cosmos: #f8f9fc;
  --nebula: #f0f1f5;
  --deep-space: #e8eaf0;
  --text: #1a1a2e;
  --text-dim: #4a4a6a;
  --text-muted: #6a6a8a;
  --muted: #6a6a8a;
  --cyan: #0077cc;
  --cyan-dim: #0066aa;
  --purple: #6b3fa0;
  --purple-bright: #7c4dba;
  --teal: #0a8a6a;
  --rose: #d03050;
  --rose-bright: #c02040;
  --gold: #b8860b;
  --gold-bright: #cc9a0b;
  --gold-dim: #a07008;
  --gold-glow: rgba(184,134,11,0.15);
  --fire: #cc5500;
  --earth: #1a8a4a;
  --air: #b08a00;
  --water: #2060cc;
  --surface: rgba(0,0,0,0.03);
  --surface-hover: rgba(0,0,0,0.06);
  --glass: rgba(0,0,0,0.03);
  --glass-vivid: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
  --border-active: rgba(0,0,0,0.25);
  --glass-border: rgba(0,0,0,0.08);
  --glass-border-hover: rgba(0,0,0,0.15);
  --bg: #ffffff;
  --bg2: #f0f1f5;
  --surface2: rgba(0,0,0,0.04);
  --surface3: rgba(0,0,0,0.06);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(0,0,0,0.02);
  --gradient-primary: linear-gradient(135deg, #0077cc, #6b3fa0);
  --gradient-accent: linear-gradient(135deg, #0066aa, #7c4dba);
  --gradient-gold: linear-gradient(135deg, #b8860b, #cc9a0b);
  --card-bg: rgba(255, 255, 255, 0.9);
}
html { font-size: 15px; scroll-behavior: smooth; }
body {
  background: var(--void);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,92,246,0.04) 0%, transparent 50%),
    linear-gradient(160deg, var(--void) 0%, var(--cosmos) 40%, var(--nebula) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem; font-weight: 600;
  background: linear-gradient(135deg, #00d4ff, #a78bfa, #f59e0b);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem; font-weight: 600; color: var(--cyan);
  letter-spacing: 0.02em;
}
h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem; font-weight: 500; color: var(--cyan-dim);
}
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-dim); }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0,212,255,0.2), rgba(139,92,246,0.2));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0,212,255,0.35), rgba(139,92,246,0.35));
}

/* ── Star Canvas ──────────────────────────────────────────── */
#star-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ── Ambient Glow Orbs ────────────────────────────────────── */
.glow-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(120px); opacity: 0.07;
}
.glow-orb-1 { width: 600px; height: 600px; background: var(--cyan); top: -150px; right: -150px; animation: floatOrb 22s ease-in-out infinite; }
.glow-orb-2 { width: 500px; height: 500px; background: var(--purple); bottom: -150px; left: -150px; animation: floatOrb 28s ease-in-out infinite reverse; }
.glow-orb-3 { width: 400px; height: 400px; background: #0ea5e9; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: floatOrb 20s ease-in-out infinite; }
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ── Noise Texture Overlay ────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── App Container ────────────────────────────────────────── */
#app {
  position: relative; z-index: 1;
  margin: 0 auto; padding: 0;
}
.dashboard-section {
  max-width: 1120px; margin: 0 auto; padding: 0 24px 100px;
}

/* ── Header ───────────────────────────────────────────────── */
.app-header {
  text-align: center; padding: 48px 0 36px;
  position: relative;
}
.app-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gradient-primary);
  margin: 20px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}
.app-header h1 {
  font-size: 3rem; letter-spacing: 6px; font-weight: 600;
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.2));
}
.app-header p {
  color: var(--muted); font-size: 0.8rem; margin-top: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
}

/* ── Lang Switcher ────────────────────────────────────────── */
.lang-switcher {
  position: fixed; top: 20px; right: 20px; z-index: 100;
  display: flex; gap: 3px; align-items: center;
  background: rgba(10,10,30,0.7); border: 1px solid rgba(0,212,255,0.1);
  border-radius: 24px; padding: 4px;
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,255,0.04);
}
.lang-btn {
  background: transparent; border: none; color: var(--muted);
  padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.lang-btn.active {
  color: #fff; background: var(--gradient-primary);
  box-shadow: 0 0 16px rgba(0,212,255,0.2);
}
.lang-sw { position: relative; }
.lang-sw-btn {
  background: transparent; border: none; color: var(--text, #e8ecf4);
  padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.lang-sw-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.lang-sw .lang-dd { display: none !important; }
.lang-sw.open .lang-dd {
  display: block !important; position: absolute; right: 0; top: calc(100% + 6px);
  background: rgba(10,10,30,0.95); border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px; padding: 6px 0; z-index: 999; min-width: 160px;
  backdrop-filter: blur(20px); box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lang-dd a {
  display: block; padding: 8px 16px; color: var(--muted, #94a3b8);
  text-decoration: none; font-size: 0.8rem; font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.lang-dd a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.lang-dd a.active { color: var(--gold, #f5c542); }

/* ── Nav Tabs ─────────────────────────────────────────────── */
.nav-tabs {
  display: flex; gap: 3px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px; padding: 5px;
  background: rgba(8,8,24,0.75);
  border: 1px solid rgba(0,212,255,0.08);
  border-radius: 32px;
  backdrop-filter: blur(32px) saturate(1.6);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
  position: sticky; top: 8px; z-index: 50;
}
.nav-tab {
  background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  padding: 10px 20px; border-radius: 26px; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.nav-tab:hover { color: var(--text); background: rgba(0,212,255,0.05); }
.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(0,212,255,0.18);
  box-shadow: 0 0 20px rgba(0,212,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  text-shadow: 0 0 12px rgba(0,212,255,0.3);
}

/* ── Tab Panels ───────────────────────────────────────────── */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cards / Glass Panels ─────────────────────────────────── */
.card {
  background: rgba(10,10,30,0.55);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px;
  backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: var(--shadow), var(--shadow-glow);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: rgba(0,212,255,0.1);
  box-shadow: var(--shadow), 0 0 40px rgba(0,212,255,0.04);
}
.card:hover::before { opacity: 1; }
.card-gold {
  border-color: rgba(0,212,255,0.1);
  box-shadow: var(--shadow), 0 0 50px rgba(0,212,255,0.03);
}
.card-gold::before { opacity: 1; }
.card h2 { font-size: 1.45rem; margin-bottom: 20px; }
.card h3 { font-size: 1.1rem; margin-bottom: 12px; }

/* ── Card entry animation ─────────────────────────────────── */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.card-reveal { animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; opacity: 0; }
.card-reveal:nth-child(2) { animation-delay: 0.1s; }
.card-reveal:nth-child(3) { animation-delay: 0.2s; }
.card-reveal:nth-child(4) { animation-delay: 0.3s; }

/* ── Tables ───────────────────────────────────────────────── */
.data-table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.84rem;
}
.data-table th {
  text-align: left; padding: 12px 16px; color: var(--text-dim);
  background: rgba(0,212,255,0.06);
  border-bottom: 1px solid rgba(0,212,255,0.12); font-weight: 600;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
}
.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child { border-radius: 0 8px 0 0; }
.data-table td {
  padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--transition);
}
.data-table tbody tr:nth-child(even) td { background: rgba(15,23,42,0.3); }
.data-table tr:hover td { background: rgba(0,212,255,0.04); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.75rem; color: var(--text-dim); margin-bottom: 7px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.form-group input, .form-group select {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 12px 16px; color: var(--text);
  font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  outline: none; transition: all var(--transition);
}
.form-group input:focus, .form-group select:focus {
  border-color: rgba(0,212,255,0.4);
  background: rgba(15,23,42,0.9);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08), 0 0 20px rgba(0,212,255,0.06);
}
.form-group input::placeholder { color: var(--muted); }
.form-group select option { background: #0a0a1a; color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  background: var(--gradient-primary);
  color: #fff; border: none; border-radius: 12px;
  padding: 12px 28px; font-size: 0.9rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,212,255,0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,255,0.3), 0 0 40px rgba(0,212,255,0.1);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); box-shadow: 0 2px 12px rgba(0,212,255,0.2); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; border-radius: 10px; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  box-shadow: none; font-weight: 500;
}
.btn-outline::before { display: none; }
.btn-outline:hover {
  border-color: rgba(0,212,255,0.3); color: var(--cyan);
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 16px rgba(0,212,255,0.08);
  transform: translateY(-1px);
}
.btn-outline.active {
  border-color: rgba(0,212,255,0.3); color: var(--cyan);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 18px rgba(0,212,255,0.1);
}

/* ── Zodiac Grid ──────────────────────────────────────────── */
.zodiac-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.zodiac-btn {
  background: rgba(15,23,42,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm); padding: 18px 8px; cursor: pointer;
  text-align: center; transition: all var(--transition); color: var(--text);
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.zodiac-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 30%, var(--element-color, transparent) 0%, transparent 70%);
  opacity: 0; transition: opacity var(--transition);
}
.zodiac-btn:hover::before { opacity: 0.1; }
.zodiac-btn:hover {
  border-color: rgba(0,212,255,0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 20px rgba(0,212,255,0.05);
}
.zodiac-btn.active {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 30px rgba(0,212,255,0.1), 0 8px 28px rgba(0,0,0,0.3);
  transform: translateY(-2px) scale(1.03);
}
.zodiac-btn .symbol {
  font-size: 1.9rem; display: block; margin-bottom: 6px;
  filter: drop-shadow(0 0 12px var(--element-color, rgba(0,212,255,0.3)));
  transition: filter var(--transition);
}
.zodiac-btn.active .symbol {
  filter: drop-shadow(0 0 18px var(--element-color, rgba(0,212,255,0.5)));
}
.zodiac-btn .name {
  font-size: 0.72rem; color: var(--muted); font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
}
.zodiac-btn.active .name { color: var(--cyan); }
.zodiac-btn .element-dot {
  width: 5px; height: 5px; border-radius: 50%; margin: 7px auto 0;
  background: var(--element-color);
  box-shadow: 0 0 10px var(--element-color);
}

/* ── Spinner ──────────────────────────────────────────────── */
.spinner-wrap {
  display: flex; flex-direction: column; align-items: center; padding: 56px;
}
.spinner {
  width: 48px; height: 48px;
  border: 2px solid rgba(0,212,255,0.08);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: orbital-spin 1s linear infinite;
  position: relative;
}
.spinner::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--purple);
  animation: orbital-spin 1.4s linear infinite reverse;
}
@keyframes orbital-spin { to { transform: rotate(360deg); } }
/* Keep legacy alias */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-text { color: var(--muted); margin-top: 16px; font-style: italic; font-size: 0.85rem; letter-spacing: 0.04em; }
/* Pulsing dots */
.loading-dots::after { content: ''; animation: dots 1.5s infinite; }
@keyframes dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }

/* ── Share Card Spinner ──────────────────────────────────── */
.share-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(13,13,43,0.3);
  border-top-color: #0d0d2b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  font-family: 'DM Sans', sans-serif;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.badge-domicile { background: rgba(16,185,129,0.12); color: var(--teal); border: 1px solid rgba(16,185,129,0.2); }
.badge-exaltation { background: rgba(245,158,11,0.12); color: var(--gold); border: 1px solid rgba(245,158,11,0.2); }
.badge-detriment { background: rgba(244,63,94,0.1); color: var(--rose); border: 1px solid rgba(244,63,94,0.18); }
.badge-fall { background: rgba(244,63,94,0.15); color: var(--rose-bright); border: 1px solid rgba(244,63,94,0.22); }
.badge-peregrine { background: rgba(148,163,184,0.08); color: var(--text-dim); border: 1px solid rgba(148,163,184,0.12); }
.badge-harmonious { background: rgba(16,185,129,0.1); color: var(--teal); border: 1px solid rgba(16,185,129,0.18); }
.badge-challenging { background: rgba(244,63,94,0.1); color: var(--rose); border: 1px solid rgba(244,63,94,0.18); }
.badge-neutral { background: rgba(0,212,255,0.08); color: var(--cyan); border: 1px solid rgba(0,212,255,0.15); }

/* ── SVG Wheel ───────────────────────────────────────────── */
.card svg { width: 100%; height: auto; }

/* ── Star Ratings ─────────────────────────────────────────── */
.stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 3px; text-shadow: 0 0 12px rgba(245,158,11,0.3); }
.stars-dim { color: rgba(255,255,255,0.06); text-shadow: none; }
/* Animated fill */
.star-animate { animation: starPop 0.3s ease forwards; opacity: 0; transform: scale(0.5); }
@keyframes starPop { to { opacity: 1; transform: scale(1); } }

/* ── Ratings Grid ─────────────────────────────────────────── */
.ratings-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.rating-item {
  background: rgba(15,23,42,0.4); border-radius: var(--radius-sm);
  padding: 18px; text-align: center;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.rating-item:hover {
  background: rgba(15,23,42,0.6);
  border-color: rgba(0,212,255,0.1);
  box-shadow: 0 0 20px rgba(0,212,255,0.04);
}
.rating-label {
  font-size: 0.75rem; color: var(--text-dim); margin-bottom: 10px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  font-family: 'DM Sans', sans-serif;
}

/* ── Progress Bars ────────────────────────────────────────── */
.progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.progress-label { width: 90px; font-size: 0.8rem; color: var(--text-dim); text-align: right; font-weight: 500; }
.progress-bar {
  flex: 1; height: 6px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--fill-color, var(--cyan)), var(--fill-color-end, var(--purple)));
  box-shadow: 0 0 12px var(--fill-color, rgba(0,212,255,0.3));
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: progressShine 2s ease-in-out infinite;
}
@keyframes progressShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.progress-value { width: 45px; font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }

/* ── Do/Don't Lists ───────────────────────────────────────── */
.list-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list-do, .list-dont { list-style: none; font-size: 0.85rem; }
.list-do li, .list-dont li { margin-bottom: 10px; padding-left: 6px; display: flex; align-items: flex-start; gap: 10px; }
.list-do li::before { content: '\2713'; color: var(--teal); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.list-dont li::before { content: '\2717'; color: var(--rose); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }

/* ── Error Box ────────────────────────────────────────────── */
.error-box {
  background: rgba(244,63,94,0.06); border: 1px solid rgba(244,63,94,0.18);
  border-radius: var(--radius-sm); padding: 16px 20px; color: var(--rose);
  font-size: 0.85rem; backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(244,63,94,0.04);
}

/* ── Compatibility Gauge ──────────────────────────────────── */
.compat-gauge {
  width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 50px rgba(0,212,255,0.08), 0 0 100px rgba(139,92,246,0.04);
}
.compat-gauge .score {
  font-size: 2.6rem; font-weight: 700; font-family: 'Cormorant Garamond', serif;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Sub-tabs ─────────────────────────────────────────────── */
.sub-tabs {
  display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap;
}
.sub-tab {
  background: transparent; border: 1px solid rgba(255,255,255,0.06); color: var(--muted);
  padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 0.78rem;
  font-weight: 600; transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}
.sub-tab:hover { border-color: rgba(0,212,255,0.15); color: var(--text); background: rgba(0,212,255,0.03); }
.sub-tab.active {
  border-color: rgba(0,212,255,0.25); color: var(--cyan);
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 16px rgba(0,212,255,0.08);
}
.sub-panel { display: none; }
.sub-panel.active { display: block; animation: fadeInUp 0.3s ease; }

/* ── Retrograde ───────────────────────────────────────────── */
.retro { color: var(--rose); text-shadow: 0 0 8px rgba(244,63,94,0.3); }

/* ── Period Selector ──────────────────────────────────────── */
.period-selector {
  display: flex; gap: 6px; justify-content: center;
  background: rgba(15,23,42,0.4); padding: 5px;
  border-radius: 24px; border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.period-selector .btn-outline { border-radius: 20px; }

/* ── Horoscope Result Sections ────────────────────────────── */
.horoscope-header {
  display: flex; align-items: center; gap: 24px; margin-bottom: 24px;
}
.horoscope-sign-badge {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(139,92,246,0.08));
  border: 2px solid rgba(0,212,255,0.2);
  box-shadow: 0 0 30px rgba(0,212,255,0.08), 0 0 60px rgba(139,92,246,0.04);
  animation: badgePulse 4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0,212,255,0.08), 0 0 60px rgba(139,92,246,0.04); }
  50% { box-shadow: 0 0 40px rgba(0,212,255,0.12), 0 0 80px rgba(139,92,246,0.06); }
}
.horoscope-sign-badge .symbol {
  background: linear-gradient(135deg, var(--cyan), var(--purple-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.horoscope-header-text h2 { margin-bottom: 4px; }
.horoscope-header-text .date { color: var(--muted); font-size: 0.85rem; }
.horoscope-summary {
  font-size: 1.02rem; line-height: 1.85; color: var(--text);
  margin-bottom: 24px; font-weight: 400;
  padding: 20px 24px; background: rgba(15,23,42,0.3);
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  border-image: var(--gradient-primary) 1;
  backdrop-filter: blur(8px);
}
.mood-bar {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.mood-item {
  background: rgba(15,23,42,0.4); padding: 10px 18px; border-radius: var(--radius-xs);
  font-size: 0.84rem; border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.mood-item:hover { background: rgba(15,23,42,0.6); border-color: rgba(0,212,255,0.1); }
.mood-item span { color: var(--cyan); font-weight: 600; }

/* ── Constellation SVG ────────────────────────────────────── */
.constellation-svg {
  position: absolute; top: 16px; right: 16px; width: 80px; height: 80px;
  opacity: 0.08;
}
.constellation-svg line { stroke: var(--cyan); stroke-width: 1; opacity: 0.6; }
.constellation-svg circle { fill: var(--cyan); opacity: 0.8; }

/* ── Collapsible Sections ─────────────────────────────────── */
.section-toggle {
  cursor: pointer; display: flex; align-items: center; gap: 12px;
  user-select: none; transition: color var(--transition);
  padding: 4px 0;
}
.section-toggle:hover { color: var(--cyan); }
.section-toggle::before {
  content: '\25B8'; color: var(--cyan); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block; font-size: 0.8rem;
}
.section-toggle.open::before { transform: rotate(90deg); }
.section-content { overflow: hidden; max-height: 0; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.section-content.open { max-height: 5000px; }

.geo-row { display: flex; gap: 10px; align-items: flex-end; }
.geo-row .form-group { flex: 1; }
.geo-row .btn { margin-bottom: 0; height: 44px; }

/* ── Weekly/Monthly extras ────────────────────────────────── */
.key-date-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: rgba(15,23,42,0.3); border-radius: var(--radius-xs);
  margin-bottom: 10px; border-left: 3px solid var(--cyan);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.key-date-card:hover { background: rgba(15,23,42,0.5); }
.key-date-card.harmonious { border-left-color: var(--teal); }
.key-date-card.challenging { border-left-color: var(--rose); }
.key-date-day { font-weight: 600; color: var(--cyan); min-width: 80px; font-size: 0.85rem; }
.key-date-desc { font-size: 0.84rem; color: var(--text-dim); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  text-align: center; padding: 32px 0 16px;
  border-top: 1px solid rgba(0,212,255,0.08);
  margin-top: 60px; color: var(--muted); font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .list-columns { grid-template-columns: 1fr; }
  .ratings-grid { grid-template-columns: 1fr 1fr; }
  .synastry-grid { grid-template-columns: 1fr !important; }
  .horoscope-header { flex-direction: column; text-align: center; }
  .dashboard-section { padding: 0 16px 80px; }
  .nav-tabs { position: static; }
  .card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .zodiac-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .zodiac-btn { padding: 14px 6px; }
  .zodiac-btn .symbol { font-size: 1.5rem; }
  .nav-tabs { gap: 2px; padding: 4px; position: static; }
  .nav-tab { padding: 8px 12px; font-size: 0.78rem; }
  .data-table { font-size: 0.76rem; }
  .data-table th, .data-table td { padding: 7px 8px; }
  .card { padding: 20px 16px; }
  .ratings-grid { grid-template-columns: 1fr; }
  .mood-bar { flex-direction: column; }
  .mood-bar .mood-item { width: 100%; }
  .sub-tabs { flex-wrap: wrap; }
}

/* ── LANDING PAGE ─────────────────────────────────────────── */

/* Hero Section */
/* ── Pegasus Art ──────────────────────────────────────────── */
.pegasus-center {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1100px;
  opacity: 0.18;
  animation: pegasusBreathe 10s ease-in-out infinite;
}
.pegasus-glow-layer {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1100px;
  filter: blur(25px) saturate(1.8);
  opacity: 0.22;
  animation: pegasusGlowPulse 8s ease-in-out infinite;
}
@keyframes pegasusBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.18; }
  50% { transform: translate(-50%, -51%) scale(1.02); opacity: 0.22; }
}
@keyframes pegasusGlowPulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.32; }
}
/* Animated glowing stars scattered over hero */
.hero-stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-star {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(0,212,255,0.6), 0 0 12px 4px rgba(167,139,250,0.3);
  animation: heroStarPulse 3s ease-in-out infinite;
}
.hero-star:nth-child(2) { animation-delay: 0.5s; animation-duration: 3.5s; }
.hero-star:nth-child(3) { animation-delay: 1.0s; animation-duration: 4s; }
.hero-star:nth-child(4) { animation-delay: 1.5s; animation-duration: 2.8s; }
.hero-star:nth-child(5) { animation-delay: 0.3s; animation-duration: 4.2s; }
.hero-star:nth-child(6) { animation-delay: 0.8s; animation-duration: 3.2s; }
.hero-star:nth-child(7) { animation-delay: 1.2s; animation-duration: 3.8s; }
.hero-star:nth-child(8) { animation-delay: 2.0s; animation-duration: 4.5s; }
.hero-star:nth-child(9) { animation-delay: 0.6s; animation-duration: 2.5s; }
.hero-star:nth-child(10) { animation-delay: 1.8s; animation-duration: 3.6s; }
.hero-star:nth-child(11) { animation-delay: 0.2s; animation-duration: 4.8s; }
.hero-star:nth-child(12) { animation-delay: 1.4s; animation-duration: 3.3s; }
.hero-star.gold { box-shadow: 0 0 6px 2px rgba(245,158,11,0.7), 0 0 14px 4px rgba(245,158,11,0.3); }
.hero-star.purple { box-shadow: 0 0 6px 2px rgba(167,139,250,0.7), 0 0 14px 4px rgba(167,139,250,0.3); }
.hero-star.lg { width: 5px; height: 5px; }
.hero-star.sm { width: 3px; height: 3px; }
@keyframes heroStarPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
}
@media (max-width: 768px) {
  .pegasus-center { width: 120%; max-width: none; }
  .pegasus-glow-layer { width: 120%; max-width: none; opacity: 0.15; }
  .hero-star { width: 3px; height: 3px; }
  .hero-star.lg { width: 4px; height: 4px; }
  .hero-star.sm { width: 2px; height: 2px; }
  .hero-stars { opacity: 0.7; }
}
@media (max-width: 480px) {
  .hero-stars { opacity: 0.5; }
  .hero-star:nth-child(n+10) { display: none; }
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
  overflow: hidden;
}
/* Hero gradient mesh background */
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 40%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(139,92,246,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 30% 40% at 70% 30%, rgba(14,165,233,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.landing-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: 40px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.12);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease both;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}
.landing-hero .hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.landing-hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  letter-spacing: 10px;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s both;
  filter: drop-shadow(0 0 50px rgba(0,212,255,0.15));
  position: relative;
  z-index: 1;
}
.landing-hero .hero-subtitle {
  color: var(--text-dim);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  max-width: 540px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  margin-bottom: 52px;
  animation: fadeInUp 0.8s ease 0.3s both;
  position: relative;
  z-index: 1;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 60px;
  padding: 18px 48px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 28px rgba(0,212,255,0.25), 0 0 60px rgba(0,212,255,0.08);
  animation: fadeInUp 0.8s ease 0.45s both;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 44px rgba(0,212,255,0.35), 0 0 80px rgba(0,212,255,0.12);
  background-position: 100% 100%;
  color: #fff;
}
.hero-cta:hover::before { opacity: 1; }
.hero-cta:active { transform: translateY(0) scale(1); }
.hero-cta .cta-arrow {
  transition: transform 0.3s ease;
  font-size: 1.2em;
}
.hero-cta:hover .cta-arrow { transform: translateX(5px); }

/* Floating Zodiac Symbols */
.floating-zodiac {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-zodiac .z-sym {
  position: absolute;
  font-size: 2rem;
  opacity: 0.03;
  color: var(--cyan);
  animation: floatSymbol 20s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatSymbol {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-25px) rotate(5deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
  75% { transform: translateY(-30px) rotate(4deg); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s ease 0.7s both;
  z-index: 1;
}
.scroll-indicator span {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}
.scroll-indicator .scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 44px; }
  50% { opacity: 0.2; height: 20px; }
}

/* Features Section */
.landing-features {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 100px 24px 120px;
}
.section-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-heading {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 64px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: rgba(10,10,30,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 40px 24px 36px;
  text-align: center;
  backdrop-filter: blur(24px) saturate(1.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, var(--card-accent, var(--cyan)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent, rgba(0,212,255,0.2)), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover::before { opacity: 0.07; }
.feature-card:hover::after { opacity: 1; }
.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0,212,255,0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 50px rgba(0,212,255,0.05);
}
.feature-card .feature-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(139,92,246,0.06));
  border: 1px solid rgba(0,212,255,0.1);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  box-shadow: 0 0 24px rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.2);
}
.feature-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.feature-card p {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Dashboard Wrapper */
.dashboard-section {
  position: relative;
  z-index: 1;
}
.dashboard-section .app-header {
  text-align: center;
  padding: 24px 0 32px;
}

/* Divider Line */
.section-divider {
  width: 80px;
  height: 2px;
  background: var(--gradient-primary);
  margin: 0 auto 80px;
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(0,212,255,0.2);
}

/* ── Hero CTA Group ──────────────────────────────────────── */
.hero-cta-group {
  display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap;
}
.hero-cta-primary {
  background: var(--gradient-primary) !important;
  color: var(--void) !important;
  font-weight: 700;
  padding: 14px 32px !important;
  border-radius: 14px !important;
}
.hero-cta-secondary {
  background: transparent !important;
  border: 1px solid rgba(0,212,255,0.3) !important;
  color: var(--cyan) !important;
  padding: 14px 32px !important;
  border-radius: 14px !important;
}
.hero-cta-secondary:hover { border-color: var(--cyan) !important; background: rgba(0,212,255,0.05) !important; }
/* ── How It Works ────────────────────────────────────────── */
.landing-how {
  max-width: 1000px; margin: 0 auto; padding: 60px 24px 80px; text-align: center;
}
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem;
}
.how-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center;
}
.how-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-primary); color: var(--void);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem;
}
.how-step h3 {
  color: var(--text); font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem; margin-bottom: 0.5rem;
}
.how-step p {
  color: var(--muted); font-size: 0.88rem; line-height: 1.6;
}

/* ── Pricing Preview ─────────────────────────────────────── */
.landing-pricing-preview {
  max-width: 800px; margin: 0 auto; padding: 60px 24px 80px; text-align: center;
}
.pricing-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem;
}
.pricing-mini {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center;
}
.pricing-mini-featured {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 0 30px rgba(139,92,246,0.08);
}
.pricing-mini-tier {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 0.3rem;
}
.pricing-mini-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.5rem;
}
.pricing-mini-price span {
  font-size: 0.85rem; color: var(--muted); font-weight: 400;
}
.pricing-mini p {
  color: var(--text-dim); font-size: 0.82rem; line-height: 1.5;
}

/* ── Enhanced Hero Stats Strip ────────────────────────────── */
/* ── Hero Quick-Start Form ────────────────────────────────── */
.hero-quick-start {
  max-width: 680px;
  margin: 2rem auto 0;
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 16px 24px;
  backdrop-filter: blur(12px);
  animation: fadeInUp 0.8s ease 0.4s both;
  position: relative;
  z-index: 1;
}
.hqs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.hqs-row label {
  font-size: 0.85rem;
  color: var(--text-dim, #9a9890);
  font-style: italic;
}
.hqs-row input {
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: 8px;
  color: var(--text, #e8ecf4);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.hqs-row input:focus {
  outline: none;
  border-color: var(--gold, #d4a843);
  box-shadow: 0 0 0 2px rgba(212,168,67,0.15);
}
.hqs-row input[type="date"] { width: 140px; }
.hqs-row input[type="time"] { width: 100px; }
.hqs-row input[type="text"] { width: 150px; flex: 1; min-width: 120px; }
.hqs-row button {
  padding: 10px 24px;
  background: var(--gold, #d4a843);
  color: #0d0d2b;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.hqs-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,168,67,0.3);
}
.hqs-row button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
[data-theme="light"] .hqs-row input {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
@media (max-width: 768px) {
  .hqs-row { flex-direction: column; gap: 8px; }
  .hqs-row input, .hqs-row button { width: 100%; }
  .hqs-row label { display: none; }
}

/* ── Teaser Result Panel ─────────────────────────────────── */
.hero-teaser {
  max-width: 680px;
  margin: 1.5rem auto 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(18,18,38,0.85));
  border: 1px solid rgba(212,168,67,0.2);
  border-left: 4px solid var(--gold, #d4a843);
  border-radius: 12px;
  padding: 1.5rem;
  display: none;
  animation: teaser-in 0.5s ease;
  position: relative;
  z-index: 1;
}
[data-theme="light"] .hero-teaser {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,252,0.9));
  border-color: rgba(184,134,11,0.25);
  border-left-color: var(--gold, #b8860b);
}
@keyframes teaser-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-teaser .teaser-sign {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero-teaser .teaser-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text, #e8ecf4);
  margin-bottom: 1rem;
}

/* Emotional Insight (primary -- the "how did it know?" moment) */
.hero-teaser .teaser-emotional-insight {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text, #e8ecf4);
  margin-bottom: 1rem;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(139,92,246,0.04));
  border-left: 3px solid var(--gold, #d4a843);
  border-radius: 0 12px 12px 0;
  display: none;
  animation: insight-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
[data-theme="light"] .hero-teaser .teaser-emotional-insight {
  background: linear-gradient(135deg, rgba(184,134,11,0.06), rgba(139,92,246,0.03));
  color: #1e293b;
}
@keyframes insight-reveal {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Rising Sign Note */
.hero-teaser .teaser-rising-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-dim, #94a3b8);
  margin-bottom: 0.75rem;
  padding: 10px 16px;
  border-left: 2px solid rgba(139,92,246,0.4);
  border-radius: 0 8px 8px 0;
  display: none;
  animation: insight-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
[data-theme="light"] .hero-teaser .teaser-rising-note {
  color: #475569;
}

/* Hidden Strength */
.hero-teaser .teaser-hidden-strength {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text, #e8ecf4);
  margin-bottom: 0.75rem;
  padding: 12px 16px;
  background: rgba(34,197,94,0.06);
  border-left: 3px solid rgba(34,197,94,0.5);
  border-radius: 0 8px 8px 0;
  display: none;
  animation: insight-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
[data-theme="light"] .hero-teaser .teaser-hidden-strength {
  background: rgba(34,197,94,0.05);
  color: #1e293b;
}

/* Timing Now (personalized transit) */
.hero-teaser .teaser-timing-now {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-dim, #94a3b8);
  margin-bottom: 1rem;
  padding: 10px 16px;
  background: rgba(59,130,246,0.06);
  border-left: 3px solid rgba(59,130,246,0.5);
  border-radius: 0 8px 8px 0;
  display: none;
  animation: insight-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
[data-theme="light"] .hero-teaser .teaser-timing-now {
  background: rgba(59,130,246,0.04);
  color: #475569;
}

.hero-teaser .teaser-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gold, #d4a843);
  color: #0d0d2b;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 12px;
  transition: all 0.25s ease;
}
.hero-teaser .teaser-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,168,67,0.3);
}
.hero-teaser .teaser-share {
  color: var(--gold, #d4a843);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}
.hero-teaser .teaser-share:hover {
  opacity: 0.8;
}

/* Core Question insight */
.hero-teaser .teaser-core-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-dim, #d4a843);
  margin: 0.75rem 0;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.06);
  border-left: 3px solid var(--gold, #d4a843);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
  display: none;
}
[data-theme="light"] .hero-teaser .teaser-core-question {
  background: rgba(184, 134, 11, 0.06);
  color: #92610a;
}

/* Birthday Celebrity Match */
.hero-teaser .teaser-birthday-match {
  font-size: 0.92rem;
  color: var(--text-dim, #94a3b8);
  margin: 0.5rem 0;
  padding: 10px 16px;
  background: rgba(139, 92, 246, 0.06);
  border-left: 3px solid var(--purple, #8b5cf6);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
  display: none;
}
.hero-teaser .teaser-birthday-match a {
  color: var(--purple, #8b5cf6);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.hero-teaser .teaser-birthday-match a:hover {
  color: var(--gold, #d4a843);
}
[data-theme="light"] .hero-teaser .teaser-birthday-match {
  background: rgba(139, 92, 246, 0.06);
  color: #475569;
}

/* Tough Month */
.hero-teaser .teaser-tough-month {
  font-size: 0.92rem;
  color: var(--text-dim, #94a3b8);
  margin: 0.5rem 0 1rem;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.05);
  border-left: 3px solid rgba(239, 68, 68, 0.5);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
  display: none;
}
[data-theme="light"] .hero-teaser .teaser-tough-month {
  background: rgba(239, 68, 68, 0.04);
  color: #475569;
}

.hero-stats-strip {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.5rem; animation: fadeInUp 0.8s ease 0.6s both;
  position: relative; z-index: 1;
}
.hero-stat {
  text-align: center;
}
.hero-stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem; font-weight: 700; color: var(--gold);
  line-height: 1.2;
}
.hero-stat-label {
  font-size: 0.7rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.1em; font-family: 'DM Sans', sans-serif; font-weight: 600;
}

/* ── FAQ Section ─────────────────────────────────────────── */
.landing-faq {
  max-width: 800px; margin: 0 auto; padding: 80px 24px 100px; text-align: center;
  position: relative; z-index: 1;
}
.faq-list {
  margin-top: 2.5rem; text-align: left;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover {
  border-color: rgba(0,212,255,0.12);
}
.faq-item.open {
  border-color: rgba(0,212,255,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 16px rgba(0,212,255,0.03);
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  transition: color var(--transition);
  background: none; border: none; width: 100%; text-align: left;
}
.faq-question:hover { color: var(--cyan); }
.faq-chevron {
  font-size: 1.2rem; color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg); color: var(--cyan);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
}
.faq-answer p {
  color: var(--text-dim); font-size: 0.9rem; line-height: 1.7;
}
@media (max-width: 480px) {
  .hero-stats-strip { gap: 1.2rem; }
  .hero-stat-number { font-size: 1.3rem; }
  .faq-question { font-size: 1rem; padding: 1rem 1.2rem; }
  .faq-answer { padding: 0 1.2rem; }
  .faq-item.open .faq-answer { padding: 0 1.2rem 1rem; }
}

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  text-align: center; padding: 2rem 1rem; margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem;
  position: relative; z-index: 1;
}
.site-footer a {
  color: var(--text-dim); text-decoration: none; margin: 0 0.75rem;
}
.site-footer a:hover { color: var(--text); }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .pricing-preview-grid { grid-template-columns: 1fr; max-width: 300px; margin: 2rem auto 0; }
  .hero-cta-group { flex-direction: column; }
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.4s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.5s; }

/* ── Landing Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .landing-hero h1 { letter-spacing: 4px; font-size: clamp(2rem, 6vw, 3.5rem); }
  .hero-cta { padding: 16px 36px; font-size: 0.92rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
  .feature-card { padding: 32px 20px 28px; }
}
@media (max-width: 480px) {
  .landing-hero { padding: 40px 16px 60px; min-height: 90vh; }
  .landing-hero h1 { letter-spacing: 3px; font-size: clamp(1.8rem, 5vw, 2.5rem); }
  .landing-hero .hero-subtitle { letter-spacing: 0.08em; font-size: 0.82rem; }
  .hero-cta { padding: 14px 28px; font-size: 0.85rem; }
  .features-grid { grid-template-columns: 1fr !important; }
  .feature-card { padding: 28px 18px 24px; }
  .landing-features { padding: 60px 16px 80px; }
}

/* ── Profile Card ────────────────────────────────────────── */
.profile-card {
  border-color: rgba(0,212,255,0.12);
  background: linear-gradient(135deg, rgba(0,212,255,0.03), rgba(10,10,30,0.6));
  margin-bottom: 28px;
  box-shadow: var(--shadow), 0 0 60px rgba(0,212,255,0.03);
}
.profile-card::before { opacity: 1; }
.profile-badge {
  display: none;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  background: rgba(0,212,255,0.08);
  border-radius: 20px;
  border: 1px solid rgba(0,212,255,0.15);
  backdrop-filter: blur(8px);
}
.profile-saved-msg {
  color: var(--teal);
  font-size: 0.8rem;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}
.profile-saved-msg.show { opacity: 1; }
.form-section-collapsed .form-grid { display: none; }
.form-section-collapsed .profile-using {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.profile-using {
  display: none;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.profile-using .profile-using-name {
  color: var(--cyan);
  font-weight: 600;
}
.btn-link {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
  transition: color var(--transition);
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  justify-content: center;
}

/* ── LUNAR CALENDAR ────────────────────────────────────── */
.lunar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.lunar-grid .day-header {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  padding: 8px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lunar-grid .day-cell {
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius-xs);
  background: rgba(15,23,42,0.3);
  border: 1px solid transparent;
  transition: all var(--transition);
  min-height: 64px;
  backdrop-filter: blur(4px);
}
.lunar-grid .day-cell:hover {
  border-color: rgba(0,212,255,0.12);
  background: rgba(15,23,42,0.5);
  box-shadow: 0 0 12px rgba(0,212,255,0.04);
}
.lunar-grid .day-cell.today {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 16px rgba(0,212,255,0.08);
}
.lunar-grid .day-cell.exact-phase {
  border-color: rgba(139,92,246,0.25);
  box-shadow: 0 0 16px rgba(139,92,246,0.08);
}
.lunar-grid .day-cell .day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.lunar-grid .day-cell .day-moon {
  font-size: 1.15rem;
  margin: 3px 0;
}
.lunar-grid .day-cell .day-sign {
  font-size: 0.65rem;
  color: var(--muted);
}
.lunar-grid .day-cell.empty {
  background: transparent;
  border: none;
  cursor: default;
}
.lunar-grid .day-cell.selected {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 16px rgba(0,212,255,0.1);
}
/* Lunar Layout: Calendar + Detail side by side */
.lunar-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
.lunar-split-layout.has-detail {
  grid-template-columns: 1fr 380px;
}
.lunar-phase-emoji { font-size: 4rem; }
.form-field-flex { flex: 1; }
.lunar-detail-panel {
  display: none;
  background: linear-gradient(180deg, rgba(10,10,30,0.7) 0%, rgba(5,5,16,0.8) 100%);
  border: 1px solid rgba(0,212,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  animation: fadeSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 70px;
}
.lunar-detail-panel.open { display: block; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.lunar-detail-close {
  position: absolute; top: 12px; right: 12px; background: none; border: none;
  color: var(--muted); font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
  transition: color var(--transition);
}
.lunar-detail-close:hover { color: var(--text); }
.lunar-detail-header { text-align: center; margin-bottom: 1.5rem; padding-top: 0.5rem; }
.lunar-detail-header .detail-emoji { font-size: 3rem; }
.lunar-detail-header .detail-phase { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--gold); margin-top: 0.5rem; }
.lunar-detail-header .detail-date { color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; }
.lunar-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
.lunar-detail-card { background: rgba(15,23,42,0.4); border: 1px solid rgba(0,212,255,0.06); border-radius: 10px; padding: 0.7rem; text-align: center; }
.lunar-detail-card .ld-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.lunar-detail-card .ld-value { font-size: 0.9rem; color: var(--text); margin-top: 0.25rem; font-weight: 600; }
.lunar-detail-section { margin-bottom: 0.8rem; }
.lunar-detail-section .ld-title { font-size: 0.75rem; color: var(--cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.lunar-tag { display: inline-block; padding: 0.25rem 0.6rem; margin: 0.15rem; border-radius: 20px; font-size: 0.75rem; background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.12); color: var(--text-dim); }
.lunar-tag.avoid { background: rgba(244,63,94,0.08); border-color: rgba(244,63,94,0.15); color: var(--rose); }
.lunar-rating-item { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.lunar-rating-item:last-child { border-bottom: none; }
.lunar-rating-label { color: var(--text-dim); font-size: 0.82rem; }
.lunar-rating-stars { color: var(--gold); font-size: 0.82rem; letter-spacing: 2px; }
.lunar-energy-text { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; font-style: italic; border-left: 3px solid var(--gold); padding-left: 12px; }
/* Daily Report Styles */
.lunar-report { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
.report-headline { font-size: 1.05rem; color: var(--gold); font-weight: 700; margin-bottom: 0.6rem; line-height: 1.4; }
.report-overview { color: var(--text-dim); font-size: 0.84rem; line-height: 1.7; margin-bottom: 1rem; white-space: pre-line; }
.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1rem; }
.report-do, .report-dont { padding: 12px 14px; border-radius: 12px; }
.report-do { background: rgba(45,212,191,0.04); border: 1px solid rgba(45,212,191,0.1); }
.report-dont { background: rgba(244,63,94,0.04); border: 1px solid rgba(244,63,94,0.1); }
.report-do h4, .report-dont h4 { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.report-do h4 { color: var(--teal, #2dd4bf); }
.report-dont h4 { color: var(--rose); }
.report-do ul, .report-dont ul { list-style: none; padding: 0; margin: 0; }
.report-do li, .report-dont li { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; padding: 0.2rem 0; padding-left: 1.1em; position: relative; }
.report-do li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal, #2dd4bf); font-weight: 700; }
.report-dont li::before { content: "\2717"; position: absolute; left: 0; color: var(--rose); font-weight: 700; }
.report-domain { margin-bottom: 0.8rem; padding: 12px 14px; background: rgba(139,92,246,0.03); border: 1px solid rgba(139,92,246,0.07); border-radius: 12px; }
.report-domain h4 { font-size: 0.78rem; font-weight: 600; color: var(--purple, #a78bfa); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.report-domain p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.65; margin: 0; }
.report-tip { padding: 12px 16px; background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.02)); border: 1px solid rgba(212,175,55,0.12); border-radius: 12px; font-size: 0.84rem; color: var(--text-dim); line-height: 1.6; margin-top: 0.5rem; }
.report-tip strong { color: var(--gold); }
@media (max-width: 768px) {
  .report-columns { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .lunar-split-layout.has-detail { grid-template-columns: 1fr; }
  .lunar-detail-panel { position: relative; top: 0; max-height: none; }
  .lunar-detail-grid { grid-template-columns: 1fr; }
}
.exact-phase-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
  border-radius: 8px;
}
.exact-phase-item:hover { background: rgba(15,23,42,0.3); }
.exact-phase-item:last-child { border-bottom: none; }
.exact-phase-item .phase-emoji { font-size: 1.6rem; }
.exact-phase-item .phase-info { flex: 1; }
.exact-phase-item .phase-name { color: var(--cyan); font-weight: 600; }
.exact-phase-item .phase-date { color: var(--text-dim); font-size: 0.85rem; }
.exact-phase-item .phase-sign { color: var(--text-dim); font-size: 0.8rem; }

/* ── Selection & Focus ───────────────────────────────────── */
::selection {
  background: rgba(0,212,255,0.2);
  color: var(--text);
}
::-moz-selection {
  background: rgba(0,212,255,0.2);
  color: var(--text);
}
:focus-visible {
  outline: 2px solid rgba(0,212,255,0.4);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr !important; }
    .features-grid, .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
    .pricing-row, .pricing-grid, .grid-3 { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .container { padding: 1rem; }
    button, .btn, a.btn { min-height: 44px; }
    .tab-bar { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .features-grid, .grid-4 { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .hero h1 { font-size: 2rem; }
}

/* ── Skip Link ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--purple); color: #fff; padding: 8px 16px;
  border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  z-index: 9999; text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 10px; }

/* ── Theme Toggle ────────────────────────────────────────── */
.theme-toggle {
  position: relative; z-index: 200;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(16px); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transition: all 0.25s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: scale(1.1); border-color: var(--purple); }

/* ── Sticky Landing Nav ──────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(6,6,20,0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="light"] .landing-nav {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.landing-nav.visible { transform: translateY(0); }
.landing-nav .nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--gold); text-decoration: none;
  letter-spacing: 2px;
}
.landing-nav .nav-center {
  display: flex; gap: 1.5rem; align-items: center;
}
.landing-nav .nav-center a {
  color: var(--text-dim); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; transition: color 0.25s;
}
.landing-nav .nav-center a:hover { color: var(--text); }
.landing-nav .nav-right {
  display: flex; gap: 0.75rem; align-items: center;
}
.landing-nav .nav-btn {
  padding: 0.45rem 1.1rem; border-radius: 8px; font-size: 0.82rem;
  font-weight: 600; text-decoration: none; transition: all 0.25s;
  border: none; cursor: pointer;
}
.landing-nav .nav-btn-login {
  background: transparent; border: 1px solid var(--border-hover);
  color: var(--text-dim);
}
.landing-nav .nav-btn-login:hover { border-color: var(--purple); color: var(--text); }
.landing-nav .nav-btn-register {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 2px 12px rgba(0,212,255,0.15);
}
.landing-nav .nav-btn-register:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 0 12px rgba(245,158,11,0.3);
}
.nav-user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(245,158,11,0.5);
}
.landing-nav .hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
@media (max-width: 768px) {
  .landing-nav .hamburger { display: block; }
  .landing-nav .nav-center {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6,6,20,0.95);
    backdrop-filter: blur(24px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  }
  .landing-nav .nav-center.open { display: flex; }
  .landing-nav { padding: 0.75rem 1rem; }
  .landing-nav .nav-right .nav-lang { display: none; }
  .landing-nav .nav-btn-login,
  .landing-nav .nav-btn-register { font-size: 0.75rem; padding: 0.35rem 0.8rem; }
  .theme-toggle { right: 16px; top: auto; bottom: 16px; }
}

/* ── Email Gate on Natal Chart ──────────────────────────── */

/* Zone A: Big Three free preview */
.gate-big-three {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.gate-big-three-card {
  flex: 1 1 200px;
  max-width: 280px;
  min-width: 180px;
  text-align: center;
  padding: 28px 20px 24px;
  background: var(--glass, rgba(10,10,30,0.65));
  border: 1px solid var(--border, rgba(0,212,255,0.06));
  border-radius: var(--radius, 16px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.gate-big-three-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.gate-big-three-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.gate-big-three-card .gate-glyph {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.3));
}
.gate-big-three-card .gate-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim, #d4a843);
  margin-bottom: 4px;
  opacity: 0.85;
}
.gate-big-three-card .gate-sign-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.gate-big-three-card .gate-sign-glyph {
  font-size: 1.1rem;
  color: var(--gold, #f59e0b);
  margin-right: 4px;
}
.gate-big-three-summary {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 0 16px;
  color: var(--text-dim, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Zone B: Locked content wrapper */
.chart-locked-wrapper {
  position: relative;
  margin-top: 8px;
}
.chart-locked-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}
.chart-locked-content.chart-unlocked {
  filter: none;
  pointer-events: auto;
  user-select: auto;
  opacity: 1;
}

/* Gate overlay */
.chart-gate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 40px 20px;
  pointer-events: none;
}
.chart-gate-overlay.gate-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.chart-gate-card {
  pointer-events: auto;
  max-width: 440px;
  width: 100%;
  padding: 40px 32px;
  background: rgba(10, 10, 26, 0.88);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(212, 168, 67, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: gateCardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
[data-theme="light"] .chart-gate-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(184, 134, 11, 0.25);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.12),
    0 0 60px rgba(184, 134, 11, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
@keyframes gateCardReveal {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.chart-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold, #f59e0b), transparent);
  opacity: 0.6;
}
.chart-gate-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.chart-gate-card .gate-sub {
  font-size: 0.9rem;
  color: var(--text-dim, #94a3b8);
  margin-bottom: 20px;
}
.chart-gate-card .gate-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: inline-block;
}
.chart-gate-card .gate-bullets li {
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--text-dim, #94a3b8);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chart-gate-card .gate-bullets li::before {
  content: '\2713';
  color: var(--gold, #f59e0b);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.chart-gate-card .gate-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.chart-gate-card .gate-email-input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-xs, 8px);
  border: 1px solid var(--border, rgba(0,212,255,0.06));
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #f8fafc);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
[data-theme="light"] .chart-gate-card .gate-email-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}
.chart-gate-card .gate-email-input:focus {
  border-color: var(--gold, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.chart-gate-card .gate-unlock-btn {
  padding: 14px 24px;
  border-radius: var(--radius-xs, 8px);
  border: none;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0a0a1a;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
  white-space: nowrap;
  min-width: 140px;
}
.chart-gate-card .gate-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
}
.chart-gate-card .gate-unlock-btn:active {
  transform: translateY(0);
}
.chart-gate-card .gate-unlock-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.chart-gate-card .gate-disclaimer {
  font-size: 0.75rem;
  color: var(--muted, #64748b);
  line-height: 1.5;
  margin-top: 4px;
}
.chart-gate-card .gate-error-msg {
  color: var(--rose, #fb7185);
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 1.2em;
}

/* Toast notification */
.gate-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 12px;
  padding: 16px 28px;
  color: var(--text);
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  text-align: center;
}
[data-theme="light"] .gate-toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(184, 134, 11, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.gate-toast.gate-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.gate-toast .toast-icon {
  margin-right: 8px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .gate-big-three {
    gap: 10px;
  }
  .gate-big-three-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 20px 16px 18px;
  }
  .gate-big-three-card .gate-glyph {
    font-size: 2.2rem;
  }
  .gate-big-three-card .gate-sign-name {
    font-size: 1.15rem;
  }
  .chart-gate-card {
    padding: 28px 20px;
    margin: 0 8px;
  }
  .chart-gate-card h3 {
    font-size: 1.25rem;
  }
  .chart-gate-card .gate-input-row {
    flex-direction: column;
  }
  .chart-gate-card .gate-unlock-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
  }
  .chart-gate-card .gate-email-input {
    font-size: 1.05rem;
    padding: 16px;
  }
}
