/*
 * Mero Astro, the approved design (2026-11-21).
 *
 * Colours and type come from the owner's own reference: a peach page, warm
 * white cards, one orange for every action, a night card (indigo to plum)
 * for whatever is live, and a cocoa card for whatever is personal. Plus
 * Jakarta Sans sets Latin and figures, Noto Sans Devanagari sets Nepali, and
 * Noto Serif (with Noto Serif Devanagari) sets the few lines meant to be
 * read slowly.
 *
 * Navigation: one line at the top of every page (the menu, the name, the
 * account), the same menu as a drawer on a phone and a panel on a computer,
 * and on a phone a floating bar with the five services, the kundali raised
 * in the middle.
 *
 * Dark cards re-declare the colour tokens, so anything placed inside them
 * (and the older pages' inline styles, through the alias tokens) reads light
 * on dark without a rule of its own.
 */

:root {
    --bg: #FDF0E4;
    --surface: #FFFCF9;
    --surface-2: #FDF0E4;
    --line: #F3E0CD;
    --line-2: #F6E6D6;
    --chip-line: #F0DCC8;
    --field: #EAD3BD;
    --text: #281505;
    --muted: #78593E;
    --dim: #6D5848;
    --orange: #FA6800;
    --orange-fill: linear-gradient(180deg, #FB7A1E 0%, #E35B00 100%);
    --orange-text: #B14600;
    --orange-strong: #C34D00;
    --orange-soft: #FFE2C6;
    --orange-tint: #FFE9D4;
    --amber: #FFB547;
    --gold-soft: #FFF1D6;
    --gold-text: #9A5B00;
    --night: linear-gradient(140deg, #221C50 0%, #33276A 42%, #5B3681 74%, #8E518C 100%);
    --cocoa: #301C14;
    --cocoa-text: #FFF3E7;
    --cocoa-muted: #CDB8A6;
    --good: #1F7A3A;
    --good-soft: #E3F3E7;
    --good-dot: #2D9E4E;
    --bad: #B33017;
    --bad-soft: #FCE6E0;
    --mixed-soft: #F5EBE2;
    --mixed-line: #C9AE96;
    --violet: #4A3591;
    --violet-soft: #ECE6F8;

    /* Older pages name these in a few inline styles. */
    --ink: var(--text);
    --cream: var(--text);
    --cream-soft: var(--muted);
    --white: var(--text);
    --turmeric: var(--orange-text);
    --sindoor: var(--bad);
    --font-head: var(--font);
    --ink-rule: var(--line-2);
    --primary: var(--orange-text);

    --font: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Noto Serif', 'Noto Serif Devanagari', Georgia, serif;
    --gutter: max(16px, env(safe-area-inset-left, 0px));
    --gutter-r: max(16px, env(safe-area-inset-right, 0px));
    color-scheme: light;
}

/* Light-on-dark: the night card and the page heads of the older pages. */
.card-night, .band-red > .in, .menu-now {
    --text: #FFFFFF; --muted: rgba(255, 255, 255, .8); --dim: rgba(255, 255, 255, .7);
    --line: rgba(255, 255, 255, .16); --line-2: rgba(255, 255, 255, .16); --chip-line: rgba(255, 255, 255, .3);
    --surface: rgba(255, 255, 255, .1); --surface-2: rgba(255, 255, 255, .1); --field: rgba(255, 255, 255, .45);
    --orange-text: #FFD08A; --orange-strong: #FFD08A; --good: #9BE3B5; --bad: #FF9E8A;
    --good-soft: rgba(126, 226, 168, .16); --bad-soft: rgba(255, 158, 138, .16); --mixed-soft: rgba(255, 255, 255, .1);
    --gold-soft: rgba(255, 181, 71, .16); --gold-text: #FFD08A;
    --ink: var(--text); --cream: var(--text); --cream-soft: var(--muted); --white: var(--text); --turmeric: var(--orange-text); --sindoor: var(--bad); --ink-rule: var(--line);
    color: var(--text);
}

/* Light-on-dark: the cocoa card, for what is personal or worth stopping at. */
.card-cocoa, .band-yellow > .in {
    --text: #FFF3E7; --muted: #CDB8A6; --dim: #CDB8A6;
    --line: rgba(255, 243, 231, .14); --line-2: rgba(255, 243, 231, .14); --chip-line: rgba(255, 243, 231, .3);
    --surface: rgba(255, 243, 231, .08); --surface-2: rgba(255, 243, 231, .08); --field: rgba(255, 243, 231, .4);
    --orange-text: #FFB547; --orange-strong: #FFB547; --good: #9BE3B5; --bad: #FF9E8A;
    --good-soft: rgba(155, 227, 181, .14); --bad-soft: rgba(255, 158, 138, .14); --mixed-soft: rgba(255, 243, 231, .08);
    --gold-soft: rgba(255, 181, 71, .16); --gold-text: #FFB547;
    --ink: var(--text); --cream: var(--text); --cream-soft: var(--muted); --white: var(--text); --turmeric: var(--orange-text); --sindoor: var(--bad); --ink-rule: var(--line);
    color: var(--text);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}
p, h1, h2, h3, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--orange-text); }
b, strong { font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
img, svg { max-width: 100%; }
input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.lang-ne .en, .lang-en .ne { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { flex: none; width: 22px; height: 22px; }
.serif { font-family: var(--serif); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.only-desk { display: none !important; }

/* ---------- the head of every page ---------- */
.site-head { position: relative; z-index: 30; }
.head-in { display: flex; align-items: center; gap: 10px; min-height: 56px; padding-top: max(18px, env(safe-area-inset-top, 0px)); }
.menu-btn { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; border: 1px solid var(--chip-line); background: var(--surface); color: var(--text); }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .lbl { display: none; }
.brand { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #FF8418; background: #FFF6EC; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-tools { flex: none; display: flex; align-items: center; gap: 10px; }
.signin-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #E2B98F; background: var(--surface); color: var(--orange-text); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.signin-pill .icon { width: 18px; height: 18px; }
.avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 3px solid #FF8418; background: #FFE7D1; color: var(--orange-strong); font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1; text-decoration: none; text-transform: uppercase; }
.avatar.lg { width: 56px; height: 56px; font-size: 24px; }
.avatar.xl { width: 76px; height: 76px; font-size: 32px; border-width: 4px; }
.coins-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #E2B98F; background: #FFF6EC; color: var(--orange-strong); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.coins-pill .icon { width: 18px; height: 18px; }
.lang-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #F6E4D2; }
.lang-seg button { min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 700; }
.lang-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.menu .lang-seg { background: var(--surface-2); }
.menu .lang-seg button { padding: 0 16px; font-size: 13px; }
.menu .lang-seg button[aria-pressed="true"] { background: var(--cocoa); color: var(--cocoa-text); }

/* ---------- the menu: a drawer on a phone, a panel on a computer ---------- */
.menu { position: fixed; inset: 0; z-index: 60; }
.menu-scrim { position: absolute; inset: 0; width: 100%; background: rgba(40, 21, 5, .5); }
.menu-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(334px, 88vw); overflow-y: auto; padding: max(18px, env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-radius: 0 30px 30px 0; box-shadow: 16px 0 40px rgba(40, 21, 5, .28); display: flex; flex-direction: column; gap: 14px; }
.menu-top { display: flex; align-items: center; gap: 10px; }
.menu-top .brand-name { flex: 1; }
.menu-close { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--surface-2); color: var(--text); }
.menu-cols { display: flex; flex-direction: column; gap: 14px; }
.menu-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.menu-label { padding: 0 6px 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.menu-welcome { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 22px; background: var(--cocoa); color: var(--cocoa-text); }
.menu-welcome .k { font-size: 13px; font-weight: 700; color: var(--amber); }
.menu-welcome .t { font-size: 14px; line-height: 1.5; color: #E9D9CB; }
.menu-welcome .btn { margin-top: 4px; }
.menu-user { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.menu-user b { display: block; font-size: 16px; }
.menu-user span { font-size: 13px; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 10px; border-radius: 16px; color: var(--text); text-decoration: none; }
.menu-item:hover { background: var(--surface-2); }
.menu-item[aria-current="page"] { background: var(--orange-tint); }
.menu-item .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-item b { font-size: 16px; line-height: 1.35; }
.menu-item small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.menu-item .chev { flex: none; display: inline-flex; color: var(--orange-text); }
.menu-item .chev .icon { width: 18px; height: 18px; }
.menu-item.plain { min-height: 48px; }
.menu-item.plain > .icon { width: 20px; height: 20px; color: var(--orange-text); }
.menu-rule { height: 1px; background: var(--line); }
.menu-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; font-size: 14px; font-weight: 700; }
.menu-links { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.menu-links a { color: var(--muted); }
.menu-now, .menu-cta { display: none; }
.menu-col.c-now, .menu-col.c-account.guest { display: none; }
.menu-open { overflow: hidden; }

/* An icon on a coloured square: orange for the two main services. */
.icon-sq { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--orange-soft); color: var(--orange-strong); }
.icon-sq.fill { background: linear-gradient(145deg, #FFB25C 0%, #FA6800 100%); color: #FFFFFF; box-shadow: 0 6px 14px rgba(250, 104, 0, .3); }
.icon-sq.violet { background: var(--violet-soft); color: var(--violet); }
.icon-sq.violet.fill { background: linear-gradient(145deg, #8E78D8 0%, #4A3591 100%); color: #FFFFFF; box-shadow: none; }
.icon-sq.gold { background: var(--gold-soft); color: var(--gold-text); }
.icon-sq.lg { width: 48px; height: 48px; border-radius: 15px; }
.icon-sq.xl { width: 52px; height: 52px; border-radius: 16px; }
.icon-sq .icon { width: 22px; height: 22px; }
.icon-sq.lg .icon, .icon-sq.xl .icon { width: 24px; height: 24px; }

/* ---------- the floating bar, on a phone ---------- */
.botnav { position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); height: 78px; border-radius: 30px; background: rgba(255, 252, 249, .96); border: 1px solid #F1DDC9; box-shadow: 0 -2px 30px rgba(140, 70, 20, .14); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.botnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #7E6957; font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.botnav a .icon { width: 26px; height: 26px; }
.botnav a[aria-current="page"] { color: var(--orange-strong); font-weight: 700; }
.botnav .center { justify-self: center; margin-top: -40px; gap: 4px; color: var(--orange-strong); font-weight: 700; }
.botnav .center .disc { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(145deg, #FFA04A 0%, #FA6800 55%, #E35B00 100%); border: 5px solid var(--bg); box-shadow: 0 10px 22px rgba(250, 104, 0, .38); color: #FFFFFF; }
.botnav .center .disc .icon { width: 32px; height: 32px; }

/* ---------- a page ---------- */
.page { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; padding-bottom: 24px; }
.crumbs { font-size: 13px; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.title { font-size: 28px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good-dot); }
.dot.amber { background: var(--amber); }
.dot.mint { background: #7EE2A8; }
.dot.pink { background: #FFB0A7; }
.dot.grey { background: rgba(255, 255, 255, .6); }
.greet { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead { font-family: var(--serif); font-size: 20px; line-height: 1.45; font-weight: 500; }
.head-block { display: flex; flex-direction: column; gap: 4px; }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-head .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.person-head .meta { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- cards ---------- */
.card { min-width: 0; padding: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.card.flush { padding: 0; overflow: hidden; }
.card.soft-shadow { box-shadow: 0 10px 28px rgba(140, 70, 20, .07); }
.card-night { position: relative; overflow: hidden; min-width: 0; padding: 20px; border-radius: 28px; background: var(--night); box-shadow: 0 18px 40px rgba(60, 30, 90, .28); }
.card-night > * { position: relative; }
.card-night .glow { position: absolute; right: -40px; top: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 190, .28) 0%, rgba(255, 230, 190, 0) 68%); pointer-events: none; }
.card-night .moon { position: absolute; right: 24px; top: 22px; width: 64px; height: 64px; }
.card-night .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.card-cocoa { min-width: 0; padding: 20px; border-radius: 26px; background: var(--cocoa); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 8px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.h2 { font-size: 18px; line-height: 1.35; font-weight: 700; }
.card-head a, .more { font-size: 14px; font-weight: 700; text-decoration: none; }
.card-head a:hover, .more:hover { text-decoration: underline; }
.sub { font-size: 13px; line-height: 1.5; color: var(--muted); }
.k-label { font-size: 13px; font-weight: 700; color: var(--orange-text); }
.card-cocoa .k-label { color: var(--amber); }
.big-serif { font-family: var(--serif); font-size: 21px; line-height: 1.45; font-weight: 500; }
.tile { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); }
.tile .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.tile b { font-size: 17px; line-height: 1.35; }
.tile.cocoa { background: var(--cocoa); color: var(--cocoa-text); }
.tile.cocoa .k { color: var(--amber); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 8px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px; border: 1.5px solid transparent; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.btn .icon { width: 20px; height: 20px; }
.btn-orange, .btn-primary, .btn-ink, .btn-yellow { background: var(--orange-fill); color: #FFFFFF !important; box-shadow: 0 10px 22px rgba(250, 104, 0, .28); }
.btn-cocoa { background: var(--cocoa); color: var(--cocoa-text) !important; }
.btn-cocoa .icon { color: var(--amber); }
.btn-line, .btn-line-cream { background: var(--surface); border-color: #E2B98F; color: var(--orange-text) !important; }
.btn-cream { background: #FFF3E7; color: #281505 !important; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #FFFFFF !important; background: transparent; }
.btn-bad { background: var(--bad); color: #FFFFFF !important; }
.btn-pill { border-radius: 999px; }
.btn-block, .btn-wide { display: flex; width: 100%; }
.btn-lg { min-height: 56px; border-radius: 18px; font-size: 19px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.card-night .btn-line, .card-night .btn-line-cream, .band-red .btn-line-cream { background: transparent; border-color: rgba(255, 255, 255, .5); color: #FFFFFF !important; }
.card-cocoa .btn-line, .band-yellow .btn-line-cream { background: transparent; border-color: rgba(255, 181, 71, .6); color: var(--amber) !important; }
.text-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-weight: 700; color: var(--orange-text); text-decoration: none; }
.text-link::after { content: "→"; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.actions, .quick, .page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 220px; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-link { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--chip-line); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip-link[aria-current="page"], .chip-link[aria-pressed="true"], .chip-link.on { background: var(--cocoa); border-color: var(--cocoa); color: var(--amber); font-weight: 700; }
.pill-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--mixed-soft); color: var(--dim); }
.pill-tag.good { background: var(--good-soft); color: var(--good); }
.pill-tag.bad { background: var(--bad-soft); color: var(--bad); }
.pill-tag.gold { background: var(--gold-soft); color: var(--gold-text); }
.pill-tag.now { background: var(--orange); color: #FFFFFF; padding: 1px 8px; font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.legend .good { background: var(--good-soft); box-shadow: inset 0 0 0 2px var(--good); }
.legend .mixed { background: var(--mixed-soft); box-shadow: inset 0 0 0 2px var(--mixed-line); }
.legend .hard { background: var(--bad-soft); box-shadow: inset 0 0 0 2px var(--bad); }
.q-good, .c-good { color: var(--good); }
.q-neutral, .q-mixed, .c-neutral { color: var(--muted); }
.q-bad, .q-avoid, .q-hard, .c-bad, .c-avoid { color: var(--bad); }

/* ---------- a lock on what needs signing in ---------- */
.locked { position: relative; overflow: hidden; }
.locked .veil { filter: blur(6px); opacity: .55; pointer-events: none; user-select: none; }
.locked .lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; }
.locked .lock-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cocoa); color: var(--amber); box-shadow: 0 8px 20px rgba(40, 21, 5, .25); }
.card-night.locked .lock-ic, .card-cocoa.locked .lock-ic { background: #FFF3E7; color: var(--orange-strong); }
.locked .lock b { font-size: 16px; line-height: 1.4; }
.locked .lock span { max-width: 32ch; font-size: 13px; line-height: 1.5; color: var(--muted); }
.locked .lock .btn { margin-top: 2px; }

/* ---------- the homepage ---------- */
.home-hero { display: flex; flex-direction: column; gap: 16px; }
.home-copy { display: none; }
.now-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .16); font-size: 14px; font-weight: 600; }
.now-label { margin-top: 14px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.now-name { font-size: 48px; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.now-name.long { font-size: 38px; }
.now-name.longer { font-size: 32px; }
.now-time { font-size: 17px; font-weight: 700; }
.now-time .pair + .pair::before, .now-time .left::before { content: " "; }
.now-sub { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.now-guide { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.now-guide .guide-head { font-weight: 700; color: #FF9E8A; }
.now-guide .guide-head.do { color: #9BE3B5; }
.segs-wrap { margin-top: 20px; }
.segs { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.seg-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); overflow: hidden; }
.seg-bar.good { background: #FFD08A; }
.seg-bar.bad, .seg-bar.avoid { background: #E0573C; }
.seg-bar.past { background: rgba(255, 255, 255, .22); }
.seg-bar.now { background: rgba(255, 208, 138, .45); }
.seg-bar.now > i { display: block; height: 100%; width: 0; background: #FFD08A; }
.seg-bar.now.bad, .seg-bar.now.avoid { background: rgba(224, 87, 60, .45); }
.seg-bar.now.bad > i, .seg-bar.now.avoid > i { background: #E0573C; }
.seg-bar.now.neutral { background: rgba(255, 255, 255, .3); }
.seg-bar.now.neutral > i { background: #FFFFFF; }
.seg-knob { position: absolute; top: -6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #FFF4DF; border: 3px solid var(--orange); }
.seg-names { display: none; }
.seg-ends { margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.seg-ends span { display: inline-flex; align-items: center; gap: 6px; }
.seg-ends .icon { width: 16px; height: 16px; }
.next-good { margin-top: 14px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.now-stats { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.now-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; text-align: center; }
.now-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .16); }
.now-stats .k { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.now-stats b { font-size: 14px; line-height: 1.3; }
.place-line { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.place-line a { color: #FFD08A; font-weight: 700; }
.notice { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .12); }
.notice-title { font-weight: 700; }
.notice-body { font-size: 14px; color: rgba(255, 255, 255, .8); }
.notice-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.notice-actions button { flex: 1 1 140px; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .45); font-weight: 700; color: #FFFFFF; }
.notice-actions button.solid { background: #FFF3E7; border-color: #FFF3E7; color: #281505; }

.make { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.make-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.make-tiles a { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--text); text-decoration: none; }
.make-tiles a + a { border-left: 1px solid var(--line-2); }
.make-tiles .txt { min-width: 0; display: flex; flex-direction: column; }
.make-tiles b { font-size: 17px; line-height: 1.3; font-weight: 600; }
.make-tiles small { font-size: 13px; font-weight: 600; color: var(--muted); }

.rashi-card { display: flex; gap: 12px; align-items: center; }
.rashi-card .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rashi-card .btn { align-self: flex-start; }
.wheel { position: relative; flex: none; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; border: 1.5px dashed rgba(255, 181, 71, .55); }
.wheel svg { position: absolute; inset: -1.5px; width: 104px; height: 104px; }
.wheel .nm { font-family: 'Noto Serif Devanagari', var(--serif); font-size: 18px; font-weight: 600; color: #FEC179; }

.avoid-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.avoid-row .txt { display: flex; flex-direction: column; min-width: 0; }
.avoid-row .name { font-size: 15px; font-weight: 700; color: var(--bad); }
.avoid-row .range { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.avoid-row.past .range { color: var(--dim); }
.avoid-row .on { padding: 4px 12px; border-radius: 999px; background: var(--bad); color: #FFFFFF; font-size: 12px; font-weight: 700; white-space: nowrap; }
.avoid-row .gone { padding: 4px 12px; border-radius: 999px; background: var(--mixed-soft); color: var(--dim); font-size: 12px; font-weight: 700; white-space: nowrap; }
.avoid-row .soon { padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.suns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.suns > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.suns .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.suns .time { font-size: 16px; font-weight: 700; }

.seg-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg-toggle button { min-height: 34px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }
.seg-toggle button[aria-pressed="true"] { background: var(--cocoa); color: var(--cocoa-text); }
.chog { display: grid; gap: 20px; }
.chog-col { display: flex; flex-direction: column; }
.chog[data-show="day"] .chog-col[data-half="night"], .chog[data-show="night"] .chog-col[data-half="day"] { display: none; }
.chog-col .col-head { display: none; }
.chog .row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line-2); }
.chog .col-head + .row { border-top: 0; }
.chog .row .n { flex: 1; min-width: 0; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 16px; font-weight: 600; }
.chog .row .n .also { font-size: 12px; font-weight: 700; color: var(--bad); }
.chog .row .t { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chog .row .q { width: 70px; text-align: right; font-size: 13px; font-weight: 700; }
.chog .row.past { opacity: .55; }
.chog .row.on { padding: 11px 12px; border-radius: 16px; background: var(--orange-tint); border-top-color: transparent; }
.chog .row.on + .row { border-top-color: transparent; }
.chog .row.on .n { font-weight: 700; }
.chog .row.on .t { font-weight: 600; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.week > a, .week > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 2px; border-radius: 14px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.week .w { font-size: 11px; font-weight: 600; color: var(--muted); }
.week .d { font-size: 20px; font-weight: 700; line-height: 1.2; }
.week .t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 600; color: var(--muted); }
.week .today { background: var(--orange-fill); color: #FFFFFF; }
.week .today .w, .week .today .t { color: #FFFFFF; }
.week .full { background: #FFF1D6; box-shadow: inset 0 0 0 1.5px var(--amber); }
.week .full .t { color: var(--orange-text); font-weight: 700; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv span { color: var(--muted); }

.twelve-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.twelve-grid a, .twelve-grid button { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px; border-radius: 18px; background: var(--surface-2); color: var(--text); text-align: left; text-decoration: none; }
.twelve-grid .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; }
.twelve-grid b { font-size: 15px; }
.twelve-grid small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.4; color: var(--muted); }
.twelve-grid .mine { background: var(--cocoa); color: var(--cocoa-text); }
.twelve-grid .mine b { color: var(--amber); }
.twelve-grid .mine small { color: var(--cocoa-muted); }
.twelve-grid [aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--orange); }
.nat { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mixed-line); }
.nat.good { background: var(--good-dot); }
.nat.hard { background: var(--bad); }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.service b { font-size: 17px; }
.service small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.service .go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--orange-text); }

.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { width: 16px; height: 16px; color: var(--good); }

/* ---------- personal: today for one person ---------- */
.mine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mine-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px; background: var(--surface); }
.mine-grid .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.mine-grid b { font-size: 18px; }
.mine-grid .v { font-size: 12px; font-weight: 700; }
.mine-grid .v.good { color: var(--good); }
.mine-grid .v.bad { color: var(--bad); }
.mine-grid .v.mixed { color: var(--muted); }
.mine-prana { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.mine-prana .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.mine-prana b { font-size: 17px; }
.bar-small { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bar-small > i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--amber); transition: width 1s linear; }

/* ---------- the dasha, live ---------- */
.dasha-maha { display: flex; flex-direction: column; gap: 2px; }
.dasha-maha .k { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.dasha-maha .nm { font-size: 38px; font-weight: 700; line-height: 1.2; }
.dasha-maha .sp { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.dasha-levels { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.dasha-row { display: flex; flex-direction: column; gap: 6px; }
.dasha-row .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.dasha-row .top b { color: #FFFFFF; }
.dasha-row .end { text-align: right; }
.dbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.dbar > i { display: block; height: 100%; width: 0; background: #FFFFFF; transition: width 1s linear; }
.dasha-row.live { gap: 8px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 181, 71, .14); border: 1px solid rgba(255, 181, 71, .4); }
.dasha-row.live .top { color: #FFD9A0; }
.dasha-row.live .dbar { height: 8px; border-radius: 4px; }
.dasha-row.live .dbar > i { background: var(--amber); }
.dasha-row .left { font-size: 13px; color: rgba(255, 255, 255, .72); }
.dasha-row.live .left { font-size: 22px; font-weight: 700; color: #FFFFFF; }
.dasha-next, .dasha-zone { font-size: 13px; color: rgba(255, 255, 255, .78); }
.dash-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }
.dash-mini > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dash-mini .k { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.dash-mini b { font-size: 14px; }
.dash-mini .dbar { height: 4px; }

/* ---------- the kundali ---------- */
.section-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.section-chips::-webkit-scrollbar { display: none; }
.chart-svg { display: block; width: 100%; max-width: 430px; height: auto; margin: 0 auto; }
.graha-list > div { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.graha-list b { font-size: 15px; }
.graha-list .pos { font-size: 14px; }
.graha-list .pos span { color: var(--muted); }
.graha-list .h { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.flag { padding: 0 6px; border-radius: 999px; background: #FFE7D1; color: var(--orange-text); font-size: 10px; font-weight: 700; vertical-align: 2px; }
.days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day-cell { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 8px 2px; border-radius: 14px; background: var(--mixed-soft); text-align: center; }
.day-cell .w { font-size: 11px; font-weight: 600; color: var(--muted); }
.day-cell .n { font-size: 19px; font-weight: 700; line-height: 1.25; }
.day-cell .m { display: none; }
.day-cell .t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 600; color: var(--muted); }
.day-cell.good { background: var(--good-soft); }
.day-cell.good .n, .day-cell.good .t { color: var(--good); font-weight: 700; }
.day-cell.hard { background: var(--bad-soft); }
.day-cell.hard .n, .day-cell.hard .t { color: var(--bad); font-weight: 700; }
.day-cell.today { box-shadow: inset 0 0 0 2px var(--orange); }
.gochar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gochar-grid > div { display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 16px; background: var(--mixed-soft); }
.gochar-grid b { font-size: 14px; }
.gochar-grid span { font-size: 13px; }
.gochar-grid small { font-size: 11px; color: var(--muted); }
.gochar-grid .good { background: var(--good-soft); }
.gochar-grid .good b { color: var(--good); }
.verdict { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--mixed-soft); }
.verdict .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.verdict .top span { font-size: 15px; font-weight: 600; }
.verdict .top b { font-size: 16px; text-align: right; }
.verdict small { font-size: 13px; color: var(--muted); }
.verdict.good { background: var(--good-soft); }
.verdict.good .top b { color: var(--good); }
.verdict.bad { background: var(--bad-soft); }
.verdict.bad .top b { color: var(--bad); }
.verdict.dash { background: transparent; border: 1px dashed #E2B98F; }
.verdict.dash .top b { color: var(--orange-text); }
.maha-bar { display: flex; height: 46px; border-radius: 14px; overflow: hidden; font-size: 12px; font-weight: 700; }
.maha-bar span { display: grid; place-items: center; min-width: 0; overflow: hidden; white-space: nowrap; background: #FFF1E2; color: #8A3600; }
.maha-bar span:nth-child(even) { background: #FFE7D1; }
.maha-bar .past { background: #EBDCCF !important; color: var(--dim); }
.maha-bar .now { background: var(--night) !important; color: #FFFFFF; }
.maha-years { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); }
.maha-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 14px; }
.maha-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.maha-list .past { color: var(--dim); }
.maha-list .now { background: var(--cocoa); color: var(--cocoa-text); font-weight: 700; }
.inside-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inside-chips span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 600; }
.price-big { display: flex; align-items: baseline; gap: 8px; }
.price-big b { font-size: 34px; font-weight: 800; }
.price-big span { font-size: 15px; font-weight: 600; color: var(--muted); }
.check-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.check-list li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.check-list .icon { width: 16px; height: 16px; color: var(--amber); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.feature-grid li { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.feature-grid .icon-sq { width: 30px; height: 30px; border-radius: 10px; }
.feature-grid .icon-sq .icon { width: 16px; height: 16px; }

/* ---------- milan ---------- */
.score-row { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; flex: none; width: 132px; height: 132px; }
.ring svg { width: 132px; height: 132px; }
.ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .val b { font-size: 40px; font-weight: 800; line-height: 1; }
.ring .val span { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.koota-list { display: flex; flex-direction: column; gap: 6px; }
.koota-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px; border-radius: 16px; background: var(--mixed-soft); }
.koota-row b { font-size: 15px; }
.koota-row .pts { font-size: 15px; font-weight: 700; color: var(--orange-text); }
.koota-row small { font-size: 12px; color: var(--muted); }
.koota-row .kbar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: #EAD8C7; overflow: hidden; }
.koota-row .kbar > i { display: block; height: 100%; background: var(--orange); }
.koota-row.full { background: var(--good-soft); }
.koota-row.full .pts { color: var(--good); }
.koota-row.full .kbar > i { background: var(--good); }
.koota-row.none { background: var(--bad-soft); }
.koota-row.none .pts { color: var(--bad); }
.koota-row.none .kbar { background: #F2CDC3; }

/* ---------- the dashboard and the account pages ---------- */
.acct { display: flex; flex-direction: column; }
.acct-side { display: none; }
.acct-chips { padding-top: 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-cards a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.stat-cards .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-cards b { font-size: 26px; line-height: 1.2; }
.stat-cards .hot { background: var(--gold-soft); border-color: #F5D9A8; }
.stat-cards .hot .k { color: var(--gold-text); }
.person-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.person-row .face { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, #FFB25C 0%, #FA6800 100%); color: #FFFFFF; font-family: var(--serif); font-size: 19px; font-weight: 600; text-transform: uppercase; }
.person-row:nth-child(even) .face { background: linear-gradient(145deg, #7E68C9 0%, #4A3591 100%); }
.person-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-row b { font-size: 16px; }
.person-row small { font-size: 13px; color: var(--muted); }
.person-row .go { flex: none; width: 18px; height: 18px; color: var(--orange-text); }
.add-row { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 18px; border: 1.5px dashed #E2B98F; color: var(--orange-text); font-size: 15px; font-weight: 700; text-decoration: none; }
.add-row .icon { width: 18px; height: 18px; }
.line-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.line-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line-row b { font-size: 15px; }
.line-row small { font-size: 13px; color: var(--muted); }

/* ---------- forms ---------- */
.form-card { display: flex; flex-direction: column; gap: 18px; padding: 20px 18px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.birth { display: flex; flex-direction: column; gap: 18px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-label { display: block; margin: 0; padding: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--field); background: #FFFFFF; color: #281505; font-size: 17px; font-weight: 500; }
select.input { padding: 0 10px; font-weight: 600; font-size: 16px; }
.input:focus { outline: 3px solid var(--orange-soft); border-color: var(--orange); }
.input[aria-invalid="true"] { border-color: var(--bad); background: #FCE6E0; }
.small-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.small-label .input { height: 50px; padding: 0 10px; border-radius: 14px; font-size: 16px; font-weight: 600; }
.date-grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 8px; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input, .seg input, .pack input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field); background: #FFFFFF; color: #281505; font-size: 15px; font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--cocoa); border-color: var(--cocoa); color: var(--cocoa-text); }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.chips-fill { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips-fill .chip > span { width: 100%; min-height: 50px; justify-content: center; border-radius: 16px; font-size: 16px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg label { position: relative; display: flex; }
.seg label > span { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--orange); color: #FFFFFF; font-weight: 700; }
.seg-fill { display: grid; grid-template-columns: 1fr 1fr; height: 50px; border-radius: 14px; }
.seg-fill label > span { width: 100%; height: 100%; border-radius: 11px; }
.seg-fill input:checked + span { background: #FFFFFF; color: #281505; box-shadow: 0 1px 4px rgba(120, 60, 20, .15); }
.hint { font-size: 13px; line-height: 1.5; color: var(--muted); }
.hint.is-echo { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 14px; font-weight: 600; }
.place-box { position: relative; }
.place-box > .icon { position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.place-box .input { padding-left: 46px; }
.suggestions { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid var(--chip-line); background: #FFFFFF; color: #281505; }
.suggestions button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 52px; padding: 10px 14px; border-top: 1px solid #F6E6D6; text-align: left; }
.suggestions button:first-child { border-top: 0; }
.suggestions button b { font-size: 16px; }
.suggestions button span { font-size: 13px; color: #78593E; }
.suggestions button[aria-selected="true"], .suggestions button:hover { background: #FFF1E2; }
.suggestions-note { padding: 12px 14px; font-size: 14px; color: #78593E; }
.chosen { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-size: 14px; font-weight: 600; }
.problems { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #FCE6E0; color: #B33017; font-weight: 600; }
.lock-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lock-note .icon { width: 16px; height: 16px; color: var(--good); }
.form-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.form-title .n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-strong); font-size: 14px; }
.confirm summary { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: var(--bad); cursor: pointer; }
.confirm summary::-webkit-details-marker { display: none; }

/* ---------- the older pages, drawn in the same language ---------- */
.band { padding: 0; }
.band > .in { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band + .band { margin-top: 16px; }
.band-red, .band-ink, .band-cream, .band-yellow { padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band-red > .in, .band-ink > .in, .band-cream > .in, .band-yellow > .in { max-width: calc(1200px - 32px); }
.band-red > .in { padding: 22px 20px; border-radius: 28px; background: var(--night); box-shadow: 0 18px 40px rgba(60, 30, 90, .22); }
.band-ink > .in, .band-cream > .in { padding: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.band-yellow > .in { padding: 20px; border-radius: 26px; background: var(--cocoa); }
main > .band:first-child { margin-top: 16px; }
main > .band:last-child { margin-bottom: 24px; }
.kicker { font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--text); }
.band-red .kicker { font-size: 14px; font-weight: 600; color: var(--muted); }
.band-yellow .kicker { font-size: 13px; color: var(--amber); }
.kicker.bad { color: var(--bad); }
.section-gap { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.soft { color: var(--muted); }
.display-xl, .title-name { font-size: 28px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.display-l { font-size: 22px; line-height: 1.3; font-weight: 700; }
.display-m { font-size: 20px; line-height: 1.3; font-weight: 700; }
.k-sub { font-size: 15px; font-weight: 500; color: var(--muted); }
.k-birth { margin-top: 6px; font-size: 15px; font-weight: 600; }
.notice-line { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); font-size: 15px; font-weight: 600; }
.page-lead { margin-top: 6px; max-width: 62ch; font-size: 16px; color: var(--muted); }
.card-sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
.big-link { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }

.person { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line-2); }
.person:first-child { border-top: 0; padding-top: 0; }
.person .rel { font-size: 13px; font-weight: 700; color: var(--orange-text); }
.person .name { font-size: 20px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.person .when { margin-top: 2px; font-weight: 600; }
.person .where { font-size: 14px; color: var(--muted); }
.person .signs { margin-top: 2px; font-size: 15px; font-weight: 600; }
.person .links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.person .links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #E2B98F; color: var(--orange-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.person .links a.strong { background: var(--orange-fill); border-color: transparent; color: #FFFFFF; }
.switcher { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.switcher a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--chip-line); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.switcher a[aria-current="page"] { background: #FFF3E7; border-color: #FFF3E7; color: #281505; }
.switcher a.all { border-style: dashed; }
.mini-family { display: grid; gap: 8px; }
.mini-family a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.mini-family b { font-size: 16px; }
.mini-family span { font-size: 13px; color: var(--muted); }

.toc { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.toc a { display: flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #FFFFFF; text-decoration: none; }
.toc .n { font-size: 12px; font-weight: 700; opacity: .8; }
.toc .t { font-size: 14px; font-weight: 600; }
.part { display: flex; flex-direction: column; padding: 18px 0 6px; border-top: 1px solid var(--line-2); }
.part:first-child { border-top: 0; padding-top: 0; }
.part-n { font-size: 13px; font-weight: 700; color: var(--orange-text); }
.part-title { font-size: 20px; line-height: 1.35; font-weight: 700; }
.part-q { margin-top: 8px; font-size: 16px; font-weight: 700; }
.prose { margin-top: 8px; }
.prose p { margin: 0 0 12px; max-width: 68ch; font-size: 17px; line-height: 1.75; }
.prose.small p { font-size: 15px; line-height: 1.65; }
.part-note { margin-top: 4px; font-size: 14px; color: var(--muted); }
.why summary { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 700; color: var(--orange-text); cursor: pointer; }
.why summary::-webkit-details-marker { display: none; }
.rows { margin-top: 10px; display: flex; flex-direction: column; }
.row, .row-open > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.row .k, .row-open .k { font-weight: 500; }
.row .v, .row-open .v { text-align: right; font-weight: 700; }
.row-open > summary { cursor: pointer; list-style: none; }
.row-open > summary::-webkit-details-marker { display: none; }
.yoga { padding: 12px 0; border-top: 1px solid var(--line-2); }
.yoga-name { font-size: 17px; font-weight: 700; }
.yoga-name.good { color: var(--good); }
.yoga-short { font-size: 15px; color: var(--muted); }
.dasha-say, .when-block { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line-2); }
.dasha-say .what, .when-block .what { font-size: 17px; font-weight: 700; }
.dasha-say .when, .when-block .when { font-size: 14px; font-weight: 700; color: var(--orange-text); }
.tag-now { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--orange); color: #FFFFFF; font-size: 11px; vertical-align: middle; }
.remedy { padding: 14px 0; border-top: 1px solid var(--line-2); }
.remedy .what { font-size: 18px; font-weight: 700; color: var(--orange-text); }
.mantra { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 17px; line-height: 1.5; font-weight: 600; }
.remedy-list { margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.remedy-list > div { display: flex; gap: 10px; font-size: 15px; }
.remedy-list dt { flex: none; width: 100px; color: var(--muted); }
.remedy-list dd { margin: 0; min-width: 0; }

.sides { margin-top: 14px; display: grid; gap: 8px; }
.side { display: flex; flex-direction: column; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .1); }
.side-role { font-size: 12px; font-weight: 700; color: #FFD08A; }
.side-line { margin-top: 2px; font-size: 13px; color: var(--muted); }
.mangal-both { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mangal-both > div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 18px; background: var(--good-soft); }
.mangal-both .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.mangal-both .value { font-size: 19px; font-weight: 700; color: var(--good); }
.mangal-both > div.yes { background: var(--bad-soft); }
.mangal-both .value.yes { color: var(--bad); }
.rule-list { display: flex; flex-direction: column; gap: 6px; }
.rule-list p { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 15px; font-weight: 500; }

.tabs { margin-top: 14px; display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.tabs button { flex: 1 1 0; min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #FFF3E7; color: #281505; }
.rashi-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.rashi-picks button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--chip-line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; }
.rashi-picks button[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--amber); }
.band-red .rashi-picks button { background: transparent; border-color: rgba(255, 255, 255, .35); color: #FFFFFF; }
.band-red .rashi-picks button[aria-pressed="true"] { background: #FFF3E7; border-color: #FFF3E7; color: #281505; }
.rashi-big { font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--orange-text); }
.rashi-q { font-size: 14px; font-weight: 700; }
.rashi-q.q-good { color: var(--good); }
.rashi-q.q-mixed { color: var(--muted); }
.rashi-q.q-hard { color: var(--bad); }
.rashi-head { margin-top: 4px; font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.day-lines { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.day-lines > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.day-lines .k { font-size: 13px; font-weight: 700; color: var(--orange-text); }
.day-lines .t { font-size: 15px; line-height: 1.5; }
.week-days { margin-top: 10px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-days > span { padding: 8px 2px; border-radius: 12px; background: var(--mixed-soft); text-align: center; font-size: 14px; font-weight: 600; }
.week-days .w-good { background: var(--good-soft); color: var(--good); }
.week-days .w-hard { background: var(--bad-soft); color: var(--bad); }
.week-days [aria-current="date"] { box-shadow: inset 0 0 0 2px var(--orange); }
.graha-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.graha-lines .label { font-size: 13px; font-weight: 700; color: var(--muted); }
.graha-lines .line { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.graha-lines .g { font-size: 16px; font-weight: 700; }
.graha-lines.good .g { color: var(--good); }
.graha-lines.not .g { color: var(--bad); }
.graha-lines .t { font-size: 15px; }
.twelve { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px; }
.twelve button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); text-align: left; }
.twelve .n { font-size: 16px; font-weight: 700; }
.twelve .n.w-good { color: var(--good); }
.twelve .n.w-hard { color: var(--bad); }
.twelve .h { font-size: 14px; color: var(--muted); }
.finder-out { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; }
.finder-for { font-size: 14px; color: var(--muted); }
.finder-rashi { font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--orange-text); }
.finder-out .btn { margin-top: 10px; }
.letters-table { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px; }
.letters-table > div { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.letters-table .r { flex: none; width: 84px; font-weight: 700; }
.letters-table .s { flex: 1 1 auto; min-width: 0; font-size: 15px; word-spacing: 3px; }
.month-nav { margin-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.month-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); color: #FFFFFF; font-weight: 700; text-decoration: none; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month-grid .wd { padding-bottom: 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.month-grid .wd.sat { color: var(--bad); }
.month-grid .day { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; height: 62px; padding: 4px 2px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-align: center; }
.month-grid .day.sat .bs { color: var(--bad); }
.month-grid .day.today { background: var(--orange-fill); color: #FFFFFF; }
.month-grid .day.today .bs, .month-grid .day.today .t { color: #FFFFFF; }
.month-grid .day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--cocoa); }
.month-grid .bs { font-size: 18px; line-height: 1.1; font-weight: 700; }
.month-grid .sub { display: flex; flex-direction: column; width: 100%; overflow: hidden; }
.month-grid .t { font-size: 10px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.month-grid .day.marked .t { font-weight: 700; color: var(--orange-text); }
.month-grid .ad { font-size: 10px; line-height: 1.2; opacity: .75; white-space: nowrap; }
.day-open { display: flex; align-items: center; gap: 14px; }
.day-open .n { font-size: 44px; line-height: 1; font-weight: 800; color: var(--orange-text); }
.day-open > div { display: flex; flex-direction: column; min-width: 0; }
.day-open .m { font-size: 18px; font-weight: 700; }
.day-open .w { font-size: 15px; font-weight: 600; }
.tithi-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.tithi-list button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-align: left; }
.tithi-list .n { font-size: 16px; font-weight: 700; }
.tithi-list .d { font-size: 14px; text-align: right; color: var(--muted); }
.limb { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line-2); }
.limb .label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: capitalize; }
.limb .value { font-size: 18px; line-height: 1.35; font-weight: 700; }
.limb .until { font-size: 14px; font-weight: 700; color: var(--orange-text); }
.limb .then { font-size: 14px; color: var(--muted); }

.price-list { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 500; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pack { position: relative; display: flex; }
.pack-face { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px; border-radius: 18px; border: 1.5px solid var(--field); background: #FFFFFF; color: #281505; cursor: pointer; }
.pack input:checked + .pack-face { border-color: var(--orange); background: #FFF1E2; box-shadow: inset 0 0 0 1px var(--orange); }
.pack input:focus-visible + .pack-face { outline: 3px solid var(--amber); outline-offset: 2px; }
.pack-face .c { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pack-face .n { font-size: 24px; line-height: 1.1; font-weight: 800; }
.pack-face .u { font-size: 14px; font-weight: 600; color: #78593E; }
.pack-face .bonus { font-size: 13px; font-weight: 700; color: #B14600; }
.pack-face .r { font-size: 16px; font-weight: 700; color: #B14600; }
.steps-big, .progress-steps { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.steps-big li, .progress-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.steps-big .k, .progress-steps .k { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #FFFFFF; font-size: 14px; font-weight: 700; }
.steps-big .t, .progress-steps .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 1.45; font-weight: 500; }
.progress-steps .done .k { background: #1F7A3A; }
.progress-steps .later { opacity: .6; }
.progress-steps .later .k { background: #78593E; }
.progress-steps .now { background: var(--gold-soft); }
.progress-steps .now .k { background: var(--amber); color: #281505; }
.progress-steps .tag { font-size: 12px; font-weight: 700; color: var(--gold-text); }
.state-big { margin-top: 8px; font-size: 26px; line-height: 1.3; font-weight: 700; }
.state-big.huge { font-size: 30px; }
.message { margin-top: 12px; padding: 14px; display: flex; flex-direction: column; border-radius: 16px; background: #FFFFFF; color: #281505; border: 1px solid #F3E0CD; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.message .gap { height: 8px; }
.balance-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.balance { font-weight: 700; }
.ledger, .orders { display: flex; flex-direction: column; }
.move, .order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.move:first-child, .order-row:first-child { border-top: 0; }
.move .what, .order-row .l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.move .t { font-size: 15px; font-weight: 600; }
.move .d { font-size: 13px; color: var(--muted); }
.move .n { flex: none; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.move.in .n { color: var(--good); }
.move.out .n { color: var(--bad); }
.order-row .ref { font-size: 15px; font-weight: 700; }
.order-row .soft { font-size: 13px; }
.order-row .s { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--mixed-soft); font-size: 13px; font-weight: 700; text-align: right; color: var(--text); text-decoration: none; }
.order-row .s-pending { background: var(--gold-soft); color: var(--gold-text); }
.order-row .s-complete { background: var(--good-soft); color: var(--good); }
.order-row .s-failed, .order-row .s-refunded { background: var(--bad-soft); color: var(--bad); }
.danger { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.confirm-box > summary { list-style: none; cursor: pointer; }
.confirm-box > summary::-webkit-details-marker { display: none; }
.confirm-box[open] > summary { display: none; }
.confirm-ask { padding: 16px; border-radius: 16px; background: #FCE6E0; color: #281505; }
.confirm-ask .btn-cream { background: #B33017; color: #FFFFFF !important; }

.policy-tabs { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.policy-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); color: #FFFFFF; font-size: 14px; font-weight: 600; text-decoration: none; }
.policy-tabs a[aria-current="page"] { background: #FFF3E7; color: #281505; border-color: #FFF3E7; }
.policy h2 { margin: 24px 0 8px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.policy p, .policy li { max-width: 70ch; font-size: 16px; line-height: 1.7; }
.policy p { margin: 0 0 12px; }
.policy ul, .policy ol { margin: 0 0 12px; padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy .page-meta { font-size: 14px; color: var(--muted); }
.policy .page-np { margin: 12px 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.policy .page-np p { margin: 0; }
.policy .callout { margin: 12px 0; padding: 12px 14px; border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; background: var(--gold-soft); font-weight: 500; }

/* ---------- the foot ---------- */
.foot { padding-top: 8px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.foot b { font-size: 15px; color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot a { color: var(--muted); }
.foot-wide { display: none; }

/* ---------- wider screens ---------- */
/* ---------- one page, two layouts ---------- */
/* A computer lays the cards out in rows; a phone takes them out of the rows
   and stacks them in the order the phone design reads. */
.contents { display: contents; }
@media (max-width: 959.98px) {
    .home-row, .k-row, .k-side, .d-row, .d-side { display: contents; }
    .o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; } .o-4 { order: 4; }
    .o-5 { order: 5; } .o-6 { order: 6; } .o-7 { order: 7; } .o-8 { order: 8; }
    .o-9 { order: 9; } .o-10 { order: 10; } .o-11 { order: 11; } .o-12 { order: 12; }
}
.locked-day { min-height: 250px; }

/* ---------- a kundali ---------- */
.k-head h1 { font-size: 26px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.k-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.k-note { padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.k-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.k-facts .tile b { font-size: 18px; font-weight: 700; }
.k-facts .letter b { font-family: 'Noto Serif Devanagari', var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.k-facts .letter small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--cocoa-muted); }
.k-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.k-clock { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.k-locked-body { position: relative; min-height: 220px; }
.k-locked-body .lock span { color: rgba(255, 255, 255, .8); }
.dasha-maha .dbar { display: none; }
.k-today { display: flex; flex-direction: column; gap: 12px; }
.kt-head { display: flex; flex-direction: column; gap: 6px; }
.k-today .big-serif { font-size: 20px; }
.graha-list .flag + .flag { margin-left: 2px; }
.flag-r { font-size: 10px; font-weight: 700; color: var(--orange-text); }
.shubha-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.shubha-tiles > div { display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 16px; background: rgba(255, 243, 231, .08); }
.shubha-tiles .k { font-size: 11px; font-weight: 600; color: var(--cocoa-muted); }
.shubha-tiles b { font-size: 17px; }
.shubha-tiles .wide { grid-column: span 2; }
.k-window { font-size: 26px; font-weight: 800; color: var(--orange-text); }
.k-lock-row .top { align-items: center; }
.k-lock-row .top .icon { width: 18px; height: 18px; color: var(--orange-text); }
.k-lock-row .text-link { align-self: flex-start; min-height: 34px; padding: 0; background: none; border: 0; font-size: 14px; cursor: pointer; }
.k-reading { display: flex; flex-direction: column; gap: 16px; }
.k-reading .big-serif { font-size: 22px; }
.k-reading .k-label { color: #FFD08A; }
.k-buy .price-big span { color: rgba(255, 255, 255, .8); }
.k-open { font-size: 20px; }
.k-married { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; }
.k-married legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.k-married .chip > span { min-height: 40px; font-size: 14px; }
.card-night .problems { background: rgba(255, 158, 138, .16); color: #FFD2C8; }

@media (min-width: 960px) {
    .k-head { gap: 20px; flex-wrap: wrap; }
    .k-head .avatar { width: 76px; height: 76px; font-size: 32px; border-width: 4px; }
    .k-head .txt { flex: 1 1 320px; gap: 2px; }
    .k-head .k-label { font-size: 14px; }
    .k-head h1 { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.2; }
    .k-head .meta { font-size: 16px; font-weight: 400; }
    .k-head .actions .btn { min-height: 52px; padding: 0 22px; border-radius: 16px; font-size: 18px; }
    .k-chips { flex-wrap: wrap; padding: 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
    .k-chips .chip-link { border-color: transparent; background: transparent; }
    .k-chips .chip-link.on { background: var(--cocoa); color: var(--amber); }
    .k-chips .chip-link:last-child { color: var(--orange-text); font-weight: 700; }
    .k-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
    .k-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .k-side { gap: 20px; }
    .k-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .k-facts .letter small { display: none; }
    .dasha-maha { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
    .dasha-maha .nm { order: 1; font-size: 44px; line-height: 1.15; }
    .dasha-maha .k { order: 2; font-size: 15px; color: rgba(255, 255, 255, .82); }
    .dasha-maha .k::after { content: " ·"; }
    .dasha-maha .sp { order: 3; margin-left: -8px; }
    .dasha-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
    .dasha-row:not(.live) .top { display: contents; }
    .dasha-row:not(.live) .lv { order: 1; display: flex; flex-direction: column; font-size: 12px; }
    .dasha-row:not(.live) .lv .sep { display: none; }
    .dasha-row:not(.live) .lv b { font-size: 16px; }
    .dasha-row:not(.live) .dbar { order: 2; }
    .dasha-row:not(.live) .end { order: 3; text-align: left; font-size: 12px; font-weight: 500; }
    .dasha-row.live { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
    .dasha-row.live .top { grid-column: 1; font-size: 13px; }
    .dasha-row.live .dbar { grid-column: 1; }
    .dasha-row.live .left { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
    .k-today { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 14px; align-items: center; padding: 22px 24px; }
    .graha-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .graha-list > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; border-top: 0; background: var(--surface-2); }
    .gochar-grid > div { padding: 12px; }
    .k-reading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; }
    .k-buy { padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .08); }
    .k-reading .big-serif { font-size: 28px; }
}

/* ---------- the dashboard ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.dash-head .txt { min-width: 0; display: flex; flex-direction: column; }
.dash-head .title { font-size: 28px; line-height: 1.25; }
.dash-head + .acct-chips { padding-top: 14px; }
.dash-prana { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 12px; }
.dash-prana .k { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: #FFD9A0; }
.dash-prana .nm { font-size: 38px; font-weight: 700; line-height: 1.15; }
.dash-prana .left { font-size: 15px; font-weight: 700; text-align: right; padding-bottom: 6px; }
.dash-prana .dbar { grid-column: 1 / -1; height: 8px; border-radius: 4px; margin-top: 6px; }
.dash-prana .dbar > i { background: var(--amber); }
.go-text { flex: none; font-size: 14px; font-weight: 700; color: var(--orange-text); }
.person-row > .only-phone .icon { width: 18px; height: 18px; color: var(--orange-text); }
.line-row .pill-tag { flex: none; text-decoration: none; }
@media (max-width: 959.98px) {
    .dash-days .day-cell:nth-child(n+8) { display: none; }
}
@media (min-width: 960px) {
    .dash-head { padding-top: 0; padding-left: 0; padding-right: 0; margin-bottom: 22px; }
    .dash-head .title { font-family: var(--serif); font-size: 40px; font-weight: 600; }
    .d-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
    .dash-days .days-grid { grid-template-columns: repeat(14, minmax(0, 1fr)); }
    .dash-days .day-cell .t { display: none; }
    .dash-today { display: flex; flex-direction: column; gap: 12px; }
}

/* ---------- the smaller pieces of the other pages ---------- */
.btn-white { background: #FFFFFF; color: #281505; }
.chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wrap-chips { flex-wrap: wrap; overflow: visible; }
.feature-grid li { position: relative; }
.feature-lock { margin-left: auto; display: inline-flex; color: var(--orange-text); }
.feature-lock .icon { width: 16px; height: 16px; }
.cta-cocoa { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 26px; background: var(--cocoa); color: var(--cocoa-text); text-decoration: none; }
.cta-cocoa .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cta-cocoa small { font-size: 13px; font-weight: 600; color: var(--cocoa-muted); }
.cta-cocoa b { font-size: 17px; }
.cta-cocoa > .icon { width: 20px; height: 20px; color: var(--amber); }
.score-title { font-family: 'Noto Serif Devanagari', var(--serif); font-size: 19px; font-weight: 600; line-height: 1.4; }
.milan-score .tile { background: rgba(255, 255, 255, .1); }
.milan-score .tile .k { color: rgba(255, 255, 255, .72); }
.tile-sub { font-size: 12px; color: rgba(255, 255, 255, .78); }
.card .tile-sub, .tile .tile-sub { overflow-wrap: anywhere; }
.price-l { font-size: 34px; font-weight: 800; line-height: 1.1; }
.balance-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rule-list.dark p { background: rgba(255, 255, 255, .1); }
.steps { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; font-size: 15px; }
.edit-tail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kicker.unlock { color: var(--good); }
.kootas { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.koota-long { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: var(--mixed-soft); }
.koota-long.full { background: var(--good-soft); }
.koota-long.none { background: var(--bad-soft); }
.koota { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.koota-name { display: flex; flex-direction: column; min-width: 0; }
.koota-name .big { font-size: 17px; font-weight: 700; }
.koota-name .who { font-size: 13px; color: var(--muted); }
.koota-points { flex: none; font-size: 17px; font-weight: 800; color: var(--orange-text); }
.koota-long.full .koota-points { color: var(--good); }
.koota-long.none .koota-points { color: var(--bad); }

@media (min-width: 720px) {
    .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .twelve-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mini-family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
    body { padding-bottom: 0; }
    .only-desk { display: revert !important; }
    .only-phone { display: none !important; }
    .botnav, .foot { display: none; }
    .site-head { position: sticky; top: 0; border-bottom: 1px solid var(--chip-line); background: rgba(255, 249, 242, .95); }
    .head-in { min-height: 78px; padding-top: 0; gap: 16px; }
    .menu-btn { width: auto; height: 48px; padding: 0 18px 0 14px; gap: 10px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 15px; font-weight: 700; }
    .menu-btn .icon { width: 22px; height: 22px; }
    .menu-btn .lbl { display: inline; }
    .menu-btn[aria-expanded="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--cocoa-text); }
    .brand { flex: 0 0 auto; gap: 12px; }
    .brand-mark { width: 46px; height: 46px; border-width: 3px; }
    .brand-mark svg { width: 26px; height: 26px; }
    .brand-name { font-size: 22px; }
    .head-tools { margin-left: auto; }
    .avatar { width: 46px; height: 46px; font-size: 20px; }
    .avatar.xl { width: 76px; height: 76px; font-size: 32px; }
    .page { gap: 22px; padding-top: 32px; padding-bottom: 48px; }
    .title { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.2; }
    .card { padding: 24px; border-radius: 28px; }
    .card-night { padding: 24px 28px; border-radius: 32px; }
    .card-cocoa { padding: 24px; border-radius: 28px; }
    .h2 { font-size: 19px; }
    .grid-desk-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
    .grid-desk-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
    .grid-desk-21 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }

    /* The menu becomes a panel under the head. */
    .menu { top: 79px; }
    .menu-scrim { background: rgba(40, 21, 5, .42); }
    .menu-panel { left: 50%; top: 0; bottom: auto; width: min(1200px, calc(100vw - 48px)); max-height: calc(100vh - 100px); transform: translateX(-50%); padding: 28px; border-radius: 0 0 32px 32px; box-shadow: 0 30px 60px rgba(40, 21, 5, .25); }
    .menu-top { display: none; }
    .menu-cols { display: grid; grid-template-columns: 1.15fr 1.05fr 1fr 1fr; gap: 28px; align-items: start; }
    .menu-col.c-welcome, .menu-col.c-coins { display: none; }
    .menu-item b { font-size: 17px; }
    .menu-item small { font-size: 13px; }
    .menu-item .chev { display: none; }
    .menu-item .icon-sq { width: 46px; height: 46px; border-radius: 15px; }
    .menu-now, .menu-cta { display: flex; }
    .menu-col.c-now, .menu-col.c-account.guest { display: flex; }
    .menu-now { position: relative; overflow: hidden; flex-direction: column; gap: 6px; padding: 20px; border-radius: 24px; background: var(--night); }
    .menu-now > * { position: relative; }
    .menu-now .nm { font-size: 34px; line-height: 1.2; font-weight: 700; }
    .menu-now .tm { font-size: 15px; font-weight: 700; }
    .menu-now .lf { font-size: 13px; color: rgba(255, 255, 255, .82); }
    .menu-now .lm { margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; color: rgba(255, 255, 255, .85); }
    .menu-cta { flex-direction: column; gap: 10px; padding: 20px; border-radius: 24px; background: var(--cocoa); color: var(--cocoa-text); }
    .menu-cta .k { font-size: 13px; font-weight: 700; color: var(--amber); }
    .menu-cta .t { font-family: var(--serif); font-size: 21px; line-height: 1.4; font-weight: 600; }

    /* The homepage on a computer. */
    .home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
    .home-copy { display: flex; flex-direction: column; gap: 18px; }
    .home-hero > .greet { display: none; }
    .home-hero h1 { font-family: var(--serif); font-size: 52px; line-height: 1.25; font-weight: 600; letter-spacing: -.5px; }
    .home-hero .lead-p { max-width: 520px; font-size: 18px; line-height: 1.65; color: var(--muted); }
    .hero-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--chip-line); font-size: 14px; font-weight: 600; color: var(--muted); }
    .home-hero .btn { min-height: 58px; padding: 0 26px; border-radius: 18px; font-size: 19px; }
    .home-hero .card-night .moon { width: 86px; height: 86px; right: 34px; top: 30px; }
    .home-hero .now-name { font-size: 60px; }
    .home-hero .now-name.long { font-size: 48px; }
    .home-hero .now-name.longer { font-size: 40px; }
    .home-hero .now-time { font-size: 20px; }
    .home-hero .now-stats b { font-size: 16px; }
    .seg-names { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-top: 8px; font-size: 11px; font-weight: 600; text-align: center; color: rgba(255, 255, 255, .72); }
    .seg-names .on { color: #FFD08A; }
    .seg-toggle { display: none; }
    .chog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chog[data-show] .chog-col { display: flex !important; }
    .chog-col .col-head { display: block; padding-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
    .chog-col.current .col-head { color: var(--orange-text); }
    .chog-col:not(.current) { opacity: .6; }
    .chog .row { padding: 8px 0; }
    .chog .row .n { font-size: 14px; }
    .chog .row.on { padding: 8px 10px; }
    .twelve-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .services .service { padding: 22px; }

    /* The account pages get a side menu. */
    .acct { flex-direction: row; gap: 24px; align-items: flex-start; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px var(--gutter-r) 0 var(--gutter); }
    .acct-side { display: flex; flex: 0 0 260px; flex-direction: column; gap: 16px; }
    .acct-chips { display: none; }
    .acct-main { flex: 1 1 auto; min-width: 0; }
    .acct-main .page { padding-top: 0; }
    .acct-main .wrap { padding-left: 0; padding-right: 0; }
    .acct-main .band-red, .acct-main .band-ink, .acct-main .band-cream, .acct-main .band-yellow { padding-left: 0; padding-right: 0; }
    .acct-main > main > .band:first-child { margin-top: 0; }
    .side-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
    .side-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 16px; color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; }
    .side-nav a .icon { width: 20px; height: 20px; color: var(--orange-text); }
    .side-nav a[aria-current="page"] { background: var(--cocoa); color: var(--cocoa-text); font-weight: 700; }
    .side-nav a[aria-current="page"] .icon { color: var(--amber); }
    .side-coins { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 24px; background: var(--cocoa); color: var(--cocoa-text); }
    .side-coins .k { font-size: 13px; font-weight: 700; color: var(--amber); }
    .side-coins b { font-size: 34px; font-weight: 800; line-height: 1.1; }
    .side-coins small { font-size: 13px; color: var(--cocoa-muted); }

    /* The foot on a computer. */
    .foot-wide { display: block; margin-top: 24px; background: var(--cocoa); color: #E9D9CB; }
    .foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 28px; }
    .foot-cols .brand-t { font-size: 20px; font-weight: 700; color: #FFF3E7; }
    .foot-cols p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--cocoa-muted); }
    .foot-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
    .foot-cols nav b { font-size: 13px; color: var(--amber); }
    .foot-cols a { color: #E9D9CB; text-decoration: none; }
    .foot-cols a:hover { color: #FFFFFF; text-decoration: underline; }
    .foot-note { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid rgba(255, 243, 231, .12); font-size: 13px; color: var(--cocoa-muted); }

    .band + .band { margin-top: 20px; }
    .band-red > .in { padding: 28px; border-radius: 32px; }
    .band-ink > .in, .band-cream > .in, .band-yellow > .in { padding: 24px; border-radius: 28px; }
    main > .band:first-child { margin-top: 28px; }
    main > .band:last-child { margin-bottom: 48px; }
    .display-xl, .title-name { font-size: 36px; }
    .month-grid .day { height: 84px; }
    .month-grid .bs { font-size: 22px; }
    .month-grid .t, .month-grid .ad { font-size: 12px; }
    .in:has(> .person) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
    .person:nth-child(2) { border-top: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- the admin: the same colours, set for many rows ---------- */
.admin-body { background: var(--bg); color: var(--text); padding-bottom: 0; }
.admin-shell { display: grid; min-height: 100vh; }
.admin-side { background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px var(--gutter-r) 10px var(--gutter); }
.admin-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; font-weight: 700; text-decoration: none; }
.admin-brand .brand-mark { width: 34px; height: 34px; border-width: 2px; }
.admin-brand .brand-mark svg { width: 20px; height: 20px; }
.admin-brand small { padding: 1px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-strong); font-size: 12px; font-weight: 700; }
.admin-nav { margin-top: 8px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.admin-nav a .icon { width: 18px; height: 18px; }
.admin-nav a:hover { color: var(--text); background: var(--surface-2); }
.admin-nav a[aria-current="page"] { background: var(--cocoa); color: var(--cocoa-text); }
.admin-nav .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #FFFFFF; font-size: 12px; }
.admin-in { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.admin-main { min-width: 0; padding-block: 24px 60px; }
.admin-h1 { margin: 4px 0 0; font-size: 26px; line-height: 1.25; font-weight: 700; }
.admin-h2 { margin: 28px 0 10px; font-size: 17px; font-weight: 700; color: var(--text); }
.admin-sub { margin-top: 4px; color: var(--muted); }
.admin-back a, .admin-table a { color: var(--orange-text); font-weight: 700; }
.admin-flash { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 700; }
.admin-flash.bad { background: var(--bad-soft); color: var(--bad); }
.admin-empty { margin-top: 14px; padding: 16px; border: 1px dashed #E2B98F; border-radius: 16px; background: var(--surface); color: var(--muted); }
.admin-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.admin-card { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); text-decoration: none; }
.admin-card.hot { border-color: #F5D9A8; background: var(--gold-soft); }
.admin-card .k { font-size: 13px; font-weight: 700; color: var(--muted); }
.admin-card b { font-size: 26px; line-height: 1.25; font-weight: 800; }
.admin-card span:last-child { font-size: 14px; color: var(--muted); }
.admin-two { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 0 24px; align-items: start; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 15px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table th { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.admin-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-table small { color: var(--muted); }
.admin-table tr.hot td { background: var(--gold-soft); }
.admin-table .plus { color: var(--good); font-weight: 700; }
.admin-table .minus { color: var(--bad); }
.admin-table.facts th { width: 130px; background: var(--surface); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--mixed-soft); color: var(--muted); }
.pill-pending { background: var(--gold-soft); color: var(--gold-text); }
.pill-complete { background: var(--good-soft); color: var(--good); }
.pill-failed, .pill-refunded { background: var(--bad-soft); color: var(--bad); }
.admin-search { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-search input { flex: 1 1 260px; min-width: 0; height: 44px; padding: 0 12px; border: 1.5px solid var(--field); border-radius: 12px; background: #FFFFFF; }
.admin-search button, .admin-form button { height: 44px; padding: 0 18px; border-radius: 12px; background: var(--orange-fill); color: #FFFFFF; font-weight: 700; }
.admin-search a { align-self: center; font-weight: 700; }
.admin-form { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.admin-form label { margin-top: 6px; font-size: 14px; font-weight: 700; }
.admin-form input, .admin-form select { height: 44px; padding: 0 10px; border: 1.5px solid var(--field); border-radius: 12px; background: #FFFFFF; }
.admin-form .admin-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.admin-form .admin-check input { height: auto; margin-top: 5px; }
.admin-form button { margin-top: 10px; align-self: flex-start; }
.admin-link-button { color: var(--bad); font-weight: 700; text-decoration: underline; }
.admin-pages { margin-top: 16px; display: flex; gap: 16px; align-items: center; }
.admin-pages a { font-weight: 700; }

@media (min-width: 960px) {
    .admin-shell { grid-template-columns: 236px minmax(0, 1fr); }
    .admin-side { position: sticky; top: 0; align-self: start; height: 100vh; padding: 20px 14px; border-bottom: 0; border-right: 1px solid var(--line); }
    .admin-nav { margin-top: 22px; flex-direction: column; overflow: visible; }
    .admin-nav a { min-height: 42px; }
    .admin-nav .site { margin-top: 12px; }
}
