/* =========================================================
   Kairos Astrology & Numerology — Design System
   Mobile-first · RTL · Dark cosmic minimal
   ========================================================= */

@view-transition { navigation: auto; }

:root {
  --bg: #06060b;
  --bg-2: #0b0b13;
  --bg-3: #11111b;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f2eff8;
  --muted: #a09db4;
  --dim: #6b6884;
  --gold: #f3cd82;
  --gold-2: #d9a54a;
  --gold-soft: rgba(243, 205, 130, .12);
  --violet: #a796ff;
  --violet-soft: rgba(167, 150, 255, .12);
  --rose: #ff8fa3;
  --teal: #7fe3d0;
  --fire: #ff8a5b;
  --earth: #b9d86b;
  --air: #8fd3ff;
  --water: #9d8cff;
  --ok: #7fe3a5;
  --warn: #ffcf6b;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --fast: 180ms;
  --med: 320ms;

  --nav-h: 68px;
  --header-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --wrap: 1120px;

  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Instrument Serif", "Times New Roman", serif;
  --font-glyph: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "Apple Symbols", "DejaVu Sans", sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #1a1406; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
.latin { font-family: var(--font-latin); letter-spacing: .01em; font-weight: 400; }
.glyph { font-family: var(--font-glyph); font-variant-emoji: text; line-height: 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Background: stars + aura ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(167, 150, 255, .16), transparent 60%),
    radial-gradient(90% 60% at 0% 10%, rgba(243, 205, 130, .08), transparent 60%),
    radial-gradient(100% 80% at 50% 120%, rgba(127, 227, 208, .05), transparent 60%),
    var(--bg);
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
main { padding-top: calc(var(--header-h) + 8px); padding-bottom: calc(var(--nav-h) + var(--safe-b) + 28px); }
section { position: relative; }
.section { padding-block: 44px; }
.section-tight { padding-block: 24px; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--med) var(--ease), border-color var(--med) var(--ease), transform var(--med) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(8, 8, 14, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.header.hide { transform: translateY(-100%); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-latin); font-weight: 400; font-size: 23px; letter-spacing: .02em; }
.brand-name small { white-space: nowrap; font-size: 9.5px; letter-spacing: .18em; color: var(--muted); margin-top: 4px; font-family: system-ui, sans-serif; direction: ltr; text-align: right; }
.top-nav { display: none; gap: 4px; }
.top-nav a { padding: 8px 14px; border-radius: 99px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color var(--fast), background var(--fast); }
.top-nav a:hover { color: var(--text); background: var(--surface-2); }
.top-nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--fast) var(--ease), background var(--fast);
}
.icon-btn svg { width: 20px; height: 20px; }
.plus-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px;
  background: linear-gradient(135deg, rgba(243, 205, 130, .18), rgba(167, 150, 255, .14));
  border: 1px solid rgba(243, 205, 130, .35); color: var(--gold); font-size: 12.5px; font-weight: 700;
}
.plus-pill svg { width: 14px; height: 14px; flex: none; }
body.is-plus .plus-pill { background: var(--gold); color: #1d1606; border-color: var(--gold); }
.plus-pill span { white-space: nowrap; }
@media (max-width: 420px) { .plus-pill .pl-long { display: none; } }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; z-index: 60; inset-inline: 10px; bottom: calc(10px + var(--safe-b));
  height: var(--nav-h); border-radius: 24px;
  background: rgba(14, 14, 22, .78); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 6px;
  transition: transform var(--med) var(--ease-out);
}
.bottom-nav.hide { transform: translateY(calc(100% + 20px)); }
.bottom-nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 54px; border-radius: 18px; color: var(--dim); font-size: 10.5px; font-weight: 600;
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.bottom-nav a svg { width: 23px; height: 23px; transition: transform var(--med) var(--spring); }
.bottom-nav a.active { color: var(--text); }
.bottom-nav a.active svg { transform: translateY(-1px) scale(1.06); color: var(--gold); }
.bottom-nav a.active::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; background: var(--surface-2); z-index: -1;
  animation: pop var(--med) var(--spring);
}
.bottom-nav .nav-cta svg { color: var(--gold); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--gold); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.h-display { font-size: clamp(34px, 9.5vw, 68px); font-weight: 900; line-height: 1.18; letter-spacing: -.025em; }
.h1 { font-size: clamp(28px, 7.5vw, 46px); font-weight: 900; line-height: 1.25; letter-spacing: -.02em; }
.h2 { font-size: clamp(22px, 5.8vw, 34px); font-weight: 800; line-height: 1.35; }
.h3 { font-size: 18px; font-weight: 800; }
.lead { font-size: 16px; color: var(--muted); line-height: 2; }
.small { font-size: 13px; }
.xs { font-size: 11.5px; }
.grad-text {
  background: linear-gradient(100deg, #fff 10%, var(--gold) 45%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head { margin-bottom: 20px; }
.sec-head .h2 { margin-top: 8px; }
.sec-head p { margin-top: 8px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px; border-radius: 18px; font-weight: 800; font-size: 15.5px;
  background: linear-gradient(135deg, #f7d796, var(--gold-2)); color: #1d1606;
  box-shadow: 0 10px 30px -10px rgba(243, 205, 130, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform var(--fast) var(--ease), box-shadow var(--med) var(--ease), filter var(--fast);
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(120%); transition: transform 700ms var(--ease);
}
@media (hover: hover) { .btn:hover::after { transform: translateX(-120%); } }
.btn svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; border-radius: 14px; }
.btn-ghost {
  background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost::after { display: none; }
.btn-violet { background: linear-gradient(135deg, #c0b4ff, #7f6cf0); color: #120d2b; box-shadow: 0 10px 30px -10px rgba(167, 150, 255, .6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: 14px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--fast) var(--ease); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(-4px); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.chip.on { background: var(--gold-soft); color: var(--gold); border-color: rgba(243, 205, 130, .35); }
.chip .glyph { font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.tag-gold { background: var(--gold-soft); color: var(--gold); }
.tag-violet { background: var(--violet-soft); color: var(--violet); }
.tag-free { background: rgba(127, 227, 165, .12); color: var(--ok); }
.tag-rose { background: rgba(255, 143, 163, .12); color: var(--rose); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; overflow: hidden;
}
.card-lg { padding: 26px 22px; }
.card-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(243, 205, 130, .5), transparent 35%, transparent 65%, rgba(167, 150, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-hover { transition: transform var(--med) var(--ease), background var(--med), border-color var(--med); }
@media (hover: hover) { .card-hover:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--line-2); } }
.card h3 { font-size: 17px; }
.card .ic {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--gold);
}
.card .ic svg { width: 22px; height: 22px; }
.divider { height: 1px; background: var(--line); margin-block: 18px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal].in { opacity: 1; transform: none; }

.fade-up { animation: fadeUp 600ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Hero ---------- */
.hero { padding-top: 20px; padding-bottom: 30px; text-align: center; }
.hero-orb { position: relative; width: min(78vw, 340px); aspect-ratio: 1; margin: 8px auto 8px; }
.hero-orb svg { width: 100%; height: 100%; overflow: visible; }
.hero-orb .ring-rot { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.hero-orb .ring-rot-rev { transform-origin: 50% 50%; animation: spin 140s linear infinite reverse; }
.hero-orb .core { animation: floaty 6s ease-in-out infinite; transform-origin: center; }
.hero h1 { margin-top: 6px; }
.hero .lead { max-width: 560px; margin: 14px auto 0; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; align-items: stretch; }
.hero-meta { display: flex; justify-content: center; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--gold); }

/* sky now strip */
.now-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 18px 6px; margin-inline: -18px; scroll-snap-type: x mandatory; }
.now-strip::-webkit-scrollbar { display: none; }
.now-item {
  flex: none; scroll-snap-align: start; min-width: 150px; padding: 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.now-item .k { font-size: 11.5px; color: var(--muted); }
.now-item .v { font-weight: 800; font-size: 15px; margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.now-item .v .glyph { font-size: 18px; color: var(--gold); }
.now-item .s { font-size: 11.5px; color: var(--dim); }
.retro-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgba(255, 143, 163, .15); animation: pulseGlow 1.6s infinite; }

/* zodiac selector grid */
.zodiac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.z-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 4px 10px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--fast) var(--ease), background var(--fast), border-color var(--fast);
}
.z-btn .glyph { font-size: 26px; color: var(--text); transition: transform var(--med) var(--spring), color var(--fast); }
.z-btn b { font-size: 13px; font-weight: 700; }
.z-btn small { font-size: 10px; color: var(--dim); line-height: 1.4; }
.z-btn.on .glyph { transform: scale(1.14); color: var(--gold); }
@media (hover: hover) { .z-btn:hover .glyph { transform: scale(1.14); color: var(--gold); } .z-btn:hover { border-color: var(--line-2); } }
.z-btn.on { background: var(--gold-soft); border-color: rgba(243, 205, 130, .4); }

/* feature list */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { margin: 0; flex: none; }
.feature h3 { font-size: 16px; }
.feature p { color: var(--muted); font-size: 13.5px; margin-top: 4px; line-height: 1.9; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s, persian); flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); font-weight: 900;
}
.step b { display: block; font-size: 14.5px; }
.step span { font-size: 12.5px; color: var(--muted); }

/* marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }
.quote { width: 280px; flex: none; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.quote p { font-size: 13.5px; color: var(--muted); line-height: 1.95; }
.quote .who { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 700; }
.quote .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-family: var(--font-glyph); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); transition: transform var(--med) var(--spring), background var(--fast); }
.faq summary i::before { content: "+"; font-style: normal; font-size: 18px; line-height: 1; color: var(--gold); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--gold-soft); }
.faq .ans { color: var(--muted); font-size: 14px; padding-bottom: 18px; animation: fadeUp 340ms var(--ease-out); }

/* ---------- Forms / wizard ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field .hint { font-size: 11.5px; color: var(--dim); }
.input {
  height: 56px; border-radius: 16px; padding: 0 16px; background: var(--surface-2); border: 1px solid var(--line-2);
  outline: none; font-size: 16px; transition: border-color var(--fast), background var(--fast), box-shadow var(--fast); width: 100%;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: rgba(243, 205, 130, .6); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(243, 205, 130, .1); }
.input.ltr { direction: ltr; text-align: left; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; height: 40px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); transition: color var(--fast); }
.seg button.on { color: #1d1606; }
.seg .seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 12px; background: var(--gold); transition: inset-inline-start var(--med) var(--ease-out), width var(--med) var(--ease-out), left var(--med) var(--ease-out), right var(--med) var(--ease-out); }

.wizard { position: relative; }
.wiz-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.wiz-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; position: relative; }
.wiz-progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--violet)); transform: scaleX(0); transform-origin: right; transition: transform var(--med) var(--ease-out); }
.wiz-progress i.done::after { transform: scaleX(1); }
.wiz-viewport { overflow: hidden; position: relative; }
.wiz-track { display: flex; transition: transform 460ms var(--ease-out); }
.wiz-step { flex: 0 0 100%; min-width: 0; padding: 2px; }
.wiz-step .q { font-size: 21px; font-weight: 900; line-height: 1.5; }
.wiz-step .qs { color: var(--muted); font-size: 13.5px; margin-top: 4px; margin-bottom: 18px; }
.wiz-nav { display: flex; gap: 10px; margin-top: 22px; }
.wiz-nav .btn-ghost { flex: 0 0 auto; width: 54px; padding: 0; }
.wiz-nav .btn-ghost[hidden] { display: none; }

/* wheel picker */
.wheel { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; height: 220px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; direction: rtl; }
.wheel::before { content: ""; position: absolute; inset-inline: 8px; top: 50%; height: 44px; transform: translateY(-50%); border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); pointer-events: none; }
.wheel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--bg-2) 0%, transparent 32%, transparent 68%, var(--bg-2) 100%); opacity: .92; }
.wheel-col { position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-col .pad { height: 88px; }
.wheel-col .opt { height: 44px; display: grid; place-items: center; scroll-snap-align: center; font-size: 16.5px; font-weight: 600; color: var(--dim); transition: color var(--fast), transform var(--fast); cursor: pointer; user-select: none; }
.wheel-col .opt.sel { color: var(--text); font-weight: 800; transform: scale(1.06); }
.wheel-label { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; text-align: center; font-size: 11.5px; color: var(--dim); margin-bottom: 6px; }

.check-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.switch { position: relative; width: 46px; height: 28px; flex: none; border-radius: 99px; background: var(--surface-3); transition: background var(--med) var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--med) var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
input:checked + .switch { background: var(--gold); }
input:checked + .switch::after { transform: translateX(-18px); }
[dir="ltr"] input:checked + .switch::after { transform: translateX(18px); }

/* city search */
.combo { position: relative; }
.combo-list { margin-top: 8px; max-height: 260px; overflow-y: auto; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line-2); display: none; }
.combo.open .combo-list { display: block; animation: fadeUp 220ms var(--ease-out); }
.combo-list button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 16px; text-align: start; font-size: 14.5px; border-bottom: 1px solid var(--line); transition: background var(--fast); }
.combo-list button:last-child { border-bottom: 0; }
.combo-list button:hover, .combo-list button.hl { background: var(--surface-2); }
.combo-list small { color: var(--dim); font-size: 11.5px; }
.picked-city { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(243,205,130,.3); margin-top: 10px; font-size: 13.5px; }
.picked-city svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
/* birthplace not in the list: manual coordinates */
.manual-toggle { display: inline-block; margin-top: 10px; padding: 6px 0; font-size: 12.5px; font-weight: 700; color: var(--violet); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(167, 150, 255, .4); }
@media (hover: hover) { .manual-toggle:hover { color: var(--gold); } }
.manual-city { display: grid; gap: 12px; margin-top: 8px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.manual-city[hidden] { display: none; }
.manual-city p { line-height: 1.9; }
.manual-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.manual-city select.input { height: 46px; font-size: 13px; }

/* ---------- Loader (calculating) ---------- */
.calc-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 45%, #15131f, #06060b); opacity: 0; pointer-events: none; transition: opacity var(--med) var(--ease); }
.calc-overlay.on { opacity: 1; pointer-events: auto; }
.orbit { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); animation: spin 2.4s linear infinite; }
.orbit i::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.orbit i:nth-child(2) { inset: 22px; animation-duration: 1.6s; animation-direction: reverse; }
.orbit i:nth-child(2)::after { background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.orbit i:nth-child(3) { inset: 44px; animation-duration: 1.1s; }
.orbit i:nth-child(3)::after { background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.orbit b { position: absolute; inset: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3d6, var(--gold) 45%, var(--gold-2)); box-shadow: 0 0 40px rgba(243, 205, 130, .6); }
.calc-text { margin-top: 26px; text-align: center; font-weight: 700; min-height: 30px; }
.calc-text span { display: block; animation: fadeUp 300ms var(--ease-out); }
.calc-sub { text-align: center; font-size: 12px; color: var(--dim); }

/* ---------- Report ---------- */
.report-hero { padding-top: 10px; }
.id-card {
  position: relative; border-radius: var(--r-xl); padding: 24px 20px 20px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(167, 150, 255, .22), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(243, 205, 130, .16), transparent 55%),
    var(--bg-3);
  border: 1px solid var(--line-2);
}
.id-card .name { font-size: 26px; font-weight: 900; }
.id-card .meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.big3 > div { padding: 14px 6px 12px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-align: center; }
.big3 .glyph { font-size: 30px; color: var(--gold); display: block; margin: 0 auto 6px; }
.big3 .k { font-size: 10.5px; color: var(--muted); display: block; }
.big3 b { font-size: 15px; display: block; }
.id-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }
.lp-badge { display: flex; align-items: center; gap: 12px; }
.lp-num { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; font-weight: 900; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1d1606; box-shadow: 0 10px 24px -8px rgba(243, 205, 130, .6); }
.lp-badge small { display: block; color: var(--muted); font-size: 11px; }
.lp-badge b { font-size: 14px; }

.tabs-wrap { position: sticky; top: calc(var(--header-h) + 6px); z-index: 40; margin-top: 18px; }
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(20, 20, 30, .85); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; flex: 1 0 auto; height: 38px; padding: 0 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--muted); transition: color var(--fast); white-space: nowrap; }
.tabs button.on { color: var(--text); }
.tabs .ind { position: absolute; top: 4px; bottom: 4px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); transition: left var(--med) var(--ease-out), width var(--med) var(--ease-out); z-index: 0; }

.r-sec { padding-top: 44px; scroll-margin-top: calc(var(--header-h) + 64px); }
.r-sec > .sec-head { margin-bottom: 16px; }
.r-sec > * + *:not(.sec-head + *) { margin-top: 14px; }
.sub-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.sub-title h3 { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sub-title h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.block-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.block-title h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }

.wheel-chart { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
.wheel-chart svg { width: 100%; height: 100%; overflow: visible; }
.wheel-chart .draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: draw 1.4s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wheel-chart .pl { opacity: 0; animation: plIn 520ms var(--spring) forwards; animation-delay: var(--d, 0ms); transform-box: fill-box; transform-origin: center; }
@keyframes plIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.wheel-chart .asp { opacity: 0; animation: aspIn 600ms var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes aspIn { to { opacity: 1; } }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-left: 5px; }

.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable td { padding: 11px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .glyph { font-size: 18px; color: var(--gold); width: 22px; text-align: center; display: inline-block; }
.ptable .deg { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.ptable .rx { color: var(--rose); font-size: 11px; font-weight: 800; margin-inline-start: 4px; }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; }
.bar { height: 10px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--c, var(--gold)); transition: width 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.bar-row b { text-align: left; font-variant-numeric: tabular-nums; }

.interp { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.interp + .interp { margin-top: 10px; }
.interp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.interp-head .gl { width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 24px; font-family: var(--font-glyph); }
.interp-head h4 { font-size: 15.5px; font-weight: 800; }
.interp-head small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.interp p { color: #d2cfe0; font-size: 14.2px; line-height: 2.05; }
.interp p + p { margin-top: 10px; }
.kv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pros-cons > div { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
.pros-cons h5 { margin: 0 0 6px; font-size: 12px; }
.pros-cons ul { margin: 0; padding: 0 14px 0 0; color: var(--muted); line-height: 2; }

/* Expandable card: closed state shows a 2-line preview + "بیشتر" pill */
.acc { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: border-color var(--fast), background var(--fast); }
@media (hover: hover) { .acc:hover { border-color: var(--line-2); background: var(--surface-2); } }
.acc.open { cursor: default; background: var(--surface-2); border-color: var(--line-2); }
.accordion .acc + .acc { margin-top: 8px; }
.acc-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: start; cursor: pointer; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.acc-tags i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.acc-h .gl { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); font-size: 19px; font-family: var(--font-glyph); }
.acc-t { flex: 1; min-width: 0; }
.acc-h b { display: block; font-size: 14.5px; line-height: 1.6; }
.acc-h small { display: block; font-size: 12px; color: var(--muted); line-height: 1.7; }
.acc-more { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 9px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); font-size: 11.5px; font-weight: 800; transition: background var(--fast), color var(--fast); }
.acc-more i { position: relative; width: 10px; height: 10px; flex: none; }
.acc-more i::before, .acc-more i::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--med) var(--ease-out); }
.acc-more i::after { transform: rotate(90deg); }
.acc-more em { font-style: normal; }
.acc-more .m-c, .acc.open .acc-more .m-o { display: none; }
.acc.open .acc-more .m-c { display: inline; }
.acc.open .acc-more { background: var(--surface-3); color: var(--muted); }
.acc.open .acc-more i::after { transform: rotate(0); }
@media (hover: hover) { .acc:not(.open):hover .acc-more { background: rgba(243, 205, 130, .2); } }
.acc-b { overflow: hidden; }
.acc:not(.open) .acc-b { height: 0; }
.acc-b > div { padding: 0 16px 16px; }
.acc-b > div::before { content: ""; display: block; height: 1px; background: var(--line); margin: 0 0 12px; }
.acc-b p { color: #d2cfe0; font-size: 14px; line-height: 2.05; }
.acc-b p + p, .acc-b > div > * + * { margin-top: 10px; }
.expand-all { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); transition: color var(--fast), border-color var(--fast); }
@media (hover: hover) { .expand-all:hover { color: var(--gold); border-color: rgba(243, 205, 130, .4); } }
.hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.hint svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* numbers */
.num-hero { display: flex; align-items: center; gap: 18px; }
.num-big { position: relative; width: 104px; height: 104px; flex: none; display: grid; place-items: center; }
.num-big svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.num-big b { font-size: 44px; font-weight: 900; background: linear-gradient(160deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.num-tile { padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform var(--fast) var(--ease), background var(--fast); text-align: start; }
.num-tile .n { font-size: 30px; font-weight: 900; line-height: 1.2; color: var(--gold); }
.num-tile .t { font-size: 12.5px; font-weight: 700; }
.num-tile .s { font-size: 11px; color: var(--dim); }
.num-tile .tagpos { position: absolute; top: 12px; left: 12px; }
button.num-tile { cursor: pointer; }
@media (hover: hover) { button.num-tile:hover { background: var(--surface-2); border-color: var(--line-2); } }
.num-tile .tap { position: absolute; bottom: 12px; left: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background var(--fast), color var(--fast), transform var(--med) var(--spring); }
.num-tile .tap svg { width: 13px; height: 13px; }
@media (hover: hover) { button.num-tile:hover .tap { background: var(--gold); color: #1d1606; transform: rotate(-45deg); } }
button.num-tile:active .tap { background: var(--gold); color: #1d1606; transform: rotate(-45deg); transition-duration: 90ms; }
.cycle9 { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; direction: rtl; }
.cycle9 span { height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--surface); border: 1px solid var(--line); color: var(--dim); }
.cycle9 span.past { color: var(--muted); background: var(--surface-2); }
.cycle9 span.now { background: var(--gold); color: #1d1606; border-color: var(--gold); box-shadow: 0 6px 18px -6px rgba(243, 205, 130, .7); }
.kv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kv-table tr:last-child td { border-bottom: 0; }
.kv-table td:last-child { text-align: left; }
.pattern { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pattern + .pattern { margin-top: 8px; }
.pattern .gl { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-family: var(--font-glyph); font-size: 18px; }
.pattern b { font-size: 14.5px; }
.pattern p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.95; }
/* friendly / enemy numbers + timing */
.rel-rows { display: grid; gap: 8px; }
.rel-row { display: flex; align-items: center; gap: 10px; }
.rel-k { flex: none; width: 52px; text-align: center; font-size: 12px; font-weight: 800; padding: 4px 0; border-radius: 10px; }
.rel-f { background: rgba(127, 227, 165, .14); color: var(--ok); }
.rel-n { background: var(--surface-3); color: var(--muted); }
.rel-e { background: rgba(255, 143, 163, .14); color: var(--rose); }
.rel-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.rn { display: inline-flex; flex-direction: column; align-items: center; min-width: 46px; padding: 6px 6px 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rn b { font-size: 17px; line-height: 1.2; }
.rn small { font-size: 9.5px; color: var(--dim); }
.rn-f b { color: var(--ok); } .rn-e b { color: var(--rose); } .rn-n b { color: var(--muted); }
.kv-list { display: grid; gap: 12px; }
.kv-list small { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 4px; }
.kv-list .kv { margin-top: 0; }
.vpill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.vdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.lv2 { --lc: #4fd68a; } .lv1 { --lc: #a3e6bd; } .lv0 { --lc: #8a879e; } .lvm1 { --lc: #ffc078; } .lvm2 { --lc: #ff7d93; }
.vpill.lv2, .vpill.lv1, .vpill.lv0, .vpill.lvm1, .vpill.lvm2 { color: var(--lc); background: color-mix(in srgb, var(--lc) 14%, transparent); }
.vdot.lv2, .vdot.lv1, .vdot.lv0, .vdot.lvm1, .vdot.lvm2 { background: var(--lc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc) 22%, transparent); }
.acc-h .gl .vdot { width: 14px; height: 14px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-head span { text-align: center; font-size: 11px; color: var(--dim); font-weight: 700; padding-bottom: 4px; }
.cal-d { position: relative; aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: color-mix(in srgb, var(--lc, #8a879e) 24%, transparent); border: 1px solid color-mix(in srgb, var(--lc, #8a879e) 45%, transparent); transition: transform var(--fast) var(--ease), background var(--med); }
.cal-d b { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.1; }
.cal-d small { font-size: 8.5px; color: var(--muted); line-height: 1; min-height: 9px; }
@media (hover: hover) { .cal-d:hover { transform: translateY(-2px); } }
.cal-d.today { box-shadow: 0 0 0 2px var(--gold); }
.cal-d.cal-lock { filter: blur(2.5px); opacity: .5; }
.cal-d.cal-lock::after { content: ""; position: absolute; inset: 0; }
body.is-plus .cal-d.cal-lock { filter: none; opacity: 1; }
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 14px 0 10px; font-size: 11.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
ul.why { margin: 6px 0 10px; padding-right: 18px; color: #d2cfe0; font-size: 13.5px; line-height: 2; }
.ally { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ally:last-of-type { border-bottom: 0; }
.ally .gl { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(127, 227, 165, .1); color: var(--ok); font-family: var(--font-glyph); font-size: 19px; }
.ally b { font-size: 14.5px; }
.ally small { font-size: 11.5px; color: var(--dim); }
.ally p { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.9; }
button.link-arrow { padding: 0; }

.report-grid { display: grid; gap: 12px; }
.report-grid > .interp + .interp { margin-top: 0; }

/* ---------- Plain-language layer ---------- */
.plain { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(167, 150, 255, .07); border: 1px solid rgba(167, 150, 255, .18); margin-bottom: 16px; }
.plain-ic { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: rgba(167, 150, 255, .16); color: var(--violet); }
.plain-ic svg { width: 15px; height: 15px; }
.plain p { font-size: 13.5px; line-height: 2; color: #d6d2e6; }
.plain b { color: var(--violet); }
.gt { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-inline-start: 4px; border-radius: 50%; font-size: 11px; font-weight: 900; line-height: 1; color: var(--violet); background: rgba(167, 150, 255, .14); border: 1px solid rgba(167, 150, 255, .3); vertical-align: middle; cursor: help; transition: transform var(--fast) var(--spring), background var(--fast); font-family: var(--font); }
@media (hover: hover) { .gt:hover { background: var(--violet); color: #120d2b; transform: scale(1.12); } }
.gt { position: relative; }
.gt::after { content: ''; position: absolute; inset: -11px; } /* 40px touch target, same look */
.mbase { font-size: .48em; font-weight: 700; opacity: .7; margin-inline-start: 1px; -webkit-text-fill-color: currentColor; }
.lp-num.is-master { font-size: 20px; }
.master-note { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(243, 205, 130, .1), rgba(167, 150, 255, .08)); border: 1px solid rgba(243, 205, 130, .25); }
.master-note b { display: flex; align-items: center; gap: 6px; color: var(--gold); font-size: 14px; }
.master-note b svg { width: 16px; height: 16px; }
.master-note p { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 2; }

/* ---------- Insight cards (forecast) ---------- */
.ins-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .ins-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.insight { --ac: var(--gold); display: flex; flex-direction: column; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 7%, transparent), transparent 60%), var(--surface); border: 1px solid var(--line); }
.ins-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ins-ic { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 22px; font-family: var(--font-glyph); color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); }
.ins-ic b { font-family: var(--font); font-size: 19px; font-weight: 900; }
.ins-kicker { display: flex; align-items: center; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.insight h4 { font-size: 16px; font-weight: 800; line-height: 1.6; margin-top: 2px; }
.ins-plain { font-size: 14px; line-height: 2.05; color: #d6d2e6; }
.ins-tips { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.ins-tips li { position: relative; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.ins-tech { margin-top: auto; padding-top: 12px; }
.ins-tech summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--dim); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.ins-tech summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-3); font-size: 11px; transition: transform var(--med) var(--ease-out); }
.ins-tech[open] summary::before { transform: rotate(45deg); }
.ins-tech summary::-webkit-details-marker { display: none; }
.ins-tech p { font-size: 12px; line-height: 2; color: var(--dim); margin-top: 6px; }

.today-card { padding: 20px; border-radius: var(--r-xl); background: radial-gradient(120% 100% at 100% 0%, rgba(167, 150, 255, .16), transparent 55%), var(--bg-3); border: 1px solid var(--line-2); }
.today-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.today-num { flex: none; text-align: center; padding: 8px 12px; border-radius: 16px; background: var(--gold-soft); border: 1px solid rgba(243, 205, 130, .3); }
.today-num b { display: block; font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.today-num small { font-size: 10.5px; color: var(--muted); }
.today-card > p { font-size: 14px; line-height: 2.05; color: #d6d2e6; }
.area-mini { display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 760px) { .area-mini { grid-template-columns: repeat(3, 1fr); } }
.am { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.am-ic { width: 32px; height: 32px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent); }
.am-ic svg { width: 17px; height: 17px; }
.am b { font-size: 13px; }
.am p { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.tip-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.tip-line svg { width: 16px; height: 16px; flex: none; color: var(--gold); margin-top: 3px; }
.year-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ys-item { padding: 14px 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.ys-item small { display: flex; justify-content: center; align-items: center; font-size: 11px; color: var(--dim); }
.ys-item b { display: block; font-size: 28px; font-weight: 900; color: var(--gold); line-height: 1.4; }
.ys-item span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ---------- Life areas ---------- */
.area-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.area-nav::-webkit-scrollbar { display: none; }
.area-nav .chip { flex: none; height: 36px; }
.areas { display: grid; gap: 14px; }
@media (min-width: 900px) { .areas { grid-template-columns: 1fr 1fr; align-items: stretch; } .areas > div:first-child { grid-column: 1 / -1; } .areas > div { display: flex; } .areas > div > .area { flex: 1; } }
.areas > div { scroll-margin-top: 130px; }
.area { --ac: var(--gold); position: relative; padding: 20px; border-radius: var(--r-xl); background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 8%, transparent), transparent 40%), var(--surface); border: 1px solid color-mix(in srgb, var(--ac) 22%, var(--line)); }
.area-head { display: flex; gap: 12px; align-items: center; }
.area-ic { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; color: var(--ac); background: color-mix(in srgb, var(--ac) 15%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 32%, transparent); }
.area-ic svg { width: 24px; height: 24px; }
.area-head small { font-size: 12px; color: var(--ac); font-weight: 800; }
.area-head h3 { font-size: 19px; font-weight: 900; line-height: 1.5; }
.area-lead { margin-top: 12px; font-size: 14.5px; line-height: 2.05; color: #dcd8ea; }
.area-why { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); }
.area-why > small { font-size: 11px; color: var(--dim); font-weight: 700; }
.area-why .kv { margin-top: 6px; }
.area-cols { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 560px) { .area-cols { grid-template-columns: 1fr 1fr; } }
.area-cols > div { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.area-cols h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; }
.area-cols h5 svg { width: 15px; height: 15px; }
.area-cols > div:first-child h5 { color: var(--ok); }
.area-cols > div:last-child h5 { color: var(--warn); }
.area-cols ul { margin: 0; padding-right: 16px; font-size: 13px; line-height: 2; color: var(--muted); }
.area-num { margin-top: 12px; font-size: 13px; line-height: 2; color: var(--muted); }
.area-num b { color: var(--text); }
.area-tip { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ac) 10%, transparent); font-size: 13px; line-height: 1.95; }
.area-tip svg { width: 16px; height: 16px; flex: none; color: var(--ac); margin-top: 4px; }
.area-year { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.area-year b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gold); }
.area-year b svg { width: 15px; height: 15px; }
.area-year p { font-size: 12.5px; color: var(--muted); line-height: 1.95; margin-top: 4px; }
/* placeholder bars that stand in for paid text */
.ph { padding: 6px 2px; }
.ph i { display: block; height: 11px; margin: 0 0 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3), rgba(255, 255, 255, .14), var(--surface-3)); }
.ph i:nth-child(4n) { margin-bottom: 26px; }
.locked.mini { min-height: 170px; margin-top: 12px; }
.locked.mini .lock-content { max-height: 200px; }
.locked.mini .lock-cta { padding: 50px 14px 12px; gap: 8px; }
.locked.mini .lock-cta b { font-size: 13px; }

.mini-stat { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mini-stat small { display: block; font-size: 11px; color: var(--dim); }
.mini-stat b { font-size: 15px; }
.mini-stat p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.9; }
.loshu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 300px; margin: 0 auto; direction: ltr; }
.loshu div { aspect-ratio: 1; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; position: relative; font-weight: 900; font-size: 18px; color: var(--dim); }
.loshu div.has { background: var(--gold-soft); border-color: rgba(243, 205, 130, .35); color: var(--gold); }
.loshu div small { position: absolute; top: 6px; right: 9px; font-size: 10px; color: var(--dim); font-weight: 600; }
.timeline { position: relative; padding-right: 22px; }
.timeline::before { content: ""; position: absolute; right: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--violet)); border-radius: 2px; opacity: .5; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; right: -20px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.tl-item.now::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(243, 205, 130, .2); }
.tl-item b { font-size: 14px; }
.tl-item p { font-size: 13px; color: var(--muted); }

.asp-grid { border-collapse: separate; border-spacing: 2px; margin: 0 auto; direction: ltr; }
.asp-grid th, .asp-grid td { width: 26px; height: 26px; text-align: center; font-family: var(--font-glyph); font-size: 13px; border-radius: 7px; padding: 0; }
.asp-grid td { background: var(--surface); }
.asp-grid th { color: var(--gold); font-weight: 400; }
.asp-grid td.diag { background: transparent; color: var(--muted); }
@media (max-width: 360px) { .asp-grid th, .asp-grid td { width: 22px; height: 22px; font-size: 11px; } }

/* lock / premium */
.locked { position: relative; }
.locked .lock-content { filter: blur(4.5px); user-select: none; pointer-events: none; opacity: .8; max-height: 320px; overflow: hidden; mask-image: linear-gradient(#000 30%, rgba(0,0,0,.35) 75%, transparent); -webkit-mask-image: linear-gradient(#000 30%, rgba(0,0,0,.35) 75%, transparent); }
.lock-cta {
  position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 20px 18px; text-align: center;
  background: linear-gradient(transparent, rgba(6, 6, 11, .82) 40%, rgba(6, 6, 11, .92));
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.lock-cta .lk { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--gold); color: #1d1606; box-shadow: 0 0 0 8px rgba(243, 205, 130, .12); animation: floaty 3.2s ease-in-out infinite; }
.lock-cta .lk svg { width: 22px; height: 22px; }
.lock-cta b { font-size: 15px; }
.lock-cta span { font-size: 12.5px; color: var(--muted); }
body.is-plus .locked .lock-content { filter: none; opacity: 1; max-height: none; mask-image: none; -webkit-mask-image: none; pointer-events: auto; user-select: auto; }
body.is-plus .locked .lock-cta { display: none; }
.plus-only { display: none; }
body.is-plus .plus-only { display: revert; }
body.is-plus .free-only { display: none; }

.upsell {
  position: relative; border-radius: var(--r-xl); padding: 26px 22px; overflow: hidden; text-align: center;
  background: radial-gradient(100% 120% at 50% 0%, rgba(243, 205, 130, .2), transparent 60%), var(--bg-3);
  border: 1px solid rgba(243, 205, 130, .3);
}
.upsell .h2 { margin-top: 8px; }
.upsell ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; text-align: start; }
.upsell li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.upsell li svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* pricing */
.plans { display: grid; gap: 12px; }
.plan { display: flex; flex-direction: column; } /* equal-height cards with the buttons on one line */
.plan ul { flex: 1; align-content: start; }
.plan { position: relative; padding: 22px 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: transform var(--med) var(--ease), border-color var(--med); }
.plan.best { background: radial-gradient(120% 100% at 100% 0%, rgba(243, 205, 130, .16), transparent 55%), var(--bg-3); border-color: rgba(243, 205, 130, .45); }
.plan .ribbon { position: absolute; top: 18px; left: 18px; }
@media (max-width: 759px) { .plan.best { order: -1; } }
.plan h3 { font-size: 18px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan .price b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.plan .price span { color: var(--muted); font-size: 13px; }
.plan .old { color: var(--dim); text-decoration: line-through; font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #d2cfe0; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold); }
.plan li.no { color: var(--dim); }
.plan li.no svg { color: var(--dim); }
.billing-toggle { max-width: 320px; margin: 0 auto 18px; }
.compare { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare th, .compare td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: start; color: var(--muted); }
.compare th { font-size: 12.5px; }
.compare .y { color: var(--gold); } .compare .n { color: var(--dim); }

/* horoscope */
.score-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.score { text-align: center; padding: 12px 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.score .ring { width: 54px; height: 54px; margin: 0 auto 6px; position: relative; }
.score .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.score small { font-size: 11.5px; color: var(--muted); }
.ring-bg { fill: none; stroke: var(--surface-3); }
.ring-fg { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1200ms var(--ease-out); }
.day-tabs { display: flex; gap: 6px; }
.lucky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lucky > div { padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.lucky small { display: block; color: var(--muted); font-size: 11px; }
.lucky b { font-size: 15px; }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-left: 6px; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }

/* compatibility */
.compat-pair { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; justify-items: stretch; }
.compat-pair .heart { background: #24141c; justify-self: center; margin-block: -22px; position: relative; z-index: 2; border: 4px solid var(--bg); }
@media (min-width: 760px) { .compat-pair { grid-template-columns: 1fr auto 1fr; } .compat-pair .heart { margin: 0; } }
.compat-pair .heart { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 143, 163, .12); color: var(--rose); animation: floaty 3s ease-in-out infinite; }
.compat-pair .heart svg { width: 22px; height: 22px; }
.compat-pair .heart { transition: color var(--med) var(--ease), background var(--med) var(--ease); }
.mode-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 14px; padding: 5px 12px 5px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: var(--mc); background: color-mix(in srgb, var(--mc) 14%, transparent); }
.mode-badge svg { width: 16px; height: 16px; }
.person { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.person .h { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.mini-select { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 6px; }
.mini-select select, select.input { appearance: none; -webkit-appearance: none; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); padding: 0 10px; font-size: 14px; width: 100%; outline: none; text-align: center; }
select option { background: #14141e; }
.big-score { position: relative; width: 190px; height: 190px; margin: 0 auto; }
.big-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-score .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.big-score .c b { font-size: 48px; font-weight: 900; line-height: 1; }
.big-score .c small { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

/* tools */
.abjad-out { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; direction: rtl; margin-top: 14px; }
.abjad-out span { display: inline-flex; flex-direction: column; align-items: center; min-width: 40px; padding: 8px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); animation: plIn 400ms var(--spring) both; animation-delay: var(--d, 0ms); }
.abjad-out span b { font-size: 18px; }
.abjad-out span small { font-size: 11px; color: var(--gold); }
.moon-vis { width: 120px; height: 120px; margin: 0 auto; }

/* ---------- Sheet / modal ---------- */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity var(--med) var(--ease); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 100; inset-inline: 0; bottom: 0; max-height: 92dvh; overflow-y: auto;
  background: #11111b; border-top-left-radius: 30px; border-top-right-radius: 30px; border: 1px solid var(--line-2); border-bottom: 0;
  padding: 10px 20px calc(24px + var(--safe-b)); transform: translateY(105%); transition: transform 420ms var(--ease-out);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .8); overscroll-behavior: contain;
}
.sheet.on { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 0 auto 16px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.pay-opt + .pay-opt { margin-top: 8px; }
.pay-opt.on { border-color: rgba(243, 205, 130, .55); background: var(--gold-soft); }
.pay-opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; transition: border-color var(--fast); }
.pay-opt.on .radio { border-color: var(--gold); }
.pay-opt.on .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); animation: pop 260ms var(--spring); }
.pay-opt b { font-size: 14.5px; display: block; }
.pay-opt small { color: var(--muted); font-size: 12px; }
.pay-opt .pr { margin-inline-start: auto; text-align: left; font-weight: 800; font-size: 14px; }
.coupon { display: flex; gap: 8px; margin-top: 12px; }
.coupon .input { height: 46px; font-size: 14px; flex: 1; min-width: 0; }
.coupon .btn { flex: none; height: 46px; padding-inline: 18px; white-space: nowrap; }

/* toast */
.toast { position: fixed; z-index: 300; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -150%); padding: 12px 18px; border-radius: 16px; background: #1b1b28; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); transition: transform 420ms var(--spring); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* skeleton */
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* footer */
.footer { padding: 34px 0 calc(var(--nav-h) + var(--safe-b) + 34px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.footer h4 { color: var(--text); font-size: 13.5px; margin-bottom: 8px; }
.footer a { display: block; padding: 3px 0; transition: color var(--fast); }
.footer a:hover { color: var(--gold); }
.footer a.brand { display: inline-flex; padding: 0; } /* logo beside the wordmark, as in the header */
.footer .legal { margin-top: 26px; font-size: 11.5px; color: var(--dim); line-height: 2; }

/* demo bar */
.demo-toggle { position: fixed; z-index: 45; left: 10px; top: calc(var(--header-h) + 6px); transform: scale(.88); transform-origin: left top; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 99px; background: rgba(20, 20, 30, .9); border: 1px dashed rgba(243, 205, 130, .45); font-size: 11.5px; color: var(--gold); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.demo-toggle .switch { width: 36px; height: 22px; }
@media (max-width: 759px) { .demo-toggle { padding: 6px; top: auto; bottom: calc(var(--nav-h) + var(--safe-b) + 20px); } .demo-toggle > span:last-child { display: none; } }
.demo-toggle .switch::after { width: 16px; height: 16px; }
.demo-toggle input:checked + .switch::after { transform: translateX(-14px); }

/* profile sheet list */
.prof-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.prof-item + .prof-item { margin-top: 8px; }
.prof-item .av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-family: var(--font-glyph); font-size: 20px; flex: none; }
.prof-item b { display: block; font-size: 14px; }
.prof-item small { color: var(--muted); font-size: 12px; }

/* empty state */
.empty { text-align: center; padding: 40px 10px; }
.empty .glyph { font-size: 56px; color: var(--gold); margin: 0 auto 16px; animation: floaty 4s ease-in-out infinite; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 28px; }
  .top-nav { display: flex; }
  .bottom-nav { display: none; }
  main { padding-bottom: 40px; }
  .footer { padding-bottom: 40px; }
  /* brand + blurb on one side, three even link columns on the other */
  .footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 56px; align-items: start; }
  .footer .wrap > .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .footer .wrap > p.mt-2 { grid-column: 1; grid-row: 2; }
  .footer .cols { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
  .footer .legal { grid-column: 1 / -1; }
  .section { padding-block: 72px; }
  .hero { padding-top: 40px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; text-align: start; gap: 30px; }
  .hero .lead { margin-inline: 0; }
  .hero-cta { flex-direction: row; justify-content: flex-start; }
  .hero-meta { justify-content: flex-start; }
  .hero-orb { order: 2; width: 100%; max-width: 440px; }
  .zodiac-grid { grid-template-columns: repeat(6, 1fr); }
  .g-md-2 { grid-template-columns: repeat(2, 1fr); }
  .g-md-3 { grid-template-columns: repeat(3, 1fr); }
  .g-md-4 { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .num-grid { grid-template-columns: repeat(4, 1fr); }
  .sheet { inset-inline: auto; left: 50%; bottom: 50%; width: 460px; border-radius: 30px; border-bottom: 1px solid var(--line-2); transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform 380ms var(--ease-out), opacity 260ms var(--ease); }
  .sheet.on { transform: translate(-50%, 50%); opacity: 1; }
  .demo-toggle { top: auto; bottom: 20px; transform: none; }
  .report-grid { grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
  .now-strip { margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1024px) {
  .h-display { font-size: 72px; }
}

/* ---------- Interaction: every control that does something ----------
   One feel everywhere: a quick squeeze on press (90 ms) and a soft spring back on release, a ripple from the
   touch point (core.js), hover effects only on devices that really hover (no "stuck" hover after a tap on
   phones), a visible ring for keyboard focus, and a spinner while a button waits for the server (K.busy).
   Only transform/opacity animate during the press, so it stays smooth on low-end phones. */
:root { --press: 90ms; --release: 460ms; }
a, button, label, summary, [role="button"], .acc-h, .pay-opt, .wheel-col .opt { touch-action: manipulation; }
button, .btn, .icon-btn, :is(a, button, label).chip, .z-btn, .pay-opt, .plus-pill, .expand-all, .bottom-nav a, .gt, .num-tile, .cal-d { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.btn, .icon-btn, :is(a, button, label).chip, .z-btn, .pay-opt, .plus-pill, .expand-all, .seg button, .tabs button,
.bottom-nav a, .gt, button.num-tile, .cal-d, .card-hover, a.prof-item, .combo-list button, .manual-toggle {
  transition-property: transform, background-color, border-color, color, box-shadow, filter, opacity;
  transition-duration: var(--release), var(--fast), var(--fast), var(--fast), var(--med), var(--fast), var(--fast);
  transition-timing-function: var(--spring), var(--ease), var(--ease), var(--ease), var(--ease), var(--ease), var(--ease);
}
/* ripple hosts */
.icon-btn, :is(a, button, label).chip, .z-btn, .pay-opt, .num-tile, .cal-d, .acc-h { position: relative; overflow: hidden; isolation: isolate; }
.icon-btn, :is(a, button, label).chip { flex-shrink: 0; } /* overflow:hidden would otherwise let a flex row squeeze them */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: currentColor;
  transform: translate(-50%, -50%) scale(0); opacity: 0; animation: ripple 640ms var(--ease-out) forwards;
}
.btn:not(.btn-ghost) > .ripple { background: #fff; }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(0); opacity: .2; } 45% { opacity: .16; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.btn:not(.btn-ghost) > .ripple { animation-name: rippleLight; }
@keyframes rippleLight { 0% { transform: translate(-50%, -50%) scale(0); opacity: .45; } 45% { opacity: .3; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* hover: mouse and trackpad only */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); filter: brightness(1.05) saturate(1.06); box-shadow: 0 16px 36px -12px rgba(243, 205, 130, .7), inset 0 1px 0 rgba(255, 255, 255, .55); }
  .btn-violet:hover { box-shadow: 0 16px 36px -12px rgba(167, 150, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .55); }
  .btn-ghost:hover { filter: none; background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
  .icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
  :is(a, button, label).chip:not(.on):hover { color: var(--text); border-color: var(--line-2); background: var(--surface-3); }
  .plus-pill:hover { transform: translateY(-1px); border-color: rgba(243, 205, 130, .6); }
  .pay-opt:not(.on):hover { border-color: var(--line-2); background: var(--surface-2); }
  .seg button:not(.on):hover, .tabs button:not(.on):hover { color: var(--text); }
  .bottom-nav a:not(.active):hover { color: var(--muted); }
  a.prof-item:hover { border-color: var(--line-2); background: var(--surface-2); }
}

/* press: after the hover rules so a held button never stays lifted */
:is(.btn, .icon-btn, :is(a, button, label).chip, .z-btn, .pay-opt, .plus-pill, .expand-all, .seg button, .tabs button,
.bottom-nav a, .gt, button.num-tile, .cal-d, .card-hover, a.prof-item, .combo-list button):active {
  transition-duration: var(--press); transition-timing-function: var(--ease);
}
.btn:active { transform: scale(.96); filter: brightness(.97); }
.btn-sm:active { transform: scale(.95); }
.btn-block:active { transform: scale(.98); }
.icon-btn:active, .gt:active { transform: scale(.88); }
:is(a, button, label).chip:active, .plus-pill:active, .expand-all:active { transform: scale(.94); }
.seg button:active, .tabs button:active { transform: scale(.94); }
.z-btn:active, .cal-d:active { transform: scale(.93); }
.bottom-nav a:active { transform: scale(.9); }
button.num-tile:active { transform: scale(.97); }
.pay-opt:active, a.prof-item:active, .card-hover:active { transform: scale(.985); }
.combo-list button:active { background: var(--surface-3); }

/* iPhone zooms the whole page into any text field smaller than 16px when it gets focus, and the page stays
   zoomed after the keyboard closes. Keep every field at 16px on touch screens. */
@media (pointer: coarse) {
  .coupon .input, select.input, .mini-select select, .manual-city select.input, .seo-calc-row .input,
  .comment-form input, .comment-form textarea { font-size: 16px; }
}

/* keyboard focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.input:focus-visible, .wheel-col:focus-visible { outline: none; }
.wheel-col:focus-visible .opt.sel { color: var(--gold); }
.seg button:focus-visible, .tabs button:focus-visible, .acc-h:focus-visible, .combo-list button:focus-visible { outline-offset: -2px; border-radius: 12px; }
.btn:focus-visible { outline-offset: 4px; }

/* waiting for the server */
.is-busy { cursor: progress; pointer-events: none; }
.btn.is-busy, .btn[disabled].is-busy { opacity: 1; filter: saturate(.85); transform: none; }
.is-busy > .busy-l { animation: busyIn 260ms var(--ease-out) both; }
.spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin 700ms linear infinite; }
@keyframes busyIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ripple { display: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- PDF document (built by report.js, shown only when printing) ---------- */
.print-doc { display: none; }
@page { size: A4; margin: 14mm 14mm 16mm; }
/* ================= SEO pages (WordPress: inc/seo-render.php · review file: dev/spa-seo.js) ================= */
.seo-page { padding-bottom: 20px; }
.crumbs { padding-top: 16px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--dim); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.seo-hero { padding-top: 18px; padding-bottom: 8px; }
.seo-hero .h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.seo-glyph { font-family: var(--font-glyph); color: var(--gold); font-size: .9em; }
.seo-lead { color: var(--muted); margin-top: 10px; max-width: 680px; line-height: 2; }
.seo-sec { padding-top: 34px; }
.seo-sec .sec-head { margin-bottom: 16px; }
.h4 { font-size: 15.5px; font-weight: 800; }
.seo-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.seo-facts > div { padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.seo-facts small { display: block; font-size: 11px; color: var(--dim); }
.seo-facts b { font-size: 14.5px; }
.seo-ul { margin: 10px 0 0; padding-inline-start: 18px; display: grid; gap: 8px; color: #d2cfe0; font-size: 14px; line-height: 1.95; }
.seo-events { list-style: none; padding: 0; gap: 10px; }
.seo-events li { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.seo-when { display: inline-block; margin-inline-end: 6px; padding: 2px 9px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); font-size: 11.5px; font-weight: 800; }
.seo-pairs, .seo-nums, .seo-signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.seo-pairs .card, .seo-nums .card, .seo-signs .card { display: flex; flex-direction: column; gap: 4px; padding: 16px; position: relative; }
.seo-pairs small, .seo-nums small, .seo-signs small { color: var(--muted); font-size: 12px; }
.seo-pairs .tag { position: absolute; top: 14px; left: 14px; }
.seo-signs .glyph { font-size: 26px; color: var(--gold); line-height: 1.2; }
.seo-num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--gold), #d9a24e); color: #1d1606; font-size: 24px; font-weight: 900; flex: none; }
.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seo-chips .chip { text-decoration: none; }
.seo-score { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); max-width: 520px; }
.seo-score > div:first-child { text-align: center; }
.seo-score > div:first-child b { display: block; font-size: 42px; font-weight: 900; line-height: 1; color: var(--gold); }
.seo-score > div:first-child small { color: var(--dim); font-size: 11px; }
.seo-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.seo-cta .btn { flex: none; white-space: nowrap; padding-inline: 22px; }
.seo-pairs.seo-trio { grid-template-columns: 1fr; } /* three calendar cards: stacked on phones, a row on wider screens */
@media (min-width: 760px) { .seo-pairs.seo-trio { grid-template-columns: repeat(3, 1fr); } }
.seo-now { margin-top: 18px; border-color: rgba(243, 205, 130, .35); }
.seo-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.seo-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
.seo-table th { text-align: start; font-size: 12px; color: var(--dim); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.seo-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.8; }
.seo-table tr:last-child td { border-bottom: 0; }
.seo-table td small { color: var(--dim); }
.seo-table tr.on td { background: var(--gold-soft); color: var(--text); }
.seo-table tr.key td:first-child { color: var(--gold); font-weight: 800; }
.seo-acc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-top: 10px; }
.seo-acc summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.seo-acc summary::-webkit-details-marker { display: none; }
.seo-acc summary small { color: var(--muted); font-size: 12px; flex: 1; }
.seo-acc summary i { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.seo-acc summary i::before { content: "+"; font-style: normal; color: var(--gold); }
.seo-acc[open] summary i::before { content: "−"; }
.seo-acc .seo-table-wrap, .seo-acc .seo-chips { margin: 0 12px 14px; }
.seo-acc .seo-table-wrap { border: 0; }
.seo-calc { max-width: 560px; margin-top: 18px; }
.seo-cal { max-width: 240px; }
.seo-cal button.on { background: var(--gold); }
.seo-calc-row { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr; gap: 8px; margin-top: 14px; }
.seo-calc-row label small { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 4px; }
.seo-calc-row .input { height: 46px; text-align: center; }
.seo-calc-out:empty { display: none; }
.seo-calc-out { margin-top: 14px; }
.seo-calc-res { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: var(--r); background: var(--gold-soft); }
.seo-calc-res > div { flex: 1; min-width: 160px; }
@media (min-width: 760px) {
  .seo-facts { grid-template-columns: repeat(4, 1fr); }
  .seo-pairs, .seo-nums { grid-template-columns: repeat(3, 1fr); }
  .seo-signs { grid-template-columns: repeat(6, 1fr); }
  .seo-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #1b1b2a; }
  body > *:not(.print-doc) { display: none !important; }
  .print-doc { display: block; font-family: var(--font); font-size: 10.5pt; line-height: 1.9; color: #1b1b2a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.print-doc .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.print-doc .pd-gl { font-family: var(--font-glyph); color: #a87a26; }
.print-doc .pd-cover { height: 265mm; display: flex; flex-direction: column; align-items: center; text-align: center; break-after: page; padding-top: 6mm; }
.print-doc .pd-brand { display: flex; align-items: center; gap: 10px; }
.print-doc .pd-brand .brand-mark { width: 40px; height: 40px; }
.print-doc .pd-brand b { font-family: var(--font-latin); font-size: 26pt; font-weight: 400; display: block; line-height: 1; }
.print-doc .pd-brand small { font-size: 7pt; letter-spacing: .2em; color: #8a8698; direction: ltr; display: block; }
.print-doc .pd-kicker { margin-top: 12mm; color: #a87a26; font-weight: 700; letter-spacing: .03em; }
.print-doc .pd-cover h1 { font-size: 30pt; font-weight: 900; margin-top: 3mm; }
.print-doc .pd-meta { color: #555; margin-top: 2mm; }
.print-doc .pd-wheel { width: 128mm; height: 128mm; margin: 8mm auto 6mm; }
.print-doc .pd-wheel svg { width: 100%; height: 100%; }
.print-doc .pd-big3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4mm; width: 100%; }
.print-doc .pd-big3 div { border: 1px solid #e4dccb; border-radius: 4mm; padding: 3mm 2mm; }
.print-doc .pd-big3 small { display: block; color: #8a8698; font-size: 8pt; }
.print-doc .pd-big3 b { font-size: 12pt; }
.print-doc .pd-foot { margin-top: auto; color: #8a8698; font-size: 8pt; }
.print-doc .pd-sec { break-before: page; }
.print-doc .pd-toc { break-before: auto; break-after: page; }
.print-doc .pd-toc ol { font-size: 12pt; line-height: 2.4; padding-right: 10mm; list-style: persian; }
.print-doc .pd-h { display: flex; align-items: center; gap: 4mm; border-bottom: 2px solid #1b1b2a; padding-bottom: 3mm; margin-bottom: 5mm; }
.print-doc .pd-h span { width: 10mm; height: 10mm; border-radius: 50%; display: grid; place-items: center; background: #1b1b2a; color: #f3cd82; font-weight: 900; font-size: 11pt; }
.print-doc .pd-h h2 { font-size: 18pt; font-weight: 900; }
.print-doc h3.pd-sub { font-size: 12.5pt; font-weight: 800; margin: 6mm 0 3mm; color: #a87a26; }
.print-doc .pd-block h3 { break-after: avoid; }
.print-doc .pd-block p { orphans: 3; widows: 3; }
.print-doc .pd-block { break-inside: auto; border-right: 3px solid #e9c98a; padding: 1mm 4mm 1mm 0; margin: 0 0 5mm; }
.print-doc .pd-block h3 { font-size: 12pt; font-weight: 800; margin-bottom: 1.5mm; }
.print-doc .pd-block h3 small { font-weight: 500; font-size: 8.5pt; color: #8a8698; margin-right: 3mm; }
.print-doc p { margin: 0 0 2.5mm; text-align: justify; }
.print-doc ul { margin: 0 0 3mm; padding-right: 6mm; }
.print-doc .pd-table { width: 100%; border-collapse: collapse; margin: 2mm 0 5mm; font-size: 9.5pt; break-inside: auto; }
.print-doc .pd-table th { background: #f4efe4; font-weight: 800; text-align: start; padding: 2mm 2.5mm; border-bottom: 1px solid #d8ccb2; }
.print-doc .pd-table td { padding: 1.8mm 2.5mm; border-bottom: 1px solid #eee6d6; vertical-align: top; }
.print-doc .pd-table tr { break-inside: avoid; }
.print-doc .pd-table.kv td:first-child { width: 28%; font-weight: 700; color: #5b5670; }
.print-doc .pd-table.kv { border-top: 1px solid #eee6d6; }
.print-doc .pd-table small { color: #8a8698; font-size: 7.5pt; }
.print-doc .pd-loshu { display: grid; grid-template-columns: repeat(3, 16mm); gap: 2mm; direction: ltr; margin: 2mm auto 4mm; width: max-content; }
.print-doc .pd-loshu + ul, .print-doc .pd-loshu ~ p { text-align: start; }
.print-doc .pd-loshu div { height: 16mm; border: 1px solid #e4dccb; border-radius: 3mm; display: grid; place-items: center; position: relative; font-weight: 900; color: #a87a26; }
.print-doc .pd-loshu div.on { background: #f8f0dc; }
.print-doc .pd-loshu small { position: absolute; top: 1mm; right: 2mm; font-size: 7pt; color: #999; font-weight: 500; }

::view-transition-old(root) { animation: 160ms var(--ease) both vtOut; }
::view-transition-new(root) { animation: 260ms var(--ease-out) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
::view-transition-group(nav) { animation: none; }
.bottom-nav { view-transition-name: nav; }
