/* Graho landing — "Saffron Modern", the app's default theme (design/lib.py + ui/theme/Color.kt): a cream ground
   that warms toward the top, white cards with a soft shadow, the saffron accent gradient, maroon as the second accent
   (Chat buttons, FREE ribbons), Poppins for titles and Inter for text. Logical properties throughout so Arabic
   (dir="rtl") mirrors cleanly. */

:root {
  --ground-0: #FFEBD0;
  --ground: #FFF4E4;
  --ground-1: #FFF8EE;
  --card: #FFFFFF;
  --soft: #FFEEDB;
  --soft-line: #F5E3CE;
  --gold: #E8681A;
  --gold-hi: #F9A826;
  --gold-txt: #C2540C;
  --gold-faint: rgba(232, 104, 26, .16);
  --gold-line: rgba(232, 104, 26, .55);
  --grad: linear-gradient(135deg, #F7A21E 0%, #EC6A16 55%, #D24E0E 100%);
  --hero-grad: linear-gradient(135deg, #F7A21E 0%, #D24E0E 100%);
  --maroon: #7A1E2C;
  --maroon-soft: #F8E6E4;
  --ivory: #2B1B12;
  --body: #4E3D32;
  --muted: #7A6556;
  --online: #22A45D;
  --star: #F2A516;
  --love: #E0457B;
  --career: #E8681A;
  --money: #2F9E5B;
  --health: #3A86D6;
  --shadow: 0 4px 14px rgba(0, 0, 0, .06);
  --shadow-md: 0 12px 30px rgba(122, 64, 20, .1);
  --shadow-lg: 0 24px 60px rgba(83, 42, 12, .18);
  --shadow-up: 0 8px 22px rgba(232, 104, 26, .35);
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
html[lang="vi"] { --font-display: 'Be Vietnam Pro', 'Inter', sans-serif; }
html[lang="ru"], html[lang="uk"] { --font-display: 'Inter', system-ui, sans-serif; }
html[lang="hi"] { --font: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif; --font-display: 'Poppins', 'Noto Sans Devanagari', sans-serif; }
html[lang="ja"] { --font: 'Inter', 'Noto Sans JP', system-ui, sans-serif; --font-display: 'Poppins', 'Noto Sans JP', sans-serif; }
html[lang="ar"] { --font: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; --font-display: 'Noto Sans Arabic', 'Poppins', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; background: var(--ground-1); }
body {
  margin: 0; font-family: var(--font); color: var(--body); font-size: 16px; line-height: 1.6;
  background: radial-gradient(70vmax 46vmax at 100% 0%, rgba(247, 162, 30, .22), transparent 62%), linear-gradient(180deg, var(--ground-0) 0, var(--ground) 380px, var(--ground-1) 760px) no-repeat, var(--ground-1);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100vh;
}
html[dir="rtl"] body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.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; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; }
.flip { transform: scaleX(-1); }
html[dir="rtl"] .ic.flip { transform: none; }
html[dir="rtl"] .icon-btn:not(#panNext) .ic { transform: scaleX(-1); }
.container { width: min(1180px, 100%); margin-inline: auto; padding-inline: 24px; }
.i18n-wait main, .i18n-wait .site-header { opacity: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 600; padding: 10px 16px; border-radius: 10px; background: var(--ivory); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h);
  padding: 0 22px; border-radius: 999px; border: 0; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--spring), box-shadow .25s, background-color .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: var(--shadow-up); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232, 104, 26, .42); }
.btn-line { color: var(--gold-txt); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.btn-line:hover { transform: translateY(-2px); background: var(--soft); }
.btn-maroon { color: #fff; background: var(--maroon); }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--ivory); background: var(--soft); transition: transform .2s var(--spring), background-color .2s; }
.icon-btn:hover { background: #FFE2C2; }
.icon-btn:active { transform: scale(.92); }

/* ---------- card ---------- */
.card { position: relative; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--soft-line); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: env(safe-area-inset-top); transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(255, 248, 238, .86); box-shadow: 0 1px 0 var(--soft-line), 0 8px 24px rgba(122, 64, 20, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lite .site-header.is-scrolled { background: rgba(255, 248, 238, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px var(--soft-line), 0 6px 16px rgba(122, 64, 20, .18); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ivory); line-height: 1.05; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.main-nav a { position: relative; padding: 9px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; white-space: nowrap; }
.main-nav a:hover { color: var(--ivory); background: rgba(232, 104, 26, .08); }
.main-nav a.is-active { color: var(--gold-txt); background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-menu { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--soft-line), var(--shadow); color: var(--ivory); font-weight: 700; font-size: 13px; }
.lang-btn .ic { width: 18px; height: 18px; color: var(--gold); }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 220px; max-height: min(70vh, 480px); overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--soft-line); z-index: 10; }
.lang-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--body); }
.lang-list li small { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.lang-list li:hover, .lang-list li:focus { background: var(--soft); outline: none; color: var(--ivory); }
.lang-list li[aria-selected="true"] { color: var(--gold-txt); background: var(--soft); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--soft-line); position: relative; }
.menu-toggle span { position: absolute; inset-inline-start: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--ivory); transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.progress-track { position: absolute; inset: auto 0 0; height: 2px; }
.progress-fill { height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
html[dir="rtl"] .progress-fill { transform-origin: 100% 50%; }
.site-header.is-compact .main-nav { display: none; }
.site-header.is-compact .menu-toggle { display: block; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 116px) 0; overflow-x: clip; }
/* colour rhythm: full-width bands in the app's two accents break the cream between the white-card sections */
.band { isolation: isolate; }
.band::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.4px); background-size: 22px 22px; -webkit-mask: linear-gradient(180deg, #000, transparent 70%); mask: linear-gradient(180deg, #000, transparent 70%); }
.band-saffron { background: radial-gradient(60% 70% at 88% 0%, rgba(255, 226, 170, .5), transparent 60%), linear-gradient(160deg, #F7A21E 0%, #EC6A16 52%, #C8480C 100%); }
.band-maroon { background: radial-gradient(55% 60% at 8% 100%, rgba(232, 104, 26, .38), transparent 60%), linear-gradient(160deg, #94283A 0%, #7A1E2C 50%, #4E1019 100%); }
.band-soft { background: linear-gradient(180deg, var(--ground-1), var(--soft) 22%, var(--soft) 78%, var(--ground-1)); }
.band-saffron .section-title, .band-maroon .section-title { color: #fff; }
.band-saffron .section-title em, .band-maroon .section-title em { background: none; color: #FFE2B0; -webkit-text-fill-color: #FFE2B0; }
.band-saffron .section-sub, .band-maroon .section-sub { color: rgba(255, 255, 255, .9); }
.band-saffron .kicker, .band-maroon .kicker { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.band-saffron .kicker .ic, .band-maroon .kicker .ic { color: #FFE2B0; }
.band .card { box-shadow: 0 18px 44px rgba(60, 18, 6, .22); }
.band-saffron .sign { color: rgba(255, 255, 255, .88); }
.band-saffron .sign img { box-shadow: 0 6px 16px rgba(120, 40, 0, .25); }
.band-saffron .sign[aria-selected="true"] { color: var(--ivory); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--gold-txt); background: var(--soft); box-shadow: inset 0 0 0 1px var(--gold-faint); }
.kicker .ic { width: 18px; height: 18px; color: var(--gold); }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.14; color: var(--ivory); letter-spacing: -.01em; text-wrap: balance; }
.section-title em, .hero-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: var(--gold); -webkit-text-fill-color: transparent; }
.section-sub { margin: 16px auto 0; max-width: 660px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); text-wrap: pretty; }
.side-title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ivory); }
.form-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.form-note .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--online); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- pill tabs (the app's PillTabs) ---------- */
.pill-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); overflow-x: auto; scrollbar-width: none; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs button { flex: 1 0 auto; border: 0; border-radius: 999px; padding: 8px 16px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .2s, background-color .25s, box-shadow .25s; }
.pill-tabs button:hover { color: var(--ivory); }
.pill-tabs button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: var(--shadow-up); }
.pill-tabs button[data-open-app]::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-inline-start: 6px; vertical-align: -1px; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- fields ---------- */
.form-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ivory); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--body); }
.input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 0; background: var(--ground-1); color: var(--ivory); font-size: 16px; box-shadow: inset 0 0 0 1px var(--soft-line); transition: box-shadow .2s, background-color .2s; color-scheme: light; }
.input::placeholder { color: #B09A8A; }
.input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 4px var(--gold-faint); }
.input:disabled { opacity: .45; }
.input[type="date"], .input[type="time"] { font-variant-numeric: tabular-nums; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--body); -webkit-user-select: none; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px #D8C2AD; transition: background-color .2s, box-shadow .2s; }
.check-box .ic { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--spring); }
.check input:checked + .check-box { background: var(--grad); box-shadow: none; }
.check input:checked + .check-box .ic { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #A2232F; background: #FDECEC; }
.place-field { position: relative; }
.place-box { position: relative; }
.place-box .ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); width: 18px; height: 18px; pointer-events: none; }
.place-box .input { padding-inline-start: 42px; }
.place-list { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow: auto; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--soft-line); overscroll-behavior: contain; }
.place-list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.place-list li b { display: block; color: var(--ivory); font-weight: 600; font-size: 15px; }
.place-list li small { color: var(--muted); font-size: 12.5px; }
.place-list li[aria-selected="true"], .place-list li:hover { background: var(--soft); }
.place-list li.place-msg { cursor: default; color: var(--muted); font-size: 13.5px; }
.place-list li.place-msg:hover { background: none; }

/* ============ HERO ============ */
.hero { position: relative; min-height: min(100svh, 960px); display: flex; align-items: center; padding: calc(var(--header-h) + 28px) 0 70px; overflow-x: clip; }
.hero-grid { position: relative; }
.hero-copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "chip visual" "title visual" "sub visual" "ask visual" "ctas visual" "feats visual"; column-gap: 40px; align-items: center; }
.live-chip { grid-area: chip; align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: var(--body); background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--soft-line); }
.live-chip b { color: var(--gold-txt); font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(34, 164, 93, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 164, 93, .5); } 70% { box-shadow: 0 0 0 9px rgba(34, 164, 93, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 164, 93, 0); } }
.hero-title { grid-area: title; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; color: var(--ivory); letter-spacing: -.02em; text-wrap: balance; }
.hero-sub { grid-area: sub; margin: 20px 0 0; max-width: 560px; font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--body); }
.ask-box { grid-area: ask; position: relative; display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 24px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-md), inset 0 0 0 1.5px var(--gold-faint); }
html[dir="rtl"] .ask-box { padding: 6px 16px 6px 6px; }
.ask-box > .ic { color: var(--gold); }
.ask-input { flex: 1; min-width: 0; height: 46px; border: 0; background: none; font-size: 16px; color: var(--ivory); }
.ask-input:focus { outline: none; }
.ask-input::placeholder { color: #A08A79; }
.ask-send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--shadow-up); transition: transform .2s var(--spring); }
.ask-send:hover { transform: scale(1.06); }
html[dir="rtl"] .ask-send .ic { transform: scaleX(-1); }
.hero-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-features { grid-area: feats; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-features li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--body); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--soft-line); }
.hero-features .ic { width: 16px; height: 16px; color: var(--gold); }
.hero-copy > :not(.hero-visual) { position: relative; z-index: 3; }
.hero-visual { grid-area: visual; position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage3d { position: relative; width: 100%; aspect-ratio: 1; max-width: 620px; margin-inline: auto; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.stage3d::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(247, 162, 30, .32), rgba(255, 238, 219, .4) 45%, transparent 70%); }
.stage-fallback { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; border-radius: 50%; animation: float 6s ease-in-out infinite; }
.stage3d.is-3d .stage-fallback { opacity: 0; transition: opacity .8s; animation: none; }
/* the fallback art stays under the canvas: it must never catch the pointer, or the browser starts an image drag and
   cancels the spin (pointercancel) */
.stage3d img { pointer-events: none; -webkit-user-drag: none; }
.stage3d:active, .stage3d.is-grabbing { cursor: grabbing; }
/* the canvas bleeds past the square so the ring never meets a hard edge; the stage itself takes the pointer */
.stage3d canvas { position: absolute; inset: -10%; width: 120% !important; height: 120% !important; pointer-events: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-tip { position: absolute; top: 8%; inset-inline: 0; margin: 0 auto; width: max-content; max-width: 90%; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ivory); background: var(--card); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--gold-faint); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.stage-tip.is-shown { opacity: 1; transform: none; }
.stage-hint { display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 2px auto 0; font-size: 12.5px; color: var(--muted); text-align: center; justify-content: center; }
.stage-hint .ic { width: 16px; height: 16px; color: var(--gold); }
.scroll-cue { position: absolute; bottom: 22px; inset-inline-start: 50%; width: 26px; height: 42px; margin-inline-start: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.is-paused .stage-fallback, .is-paused .live-dot, .is-paused .scroll-cue span { animation-play-state: paused; }

/* ============ AI CHAT ============ */
.persona-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.persona { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 14px; border: 0; border-radius: 20px; background: linear-gradient(180deg, var(--soft) 0 44%, var(--card) 44%); box-shadow: var(--shadow), inset 0 0 0 1px var(--soft-line); text-align: center; transition: transform .25s var(--spring), box-shadow .25s; }
.persona:hover { transform: translateY(-3px); }
.persona[aria-selected="true"] { box-shadow: var(--shadow-md), inset 0 0 0 2px var(--gold); }
.persona img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(122, 64, 20, .18); }
.persona b { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ivory); line-height: 1.2; }
.persona small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.persona .online-dot { position: absolute; top: 102px; inset-inline-start: calc(50% + 32px); width: 14px; height: 14px; box-shadow: 0 0 0 3px #fff; }
.persona .ribbon { position: absolute; top: 8px; inset-inline-end: 8px; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--maroon); }
.online-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 2px #fff; }
.chat-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.chat-window { display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--soft-line); background: linear-gradient(180deg, #FFF8EE, #fff); }
.chat-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.chat-who b { font-family: var(--font-display); font-weight: 600; color: var(--ivory); }
.chat-who small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--online); font-weight: 600; }
.chat-who .online-dot { width: 8px; height: 8px; box-shadow: none; }
.free-pill { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--maroon); }
.chat-log { display: flex; flex-direction: column; gap: 10px; min-height: 300px; max-height: 460px; overflow: auto; padding: 18px; background: radial-gradient(circle at 100% 0, rgba(255, 235, 208, .55), transparent 50%), #FFFCF8; overscroll-behavior: contain; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.55; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.bubble.ai { align-self: flex-start; color: var(--body); background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--soft-line); border-end-start-radius: 6px; }
.bubble.me { align-self: flex-end; color: #fff; background: var(--grad); border-end-end-radius: 6px; }
.bubble .kundli-chip { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--gold-txt); background: var(--soft); }
.bubble .kundli-chip .ic { width: 13px; height: 13px; }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .4; animation: dot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; gap: 8px; padding: 10px 18px 0; overflow-x: auto; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest:empty { display: none; }
.sugg { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--gold-txt); background: var(--soft); box-shadow: inset 0 0 0 1px var(--gold-faint); white-space: nowrap; }
.sugg:hover { background: #FFE2C2; }
.chat-input { display: flex; gap: 10px; align-items: center; padding: 12px 18px; }
.chat-input .input { border-radius: 999px; }
.chat-input.is-done .input { opacity: .5; }
.chat-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 18px 14px; font-size: 12px; color: var(--muted); }
.chat-note .ic { width: 14px; height: 14px; }
.chat-side { display: flex; flex-direction: column; gap: 18px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.topic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--soft-line); font-size: 12.5px; font-weight: 600; color: var(--ivory); transition: transform .25s var(--spring); }
.topic:hover { transform: translateY(-3px); }
.topic img { width: 56px; height: 56px; border-radius: 50%; }
.chat-facts { margin: 0; padding: 18px; list-style: none; display: grid; gap: 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--soft-line); }
.chat-facts li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.chat-facts .ic { color: var(--gold); margin-top: 1px; }

/* ============ HOROSCOPE ============ */
.sign-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.sign { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 0; border-radius: 16px; background: none; font-size: 12px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.sign img { width: 100%; max-width: 72px; aspect-ratio: 1; border-radius: 50%; transition: transform .3s var(--spring); }
.sign:hover img { transform: scale(1.06); }
.sign[aria-selected="true"] { color: var(--ivory); background: var(--card); box-shadow: var(--shadow), inset 0 0 0 2px var(--gold); }
.horo-card { padding: 26px; }
.horo-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.horo-sign { width: 88px; height: 88px; border-radius: 50%; }
.horo-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ivory); }
.horo-date { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.horo-top .pill-tabs { margin-inline-start: auto; }
.horo-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 28px; margin-top: 22px; }
.score-list { display: grid; gap: 14px; align-content: start; }
.score { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; font-weight: 600; color: var(--ivory); }
.score span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--c, var(--gold)); transition: width 1s var(--ease); }
.horo-text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }
.lucky { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.lucky div { padding: 10px 12px; border-radius: 14px; background: var(--ground-1); box-shadow: inset 0 0 0 1px var(--soft-line); min-width: 0; }
.lucky dt { font-size: 12px; color: var(--muted); }
.lucky dd { margin: 2px 0 0; font-weight: 700; color: var(--ivory); display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.swatch { width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.horo-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--soft-line); }
.locked-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--maroon); background: var(--maroon-soft); }
.locked-tab .ic { width: 15px; height: 15px; }

/* ============ KUNDLI ============ */
.kundli-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
.kundli-result { padding: 22px; }
.kundli-tabs { margin-bottom: 16px; }
.kundli-intro { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ivory); }
.kundli-intro small { display: block; font-family: var(--font); font-weight: 500; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.kundli-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.north-chart { margin: 0; aspect-ratio: 1; }
.north-chart svg { width: 100%; height: 100%; display: block; }
.big3 { display: grid; gap: 10px; }
.b3 { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--ground-1); box-shadow: inset 0 0 0 1px var(--soft-line); }
.b3 img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.b3 span { display: block; font-size: 12px; color: var(--muted); }
.b3 b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ivory); line-height: 1.3; }
.b3 small { font-size: 12.5px; color: var(--muted); }
.kundli-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin-top: 16px; }
.krow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--soft-line); font-size: 14px; }
.krow dt, .krow > span:first-child { color: var(--muted); }
.krow dd, .krow > b { margin: 0; font-weight: 600; color: var(--ivory); text-align: end; }
.is-locked-row { position: relative; }
.is-locked-row b { filter: blur(4px); -webkit-user-select: none; user-select: none; }
.rows-lock { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 4px; }
.dasha-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 16px; color: #fff; background: var(--hero-grad); }
.dasha-now:empty { display: none; }
.dasha-now p { margin: 0; font-weight: 600; }
.dasha-now .btn { --h: 38px; font-size: 13.5px; color: var(--gold-txt); background: #fff; box-shadow: none; }
.chart-grid-line { stroke: var(--gold); }

/* ============ MATCHING ============ */
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.match-form { padding: 22px; display: grid; gap: 14px; }
.partner { margin: 0; padding: 16px; border: 0; border-radius: 18px; background: var(--ground-1); box-shadow: inset 0 0 0 1px var(--soft-line); display: grid; gap: 12px; min-width: 0; }
.partner legend { display: inline-flex; align-items: center; gap: 6px; float: left; width: 100%; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; color: var(--ivory); }
html[dir="rtl"] .partner legend { float: right; }
.partner legend .ic { color: var(--gold); width: 18px; height: 18px; }
.partner[data-who="girl"] legend .ic { color: var(--love); }
.match-result { padding: 24px; }
.match-score { display: flex; align-items: center; gap: 22px; }
.score-ring { --p: 0; position: relative; flex: none; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--soft) 0); transition: --p 1s; }
.score-ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.score-ring b, .score-ring small { position: relative; }
.score-ring b { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--ivory); line-height: 1; }
.score-ring small { font-size: 12px; color: var(--muted); max-width: 90px; }
.match-verdict { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ivory); line-height: 1.3; }
.match-pair { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.guna-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.guna { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--ground-1); box-shadow: inset 0 0 0 1px var(--soft-line); }
.guna b { font-weight: 600; color: var(--ivory); }
.guna .pts { font-weight: 700; color: var(--gold-txt); font-variant-numeric: tabular-nums; }
.guna small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.guna .bar { height: 6px; }
.guna.is-locked-row b { filter: none; }
.guna.is-locked-row .pts, .guna.is-locked-row small, .guna.is-locked-row .bar { filter: blur(4px); }
.guna-unlock { display: flex; justify-content: center; }

/* ============ PANCHANG ============ */
.pan-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pan-card { padding: 22px; }
.pan-head { display: flex; align-items: center; gap: 12px; }
.pan-when { flex: 1; min-width: 0; text-align: center; display: grid; gap: 8px; }
.pan-when b { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ivory); }
.pan-city .input { min-height: 40px; padding-block: 8px; font-size: 14.5px; text-align: start; }
.sun-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.sun-strip div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #FFF1DD, #FFF8EE); box-shadow: inset 0 0 0 1px var(--soft-line); }
.sun-strip .ic { color: var(--gold); width: 24px; height: 24px; }
.sun-strip span { display: block; font-size: 12px; color: var(--muted); }
.sun-strip b { font-size: 16px; color: var(--ivory); font-variant-numeric: tabular-nums; }
.pan-rows { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.pan-rows .krow { flex-direction: column; gap: 2px; padding: 10px 2px; }
.pan-rows .krow dd { text-align: start; }
.pan-rows .krow small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.pan-side { display: grid; gap: 18px; }
.moon-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.moon-disc { width: 110px; height: 110px; flex: none; }
.moon-name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ivory); }
.moon-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.transit-card { padding: 18px 22px; }
.transit { width: 100%; border-collapse: collapse; font-size: 14px; }
.transit th { text-align: start; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px 8px; }
.transit td { padding: 8px 4px; border-top: 1px dashed var(--soft-line); color: var(--ivory); }
.transit td:first-child { font-weight: 600; }
.transit td:last-child { font-variant-numeric: tabular-nums; color: var(--body); }
.transit .retro { margin-inline-start: 4px; font-size: 11px; font-weight: 700; color: var(--maroon); }
.transit tr.is-locked-row td:not(:first-child) { filter: blur(4px); }
.transit-lock td { border-top: 0; padding-top: 10px; }

/* ============ TOOLS ============ */
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.numero { padding: 22px; }
.numero-head { display: flex; align-items: center; gap: 14px; }
.numero-head img { width: 76px; height: 76px; border-radius: 50%; flex: none; }
.numero-head p { margin: 2px 0 0; font-size: 14px; }
.numero-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 16px; align-items: end; }
.numero-form .btn { grid-column: 1 / -1; }
.num-out { margin-top: 16px; }
.num-out:empty { display: none; }
.num-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.num-big div { padding: 12px 6px; border-radius: 16px; text-align: center; background: var(--ground-1); box-shadow: inset 0 0 0 1px var(--soft-line); }
.num-big div:first-child { color: #fff; background: var(--hero-grad); box-shadow: var(--shadow-up); }
.num-big b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.num-big span { font-size: 11.5px; font-weight: 600; }
.num-big div:not(:first-child) b { filter: blur(5px); color: var(--ivory); }
.num-read { margin: 14px 0 0; font-size: 15px; line-height: 1.65; }
.num-read strong { color: var(--ivory); }
.tool-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border: 0; border-radius: 18px; text-align: start; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--soft-line); transition: transform .25s var(--spring); }
.tool:hover { transform: translateY(-3px); }
.tool img { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 50%; }
.tool b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ivory); align-self: end; }
.tool span { font-size: 13px; line-height: 1.45; color: var(--muted); align-self: start; }
.tool:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.feature { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 0; padding: 22px 16px 20px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--soft-line); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .3s; --rx: 0deg; --ry: 0deg; overflow: hidden; }
.feature.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.feature::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 214, 160, .45), transparent 50%); opacity: 0; transition: opacity .3s; }
.feature:hover { box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--gold-faint); }
.feature:hover::after { opacity: 1; }
.feature img { width: 112px; height: 112px; border-radius: 50%; margin-bottom: 8px; transition: transform .6s var(--ease); }
.feature:hover img { transform: scale(1.06); }
.feature b { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--ivory); line-height: 1.25; }
.feature span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.premium-note { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 28px auto 0; padding: 16px 20px; border-radius: 18px; background: var(--maroon-soft); color: var(--body); }
.premium-note .ic { color: var(--maroon); width: 26px; height: 26px; }
.premium-note p { margin: 0; font-size: 14.5px; }
.premium-note b { color: var(--maroon); }

/* ============ DOWNLOAD ============ */
.download-card { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 32px; overflow: hidden; color: #fff; background: radial-gradient(circle at 18% 40%, rgba(255, 220, 160, .45), transparent 50%), var(--hero-grad); box-shadow: var(--shadow-lg); }
.dl-art { position: relative; aspect-ratio: 1; width: min(100%, 360px); margin-inline: auto; }
.dl-ball { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.download .section-title { color: #fff; text-align: start; }
.download .section-title em { background: none; -webkit-text-fill-color: #FFE7BF; color: #FFE7BF; }
.download .section-sub { color: rgba(255, 255, 255, .9); margin-inline: 0; }
.dl-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.play-badge img { width: 200px; height: auto; }
.qr-mini { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .9); max-width: 240px; }
.qr-mini .qr-tile { padding: 8px; border-radius: 12px; background: #fff; flex: none; }
.qr-mini img { width: 80px; height: 80px; }
.dl-meta { margin: 18px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.is-paused .dl-ball { animation-play-state: paused; }

/* ============ FOOTER ============ */
.site-footer { position: relative; padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--soft-line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-brand { max-width: 440px; }
.footer-brand p { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; }
.footer-links a { font-size: 14.5px; font-weight: 600; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--gold-txt); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--soft-line); }
.footer-bottom p { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 760px; }

/* ============ DOCK · MODAL · TOAST ============ */
.get-dock { display: none; }
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(43, 27, 18, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; padding: 28px; border-radius: 26px; background: radial-gradient(circle at 50% 0%, rgba(255, 220, 170, .55), transparent 55%), #fff; box-shadow: var(--shadow-lg); animation: pop .35s var(--spring); outline: none; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--soft); color: var(--ivory); }
.modal-app { display: flex; gap: 14px; align-items: center; padding-inline-end: 44px; }
.modal-app img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 20px rgba(43, 27, 18, .25); }
.modal-app-name { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ivory); }
.modal-app-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.modal-title { margin: 22px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.25; color: var(--ivory); }
.modal-sub { margin: 0; color: var(--body); font-size: 15px; }
.modal-visual { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; }
.modal-visual:empty { display: none; }
.modal-visual img { height: 110px; width: auto; border-radius: 50%; box-shadow: var(--shadow-md); }
.modal-get { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--soft-line); }
.qr-block { text-align: center; }
.qr-block p { margin: 8px 0 0; font-size: 12px; color: var(--muted); max-width: 150px; }
.qr-tile { position: relative; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--soft-line); }
.qr-tile img { width: 140px; height: 140px; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 34px !important; height: 34px !important; margin: -17px 0 0 -17px; border-radius: 9px; box-shadow: 0 0 0 4px #fff; }
.modal-actions .play-badge img { width: 180px; }
.modal-steps { margin: 14px 0 0; padding-inline-start: 20px; font-size: 14px; color: var(--body); display: grid; gap: 4px; }
.modal-steps .step-tap { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 500; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #fff; background: var(--ivory); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
html.modal-open { overflow: hidden; }

/* ============ TEASERS — a taste here, the rest in the app ============ */
.teaser { position: relative; }
.t-lock { filter: blur(5px); opacity: .7; -webkit-user-select: none; user-select: none; pointer-events: none; }
.teaser:not(.is-open) { padding-bottom: 8px; }
.unlock {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: 100%; margin: 14px auto 0;
  padding: 10px 18px; border: 0; border-radius: 999px; font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center;
  color: #fff; background: var(--maroon); box-shadow: 0 8px 20px rgba(122, 30, 44, .3); transition: transform .25s var(--spring), box-shadow .25s;
}
.unlock .ic { width: 18px; height: 18px; color: #FFD27A; }
.unlock:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(122, 30, 44, .38); }
.teaser .unlock { position: relative; z-index: 1; margin-top: -1.2em; }
.bubble .teaser .unlock { margin-top: -1em; font-size: 13px; padding: 8px 14px; }
.bubble.ai.teaser { padding-bottom: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 9px; font-size: 13.5px; }
  .sign-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.is-open { display: flex; position: absolute; top: calc(var(--header-h) + env(safe-area-inset-top)); inset-inline: 12px; flex-direction: column; padding: 8px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--soft-line); }
  .main-nav.is-open a { padding: 13px 16px; font-size: 16px; }
  .persona-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat-grid, .kundli-grid, .match-grid, .pan-grid, .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-side, .kundli-grid > form, .match-form, .pan-side, .numero { max-width: 720px; width: 100%; margin-inline: auto; }
  .topic-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 22px); }
  .hero-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chip" "title" "visual" "sub" "ask" "ctas" "feats"; text-align: center; justify-items: center; }
  .live-chip { justify-self: center; }
  .hero-visual { width: 100%; margin: 6px 0 0; }
  .stage3d { max-width: 500px; }
  .stage3d canvas { inset: 0; width: 100% !important; height: 100% !important; }
  .hero-sub { margin-inline: auto; }
  .ask-box { width: 100%; margin-inline: auto; text-align: start; }
  .hero-ctas, .hero-features { justify-content: center; }
  .scroll-cue { display: none; }
  .download-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .download .section-title { text-align: center; }
  .download .section-sub { margin-inline: auto; }
  .dl-actions { justify-content: center; }
  .dl-art { width: min(100%, 260px); }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; --radius: 20px; }
  .container { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .header-cta { display: none; }
  .brand-name { font-size: 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .stage3d { max-width: 400px; }
  .form-card { padding: 20px; }
  .persona-row { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 8px; scroll-snap-type: x mandatory; }
  .persona-row::-webkit-scrollbar { display: none; }
  .persona { flex: 0 0 140px; scroll-snap-align: start; }
  .persona img { width: 88px; height: 88px; }
  .persona .online-dot { top: 88px; inset-inline-start: calc(50% + 26px); }
  .chat-log { min-height: 260px; max-height: 400px; padding: 14px; }
  .chat-head, .chat-input { padding-inline: 14px; }
  .chat-suggest { padding-inline: 14px; }
  .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sign-strip { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 8px; gap: 6px; }
  .sign-strip::-webkit-scrollbar { display: none; }
  .sign { flex: 0 0 72px; }
  .horo-card { padding: 18px; }
  .horo-top .pill-tabs { margin-inline-start: 0; width: 100%; }
  .horo-sign { width: 68px; height: 68px; }
  .horo-name { font-size: 22px; }
  .horo-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kundli-result, .match-result, .pan-card, .numero { padding: 18px; }
  .kundli-top { grid-template-columns: minmax(0, 1fr); }
  .north-chart { max-width: 360px; width: 100%; margin-inline: auto; }
  .kundli-rows { grid-template-columns: minmax(0, 1fr); }
  .match-score { flex-direction: column; text-align: center; }
  .score-ring { width: 136px; height: 136px; }
  .moon-card { padding: 16px; }
  .moon-disc { width: 88px; height: 88px; }
  .num-big b { font-size: 24px; }
  .tool-tiles { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature { padding: 16px 10px; }
  .feature img { width: 84px; height: 84px; }
  .feature b { font-size: 14.5px; }
  .feature span { font-size: 12.5px; }
  .modal { place-items: end stretch; padding: 0; }
  .modal-dialog { width: 100%; max-height: calc(100dvh - 30px); border-radius: 26px 26px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); animation: sheetIn .35s var(--ease); }
  .modal-dialog::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--soft-line); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .modal-get { grid-template-columns: 1fr; }
  .qr-block { display: none; }
  .modal-steps .step-scan { display: none; }
  .modal-steps .step-tap { display: list-item; }
  .modal-actions { display: flex; flex-direction: column; align-items: center; }
  .get-dock { position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--soft-line); transform: translateY(140%); transition: transform .4s var(--ease); }
  html.show-dock .get-dock { transform: none; }
  html.modal-open .get-dock { transform: translateY(140%); }
  .get-dock img { width: 40px; height: 40px; border-radius: 11px; }
  .get-dock-text { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .get-dock-text strong { font-family: var(--font-display); font-size: 14px; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .get-dock-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.show-dock .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .hero-title { font-size: 34px; }
  .hero-features li { font-size: 12px; padding: 6px 10px; }
  .btn-lg { --h: 52px; padding: 0 22px; font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .field-row, .numero-form { grid-template-columns: minmax(0, 1fr); }
  .num-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill-tabs button { padding: 8px 12px; font-size: 13px; }
  .topic img { width: 46px; height: 46px; }
  .topic { font-size: 11.5px; }
}
@media (max-width: 370px) {
  .lang-btn { padding: 0 9px; }
  .lang-btn .chev { display: none; }
  .brand-name small { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover, .btn-line:hover, .persona:hover, .topic:hover, .tool:hover { transform: none; }
  .feature:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.sun-strip p { margin: 0; min-width: 0; }
.num-out .teaser { display: inline; }
.qr-mini span { min-width: 96px; }
