:root {
  /* Sand and sage: a calm, light palette. "gold" names are the warm accent. */
  --bg: #f5f0e8;
  --bg-2: #ede6da;
  --surface: #fbf8f2;
  --surface-2: #f2ece2;
  --border: #e0d6c6;
  --text: #3a3530;
  --muted: #6b635a;
  --gold: #d99a63;
  --gold-soft: #ebbd90;
  --gold-2: #94592a;
  --on-gold: #3a2618;
  --danger: #ad5246;
  --success: #437457;
  --radius: 14px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at top, #fdf9f2 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 460px; }
.container.order { max-width: 1320px; }
/* Admin uses the full window width: the order and account lists sit at the far left. */
.container.admin { max-width: none; margin: 0; padding: 0 20px; }
.section { padding-block: 56px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error { color: var(--danger); }
.eyebrow { color: var(--gold-2); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.6em; }

/* header / footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 18px 16px;
}
.brand img { display: block; object-fit: contain; }
.hero-logo { display: block; margin: 0 auto 26px; width: 180px; height: auto; filter: drop-shadow(0 4px 16px rgba(217, 130, 43, 0.15)); }
.footer-logo { display: block; margin: 0 auto 10px; width: 96px; height: auto; opacity: 0.9; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.5rem var(--serif); }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:not(.btn):hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.site-footer p { max-width: 640px; margin-inline: auto; }
.site-footer .powered-by { margin-top: -6px; font-size: 0.8rem; letter-spacing: 0.01em; }

/* buttons */
.btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--on-gold);
  font: 600 1rem var(--sans); padding: 13px 26px; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(185, 119, 61, 0.18); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
/* Sign out, top right: outlined in the accent colour so it stands out next to "Request a reading". */
.btn-signout { background: var(--surface); color: var(--danger); border: 1.5px solid var(--danger); font-weight: 600; }
.btn-profile { font-weight: 600; border-color: var(--gold); color: var(--gold-2); }
/* My Profile's pane has no folder tab above it (it opens from the header). */
.folder-pane.profile-pane { border-radius: var(--radius); margin-top: 1px; }
.btn-signout:hover:not(:disabled) { background: var(--danger); color: #fff; box-shadow: 0 6px 18px rgba(173, 82, 70, 0.22); }

/* hero */
.hero { text-align: center; padding: 40px 16px 56px; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 1.8em; }
.hero .btn + p { margin-top: 1em; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps > li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font: 600 1.1rem var(--serif); margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }

/* packages */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h1, .section-head h2 { margin: 0; }
.currency-select { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.currency-select select { width: auto; }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.package {
  position: relative; text-align: left; color: var(--text); font: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: border-color 0.15s, transform 0.15s;
}
.package:hover { transform: translateY(-2px); }
.package.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.package .price { font: 700 2rem var(--serif); color: var(--gold-2); margin: 0 0 0.4em; }
.package p { color: var(--muted); }
.package ul { padding-left: 1.1em; margin: 0 0 1em; }
.package li { margin-bottom: 0.3em; }
.badge { display: inline-block; background: var(--gold); color: var(--on-gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; border-radius: 999px; padding: 2px 10px; }
.package .badge { position: absolute; top: -11px; right: 20px; }

/* cards and forms */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 6px; align-content: start; font-weight: 500; font-size: 0.95rem; }
input, select, textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font: 400 1rem var(--sans);
}
input:focus, select:focus, textarea:focus, .package:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
input:disabled { opacity: 0.5; }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.hint { color: var(--muted); font-size: 0.85rem; font-weight: 400; margin: 0; }
.hint.error { color: var(--danger); }
.notice { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 16px; margin: 0 auto 20px; }
.form .notice { margin: 0; }
.notice.success { border-left-color: var(--success); }
/* Email confirmation: the reminder on My account, and the /confirm-email page. */
.notice.email-status { margin: 0 0 28px; }
.notice.email-status p { margin: 0 0 10px; }
.notice.email-status .hint, .notice.email-status .error { margin: 10px 0 0; }
.email-status.confirmed { color: var(--success); margin: -8px 0 24px; }
.confirm-email { text-align: center; }
.confirm-email .btn { justify-self: center; }
.confirm-email h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin: 0; }
.confirm-email p { margin: 0; }
.confirm-email .confirm-mark { justify-self: center; width: 56px; height: 56px; margin: 0; border-radius: 50%; background: var(--success); color: #fff; font-size: 1.8rem; line-height: 56px; }
.form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.total { margin: 0; color: var(--muted); }
.total strong { color: var(--text); font: 700 1.6rem var(--serif); margin-left: 6px; }

.place-input { position: relative; display: grid; gap: 6px; }
.place-list {
  position: absolute; top: 48px; left: 0; right: 0; z-index: 10; list-style: none; margin: 0; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(60, 45, 30, 0.12);
  max-height: 300px; overflow: auto;
}
.place-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-weight: 400; }
.place-list li.active { background: var(--border); }

/* collapsible panels */
.panel-head { margin: 0; font-size: inherit; }
.panel-head button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; text-align: left;
  font: 600 clamp(1.6rem, 3.5vw, 2.3rem)/1.15 var(--serif);
}
.panel-head button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.panel-head .chevron { flex: none; color: var(--muted); transition: transform 0.2s; }
.panel-head button:hover .chevron { color: var(--gold-2); }
.panel.closed .chevron { transform: rotate(-90deg); }
.panel.open .panel-head { margin-bottom: 18px; }
.panel.closed { padding-block: 18px; }

/* panchang, yogas */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 12px; }
.fact-grid .fact dd { margin: 2px 0 0; display: grid; gap: 2px; }
.fact-grid .fact strong { font: 600 1.1rem var(--serif); }
.chara-lines { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 6px; }
.chara-padas { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.findings { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.finding { background: var(--bg-2); border-radius: 10px; padding: 12px 14px; border-left: 3px solid var(--border); }
.finding.finding-present { border-left-color: var(--danger); }
.finding.finding-cancelled { border-left-color: var(--gold); }
.finding.finding-absent { border-left-color: var(--success); }
.findings > .finding:not([class*='finding-']) { border-left-color: var(--gold); }
.finding p { margin: 4px 0 0; font-size: 0.9rem; }
.finding-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.finding-head strong { font: 600 1.1rem var(--serif); }
.chip { font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid; }
.chip-present { color: var(--danger); }
.chip-cancelled { color: var(--gold-2); }
.chip-absent { color: var(--success); }
.sadesati { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sadesati li { background: var(--bg-2); border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; }
.sadesati li.current { border-color: var(--gold); }
.sadesati li.past { opacity: 0.65; }
.sadesati .finding-head .muted { margin-left: auto; }
.phases { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); margin-top: 4px; }

/* account */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 12px; }
.profile-card { display: grid; gap: 6px; color: var(--text); text-decoration: none; margin: 0; transition: border-color 0.15s, transform 0.15s; }
.profile-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.profile-card h3 { margin: 0; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0; }
.profile-facts dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.profile-facts dd { margin: 0; font: 600 1.1rem var(--serif); }
.link-arrow { color: var(--gold-2); font-size: 0.9rem; }
.account h2 { margin-top: 32px; }
.account .order-list { max-width: 640px; }

/* WhatsApp */
.wa-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; border-color: #25d36655; }
.wa-cta h2 { margin-bottom: 0.2em; }
.wa-cta p { margin: 0; max-width: 620px; }
.wa-sim .wa-phone { margin: 16px 0; }
.wa-chat { background: #0b141a; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.wa-hint { margin: auto; }
.wa-bubble { max-width: 85%; padding: 8px 12px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.93rem; line-height: 1.45; }
.wa-user { align-self: flex-end; background: #005c4b; color: #e9edef; border-top-right-radius: 2px; }
.wa-bot { align-self: flex-start; background: #202c33; color: #e9edef; border-top-left-radius: 2px; }
.wa-bubble a { color: #53bdeb; }
.wa-input { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.wa-input textarea { flex: 1; resize: none; }

/* order page */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.order-head h1, .order-head h2 { margin-bottom: 0.2em; }
.status { border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: 0.85rem; white-space: nowrap; }
.admin .status { text-transform: capitalize; }
.status-paid, .status-in_progress { border-color: var(--gold); color: var(--gold-2); }
.status-delivered { border-color: var(--success); color: var(--success); }
.status-cancelled { color: var(--danger); }
.birth-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.panel-head + .panel-body > :last-child { margin-bottom: 0; }
.birth-details div, .fact { display: grid; gap: 2px; }
.reading p { font-size: 1.05rem; white-space: pre-line; }

/* chart */
.chart-view { container-type: inline-size; }
.chart-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 24px; }
.fact { background: var(--bg-2); border-radius: 10px; padding: 12px 14px; }
.fact strong { font: 600 1.25rem var(--serif); }
.chart-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.chart-grid .kundli { max-width: 420px; }
@container (min-width: 680px) {
  .chart-grid { grid-template-columns: minmax(0, 340px) 1fr; }
}
.kundli { margin: 0; }
.kundli .kundli-svg { width: 100%; height: auto; display: block; background: var(--bg-2); border-radius: 10px; }
.kundli rect, .kundli path { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.7; }
.kundli text { text-anchor: middle; dominant-baseline: middle; font-family: var(--sans); }
.kundli .sign-num { fill: var(--muted); font-size: 12px; }
.kundli .planet { fill: var(--text); font-size: 15px; font-weight: 600; }
.kundli .planet.asc { fill: var(--gold-2); }
.kundli figcaption { margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table th, .table td { padding: 9px 8px; border-bottom: 1px solid var(--border); }

/* dasha side panel */
.order-layout { display: grid; gap: 0 24px; align-items: start; }
.order-main { min-width: 0; }
.order-side { min-width: 0; }
.dasha-panel, .kundli-panel { min-width: 0; padding: 22px; }
.dasha-panel .panel-head button, .kundli-panel .panel-head button { font-size: 1.6rem; }
.kundli-panel .notice { margin: 0 0 14px; }
.kundli-panel .hint { margin: -4px 0 14px; }
.varga-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin: 14px 0 18px; }
.varga-picker button {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 0; font: 600 0.85rem var(--sans); cursor: pointer;
}
.varga-picker button:hover { border-color: var(--gold); }
.varga-picker button[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.varga-picker button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.varga-title { font-size: 1.35rem; margin-bottom: 0.3em; }
.varga-facts { display: grid; gap: 8px; margin: 16px 0 0; font-size: 0.9rem; }
.varga-facts div { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; }
.varga-facts dt { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.varga-facts dd { margin: 2px 0 0; }
.varga-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; }
.varga-list li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.varga-list li:last-child { border-bottom: 0; }
.varga-list strong { min-width: 2.2em; }
.varga-list li > span:first-of-type { flex: 1; }
.gochar-date { display: flex; align-items: center; gap: 10px; margin: 12px 0 16px; font-size: 0.9rem; }
.gochar-date input { width: auto; padding: 7px 10px; }
.gochar-notes { margin: 14px 0 0; padding-left: 1.1em; font-size: 0.88rem; display: grid; gap: 6px; }
.chart-reading { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 4px; }
.chart-reading p { font-size: 0.92rem; line-height: 1.65; margin: 0 0 10px; }
.chart-reading .reading-summary { font: 600 1.1rem/1.4 var(--serif); color: var(--gold-2); }
.chart-reading h3 { display: flex; align-items: center; gap: 10px; }
.tone { font: 600 0.72rem var(--sans); letter-spacing: 0.04em; border-radius: 999px; padding: 2px 10px; border: 1px solid; }
.tone-supportive, .tone-favourable { color: var(--success); }
.tone-mixed { color: var(--gold-2); }
.tone-challenging, .tone-testing { color: var(--danger); }
.kundli-key-title { font-size: 1.15rem; margin: 18px 0 8px; }
.kundli-key { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; margin: 0; font-size: 0.88rem; }
.kundli-key div { display: flex; gap: 8px; align-items: baseline; }
.kundli-key dt { font-weight: 600; min-width: 2.2em; }
.kundli-key dt.asc { color: var(--gold-2); }
.kundli-key dd { margin: 0; color: var(--muted); }
@media (min-width: 1100px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  /* A customer's chart in My account: the right-hand panels 20% wider. */
  .account-chart .order-layout { grid-template-columns: minmax(0, 1fr) 456px; }
}
.dasha-now { background: var(--surface-2); border: 1px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin: 16px 0 18px; }
.dasha-now .eyebrow { display: block; margin-bottom: 8px; }
.dasha-now dl { margin: 0 0 12px; display: grid; gap: 6px; }
.dasha-now dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dasha-now dt { color: var(--muted); font-size: 0.85rem; }
.dasha-now dd { margin: 0; text-align: right; }
.dasha-now .muted, .dasha-now p { font-size: 0.82rem; }
.dasha-now p { margin: 10px 0 0; }
.progress { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.dasha-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dasha-list > li { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.dasha-list > li.current { border-color: var(--gold); }
.dasha-list > li.past summary { opacity: 0.6; }
.dasha-list summary { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.dasha-list summary::-webkit-details-marker { display: none; }
.dasha-list summary::after { content: '▸'; grid-column: 3; color: var(--muted); transition: transform 0.15s; }
.dasha-list details[open] summary::after { transform: rotate(90deg); }
.dasha-list summary .small { text-align: right; line-height: 1.4; }
.dasha-lord { display: flex; align-items: center; gap: 8px; font: 600 1.15rem var(--serif); }
.dasha-detail { padding: 0 12px 12px; }
.dasha-detail p { margin: 0 0 8px; }
.dasha-panel .chart-reading { margin-top: 0; border-top: 0; }
.period-effect { margin: 8px 0 4px; }
.period-effect .chip { margin-right: 4px; }
.effect-label { margin: 10px 0 2px; font-weight: 600; color: var(--muted); }
.effect-list { margin: 0 0 6px; padding-left: 18px; }
.effect-list li { margin: 2px 0; }
.antar-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 0.84rem; }
.antar-list > li { border-bottom: 1px solid var(--border); }
.antar-list summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 4px; cursor: pointer; }
.antar-list .antar-lords { font-weight: 600; min-width: 7.5em; }
.antar-list summary .chip { margin-left: auto; }
.antar-list .period-effect { padding: 0 4px 8px; }
.antar-list > li.past summary { color: var(--muted); }
.antar-list > li.current summary { color: var(--gold-2); box-shadow: inset 2px 0 0 var(--gold); padding-left: 8px; }
.common-yogas { margin: 4px 0 12px; }
.common-yogas summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 4px 0; }
.house-lords { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.house-lords li { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; }
.house-lords .finding-head strong { font-size: 1rem; }
.house-lords p { margin: 4px 0 0; font-size: 0.9rem; }
.natures { margin: 0; display: grid; gap: 8px; }
.bhava-strong { color: var(--success); }
.bhava-mixed { color: var(--gold-2); }
.bhava-care { color: var(--danger); }
.bhava-lines { margin: 4px 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.88rem; }
.bhava-supports li::marker { content: "+  "; color: var(--success); }
.bhava-cautions li::marker { content: "–  "; color: var(--danger); }
.natures div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; font-size: 0.9rem; }
.natures dt { font-weight: 600; }
.natures dd { margin: 0; }
@media (max-width: 560px) { .natures div { grid-template-columns: 1fr; gap: 2px; } }
.table.antar { font-size: 0.84rem; margin-top: 4px; }
.table.antar th, .table.antar td { padding: 6px 4px; }
.table.antar tr.past td { color: var(--muted); }
.table.antar tr.current td { color: var(--gold-2); font-weight: 600; }
.table.antar tr.current td:first-child { box-shadow: inset 2px 0 0 var(--gold); padding-left: 8px; }

/* admin */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font: inherit; cursor: pointer; }
.tabs button[aria-selected='true'] { border-color: var(--gold); color: var(--gold-2); }
.admin-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 861px) {
  /* The list stays in view while a long order is open beside it. */
  .admin .admin-grid > :first-child { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
}
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-list button { width: 100%; display: grid; text-align: left; gap: 2px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px; font: inherit; cursor: pointer; }
.order-list button.active { border-color: var(--gold); }
blockquote { margin: 0 0 20px; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.reading-editor { margin-top: 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }

@media (max-width: 860px) {
  .steps, .packages { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  /* Phones and tablets: the menu on its own row under the logo, wrapping when it's long, its
     buttons (My Profile, Sign out, Request a reading) on the right. */
  .site-header { flex-wrap: wrap; row-gap: 10px; padding-block: 14px; }
  .site-header nav { width: 100%; flex-wrap: wrap; gap: 8px 14px; padding-top: 10px; border-top: 1px solid var(--border); }
  .site-header nav > .btn:not(.btn ~ .btn) { margin-left: auto; }
  .site-header nav .btn-small { padding: 6px 12px; }
}
@media (max-width: 600px) {
  .hero-logo { width: 140px; }
  .grid-2, .birth-details { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .section { padding-block: 40px; }
  .table { font-size: 0.85rem; }
  .table th, .table td { padding: 8px 4px; }
}

/* legal pages, data controls */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal li { margin-bottom: 0.4em; }
mark.placeholder { background: #f6d9a8; color: #5a3410; border-radius: 4px; padding: 0 4px; }
.footer-links a { color: var(--muted); }
.your-data { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 8px; }
.your-data .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

/* roles */
.role-chip { color: var(--gold-2); margin-left: 6px; vertical-align: middle; }
/* Admin: Orders and Accounts as folder tabs over their panes. */
.folder-tabs { display: flex; gap: 4px; padding: 0 12px; position: relative; z-index: 1; margin-bottom: -1px; overflow-x: auto; scrollbar-width: thin; }
.folder-tabs button { white-space: nowrap; flex: none; }
.folder-tabs button { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 10px 18px; font: 600 0.95rem var(--sans); cursor: pointer; }
.folder-tabs button:hover { color: var(--text); }
.folder-tabs button[aria-selected='true'] { background: var(--surface); color: var(--gold-2); border-color: var(--gold); border-bottom: 1px solid var(--surface); }
.folder-pane { background: var(--surface); border: 1px solid var(--gold); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 24px; }
@media (max-width: 760px) { .folder-pane { padding: 16px; } .folder-tabs button { padding: 9px 18px; } }
.account-list { margin-top: 10px; }
.notice.admin-view { border-left-color: var(--gold-2); }

/* admin: payment and consultation status */
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.status-chips .chip { font-size: 0.72rem; }
.chip.pay-paid { color: var(--success); }
.chip.pay-awaiting { color: var(--danger); }
.chip.consult-new { color: var(--gold-2); }
.chip.consult-in_progress { color: #3d6f8f; }
.chip.consult-complete { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.chip.consult-cancelled { color: var(--muted); }
.admin-toolbar { display: flex; align-items: center; gap: 10px; }
.admin-toolbar select { width: auto; padding: 7px 10px; font-size: 0.9rem; }
.admin-toolbar .payment-switch { margin: 0; }
.admin-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.admin-box { background: var(--bg-2); border-radius: 12px; padding: 14px 16px; }
.admin-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.admin-box dl { margin: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.admin-box dl div { display: flex; justify-content: space-between; gap: 12px; }
.admin-box dt { color: var(--muted); }
.admin-box dd { margin: 0; text-align: right; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; word-break: break-all; }
.pay-paid-text { color: var(--success); font-weight: 600; }
.pay-awaiting-text { color: var(--danger); margin: 0; font-size: 0.92rem; }
.consult-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.consult-steps button {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 6px; font: 600 0.82rem var(--sans); cursor: pointer; line-height: 1.25;
}
.consult-steps button.active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); cursor: default; }
.consult-steps button:disabled:not(.active) { opacity: 0.45; cursor: not-allowed; }
.admin-box .hint { margin-top: 8px; }
.order-list button .status-chips { margin-top: 6px; }

/* family ordering */
.add-card { display: grid; place-items: center; text-align: center; gap: 4px; min-height: 170px; border-style: dashed; color: var(--text); font: inherit; cursor: pointer; }
.add-card .plus { font: 600 2.2rem/1 var(--serif); color: var(--gold-2); }
.add-person { margin-top: 16px; }
.checkbox.align-end { align-self: end; padding-bottom: 10px; }
.order-readings { margin-top: 32px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick-list li { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.pick-list li.picked { border-color: var(--gold); background: var(--surface-2); }
.pick-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 10px 0 2px 28px; }
.readings-list .chip { justify-self: start; margin-top: 6px; }
.chip.reading-delivered { color: var(--success); }
.chip.reading-pending_payment { color: var(--danger); }
.chip.reading-paid, .chip.reading-in_progress { color: var(--gold-2); }
@media (max-width: 600px) { .pick-options { grid-template-columns: 1fr; margin-left: 0; } }

/* website accounts and delivery choice */
.delivery-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.account-choice { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 10px; background: var(--surface); }
.account-choice .checkbox > span { display: grid; gap: 2px; }
.account-choice p { margin: 0; }
.account-choice .login-note { font-size: 0.9rem; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); overflow-wrap: anywhere; }
.delivery-choice legend, .segmented legend { font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.delivery-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); cursor: pointer; font-weight: 400; }
.delivery-option.active { border-color: var(--gold); background: var(--surface-2); }
.delivery-option input { width: 16px; height: 16px; margin-top: 4px; accent-color: var(--gold); flex: none; }
.delivery-option > span { display: grid; gap: 2px; }
.segmented { border: 0; padding: 0; margin: 0; }
.segmented [role='radiogroup'] { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.segmented button { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; font: 500 0.92rem var(--sans); color: var(--text); cursor: pointer; }
.segmented button.active { border-color: var(--gold); background: var(--surface-2); font-weight: 600; }
.or-whatsapp { margin-top: 16px; }
.or-whatsapp h2 { font-size: 1.3rem; }
.settings { margin-top: 32px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.settings-grid .card { margin: 0; }
.settings-grid h3 { margin-bottom: 0.2em; }
@media (max-width: 760px) { .settings-grid, .delivery-options { grid-template-columns: 1fr; } }

/* Admin: the chart and reading panels as a folder: tabs stand up from the pane, and the open one joins it. */
.card.reading-tabs { background: none; border: 0; padding: 0; }
.reading-tabs .tabs { flex-wrap: nowrap; gap: 3px; margin: 0 0 -1px; padding: 0 10px; overflow-x: auto; scrollbar-width: thin; position: relative; z-index: 1; }
.reading-tabs .tabs button {
  flex: none; white-space: nowrap; position: relative; margin-top: 4px;
  background: var(--bg-2); color: var(--muted); font-size: 0.87rem;
  border: 1px solid var(--border); border-radius: 10px 10px 0 0; padding: 8px 11px 7px;
}
.reading-tabs .tabs button:hover { color: var(--text); background: var(--surface-2); }
.reading-tabs .tabs button[aria-selected='true'] {
  margin-top: 0; padding-top: 10px;
  background: var(--surface); color: var(--text); font-weight: 600; border-bottom-color: var(--surface);
  box-shadow: inset 0 3px 0 var(--gold);
}
.reading-tabs [role='tabpanel'] {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px var(--radius) var(--radius) var(--radius); padding: 24px 28px;
}
.panel.in-tab > :last-child { margin-bottom: 0; }
/* In the admin tabs the charts would otherwise span the full width; keep them a readable size. */
.reading-tabs .kundli-panel .kundli { max-width: 460px; }

.order-side { display: grid; gap: 8px; align-content: start; }

/* A button that reads as a link (e.g. "Use another email", "Attach a document"). */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-button:disabled { opacity: 0.6; cursor: default; }
.link-button.danger { color: var(--danger); }

/* Documents attached to a reading. */
.reading-attachments { margin: 4px 0 16px; }
.reading-attachments ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.reading-attachments li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.reading-attachments li a { font-weight: 500; overflow-wrap: anywhere; }
.reading-attachments li .link-button { margin-left: auto; font-size: 0.85rem; }

/* Remedies pane. */
.remedy-gems { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.remedy-gems li { display: grid; gap: 4px; align-content: start; background: var(--bg-2); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 10px; padding: 12px 14px; }
.remedy-gems li strong { font: 600 1.1rem var(--serif); }
.remedy-gems li.caution { border-top-color: var(--danger); }
.remedy-caution { color: var(--danger); }
.remedy-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; margin: 8px 0 0; font-size: 0.88rem; }
.remedy-facts dt { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.remedy-facts dd { margin: 1px 0 0; }
.remedy-list { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 3px; }

/* Choosing remedies for the report. */
.remedy-choice-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; font-size: 0.9rem; }
.remedy-choice-bar span { margin-right: auto; }
.remedy-include { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 0.85rem; font-weight: 500; color: var(--gold-2); cursor: pointer; white-space: nowrap; }
.remedy-include input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.remedy-gems li .remedy-include { margin: 6px 0 0; }
.remedy-gems li.chosen, .findings > .finding.chosen { outline: 2px solid var(--gold); outline-offset: -1px; }

/* The final report box in the order editor. */
.report-box { margin: 0 0 16px; }
.report-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-box-head h3 { margin: 0; }
.report-box > p.small { margin: 8px 0 0; }
.report-delivery { border: 0; padding: 0; margin: 12px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-delivery legend { float: left; font-weight: 500; font-size: 0.9rem; margin-right: 4px; padding: 0; }
.report-delivery > input { flex: 1 1 220px; width: auto; padding: 7px 10px; font-size: 0.9rem; background: var(--surface); }
.segmented-inline { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.segmented-inline label { position: relative; display: flex; align-items: center; gap: 0; padding: 6px 14px; font-size: 0.88rem; cursor: pointer; background: var(--surface); }
.segmented-inline label.active { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.segmented-inline input { position: absolute; opacity: 0; pointer-events: none; }
.report-box .actions { margin-top: 12px; align-items: center; }

/* The Remedies tab's three parts: reading, remedies, report. */
.work-section + .work-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.work-title { font-size: 1.4rem; margin: 0 0 10px; }
.work-section .actions { align-items: center; }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.list-count { margin: 8px 2px 4px; }

/* marketing (superusers) */
.marketing h2 { margin-top: 0; }
.channel-strip { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.channel-strip li { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.chip.mode-auto { color: var(--success); }
.chip.mode-demo { color: #3d6f8f; }
.chip.mode-manual { color: var(--gold-2); }
.composer fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.composer legend { font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.composer-video { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.composer-video video, .video-placeholder { width: 220px; aspect-ratio: 9 / 16; max-height: 300px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); object-fit: contain; }
.video-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
.channel-picks { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.channel-pick { display: grid; gap: 8px; align-content: start; border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--bg-2); }
.channel-pick.on { border-color: var(--gold); background: var(--surface); }
.channel-pick .link-button { justify-self: start; font-size: 0.85rem; }
.inline-select { grid-template-columns: auto 1fr; align-items: center; font-size: 0.85rem; }
.inline-select select { padding: 6px 10px; }
.when-options { display: flex; gap: 20px; flex-wrap: wrap; }
.post-card .post-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: start; }
.post-card video { width: 160px; aspect-ratio: 9 / 16; max-height: 240px; border-radius: 10px; background: #1f1c19; object-fit: contain; }
.post-card h3 { margin: 0 0 4px; }
.post-card .notice { margin: 10px 0 0; }
.post-caption { white-space: pre-wrap; margin: 10px 0 0; font-size: 0.92rem; }
.post-channels { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.post-channels li { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 6px; }
.post-channel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.manual-post .actions { margin: 6px 0 0; align-items: center; }
.manual-post input { flex: 1 1 220px; width: auto; padding: 7px 11px; font-size: 0.9rem; }
.chip.post-pending { color: var(--muted); }
.chip.post-publishing { color: #3d6f8f; }
.chip.post-posted { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.chip.post-failed { color: var(--danger); }
.chip.post-manual { color: var(--gold-2); }
@media (max-width: 600px) {
  .composer-video, .post-card .post-head { grid-template-columns: 1fr; }
  .composer-video video, .video-placeholder, .post-card video { width: 100%; max-height: 360px; }
}
.chip.role-superuser { color: #3d6f8f; }
.role-select { flex: none; }

/* Support inbox */
.inbox-toolbar { flex-wrap: wrap; margin-bottom: 16px; }
.inbox-toolbar input[type=search] { flex: 1 1 260px; width: auto; }
.inbox-toolbar .checkbox { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.inbox-list button.unread strong { color: var(--gold-2); }
.inbox-list .chip { margin-left: 6px; }
.chip.inbox-unread { color: var(--gold-2); }
.chip.inbox-failed { color: var(--danger); }
.inbox-thread { display: grid; gap: 14px; }
.inbox-thread-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inbox-message header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.inbox-message.outgoing { background: var(--surface-2); }
.inbox-message > p { margin: 2px 0 8px; }
.inbox-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.inbox-html { width: 100%; min-height: 360px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.inbox-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.inbox-files .link-button { margin-left: 8px; }
.inbox-reply textarea, .inbox-composer textarea { font: inherit; }
.inbox-simulator { margin-top: 16px; }
.inbox-simulator .form { gap: 8px; margin-top: 8px; }

/* Consultation times */
.slot-day { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.slot-day input[type="date"] { max-width: 190px; }
.slot-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.slot { border: 1px solid var(--border); border-radius: 10px; padding: 8px 6px; background: var(--surface); font: inherit; cursor: pointer; }
.slot:hover { border-color: var(--gold); }
.slot.active { border-color: var(--gold); background: var(--surface-2); font-weight: 600; }
.appointment-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); margin-bottom: 16px; }
.appointment-box h3 { margin: 0 0 4px; font-size: 1rem; }
/* GST: price, tax and total (order page, admin), and the state / GSTIN fields on the order forms. */
.gst-lines { margin: 6px 0; max-width: 360px; }
.gst-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.gst-lines dt { color: var(--muted); }
.gst-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.gst-lines .gst-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; font-weight: 700; }
.gst-lines .gst-total dt { color: var(--text); }

/* Admin: the day's queue */
.queue-day { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.queue-day input[type="date"] { max-width: 170px; }
.queue-day select { max-width: 180px; }
.queue-nav { display: grid; grid-template-columns: auto 170px auto; justify-content: start; row-gap: 4px; }
.queue-date { grid-column: 2 / -1; margin: 0; }
.queue-nav > button { justify-self: start; }
.empty-state { display: grid; place-items: center; min-height: 220px; text-align: center; }
.empty-state p { margin: 0; }
.queue-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.hours-editor { max-width: 760px; }
.hours-editor h2 { margin-top: 0; }
.hours-day { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hours-ranges { display: grid; gap: 6px; }
.hours-range { display: flex; gap: 6px; align-items: center; }
.hours-range input[type="time"] { max-width: 130px; }
.slot-intro { margin: 0 0 10px; }
.slot-heading { margin: 4px 0 6px; font-weight: 600; }
.slot-chosen { margin: 8px 0 4px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--gold); }
.slot-notes { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }

/* Admin: My Profile and My Calendar */
.profile-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.profile-head h2 { margin: 0; }
/* Leaves: tabs down the left of a folder pane (My Profile → My Calendar, Personal settings). */
.leaf-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin-top: 14px; align-items: start; }
.leaf-tabs { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; position: relative; z-index: 1; margin-right: -1px; }
.leaf-tabs button { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-right: 0; border-radius: 10px 0 0 10px; padding: 10px 14px; text-align: left; font: 600 0.88rem var(--sans); cursor: pointer; }
.leaf-tabs button:hover { color: var(--text); }
.leaf-tabs button[aria-selected='true'] { background: var(--surface); color: var(--gold-2); border-right: 1px solid var(--surface); }
.leaf-pane { border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: var(--surface); min-height: 240px; min-width: 0; }
@media (max-width: 760px) {
  .leaf-layout { grid-template-columns: 1fr; }
  .leaf-tabs { flex-direction: row; padding: 0 0 0 10px; margin: 0 0 -1px; }
  .leaf-tabs button { border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; }
  .leaf-tabs button[aria-selected='true'] { border-bottom: 1px solid var(--surface); border-right: 1px solid var(--border); }
  .leaf-pane { padding: 12px; }
}
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-toolbar .tabs { margin: 0; }
.cal-nav { display: flex; gap: 6px; align-items: center; }
.cal-title { margin-left: 8px; font-size: 1.05rem; }
.cal-legend { margin-top: 10px; }
.cal-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-left: 6px; }
.cal-key.work, .cal-work { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.cal-key.event, .cal-event { background: var(--gold); }
.cal-key.block, .cal-block { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--danger) 18%, transparent) 0 6px, transparent 6px 12px); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.cal-key.off { background: color-mix(in srgb, var(--muted) 25%, transparent); }

.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal-weekday { padding: 6px 8px; font: 600 0.8rem var(--sans); color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.cal-cell { min-height: 104px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 6px; text-align: left; background: var(--surface); border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font: inherit; color: var(--text); cursor: pointer; min-width: 0; }
.cal-cell:nth-child(7n + 7) { border-right: 0; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.outside { color: var(--muted); background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.cal-cell.off { background: color-mix(in srgb, var(--muted) 12%, var(--surface)); }
.cal-cell.today .cal-num { background: var(--gold); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal-num { align-self: flex-start; font-weight: 600; font-size: 0.85rem; }
.cal-hours { font-size: 0.72rem; color: var(--muted); line-height: 1.25; }
.cal-appt { display: flex; flex-direction: column; font-size: 0.75rem; line-height: 1.25; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--gold) 22%, transparent); min-width: 0; }
.cal-appt-time { font-weight: 600; white-space: nowrap; }
.cal-appt-who { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cal-count { display: none; align-self: flex-start; min-width: 1.5em; padding: 1px 5px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-2); font-size: 0.72rem; font-weight: 600; text-align: center; box-sizing: border-box; }
.cal-more { font-size: 0.72rem; color: var(--gold-2); }
.cal-tag { font-size: 0.72rem; line-height: 1.25; padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cal-tag.off { background: color-mix(in srgb, var(--muted) 22%, transparent); }
.cal-tag.block { color: var(--danger); border: 1px dashed color-mix(in srgb, var(--danger) 50%, transparent); }

.cal-timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: 76px; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; background: var(--surface); }
.cal-hours-col { border-right: 1px solid var(--border); }
.cal-hour { font-size: 0.72rem; color: var(--muted); padding: 0 6px; text-align: right; white-space: nowrap; box-sizing: border-box; border-top: 1px solid transparent; }
.cal-col { border-right: 1px solid var(--border); min-width: 90px; }
.cal-col:last-child { border-right: 0; }
.cal-col-head { display: block; width: 100%; height: 34px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface-2); font: 600 0.82rem var(--sans); color: var(--text); cursor: pointer; }
.cal-col-head.blank { cursor: default; }
.cal-col-head.today { color: var(--gold-2); }
.cal-col-body { position: relative; background-image: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px var(--hour)); }
.cal-work, .cal-block, .cal-event { position: absolute; left: 4px; right: 4px; border-radius: 6px; box-sizing: border-box; }
.cal-block { font-size: 0.72rem; color: var(--danger); padding: 2px 6px; overflow: hidden; }
.cal-event { border: 0; color: #fff; font: 600 0.75rem var(--sans); text-align: left; padding: 3px 6px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.cal-event.held { background: var(--surface); color: var(--gold-2); border: 1.5px dashed var(--gold); }
.cal-dayoff { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); font: 600 0.85rem var(--sans); }

.cal-day { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.cal-side h4 { margin: 0 0 6px; }
.cal-side h4:not(:first-child) { margin-top: 16px; }
.cal-add { display: grid; gap: 6px; margin-top: 6px; }
@media (max-width: 860px) { .cal-day { grid-template-columns: 1fr; } .cal-cell { min-height: 72px; } .cal-appt, .cal-hours, .cal-tag, .cal-more { display: none; } .cal-count { display: inline-block; } }
.chip.role-consultant { color: #5b7a3a; }

/* An order an admin may look at but not change (not booked with them): actions hidden, fields locked. */
.view-only :is(.btn, .slot, [role='radio'], input[type='file'], .link-button.danger, .appointment-box .link-button, .reading-attachments > .link-button, .remedies .link-button) { display: none; }
.view-only :is(input, textarea, select) { pointer-events: none; background: var(--surface-2); }

/* Accounts: admins, consultants and customers as square folder tabs over their panes. */
.square-tabs { display: flex; gap: 3px; padding-left: 8px; position: relative; z-index: 1; margin-bottom: -1px; }
.square-tabs button { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-bottom: 0; border-radius: 4px 4px 0 0; padding: 9px 22px; font: 600 0.9rem var(--sans); cursor: pointer; }
.square-tabs button:hover { color: var(--text); }
.square-tabs button[aria-selected='true'] { background: var(--surface); color: var(--gold-2); border-bottom: 1px solid var(--surface); }
.square-pane { border: 1px solid var(--border); border-radius: 0 4px 4px 4px; padding: 16px; background: var(--surface); }
.cal-of { margin: 0 0 10px; }
.add-consultant { width: 100%; margin-bottom: 8px; }
.add-consultant { width: 100%; margin-bottom: 8px; }

/* Running dasha lords: mahadasha, antardasha, pratyantar. Marked in the kundlis, tagged in tables. */
:root { --d-md: #b4532a; --d-ad: #3d6f8f; --d-pd: #5b7a3a; }
.d-md { --d: var(--d-md); }
.d-ad { --d: var(--d-ad); }
.d-pd { --d: var(--d-pd); }
.kundli .kundli-svg .dasha-mark { fill: color-mix(in srgb, var(--d) 16%, transparent); stroke: var(--d); stroke-width: 1.5; opacity: 1; }
.kundli .planet.dasha { fill: var(--d); font-weight: 700; }
.kundli .kundli-svg .house-shade { fill: color-mix(in srgb, var(--d) 15%, transparent); stroke: none; }
.dasha-key { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; }
.dasha-key li, .dasha-note { display: inline-flex; align-items: center; gap: 6px; }
.dasha-key strong { color: var(--d); }
.dasha-swatch { flex: none; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--d); background: color-mix(in srgb, var(--d) 16%, transparent); }
.dasha-tag { margin-left: 6px; padding: 0 5px; border-radius: 4px; font: 700 0.68rem var(--sans); letter-spacing: 0.03em; color: #fff; background: var(--d); vertical-align: middle; }
.table tr.dasha-row td { background: color-mix(in srgb, var(--d) 8%, transparent); }
.table tr.dasha-row td:first-child { box-shadow: inset 3px 0 0 var(--d); font-weight: 600; }
.dasha-notes { margin-bottom: 4px; }
.dasha-note { align-items: baseline; }
.dasha-note .dasha-swatch { transform: translateY(1px); }
.planet-table caption { caption-side: top; text-align: left; font-weight: 600; padding: 0 0 8px; }

/* D9 with the D1 placements: side by side when the panel is wide enough (the admin's tab), stacked in the sidebar. */
.kundli-panel { container-type: inline-size; }
.varga-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.varga-grid .kundli { max-width: 460px; }
.varga-grid .planet-table { font-size: 0.88rem; }
@container (min-width: 760px) {
  .varga-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
}
.chip.role-marketing { color: #8a4f7d; }

/* Marketing approvals: marketing staff's posts wait for an admin or superuser. */
.approval-queue { margin: 8px 0 28px; padding: 18px 20px; border: 1.5px solid var(--gold); border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.approval-queue h2 { margin-top: 0; }
.approval-queue .post-card { margin-top: 12px; }
.post-card .approval { margin: 8px 0; }
.approval-actions { margin-bottom: 6px; }

/* Reports (admins and superusers). */
.report-pane { display: grid; gap: 16px; }
.report-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.report-tile { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.report-tile strong { font: 600 1.35rem var(--serif, Georgia, serif); }
.report-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.report-bar input[type='search'] { flex: 1 1 240px; max-width: 360px; }
.report-bar select { width: auto; flex: 0 1 220px; }
.report-bar .btn { margin-left: auto; }
.report-period label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.report-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.report-presets button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; font: 600 0.8rem var(--sans); color: var(--muted); cursor: pointer; }
.report-presets button[aria-pressed='true'] { border-color: var(--gold); color: var(--gold-2); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.report-scroll { overflow-x: auto; }
.report-table { font-size: 0.88rem; }
.report-table th, .report-table td { vertical-align: top; }
.report-table .num { text-align: right; white-space: nowrap; }
.report-table tr.upcoming td { color: var(--muted); }
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.report-list > li > details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.report-list summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 14px; cursor: pointer; }
.report-list details[open] summary { border-bottom: 1px solid var(--border); }
.report-list details > .report-scroll, .consultant-detail { padding: 10px 14px 14px; }
.report-subhead { margin: 8px 0 0; }
.report-meter { height: 4px; margin-top: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.report-meter span { display: block; height: 100%; background: var(--gold); }
.report-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px; margin: 0 0 14px; font-size: 0.88rem; }
.report-facts dt { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.report-facts dd { margin: 2px 0 0; }
.report-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 120px; max-width: 420px; margin-bottom: 10px; }
.report-weekdays > div { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; height: 100%; }
.report-weekdays .bar { align-self: end; width: 70%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--gold); }
.consultant-detail h4 { margin: 14px 0 6px; }

/* Pages of a report: rows per page, where we are, and moving between pages. */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 4px 0; }
.pager label { display: inline-flex; align-items: center; gap: 6px; }
.pager select { width: auto; padding: 4px 8px; }
.pager-nav { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.pager-nav button { min-width: 32px; height: 30px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: 600 0.95rem var(--sans); cursor: pointer; }
.pager-nav button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-2); }
.pager-nav button:disabled { opacity: 0.4; cursor: default; }
.pager-nav span { padding: 0 6px; }

/* Customer messages not sent yet (admin, above the orders) */
.unsent { border-left: 4px solid #b4532a; margin-bottom: 16px; }
.unsent h2 { font-size: 1.05rem; margin: 0 0 4px; }
.unsent-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.unsent-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line, #e5ddd0); }

/* Scheduling report: each consultation's state */
.report-state { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; white-space: nowrap; background: #efe8dc; }
.report-state.state-needs_rescheduling { background: #b4532a; color: #fff; }
.report-state.state-upcoming { background: #dfe9f0; color: #2c5470; }
.report-state.state-done { background: #e3ecd8; color: #43602a; }
.report-state.state-lapsed { color: #8a7f70; }

/* Home page: the ways to pay */
.pay-ways { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.pay-ways li { padding-left: 12px; border-left: 2px solid var(--gold); line-height: 1.4; }
.pay-ways li strong { display: block; color: var(--text, inherit); }
.pay-in-inr { margin: 4px 0 12px; }

/* Eclipse calendar */
.eclipse-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 28px; margin: 20px 0 24px; }
.eclipse-year { display: flex; align-items: center; gap: 12px; }
.eclipse-year strong { font: 600 1.6rem var(--serif); min-width: 3.2em; text-align: center; }
.eclipse-place { flex: 1 1 260px; max-width: 420px; }
.eclipse-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.eclipse-head h2 { margin-bottom: 0.1em; }
.eclipse-badges { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.badge-quiet { background: var(--bg-2); color: var(--muted); }
/* World charts (admin): one card per ingress chart. */
.world-chart { margin: 0 0 12px; }
.world-chart summary { cursor: pointer; }
.world-notes { margin: 8px 0; padding-left: 20px; }
.world-notes li { margin: 4px 0; }
.eclipse-past { opacity: 0.65; }
.eclipse-reading + .eclipse-reading { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.eclipse-reading .eyebrow { margin-bottom: 0.2em; }
.eclipse-title { font: 600 1.1rem/1.3 var(--serif); margin: 0 0 8px; }
.eclipse-title .tone { font: 600 0.85rem var(--sans); }
.eclipse-touch { color: var(--gold-2); font-weight: 600; margin-bottom: 6px; }

/* Free Prashna question (home page) */
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ask-form { margin-top: 16px; }
.ask-form .form-footer { justify-content: space-between; }
.prashna-answer { margin-top: 20px; }
.prashna-question { font-family: var(--serif); margin: 0 0 0.3em; }
.prashna-part { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.prashna-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prashna-head h4 { margin: 0; }
.verdict { flex: none; border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 0.9rem; border: 1px solid currentColor; }
.verdict-yes { color: var(--success); background: rgba(67, 116, 87, 0.09); }
.verdict-mixed { color: var(--gold-2); background: rgba(217, 154, 99, 0.12); }
.verdict-no { color: var(--danger); background: rgba(173, 82, 70, 0.08); }
.prashna-reasons { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.reason { padding-left: 14px; border-left: 3px solid var(--border); }
.reason-for { border-left-color: var(--success); }
.reason-against { border-left-color: var(--danger); }
.reason .rule { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.prashna-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; margin: 18px 0 0; }
.prashna-details dt { color: var(--muted); font-size: 0.85rem; }
.prashna-details dd { margin: 2px 0 0; }
.prashna-chart { margin-top: 16px; }
.prashna-chart summary { cursor: pointer; color: var(--gold-2); }
.prashna-chart ul { columns: 2; padding-left: 18px; }
@media (max-width: 640px) { .prashna-chart ul { columns: 1; } }

/* Varshaphal */
.varsha-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.varsha-place { flex: 1 1 240px; margin: 0; }
.varsha-summary { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.varsha-today { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 16px; }
.varsha-today h4, .varsha h5 { margin: 0; }
.varsha-section { border-top: 1px solid var(--border); padding: 12px 0; margin-top: 12px; }
.varsha-section > summary { cursor: pointer; font-family: var(--serif); font-size: 1.05rem; }
.varsha-section > *:not(summary) { margin-top: 10px; }
.varsha-table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.varsha-table th, .varsha-table td { text-align: left; padding: 5px 10px 5px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.varsha-houses { display: grid; gap: 16px; }
.varsha-periods { display: grid; gap: 6px; }
.varsha-period { border-left: 3px solid var(--border); padding-left: 10px; }
.varsha-period.running { border-left-color: var(--gold-2); }
.varsha-period > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.varsha-subs { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 3px; }
.varsha-subs li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.varsha-locked { display: grid; gap: 8px; justify-items: start; }

/* analytics: settings, dashboard, campaign links */
.settings-card h2 { margin-top: 0; }
.settings-group { border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px 4px; margin: 0 0 16px; }
.settings-group legend { padding: 0 6px; font-weight: 600; color: var(--gold-2); }
.checkbox.setting { align-items: flex-start; margin-bottom: 12px; }
.setting-help { display: block; margin-top: 2px; line-height: 1.45; }
.checkbox.setting input:disabled + span { opacity: 0.55; }
.settings-row { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 4px 0 14px; }
.settings-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; flex: 1 1 180px; }
.analytics-tiles { margin-bottom: 18px; }
.analytics-section { margin: 26px 0; }
.analytics-section h3 { margin: 0; font-size: 1.05rem; }
.analytics-section > .report-bar { margin-bottom: 10px; }
.analytics-chart { margin: 8px 0 22px; }
.analytics-chart svg { width: 100%; height: 170px; display: block; }
.analytics-chart .bar { fill: var(--gold); opacity: 0.85; }
.analytics-chart .bar:hover { opacity: 1; }
.analytics-chart .dot { fill: var(--gold-2); }
.analytics-chart .axis { stroke: var(--border); stroke-width: 1; }
.analytics-chart figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.funnel { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.funnel li { display: grid; grid-template-columns: minmax(150px, 260px) 1fr auto; grid-template-areas: 'label bar count' 'label note note'; align-items: center; gap: 2px 12px; }
.funnel-label { grid-area: label; font-size: 0.92rem; }
.funnel-bar { grid-area: bar; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.funnel-count { grid-area: count; font-weight: 600; min-width: 3ch; text-align: right; }
.funnel li > .muted { grid-area: note; }
.campaign-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.campaign-link code { flex: 1 1 260px; overflow-wrap: anywhere; font-size: 0.85rem; }
@media (max-width: 640px) {
  .funnel li { grid-template-columns: 1fr auto; grid-template-areas: 'label count' 'bar bar' 'note note'; }
}
.analytics-section .report-bar select { min-width: 0; max-width: 100%; flex: 0 1 260px; }
@media (max-width: 640px) {
  .analytics-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-chart figcaption span:nth-child(2) { display: none; }
}
