/* ================= AstroVibes ================= */
:root {
  --bg: #0b0a1f;
  --bg-2: #13112e;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f1ff;
  --muted: #b3acd6;
  --gold: #f7d58b;
  --gold-2: #e8b75a;
  --violet: #a78bfa;
  --rose: #f9a8d4;
  --good: #6ee7b7;
  --warn: #fbbf24;
  --bad: #fb7185;
  --on-gold: #1d1530;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --glow: radial-gradient(1200px 600px at 80% -10%, rgba(167, 139, 250, 0.25), transparent 60%),
          radial-gradient(900px 500px at -10% 30%, rgba(249, 168, 212, 0.12), transparent 60%),
          radial-gradient(800px 600px at 50% 110%, rgba(247, 213, 139, 0.10), transparent 60%);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbf7ef;
  --bg-2: #f3ecdf;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(255, 255, 255, 0.95);
  --border: rgba(60, 40, 110, 0.14);
  --text: #1f1840;
  --muted: #5d567d;
  --gold: #b7791f;
  --gold-2: #9a6213;
  --violet: #6d28d9;
  --rose: #be185d;
  --good: #047857;
  --warn: #b45309;
  --bad: #be123c;
  --on-gold: #fff;
  --shadow: 0 18px 50px -24px rgba(60, 40, 110, 0.35);
  --glow: radial-gradient(1200px 600px at 80% -10%, rgba(167, 139, 250, 0.22), transparent 60%),
          radial-gradient(900px 500px at -10% 30%, rgba(249, 168, 212, 0.18), transparent 60%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--glow), var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
:root[data-theme="light"] #starfield { opacity: 0.35; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.tiny { font-size: 0.8rem; }
.center { text-align: center; }
.big { font-size: 1.8rem; font-weight: 800; margin: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  color: var(--gold); margin-bottom: 14px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(110, 231, 183, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); } }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--on-gold); box-shadow: 0 10px 30px -10px rgba(232, 183, 90, 0.7); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 1rem;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn .i-moon { fill: currentColor; stroke: none; }
.icon-btn .i-sun { display: none; }
:root[data-theme="light"] .icon-btn .i-sun { display: block; }
:root[data-theme="light"] .icon-btn .i-moon { display: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.logo em { font-style: italic; color: var(--gold); }
.logo-mark { width: 34px; height: 34px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { white-space: nowrap; text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: 0.2s; }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.seg-btn { font: inherit; font-size: 0.8rem; font-weight: 700; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.seg-btn.is-active { background: var(--gold); color: var(--on-gold); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.shimmer {
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--violet), var(--gold));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite; font-style: italic;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 0.9rem; }
.trust-row strong { color: var(--text); font-size: 1.1rem; margin-right: 4px; }
.hero-card { padding: 28px; }
.card-title { font-size: 1.8rem; margin-bottom: 2px; }

.quick-tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 56px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 18px 10px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; font-size: 0.88rem;
  background: var(--surface); border: 1px solid var(--border); transition: 0.25s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--gold); background: var(--surface-2); }
.tile-ico { font-size: 1.7rem; }

/* ---------- forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
input, select {
  font: inherit; font-size: 0.98rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%; min-width: 0;
}
:root:not([data-theme="light"]) select option { background: var(--bg-2); }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: span 2; }
.form-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border); margin: 0; }
.form-card legend { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; padding: 0 8px; color: var(--text); }
.check { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.adv summary { cursor: pointer; font-size: 0.85rem; color: var(--gold); font-weight: 700; margin-bottom: 10px; }

/* ---------- Big 3 ---------- */
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.big3-item { text-align: center; padding: 14px 6px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); animation: rise 0.5s both; }
.big3-item:nth-child(2) { animation-delay: 0.1s; }
.big3-item:nth-child(3) { animation-delay: 0.2s; }
.big3-item .g { font-size: 2rem; color: var(--gold); line-height: 1; }
.big3-item b { display: block; margin-top: 4px; }
.big3-item small { color: var(--muted); font-size: 0.75rem; }
.big3-note { grid-column: 1 / -1; text-align: center; font-size: 0.85rem; margin: 6px 0 0; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- sky ---------- */
.sky-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.moon-card { padding: 24px; display: flex; align-items: center; gap: 20px; }
.moon-phase { width: 96px; height: 96px; flex: none; filter: drop-shadow(0 0 22px rgba(247, 213, 139, 0.35)); }
.planet-strip { padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.planet-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.planet-chip .pg { font-size: 1.5rem; width: 30px; text-align: center; color: var(--gold); }
.planet-chip b { display: block; font-size: 0.9rem; }
.planet-chip small { color: var(--muted); font-size: 0.78rem; }
.retro { display: inline-block; font-size: 0.65rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad); margin-left: 4px; vertical-align: middle; }

/* ---------- horoscope ---------- */
.sign-picker { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-bottom: 20px; }
.sign-btn {
  font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 4px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: 0.2s;
}
.sign-btn .g { font-size: 1.6rem; line-height: 1.1; }
.sign-btn span:last-child { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.sign-btn:hover { border-color: var(--gold); }
.sign-btn.is-active { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 28%, transparent), color-mix(in srgb, var(--violet) 22%, transparent)); border-color: var(--gold); }
.sign-btn.is-active span:last-child { color: var(--text); }
.tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.tab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.reading { padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 1fr 280px; gap: 32px; animation: rise 0.4s both; }
.reading-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.reading-head .g { font-size: 3.2rem; color: var(--gold); line-height: 1; }
.reading-head h3 { font-size: 2rem; margin: 0; }
.reading p.sky-note { font-size: 0.85rem; color: var(--violet); font-weight: 600; }
.reading .lines p { font-size: 1.05rem; }
.reading .lines strong { color: var(--gold); }
.meters { display: flex; flex-direction: column; gap: 12px; }
.meter label { flex-direction: row; justify-content: space-between; font-size: 0.82rem; }
.meter .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--gold)); transform-origin: left; animation: grow 0.8s both; }
@keyframes grow { from { transform: scaleX(0); } }
.lucky { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.lucky div { padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.lucky b { display: block; color: var(--text); font-size: 0.95rem; }

/* ---------- kundli ---------- */
.kundli-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.kundli-layout .form-card { position: sticky; top: 90px; }
.kundli-out { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.orbit-anim { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; }
.orbit-anim span { position: absolute; inset: 0; border: 1px dashed var(--border); border-radius: 50%; animation: spin 12s linear infinite; }
.orbit-anim span::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.orbit-anim span:nth-child(2) { inset: 20px; animation-duration: 7s; animation-direction: reverse; }
.orbit-anim span:nth-child(2)::after { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.orbit-anim span:nth-child(3) { inset: 42px; animation-duration: 4s; }
.orbit-anim span:nth-child(3)::after { background: var(--rose); box-shadow: 0 0 12px var(--rose); }
@keyframes spin { to { transform: rotate(360deg); } }

.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sum-card { padding: 16px; text-align: center; }
.sum-card small { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.sum-card .g { display: block; font-size: 2rem; color: var(--gold); line-height: 1.2; }
.sum-card b { display: block; }
.sum-card span.sub { font-size: 0.8rem; color: var(--muted); }
.chart-panel { padding: 22px; }
.chart-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.chart-panel-head h3 { margin: 0; }
.chart-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.chart-svg { width: 100%; max-width: 440px; margin: 0 auto; display: block; }
.chart-svg text { font-family: var(--font-body); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
td .pg { color: var(--gold); font-size: 1.1rem; margin-right: 4px; }
.dasha { padding: 22px; }
.dasha-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; margin: 14px 0 10px; }
.dasha-bar div { display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; color: #1d1530; min-width: 0; overflow: hidden; }
.dasha-bar div.now { outline: 3px solid var(--text); outline-offset: -3px; }
.dasha-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.dasha-list div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 0.82rem; }
.dasha-list div.now { border-color: var(--gold); }
.dasha-list b { display: block; font-size: 0.95rem; }
.insights { padding: 22px; }
.insights ul { padding-left: 18px; margin: 0; }
.insights li { margin-bottom: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; }
.badge.good { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.badge.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--bad) 20%, transparent); color: var(--bad); }
.ask-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; flex-wrap: wrap; }
.ask-cta p { margin: 0; }

/* ---------- matching ---------- */
.match-forms { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.match-heart { font-size: 2.4rem; animation: beat 1.4s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }
.match-submit { grid-column: 1 / -1; justify-self: center; min-width: 240px; }
.match-result { margin-top: 30px; display: grid; grid-template-columns: 300px 1fr; gap: 20px; animation: rise 0.5s both; }
.score-card { padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gauge { width: 200px; height: 200px; }
.gauge text { font-family: var(--font-display); }
.koota-card { padding: 22px; }

/* ---------- panchang ---------- */
.panchang-controls { display: flex; gap: 14px; padding: 16px; margin: 0 auto 20px; max-width: 640px; }
.panchang-controls label { flex: 1; }
.panchang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.p-card { padding: 18px; }
.p-card small { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 700; }
.p-card b { display: block; font-size: 1.15rem; margin-top: 4px; }
.p-card span { font-size: 0.82rem; color: var(--muted); }
.p-card.alert { border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.p-card.auspicious { border-color: color-mix(in srgb, var(--good) 45%, transparent); }

/* ---------- tarot ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tarot-deck { display: flex; justify-content: center; height: 210px; margin: 10px 0 26px; perspective: 900px; }
.t-card {
  width: 104px; height: 170px; margin: 0 -34px; border-radius: 12px; cursor: pointer; border: 0; padding: 0;
  background: linear-gradient(145deg, #3b2a7a, #1b1442); box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.6);
  transform: rotate(var(--r)) translateY(var(--y)); transition: transform 0.3s; position: relative;
  border: 1px solid rgba(247, 213, 139, 0.5);
}
.t-card::before { content: '✦'; position: absolute; inset: 8px; border: 1px solid rgba(247, 213, 139, 0.45); border-radius: 8px; display: grid; place-items: center; color: var(--gold); font-size: 1.6rem; }
.t-card:hover { transform: rotate(var(--r)) translateY(calc(var(--y) - 22px)); z-index: 2; }
.tarot-result { padding: 24px; display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; animation: rise 0.5s both; }
.tarot-face {
  height: 200px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 8px;
  background: linear-gradient(160deg, #fff7e3, #f1dcae); color: #3b2a1a; border: 2px solid #c79a3d; text-align: center; animation: flip 0.7s both;
}
.tarot-face .num { font-family: var(--font-display); font-weight: 700; }
.tarot-face .sym { font-size: 3rem; }
.tarot-face .nm { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.1; }
@keyframes flip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }

.num-result { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; animation: rise 0.5s both; }
.num-card { padding: 18px; }
.num-card .n { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--gold); font-weight: 700; }
.num-card h4 { font-size: 1.2rem; margin: 6px 0 4px; }
.num-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- astrologers ---------- */
.filters { padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.85rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); cursor: pointer; }
.chip.is-active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-row select { width: auto; flex: 0 1 220px; }
.astro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 14px; }
.astro-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: 0.25s; }
.astro-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.astro-top { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 62px; height: 62px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 60%), hsl(calc(var(--h) + 50) 70% 40%));
}
.avatar.sm { width: 42px; height: 42px; font-size: 1rem; }
.avatar.online::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--good); border: 2px solid var(--bg); }
.astro-card h3 { font-size: 1.25rem; margin: 0; }
.astro-card .meta { font-size: 0.8rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); }
.astro-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price b { font-size: 1.15rem; }
.price s { color: var(--muted); font-size: 0.8rem; margin-left: 4px; }
.price small { display: block; font-size: 0.72rem; color: var(--good); font-weight: 700; }
.astro-actions { display: flex; gap: 6px; }

/* ---------- promise / compare ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.promise { padding: 24px; }
.promise span { font-size: 1.8rem; }
.promise h3 { margin: 10px 0 6px; }
.promise p { color: var(--muted); margin: 0; font-size: 0.94rem; }
.compare { padding: 10px 20px; overflow-x: auto; }
.compare td, .compare th { white-space: normal; padding: 14px 10px; }
.compare .hl { color: var(--gold); font-weight: 700; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--gold); line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* ---------- cta band ---------- */
.cta-band { padding: clamp(24px, 5vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; }
.news-form { display: flex; gap: 10px; flex: 1 1 360px; max-width: 480px; }
.news-form input { border-radius: 999px; padding-left: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 50px 0 100px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a:not(.logo) { display: block; text-decoration: none; font-size: 0.92rem; padding: 3px 0; }
.footer-grid a:not(.logo):hover { color: var(--gold); }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav { display: none; }

/* ---------- chat ---------- */
.chat-modal {
  width: min(440px, calc(100% - 24px)); height: min(640px, calc(100% - 40px)); padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-2); color: var(--text); box-shadow: var(--shadow);
}
.chat-modal[open] { display: flex; flex-direction: column; }
.chat-modal::backdrop { background: rgba(5, 4, 20, 0.6); backdrop-filter: blur(4px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.chat-head p { margin: 0; }
.chat-head .icon-btn { margin-left: auto; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 0.93rem; animation: rise 0.3s both; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--on-gold); border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input { border-radius: 999px; }
.chat-note { text-align: center; margin: 0 0 10px; padding: 0 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  transition: 0.3s; z-index: 100; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .quick-tiles { grid-template-columns: repeat(4, 1fr); }
  .kundli-layout { grid-template-columns: 1fr; }
  .kundli-layout .form-card { position: static; }
  .panchang-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .two-col, .sky-grid, .match-result { grid-template-columns: 1fr; }
  .sign-picker { grid-template-columns: repeat(6, 1fr); }
  .reading { grid-template-columns: 1fr; }
  .chart-wrap { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .match-forms { grid-template-columns: 1fr; }
  .match-heart { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hide-sm { display: none; }
  .header-inner { height: 62px; gap: 10px; }
  .logo { font-size: 1.4rem; }
  .logo-mark { width: 28px; height: 28px; }
  .seg-btn { padding: 5px 9px; }
  .quick-tiles { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
  .quick-tiles .tile:last-child { grid-column: span 3; flex-direction: row; justify-content: center; }
  .sign-picker { grid-template-columns: repeat(4, 1fr); }
  .promise-grid, .num-result { grid-template-columns: 1fr; }
  .panchang-controls { flex-direction: column; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
  .tarot-result { grid-template-columns: 1fr; }
  .tarot-face { width: 140px; margin: 0 auto; }
  .t-card { width: 80px; height: 132px; margin: 0 -28px; }
  .tarot-deck { height: 170px; }
  .news-form { flex-direction: column; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-around;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: 0.68rem; font-weight: 700; text-decoration: none; color: var(--muted); padding: 4px 8px; }
  .bottom-nav span { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* keep wide tables from stretching grid columns */
.match-result > *, .kundli-out > *, .chart-wrap > *, .two-col > *, .sky-grid > * { min-width: 0; }
.score-card p { overflow-wrap: anywhere; }
