/* Astrology pages: cosmic midnight hero, gold accents, glass cards, kundali chart. */
.astro-page { padding-bottom: 4rem; }

/* ---------- cosmic hero (always dark, in both themes) ---------- */
.astro-cosmos {
    position: relative; overflow: hidden; color: #f4f1ea; isolation: isolate;
    background: radial-gradient(900px 420px at 80% 0%, rgba(139, 92, 246, .35), transparent 60%),
                radial-gradient(700px 380px at 0% 100%, rgba(200, 155, 60, .22), transparent 60%),
                linear-gradient(180deg, #06050c 0%, #0d0b1d 100%);
    padding: clamp(7rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 2.5rem;
}
.astro-cosmos::before, .astro-cosmos::after {
    content: ""; position: absolute; inset: -50%; z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.8), transparent),
        radial-gradient(1.5px 1.5px at 200px 150px, #f3d48b, transparent), radial-gradient(1px 1px at 280px 40px, #fff, transparent),
        radial-gradient(1px 1px at 330px 190px, rgba(255,255,255,.7), transparent), radial-gradient(1.5px 1.5px at 60px 220px, #fff, transparent);
    background-size: 360px 260px; opacity: .55; animation: astro-drift 120s linear infinite;
}
.astro-cosmos::after { background-size: 520px 380px; opacity: .3; animation-duration: 200s; animation-direction: reverse; }
@keyframes astro-drift { to { transform: translate3d(180px, 130px, 0); } }
.astro-cosmos .section-eyebrow { color: #f3d48b !important; }
.astro-cosmos h1 { color: #fff; font-family: var(--font-display); font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 600;
    line-height: 1.04; margin: .7rem 0 1rem; letter-spacing: -0.025em; }
.astro-cosmos h1 em { font-style: italic; background: linear-gradient(135deg, #f3d48b, #c89b3c); -webkit-background-clip: text;
    background-clip: text; color: transparent; }
.astro-cosmos p.lead { color: #c9c4d6; max-width: 640px; font-size: 1.08rem; line-height: 1.7; }
.astro-cosmos .btn-premium-outline { color: #fff !important; border-color: rgba(243, 212, 139, .5) !important; }

/* zodiac wheel */
.astro-wheel { width: min(420px, 90%); aspect-ratio: 1; margin: 0 auto; position: relative; }
.astro-wheel svg { width: 100%; height: 100%; animation: astro-spin 160s linear infinite; filter: drop-shadow(0 0 40px rgba(139, 92, 246, .35)); }
.astro-wheel .wheel-core { position: absolute; inset: 32%; border-radius: 50%; display: grid; place-items: center; text-align: center;
    background: radial-gradient(circle at 35% 30%, #2b2160, #0b0918 70%); border: 1px solid rgba(243, 212, 139, .35);
    box-shadow: inset 0 0 40px rgba(139, 92, 246, .35), 0 0 60px rgba(200, 155, 60, .15); }
.astro-wheel .wheel-core b { display: block; font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #f3d48b; }
.astro-wheel .wheel-core small { color: #c9c4d6; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
@keyframes astro-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .astro-wheel svg, .astro-cosmos::before, .astro-cosmos::after { animation: none; } }

/* ---------- navigation pills ---------- */
.astro-nav { display: flex; gap: .45rem; overflow-x: auto; padding: .4rem; margin: 1.6rem 0 0; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px);
    scrollbar-width: none; width: max-content; max-width: 100%; }
.astro-nav::-webkit-scrollbar { display: none; }
.astro-nav a { white-space: nowrap; padding: .5rem 1rem; border-radius: 999px; color: #d9d4e4 !important; font-size: .85rem;
    font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease; }
.astro-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.astro-nav a.active { background: linear-gradient(135deg, #f3d48b, #c89b3c); color: #1a1305 !important; }
.astro-nav .sep { width: 1px; background: rgba(255, 255, 255, .15); margin: .3rem .2rem; flex: none; }

/* ---------- cards ---------- */
.astro-card { display: block; padding: clamp(1.2rem, 2.5vw, 1.8rem); color: var(--text); text-decoration: none; }
.astro-card p, .astro-card li, .astro-card td, .astro-card th { color: var(--text); }
.astro-card h2, .astro-card h3 { font-family: var(--font-display); }
.astro-card.glow { background: radial-gradient(500px 200px at 100% 0%, color-mix(in srgb, var(--violet) 12%, transparent), transparent), var(--bg-elevated) !important; }
.astro-muted, .astro-card .astro-muted { color: var(--text-muted) !important; }
.astro-kicker { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.astro-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin: .3rem 0 1rem; }
.astro-section { margin-top: 2.2rem; }
.astro-section > h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.astro-section > h3::before { content: "✦"; color: var(--gold); font-size: .9rem; }

a.astro-tile { height: 100%; color: var(--text) !important; }
.astro-tile .tile-glyph { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 18%, transparent), color-mix(in srgb, var(--gold) 20%, transparent)); color: var(--primary); }
.astro-tile h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.astro-tile p { color: var(--text-muted) !important; font-size: .92rem; }
.astro-link { color: var(--gold) !important; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.astro-tile:hover .astro-link { text-decoration: underline; }

.astro-stat { height: 100%; border-radius: 16px; padding: 1rem 1.1rem; background: var(--bg-soft); border: 1px solid var(--hairline); }
.astro-stat span { display: block; color: var(--gold); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.astro-stat b { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin: .35rem 0 .15rem; color: var(--text); }
.astro-stat small { display: block; color: var(--text-muted); font-size: .8rem; }
.astro-stat.big b { font-size: 2.2rem; }

.astro-table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); margin-bottom: 0; }
.astro-table th { font-weight: 600; color: var(--text-muted) !important; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.astro-table td { vertical-align: middle; }
.astro-table tr.is-now td { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.astro-chip { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.astro-chip.good { background: rgba(16, 185, 129, .12); color: #0f9f6e; border-color: rgba(16, 185, 129, .3); }
.astro-chip.mixed { background: rgba(200, 155, 60, .14); color: #a97c22; border-color: rgba(200, 155, 60, .35); }
.astro-chip.careful { background: rgba(239, 68, 68, .1); color: #d14343; border-color: rgba(239, 68, 68, .3); }
.astro-chip.gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.astro-disclaimer { color: var(--text-muted); font-size: .78rem; margin-top: 1.2rem; line-height: 1.6; }
.astro-form .form-text { color: var(--text-muted); font-size: .76rem; }
.astro-form .btn-primary { padding: .8rem 1rem; }
.astro-note { border-radius: 14px; padding: .9rem 1.1rem; font-size: .9rem; border: 1px solid; }
.astro-note.warn { background: rgba(200, 155, 60, .1); border-color: rgba(200, 155, 60, .35); }
.astro-note.info { background: color-mix(in srgb, var(--violet) 8%, transparent); border-color: color-mix(in srgb, var(--violet) 25%, transparent); }

/* ---------- kundali chart ---------- */
.kundali { width: 100%; max-width: 440px; margin: 0 auto; display: block; }
.kundali .frame { fill: color-mix(in srgb, var(--gold) 6%, var(--bg-elevated)); stroke: var(--gold); stroke-width: 2; }
.kundali .line { stroke: var(--gold); stroke-width: 1.2; opacity: .8; }
.kundali .sign-no { fill: var(--text-muted); font-size: 11px; font-weight: 700; }
.kundali .graha { font-size: 13px; font-weight: 700; fill: var(--text); }
.kundali .graha.retro { fill: #d14343; }
.kundali .graha.lagna-mark { fill: var(--gold); }
.kundali .h1 { fill: color-mix(in srgb, var(--violet) 10%, transparent); }

/* ---------- score meter / bars ---------- */
.astro-ring { --p: 50; width: 190px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
    background: conic-gradient(#c89b3c calc(var(--p) * 1%), color-mix(in srgb, var(--border) 80%, transparent) 0); position: relative; }
.astro-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-elevated); }
.astro-ring > div { position: relative; text-align: center; }
.astro-ring b { display: block; font-family: var(--font-display); font-size: 2.8rem; line-height: 1; }
.astro-ring small { color: var(--text-muted); font-size: .8rem; }
.astro-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--hairline); }
.astro-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #c89b3c); }
.stars { color: var(--gold); letter-spacing: .1em; font-size: 1.05rem; }
.stars .off { color: var(--border); }

/* ---------- signs grid & week strip ---------- */
.sign-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.3rem .8rem !important; height: 100%; }
.sign-tile .glyph { font-size: 2rem; line-height: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--violet) 22%, transparent), color-mix(in srgb, var(--gold) 14%, transparent));
    border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); color: var(--text); margin-bottom: .4rem; }
.sign-tile b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.sign-tile small { color: var(--text-muted); font-size: .76rem; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(84px, 1fr)); gap: .5rem; overflow-x: auto; }
.week-day { border-radius: 14px; padding: .8rem .5rem; text-align: center; border: 1px solid var(--border); background: var(--bg-soft); }
.week-day b { display: block; font-size: .8rem; }
.week-day small { display: block; color: var(--text-muted); font-size: .7rem; margin-bottom: .35rem; }
.week-day.today { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }

.segmented { display: inline-flex; padding: .3rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); gap: .2rem; }
.segmented a { padding: .4rem .95rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-muted) !important; text-decoration: none; }
.segmented a.active { background: var(--bg-elevated); color: var(--text) !important; box-shadow: var(--shadow-sm); }

.moon-disc { --lit: 50; width: 84px; height: 84px; border-radius: 50%; position: relative; overflow: hidden; margin: 0 auto;
    background: #1c1a2c; box-shadow: inset 0 0 18px rgba(0, 0, 0, .5), 0 0 30px rgba(243, 212, 139, .25); }
.moon-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #fff7de, #e8d29b 60%, #b99a55);
    clip-path: inset(0 0 0 calc(100% - var(--lit) * 1%)); }  /* waxing: lit on the right (northern hemisphere) */
.moon-disc.waning::after { clip-path: inset(0 calc(100% - var(--lit) * 1%) 0 0); }

.num-badge { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; flex: none;
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: #1a1305;
    background: linear-gradient(135deg, #f3d48b, #c89b3c); box-shadow: 0 14px 30px -14px rgba(200, 155, 60, .9); }
.astro-subhead { font-family: var(--font-display); font-size: 1.3rem; margin: 2rem 0 .7rem; display: flex; align-items: center; gap: .55rem; }
.astro-subhead::before { content: "✦"; color: var(--gold); font-size: .85rem; }

/* ---------------------------------------------------------------- worldwide place picker */
.place-input { position: relative; }
.place-input .place-pin { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; z-index: 2; }
.place-input input.form-control { padding-left: 2.3rem; padding-right: 2.9rem; }
.place-locate { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent);
    color: var(--gold); display: grid; place-items: center; transition: transform .2s ease, background .2s ease; z-index: 2; }
.place-locate:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); transform: translateY(-50%) scale(1.06); }
.place-locate.busy i { animation: place-pulse 1s ease-in-out infinite; }
@keyframes place-pulse { 50% { opacity: .3; } }
.place-results { position: absolute; z-index: 1050; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none;
    max-height: 320px; overflow-y: auto; border-radius: var(--radius-md); background: var(--bg-elevated);
    border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); box-shadow: var(--shadow-lg); }
.place-results li { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; cursor: pointer; }
.place-results li b { display: block; font-weight: 600; font-size: .92rem; color: var(--text); }
.place-results li small { display: block; color: var(--text-muted); font-size: .74rem; }
.place-results li.active, .place-results li[data-i]:hover { background: color-mix(in srgb, var(--violet) 10%, transparent); }
.place-results li.pr-status { color: var(--text-muted); font-size: .82rem; cursor: default; }
.pr-flag { font-size: 1.25rem; width: 1.6rem; text-align: center; color: var(--gold); flex: none; }
.place-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .76rem; color: var(--text-muted); margin-top: .45rem; min-height: 1px; }
.place-meta i { color: var(--gold); margin-right: .2rem; }
.place-map { height: 170px; margin-top: .6rem; border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); box-shadow: inset 0 0 0 1px var(--hairline); z-index: 0; }
.place-map .leaflet-control-attribution { font-size: 9px; background: color-mix(in srgb, var(--bg-elevated) 80%, transparent); color: var(--text-muted); }
.place-map .leaflet-control-attribution a { color: var(--text-muted); }
.place-marker span { display: block; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #f3d48b 0 30%, rgba(226, 184, 92, .35) 32% 100%);
    border: 2px solid #f3d48b; box-shadow: 0 0 0 6px rgba(226, 184, 92, .18), 0 6px 16px rgba(0, 0, 0, .35); animation: marker-glow 2.4s ease-in-out infinite; }
@keyframes marker-glow { 50% { box-shadow: 0 0 0 12px rgba(226, 184, 92, .06), 0 6px 16px rgba(0, 0, 0, .35); } }
.place-manual { margin-top: .55rem; font-size: .82rem; }
.place-manual summary { color: var(--gold); cursor: pointer; font-weight: 600; list-style: none; }
.place-manual summary::-webkit-details-marker { display: none; }
.place-manual summary::before { content: "＋ "; }
.place-manual[open] summary::before { content: "－ "; }
.panchang-form .place-picker { margin-bottom: .5rem !important; }

/* ---------------------------------------------------------------- live sky card */
.sky-now { display: flex; align-items: center; gap: 1.1rem; }
.sky-now[hidden] { display: none; }
.sky-now-icon { width: 3.4rem; height: 3.4rem; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #f3d48b;
    background: radial-gradient(circle at 35% 30%, #3b2f7a, #120f2b); box-shadow: 0 0 0 1px rgba(243, 212, 139, .35), 0 10px 30px -10px rgba(91, 61, 245, .7); }
.sky-now b[data-sky-headline] { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.sky-now-clock b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .sky-now { flex-wrap: wrap; } .sky-now-clock { text-align: left !important; width: 100%; } }

/* ---------------------------------------------------------------- result actions + print */
.astro-actions { display: flex; flex-wrap: wrap; gap: .5rem; float: right; margin: 0 0 .5rem .5rem; }
#match-result > .astro-actions { float: none; }
.jpl-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 999px; padding: .3rem .75rem;
    background: color-mix(in srgb, var(--gold) 8%, transparent); }
@media print {
    #navbar, nav.navbar, footer, .astro-nav, .astro-actions, .astro-form, .luxe-progress, .astro-cosmos .lead, form .astro-form, form, .col-lg-4:has(> .astro-form) { display: none !important; }
    .astro-cosmos { padding: 1rem 0 !important; background: none !important; }
    .astro-cosmos h1 { color: #000 !important; }
    .col-lg-8 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
    .astro-card { box-shadow: none !important; break-inside: avoid; }
}

/* map tiles: night style in dark mode, zoom buttons in the site palette */
:root[data-theme="dark"] .place-tiles { filter: invert(1) hue-rotate(200deg) brightness(.85) saturate(.6) contrast(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .place-tiles { filter: invert(1) hue-rotate(200deg) brightness(.85) saturate(.6) contrast(.9); } }
.place-map .leaflet-bar { border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent) !important; box-shadow: none !important; }
.place-map .leaflet-bar a { background: var(--bg-elevated) !important; color: var(--gold) !important; border-color: var(--hairline) !important;
    width: 28px; height: 28px; line-height: 26px; font: 600 16px/26px var(--font-sans) !important; }
.place-map.leaflet-container { background: var(--bg-soft); font-family: var(--font-sans); }

/* ---------------------------------------------------------------- Tara, the AI astrologer */
.tara-chat { display: flex; flex-direction: column; height: min(78vh, 760px); min-height: 520px; border-radius: var(--radius-lg); overflow: hidden;
    background: radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--violet) 14%, transparent), transparent),
                radial-gradient(500px 260px at 0% 100%, color-mix(in srgb, var(--gold) 9%, transparent), transparent), var(--bg-elevated);
    border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--border)); box-shadow: var(--shadow-lg); }
.tara-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--hairline);
    background: color-mix(in srgb, var(--bg-elevated) 70%, transparent); backdrop-filter: blur(10px); }
.tara-head b { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.tara-head small { color: var(--text-muted); font-size: .76rem; }
.tara-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; margin-right: .25rem; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.tara-orb { width: 2.8rem; height: 2.8rem; border-radius: 50%; position: relative; flex: none;
    background: conic-gradient(from 0deg, #5b3df5, #c89b3c, #8b5cf6, #e2b85c, #5b3df5); animation: tara-spin 8s linear infinite;
    box-shadow: 0 0 24px -4px rgba(139, 92, 246, .8); }
.tara-orb span { position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8e6 0 8%, #2b1f63 38%, #0d0a24 100%); }
.tara-orb span::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: #f3d48b; font-size: .95rem; animation: tara-twinkle 2.2s ease-in-out infinite; }
.is-busy .tara-orb { animation-duration: 1.6s; }
@keyframes tara-spin { to { transform: rotate(360deg); } }
@keyframes tara-twinkle { 50% { opacity: .35; transform: scale(.8); } }
.tara-icon-btn { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
    background: transparent; color: var(--gold); display: grid; place-items: center; }
.tara-log { flex: 1; overflow-y: auto; padding: 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; scroll-behavior: smooth; }
.tara-msg { display: flex; }
.tara-msg.user { justify-content: flex-end; }
.tara-bubble { max-width: min(86%, 640px); padding: .85rem 1.05rem; border-radius: 20px; font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.tara-msg.bot .tara-bubble { background: color-mix(in srgb, var(--bg-soft) 80%, transparent); border: 1px solid var(--hairline); border-top-left-radius: 6px; }
.tara-msg.user .tara-bubble { background: var(--grad-brand); color: #fff; border-top-right-radius: 6px; box-shadow: 0 10px 24px -14px rgba(91, 61, 245, .8); }
.tara-msg.report .tara-bubble { max-width: 100%; border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.tara-msg.pop .tara-bubble { animation: tara-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tara-pop { from { transform: scale(.92); opacity: 0; } }
.tara-bubble p:last-child, .tara-bubble ul:last-child, .tara-bubble ol:last-child { margin-bottom: 0; }
.tara-bubble h1, .tara-bubble h2, .tara-bubble h3 { font-family: var(--font-display); line-height: 1.25; margin: 1.1rem 0 .5rem; }
.tara-bubble h1 { font-size: 1.55rem; margin-top: .2rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tara-bubble h2 { font-size: 1.18rem; padding-top: .7rem; border-top: 1px solid var(--hairline); }
.tara-bubble h3 { font-size: 1.02rem; }
.tara-bubble strong { color: var(--gold); }
.tara-msg.user .tara-bubble strong { color: #fff; }
.tara-bubble ul, .tara-bubble ol { padding-left: 1.2rem; }
.tara-bubble table { width: 100%; font-size: .85rem; margin: .5rem 0; border-collapse: collapse; }
.tara-bubble th, .tara-bubble td { border-bottom: 1px solid var(--hairline); padding: .35rem .5rem; text-align: left; }
.tara-bubble a { color: var(--gold); }
.tara-typing { display: inline-flex; gap: .35rem; padding: .2rem 0; }
.tara-typing i { width: .55rem; height: .55rem; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: tara-twinkle 1.1s ease-in-out infinite; }
.tara-typing i:nth-child(2) { animation-delay: .18s; } .tara-typing i:nth-child(3) { animation-delay: .36s; }
.tara-caret { display: inline-block; width: .45rem; height: 1rem; margin-left: .15rem; vertical-align: -2px; background: var(--gold); animation: tara-twinkle .9s steps(2) infinite; }
.tara-report-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--hairline); }
.tara-chips { display: flex; gap: .45rem; overflow-x: auto; padding: .2rem 1.1rem .7rem; scrollbar-width: none; }
.tara-chips::-webkit-scrollbar { display: none; }
.tara-chips button { flex: none; border-radius: 999px; padding: .42rem .85rem; font-size: .8rem; font-weight: 600; color: var(--text);
    background: color-mix(in srgb, var(--violet) 8%, var(--bg-elevated)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border));
    transition: transform .15s ease, border-color .15s ease; }
.tara-chips button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.tara-chips button:disabled { opacity: .5; }
.tara-input { display: flex; gap: .6rem; align-items: flex-end; padding: .8rem 1rem 1rem; border-top: 1px solid var(--hairline); }
.tara-input textarea { flex: 1; resize: none; border-radius: 18px; padding: .7rem 1rem; max-height: 160px; background: var(--bg-soft);
    border: 1px solid var(--border); color: var(--text); font-family: var(--font-sans); }
.tara-input textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.tara-input .btn { width: 2.9rem; height: 2.9rem; border-radius: 50%; padding: 0; flex: none; }
@media (max-width: 575.98px) { .tara-chat { height: 82vh; } .tara-bubble { max-width: 94%; } }
@media (prefers-reduced-motion: reduce) { .tara-orb, .tara-orb span::after, .tara-typing i, .tara-caret, .tara-msg.pop .tara-bubble { animation: none; } }
@media print {
    .tara-chat { height: auto; border: 0; box-shadow: none; } .tara-log { overflow: visible; } .tara-input, .tara-chips, .tara-head, .tara-summary, .tara-report-actions { display: none !important; }
    .tara .col-lg-4 { display: none !important; } .tara .col-lg-8 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
}
.tara-promo { display: flex !important; flex-wrap: wrap; align-items: center; gap: 1.2rem;
    background: radial-gradient(600px 220px at 0% 50%, color-mix(in srgb, var(--violet) 18%, transparent), transparent), var(--bg-elevated) !important; }
.tara-promo .tara-orb { width: 4rem; height: 4rem; }
.tara-promo h2 { font-family: var(--font-display); font-size: 1.5rem; margin: .4rem 0 .2rem; }
.tara-promo p { margin: 0; color: var(--text-muted); max-width: 60ch; }
