/* Tarakosh — night-sky theme. Mobile first. */
:root {
  --night: #0c0a1d; --night-2: #141130; --surface: #1a1640; --surface-2: #231e52; --line: rgba(255, 255, 255, .09);
  --text: #f4eee2; --muted: #a9a3c6; --dim: #7d779c;
  --gold: #f2b544; --gold-2: #ffd27a; --gold-ink: #2a1c00; --rose: #ee8fa6; --violet: #8f7bff; --teal: #5fd4c4;
  --ok: #57d18b; --warn: #f2b544; --err: #ff7a7a;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body-base: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif; --font-body: var(--font-body-base);
  --max: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--night);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 62%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 85%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(900px 600px at 85% -10%, rgba(143,123,255,.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(242,181,68,.07), transparent 60%);
  background-attachment: fixed; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--gold); font-weight: 700; margin-bottom: .6rem; display: block; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: .875rem; } .center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* announcement */
.announce { background: linear-gradient(90deg, var(--violet), var(--rose)); color: #160f2e; text-align: center; font-weight: 700; font-size: .9rem; padding: .45rem 1rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 10, 29, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: none; gap: 1.4rem; margin-left: 1.5rem; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.menu-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 40px; font-size: 1.2rem; cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: .75rem 0 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .65rem 0; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .nav-links { display: flex; } .menu-btn, .mobile-menu { display: none !important; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 999px; border: 1px solid transparent; font: 700 .95rem var(--font-body); cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; min-height: 44px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 6px 24px rgba(242, 181, 68, .28); }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(242, 181, 68, .42); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-small { padding: .45rem .85rem; min-height: 36px; font-size: .85rem; }
.btn-danger { background: transparent; color: var(--err); border-color: rgba(255,122,122,.45); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--gold-2); cursor: pointer; font: inherit; padding: 0; }

/* hero */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 6vw, 4rem); position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.4rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .9rem; padding: 0; margin: 0; list-style: none; }
.trust li::before { content: '✦ '; color: var(--gold); }
.orb { aspect-ratio: 1; width: min(420px, 100%); margin-inline: auto; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(255,210,122,.35), transparent 40%), radial-gradient(circle at 60% 70%, rgba(143,123,255,.45), transparent 55%), var(--night-2);
  border: 1px solid rgba(255,210,122,.25); box-shadow: 0 0 120px rgba(143,123,255,.25), inset 0 0 60px rgba(0,0,0,.5); display: grid; place-items: center; }
.orb svg { width: 78%; color: rgba(255, 210, 122, .85); }
.orb-ring { animation: spin 120s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orb-ring { animation: none; } html { scroll-behavior: auto; } }

/* cards & grids */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: linear-gradient(180deg, rgba(35,30,82,.75), rgba(26,22,64,.75)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.card h3 { margin-bottom: .35rem; }
.service-card { display: flex; flex-direction: column; gap: .55rem; color: var(--text); transition: border-color .2s, transform .2s; height: 100%; }
.service-card:hover { border-color: rgba(242,181,68,.5); transform: translateY(-2px); text-decoration: none; }
.service-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(242,181,68,.12); color: var(--gold-2); border: 1px solid rgba(242,181,68,.25); }
.service-card p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.service-card .hindi { color: var(--dim); font-size: .85rem; }
.service-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; font-weight: 700; }
.price-chip { background: rgba(242,181,68,.14); color: var(--gold-2); border: 1px solid rgba(242,181,68,.3); border-radius: 999px; padding: .15rem .65rem; font-size: .85rem; font-weight: 800; }
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 800; margin-bottom: .75rem; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.feature-list li { padding-left: 1.6rem; position: relative; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.cat-title { margin-top: 2.5rem; }

/* page heads */
.page-head { padding: clamp(2rem, 6vw, 3.5rem) 0 1rem; }
.breadcrumb { font-size: .85rem; color: var(--dim); margin-bottom: .75rem; }
.breadcrumb a { color: var(--muted); }

/* forms */
form { margin: 0; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label, .label { font-weight: 700; font-size: .9rem; }
.hint { color: var(--dim); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: .78rem .9rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16); background: rgba(8, 6, 22, .6); color: var(--text); font: inherit; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,181,68,.18); }
input[type=date], input[type=time] { color-scheme: dark; }
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-size: .92rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg label { padding: .4rem .9rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--gold-ink); }
.seg label:has(input:checked) { background: var(--gold); color: var(--gold-ink); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem .4rem; margin: 0 0 1.25rem; }
legend { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; padding: 0 .4rem; }
.place-results { display: grid; gap: .4rem; margin-top: .5rem; }
.place-results button { text-align: left; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); padding: .6rem .8rem; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-size: .9rem; }
.place-results button:hover { border-color: var(--gold); }
.place-picked { color: var(--teal); font-size: .88rem; font-weight: 600; }
.input-group { display: flex; gap: .5rem; } .input-group > input { flex: 1; }
.form-error { color: var(--err); font-weight: 600; font-size: .9rem; min-height: 1.2em; }
.summary-box { background: rgba(8,6,22,.5); border: 1px dashed rgba(242,181,68,.35); border-radius: var(--radius); padding: 1rem 1.1rem; }
.summary-box .line { display: flex; justify-content: space-between; padding: .2rem 0; }
.summary-box .total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .5rem; }
.auth-card { max-width: 440px; margin: clamp(2rem, 6vw, 4rem) auto; }

/* badges, tables */
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border: 1px solid; }
.badge.ok { color: var(--ok); border-color: rgba(87,209,139,.4); } .badge.warn { color: var(--warn); border-color: rgba(242,181,68,.4); }
.badge.err { color: var(--err); border-color: rgba(255,122,122,.4); } .badge.info { color: var(--violet); border-color: rgba(143,123,255,.45); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: rgba(255,255,255,.03); }
tr:last-child td { border-bottom: 0; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }

/* reading output */
.prose { font-size: 1.03rem; }
.prose h2, .prose h3 { margin-top: 1.6em; color: var(--gold-2); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; } .prose li { margin: .3rem 0; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 1rem 0; padding: .25rem 1rem; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.chart-svg { color: var(--gold-2); width: 100%; max-width: 380px; display: block; margin-inline: auto; }
.chart-svg .planet { fill: var(--text); } .chart-svg .sign-no { fill: var(--dim); } .chart-svg .asc-label { fill: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem; }
.fact .k { color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; } .fact .v { font-weight: 800; }
.disclaimer { border: 1px solid rgba(143,123,255,.35); background: rgba(143,123,255,.08); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .9rem; color: var(--muted); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 0 auto 1rem; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* stats & tabs (dashboard / admin) */
.stat { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.stat .k { color: var(--muted); font-size: .8rem; font-weight: 700; } .stat .v { font-size: 1.6rem; font-weight: 800; font-family: var(--font-display); }
.tabs { display: flex; gap: .35rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: var(--muted); font: 700 .92rem var(--font-body); padding: .7rem .9rem; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--gold); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars div:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--surface-2); padding: .2rem .45rem; border-radius: 6px; font-size: .72rem; white-space: nowrap; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); max-width: min(720px, 94vw); width: 100%; padding: 1.25rem; }
dialog::backdrop { background: rgba(0,0,0,.6); }
pre { white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,.3); padding: .75rem; border-radius: 8px; font-size: .8rem; max-height: 360px; overflow: auto; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(440px, 92vw); }
.toast { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; }
.toast.err { border-left-color: var(--err); } .toast.ok { border-left-color: var(--ok); }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.5rem 0 1.5rem; color: var(--muted); font-size: .9rem; background: rgba(8,6,22,.5); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--dim); }
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); font-size: 1.5rem; }
.wa-float:hover { text-decoration: none; }

/* legal text */
.legal h2 { font-size: 1.5rem; margin-top: 2rem; } .legal li { margin: .3rem 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; line-height: 1; } .faq details[open] summary::after { content: '−'; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* print: readings & receipts */
@media print {
  body { background: #fff !important; color: #111; font-size: 12pt; }
  .site-header, .site-footer, .no-print, .wa-float, .announce, .toasts { display: none !important; }
  .card, .fact, .disclaimer, .summary-box { background: #fff !important; border-color: #ccc !important; color: #111; }
  .prose h2, .prose h3, a { color: #111 !important; } .muted, .dim { color: #444 !important; }
  .chart-svg { color: #333; } .chart-svg .planet { fill: #111; }
  th { background: #f3f3f3; color: #333; }
}
@media (max-width: 599px) { .nav-actions [data-auth="in"], .nav-actions [data-auth="admin"] { display: none !important; } .nav-actions [data-auth="out"].btn-ghost { display: none !important; } .brand { font-size: 1.35rem; } }

.lang-sel { width: auto; min-height: 36px; padding: .35rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: transparent; }
.mobile-menu .lang-sel { margin-top: .75rem; width: 100%; border-radius: var(--radius-sm); }
@media (max-width: 599px) { .nav-actions .lang-sel { display: none; } }
/* Indian scripts: no extra letter-spacing or forced capitals (they break conjunct letters) */
html:not([lang="en"]) .eyebrow, html:not([lang="en"]) h1, html:not([lang="en"]) h2, html:not([lang="en"]) h3, html:not([lang="en"]) .btn, html:not([lang="en"]) th, html:not([lang="en"]) .fact .k { letter-spacing: 0; text-transform: none; }
html:not([lang="en"]) body { line-height: 1.7; }
