﻿﻿﻿﻿/* ============ KUNDALI CSS ============ */
:root {
    --bg-deep: #0a0415;
    --bg-dark: #100821;
    --bg-card: #160c2a;
    --gold: #d4a843;
    --gold-light: #f0c96b;
    --gold-dim: #8a6a20;
    --saffron: #e8731a;
    --teal: #4ecdc4;
    --purple: #7c3aed;
    --purple-light: #a855f7;
    --text: #e8e0d5;
    --text-dim: #9a8fa0;
    --border: rgba(212,168,67,0.25);
    --glow: rgba(212,168,67,0.15);
    --red: #e74c3c;
    --green: #27ae60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: 'Crimson Pro', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

html:lang(hi) body,
html:lang(mr) body {
    font-family: 'Noto Sans Devanagari', 'Crimson Pro', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', serif;
}

html:lang(or) body {
    font-family: 'Noto Sans Oriya', 'Crimson Pro', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', serif;
}

/* Stars */
.stars-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.star {
    position: absolute; border-radius: 50%;
    background: white; animation: twinkle var(--dur, 3s) infinite alternate;
}
@keyframes twinkle { from { opacity: 0.1; } to { opacity: 0.9; } }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fdfbf5;
    border-bottom: 1px solid rgba(212, 168, 67, 0.35);
    box-shadow: 0 4px 18px rgba(10, 4, 21, 0.12);
    padding: 12px 24px;
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; line-height: 0; }
.logo-copy { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.logo-icon {
    width: clamp(64px, 6vw, 80px);
    height: clamp(64px, 6vw, 80px);
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 2.8vw, 34px);
    color: transparent;
    background: linear-gradient(90deg, #123f7a 0%, #123f7a 48%, #f28a00 54%, #e87500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.logo-sub {
    color: #665445;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}
html:lang(hi) .logo-text {
    font-family: 'Noto Sans Devanagari', 'Crimson Pro', serif;
    letter-spacing: 0;
    line-height: 1.45;
}
.lang-selector { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-btn {
    padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border);
    background: transparent; color: #665445; font-size: 14px; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
.lang-btn:hover, .lang-btn.active {
    background: var(--gold); color: var(--bg-deep); border-color: var(--gold);
    font-weight: 600;
}

/* Compact mobile navigation. The checkbox keeps the menu functional without requiring a page-specific script. */
.mobile-menu-checkbox,
.mobile-menu-toggle { display: none; }

/* Compact mobile navigation. The checkbox keeps the menu functional without requiring a page-specific script. */
.mobile-menu-checkbox,
.mobile-menu-toggle { display: none; }

/* Hero */
.hero {
    position: relative; text-align: center; padding: 60px 24px 40px;
    overflow: hidden; z-index: 1;
}
.hero::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: 6%;
    top: 28px;
    background: url('../img/compass-art.svg') center/contain no-repeat;
    opacity: 0.34;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 140px;
    left: 4%;
    bottom: 16px;
    background: url('../img/stars-art.svg') center/contain no-repeat;
    opacity: 0.5;
    pointer-events: none;
}
.mandala-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 500px; height: 500px;
    background:
      url('../img/mandala-art.svg') center/contain no-repeat,
      radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.1); } }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 52px);
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212,168,67,0.4);
    margin-bottom: 16px;
    position: relative; z-index: 1;
}
.hero-sub { font-size: clamp(14px, 2vw, 18px); color: var(--text-dim); max-width: 600px; margin: 0 auto 24px; line-height: 1.6; position: relative; z-index: 1; }
.planets-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 24px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
    font-family: 'Noto Sans Symbols 2', 'Segoe UI Symbol', 'Noto Sans', sans-serif;
}
.planets-row span { cursor: default; transition: all 0.3s; }
.planets-row span:hover { opacity: 1; transform: scale(1.4) translateY(-4px); filter: drop-shadow(0 0 6px var(--gold)); }

/* Main */
.main-container { max-width: 900px; margin: 0 auto; padding: 0 20px 60px; position: relative; z-index: 1; }

/* Form Card */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 0 60px rgba(212,168,67,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative; overflow: hidden;
}
.form-card::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px;
    background:
      url('../img/compass-art.svg') center/contain no-repeat,
      radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
    opacity: 0.35;
}
.form-title { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gold); margin-bottom: 28px; text-align: center; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:600px) { .form-grid { grid-template-columns: 1fr; } }
.full-width { grid-column: 1 / -1; }

.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: 13px; color: var(--gold-light); font-weight: 600; letter-spacing: 0.5px; }
.field-group small { font-size: 11px; color: var(--text-dim); }

input[type="text"], input[type="date"], input[type="time"], select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    outline: none;
}
input:focus, select:focus {
    border-color: var(--gold);
    background: rgba(212,168,67,0.05);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.1);
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
select option { background: var(--bg-card); color: var(--text); }
select:disabled { opacity: 0.5; cursor: not-allowed; }
input:disabled { opacity: 0.5; cursor: not-allowed; }

.radio-group { display: flex; gap: 20px; padding: 10px 0; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio-label input[type="radio"] { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }

/* City Search */
.city-search-wrap { position: relative; }
.city-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    max-height: 200px; overflow-y: auto;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.city-dropdown.open { display: block; }
.city-option {
    padding: 10px 16px; cursor: pointer; font-size: 13px; line-height: 1.4;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.city-option:hover { background: rgba(212,168,67,0.1); }
.city-option .city-name { color: var(--text); font-weight: 600; }
.city-option .city-meta { color: var(--text-dim); font-size: 11px; }

.location-confirm {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px;
    background: rgba(78,205,196,0.1); border: 1px solid rgba(78,205,196,0.3);
    font-size: 13px; color: var(--teal); margin-top: 8px;
}
.location-confirm.hidden { display: none; }

/* Submit Button */
.submit-btn {
    width: 100%; margin-top: 28px;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 100%);
    border: none; border-radius: 12px;
    color: var(--bg-deep); font-family: inherit;
    font-size: 18px; font-weight: 700;
    cursor: pointer; transition: all 0.3s;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(212,168,67,0.3);
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,168,67,0.5);
}
.submit-btn:active { transform: translateY(0); }
.btn-icon { font-size: 20px; }

/* Loading */
.loading-overlay {
    text-align: center; padding: 60px 20px;
    background: var(--bg-card); border-radius: 20px;
    border: 1px solid var(--border); margin-top: 24px;
}
.loading-overlay.hidden { display: none; }
.mandala-spinner {
    width: 80px; height: 80px; margin: 0 auto 24px;
    border: 3px solid rgba(212,168,67,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--gold); font-size: 18px; margin-bottom: 24px; }
.loading-steps { display: flex; flex-direction: column; gap: 8px; max-width: 320px; margin: 0 auto; }
.step { padding: 8px 16px; border-radius: 8px; font-size: 13px; color: var(--text-dim); opacity: 0.4; transition: all 0.5s; }
.step.active { opacity: 1; color: var(--gold-light); background: rgba(212,168,67,0.1); }
.step.done { opacity: 0.7; color: var(--teal); }

/* Results */
.result-section { margin-top: 24px; }
.result-section.hidden { display: none; }

.result-header {
    text-align: center; padding: 30px; margin-bottom: 20px;
    background: var(--bg-card); border-radius: 16px;
    border: 1px solid var(--border);
}
.result-name { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--gold); }
.result-meta { font-size: 14px; color: var(--text-dim); margin-top: 6px; }

/* Kundali Chart */
.kundali-chart-wrap { margin-bottom: 20px; }
.kundali-chart-wrap h3 { color: var(--gold); font-size: 18px; margin-bottom: 16px; padding: 16px 20px; background: var(--bg-card); border-radius: 12px 12px 0 0; border: 1px solid var(--border); border-bottom: none; }
.chart-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:700px) { .chart-container { grid-template-columns: 1fr; } }

.chart-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
}
.chart-box h4 { color: var(--gold-light); font-size: 15px; margin-bottom: 16px; text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

/* North Indian Chart (square) */
.ni-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px; aspect-ratio: 1;
    background: rgba(212,168,67,0.15);
    border: 2px solid var(--gold-dim);
    border-radius: 8px;
    overflow: hidden;
    max-width: 280px; margin: 0 auto;
}
.house-cell {
    background: var(--bg-deep);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 4px; min-height: 60px;
    position: relative; font-size: 11px;
    transition: background 0.2s;
}
.house-cell:hover { background: rgba(212,168,67,0.08); }
.house-num { font-size: 9px; color: var(--text-dim); position: absolute; top: 3px; left: 5px; }
.house-planets { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.planet-chip {
    font-size: 10px; padding: 1px 5px; border-radius: 10px;
    background: rgba(212,168,67,0.2); color: var(--gold-light);
    white-space: nowrap;
}
.planet-chip.retrograde { background: rgba(231,76,60,0.2); color: #e74c3c; }
.house-sign { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.center-cell { background: rgba(212,168,67,0.05); }

/* Planet table */
.planet-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.planet-table th { text-align: left; padding: 8px 10px; color: var(--gold-dim); font-weight: 600; border-bottom: 1px solid var(--border); }
.planet-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.planet-table tr:hover td { background: rgba(255,255,255,0.03); }
.planet-sym { font-size: 16px; width: 28px; display: inline-block; text-align: center; }
.status-exalted { color: #f0c96b; }
.status-own { color: #4ecdc4; }
.status-debilitated { color: #e74c3c; }
.status-friendly { color: #a8d8a8; }
.status-neutral { color: var(--text-dim); }
.status-enemy { color: #e8731a; }

/* Predictions */
.predictions { margin-bottom: 20px; }
.prediction-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.pred-tab {
    padding: 8px 20px; border-radius: 20px; border: 1px solid var(--border);
    background: transparent; color: var(--text-dim); cursor: pointer;
    font-family: inherit; font-size: 13px; white-space: nowrap; transition: all 0.2s;
}
.pred-tab.active, .pred-tab:hover {
    background: var(--purple); color: white; border-color: var(--purple);
}

.prediction-card {
    background: var(--bg-card); border-radius: 16px;
    border: 1px solid var(--border); overflow: hidden;
}
.pred-section { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.pred-section:last-child { border-bottom: none; }
.pred-section h4 { color: var(--gold); font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pred-text { color: var(--text); font-size: 14px; line-height: 1.8; }

/* Dasha */
.dasha-table { width: 100%; font-size: 13px; }
.dasha-table th { text-align: left; padding: 8px 10px; color: var(--gold-dim); border-bottom: 1px solid var(--border); }
.dasha-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.dasha-active { background: rgba(212,168,67,0.08) !important; }
.dasha-active td { color: var(--gold-light); font-weight: 600; }
.dasha-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-active { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.dot-past { background: var(--text-dim); }
.dot-future { background: var(--border); }

/* Score Bars */
.score-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media(max-width:500px) { .score-wrap { grid-template-columns: 1fr; } }
.score-item label { font-size: 12px; color: var(--text-dim); margin-bottom: 5px; display: block; }
.score-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--purple), var(--gold)); transition: width 1s ease; }
.score-val { font-size: 12px; color: var(--gold-light); margin-top: 3px; text-align: right; }

/* Chat */
.chat-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden; margin-top: 24px;
}
.chat-header {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(212,168,67,0.1));
}
.chat-icon { font-size: 36px; }
.chat-header h3 { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 20px; }
.chat-header p { color: var(--text-dim); font-size: 13px; }

.chat-messages { padding: 20px; min-height: 200px; max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg.user { flex-direction: row-reverse; }
.msg-icon { font-size: 24px; flex-shrink: 0; }
.msg-bubble {
    padding: 12px 16px; border-radius: 16px; max-width: 80%;
    font-size: 14px; line-height: 1.6;
}
.bot .msg-bubble { background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3); color: var(--text); }
.user .msg-bubble { background: rgba(212,168,67,0.2); border: 1px solid rgba(212,168,67,0.3); color: var(--gold-light); }
.msg-typing { color: var(--text-dim); font-style: italic; animation: pulse-text 1s infinite; }
@keyframes pulse-text { 0%,100%{opacity:0.5} 50%{opacity:1} }

.quick-questions { padding: 0 20px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-btn {
    padding: 7px 16px; border-radius: 20px;
    border: 1px solid rgba(124,58,237,0.4); background: rgba(124,58,237,0.1);
    color: var(--text); cursor: pointer; font-family: inherit; font-size: 12px;
    transition: all 0.2s;
}
.quick-btn:hover { background: var(--purple); border-color: var(--purple); }

.chat-input-wrap { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
#chatInput {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 24px; padding: 12px 20px; color: var(--text);
    font-family: inherit; font-size: 14px; outline: none; transition: all 0.3s;
}
#chatInput:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.chat-send-btn {
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--purple), var(--gold));
    color: white; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.chat-send-btn:hover { transform: scale(1.1); }

/* Footer */
.site-footer { text-align: center; padding: 24px; color: var(--text-dim); font-size: 12px; border-top: 1px solid var(--border); position: relative; z-index: 1; }

/* Utility */
.hidden { display: none !important; }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 20px 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* Animations */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeInUp 0.5s ease both; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }
.fade-in-4 { animation-delay: 0.4s; }

/* Rashifal section */
.rashi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
@media(max-width:500px) { .rashi-grid { grid-template-columns: repeat(2,1fr); } }
.rashi-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; cursor: pointer; transition: all 0.2s; }
.rashi-card:hover { background: rgba(212,168,67,0.08); border-color: var(--gold); }
.rashi-sym { font-size: 24px; display: block; margin-bottom: 4px; }
.rashi-name { font-size: 12px; color: var(--text-dim); }
.rashi-active { background: rgba(212,168,67,0.1); border-color: var(--gold); }

/* ============ UI REFRESH ============ */
:root {
    --bg-deep: #081421;
    --bg-dark: #0f2233;
    --bg-card: #12283b;
    --gold: #f5b84a;
    --gold-light: #ffd88a;
    --gold-dim: #8b6c30;
    --saffron: #f08a2a;
    --teal: #2bc2b0;
    --purple: #1a8ad3;
    --purple-light: #56b6e8;
    --text: #f1ecdf;
    --text-dim: #a9bdc9;
    --border: rgba(245, 184, 74, 0.25);
    --glow: rgba(245, 184, 74, 0.18);
}

body {
    background:
        radial-gradient(circle at 15% -10%, rgba(240, 138, 42, 0.2), transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(43, 194, 176, 0.16), transparent 32%),
        linear-gradient(160deg, var(--bg-deep), var(--bg-dark) 45%, #07101a);
}

.site-header {
    background: #fdfbf5;
    border-bottom: 1px solid rgba(212, 168, 67, 0.35);
}

.lang-btn {
    border-radius: 999px;
    padding: 6px 12px;
    color: #665445;
}

.lang-btn:hover, .lang-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--saffron));
    color: #101418;
    border-color: transparent;
}

.hero {
    padding-top: 76px;
    padding-bottom: 48px;
}

.hero-sub {
    color: #c6d2d9;
}

.hero-pillars {
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 820px;
}

.pillar-card {
    background: rgba(16, 36, 54, 0.72);
    border: 1px solid rgba(86, 182, 232, 0.26);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pillar-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    font-size: 18px;
}

.pillar-sub {
    color: var(--text-dim);
    font-size: 12px;
}

.form-card, .chat-section, .loading-overlay, .result-header, .chart-box, .prediction-card {
    background: linear-gradient(160deg, rgba(18, 40, 59, 0.94), rgba(10, 28, 42, 0.94));
    border-color: rgba(245, 184, 74, 0.2);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-progress-wrap {
    margin: -6px 0 22px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(86, 182, 232, 0.25);
    border-radius: 12px;
}

.form-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 8px;
}

.form-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.form-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--saffron));
    transition: width 0.35s ease;
}

.field-group {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.field-group.is-focused {
    border-color: rgba(86, 182, 232, 0.5);
    background: rgba(86, 182, 232, 0.08);
    transform: translateY(-1px);
}

input[type="text"], input[type="date"], input[type="time"], select, #chatInput {
    background: rgba(6, 18, 28, 0.5);
    border-color: rgba(136, 162, 176, 0.34);
}

input:focus, select:focus, #chatInput:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(43, 194, 176, 0.15);
}

.radio-group {
    gap: 10px;
}

.radio-label {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.02);
}

.radio-label:has(input:checked) {
    border-color: rgba(245, 184, 74, 0.55);
    background: rgba(245, 184, 74, 0.12);
}

.submit-btn {
    position: sticky;
    bottom: 14px;
    z-index: 15;
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--teal), var(--gold));
}

.floating-actions {
    position: fixed;
    right: 16px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 120;
}

.fab-btn {
    min-width: 58px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 24, 36, 0.85);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fab-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: rgba(18, 45, 65, 0.9);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 780px) {
    .hero-pillars {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .form-card {
        padding: 20px;
        border-radius: 16px;
    }
}

/* ============ NAVIGATION & PAGES ============ */
.main-nav { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: center; gap: 16px 20px; align-items: center; }
.main-nav a { color: #665445; text-decoration: none; font-size: 17px; font-weight: 500; white-space: nowrap; transition: all 0.3s ease; position: relative; }
.nav-icon { margin-right: 6px; font-size: 0.78em; color: var(--gold); transition: transform 0.2s ease, color 0.2s ease; }
.main-nav a:hover .nav-icon, .main-nav a.active .nav-icon { color: var(--saffron); transform: translateY(-1px); }
html:lang(hi) .main-nav a {
    font-family: 'Noto Sans Devanagari', 'Crimson Pro', serif;
    letter-spacing: 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--gold); border-radius: 2px; }

/* Page Container for About/Contact */
.page-container { 
    max-width: 800px; 
    margin: 20px auto; 
    padding: 36px; 
    background: var(--bg-card); 
    border-radius: 20px; 
    border: 1px solid var(--border); 
    box-shadow: 0 22px 50px rgba(0,0,0,0.25); 
    position: relative; 
    z-index: 1; 
}
.page-container h1 { color: var(--gold); text-align: center; margin-bottom: 24px; font-family: 'Playfair Display', serif; font-size: 32px; }
html:lang(hi) .page-container h1,
html:lang(hi) .page-container h3,
html:lang(hi) .page-container h4,
html:lang(hi) .page-container label,
html:lang(hi) .page-container .astro-sub,
html:lang(hi) .page-container .today-label,
html:lang(hi) .page-container .today-date {
    font-family: 'Noto Sans Devanagari', 'Crimson Pro', serif;
    line-height: 1.55;
}
.page-container p { line-height: 1.8; color: var(--text); margin-bottom: 20px; text-align: justify; }

.contact-info { display: grid; gap: 20px; margin-top: 30px; }
.contact-card { 
    background: rgba(255,255,255,0.03); 
    padding: 20px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: transform 0.2s; 
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.contact-card .icon { font-size: 24px; margin-right: 20px; width: 40px; text-align: center; }
.contact-card .details h3 { margin: 0 0 4px 0; color: var(--gold); font-size: 14px; }
.contact-card .details span { color: var(--text-dim); font-size: 15px; }

@media (max-width: 768px) {
    .site-header { padding: 8px 14px; }
    .header-inner { flex-direction: row; gap: 10px; align-items: center; }
    .logo { margin-right: auto; min-width: 0; gap: 8px; }
    .logo-icon { width: 54px; height: 54px; }
    .logo-text { font-size: clamp(21px, 6vw, 28px); }
    .logo-sub { font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
    .mobile-menu-toggle {
        display: flex;
        width: 42px;
        height: 38px;
        padding: 8px;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid rgba(18, 63, 122, 0.3);
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #123f7a;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    .mobile-menu-checkbox:checked + .mobile-menu-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
    .main-nav {
        display: none;
        order: 3;
        width: 100%;
        padding: 8px 0 4px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    .mobile-menu-checkbox:checked ~ .main-nav { display: flex; }
    .main-nav a { padding: 10px 12px; border-radius: 8px; font-size: 16px; }
    .main-nav a:hover, .main-nav a.active { background: rgba(18, 63, 122, 0.08); }
    .main-nav a.active::after { display: none; }
    .lang-selector { order: 2; position: static; flex: 0 0 auto; }
    .lang-btn { padding: 4px 8px; font-size: 12px; }
    .page-container { padding: 24px; margin: 10px auto; }
}

/* ============ PREMIUM & NEW FEATURES ============ */
.premium-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.premium-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(10, 4, 21, 0.6);
    z-index: 10;
    border-radius: 16px;
    text-align: center;
    padding: 20px;
}

.lock-icon { font-size: 40px; margin-bottom: 10px; display: block; }
.premium-title { color: var(--gold); font-size: 20px; font-weight: bold; margin-bottom: 8px; }
.premium-desc { color: var(--text); font-size: 14px; margin-bottom: 20px; max-width: 300px; }
.unlock-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white; border: none; padding: 12px 24px;
    border-radius: 25px; font-weight: bold; cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}
.unlock-btn:hover { transform: scale(1.05); }

.lucky-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.lucky-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; text-align: center;
}
.lucky-label { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 4px; }
.lucky-val { font-size: 16px; color: var(--gold-light); font-weight: 600; }

.panchang-widget {
    background: rgba(18, 40, 59, 0.8); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; margin: 20px auto; max-width: 600px;
    display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px;
}
.panchang-item { text-align: center; }
.panchang-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.panchang-val { font-size: 15px; color: var(--teal); font-weight: 500; margin-top: 4px; }

/* ============ HOROSCOPE & MATCHING PAGES ============ */
.rashi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin: 24px 0;
}
.rashi-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; text-align: center; cursor: pointer;
    transition: all 0.2s ease;
}
.rashi-card:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(245, 184, 74, 0.1); }
.rashi-card.active { border-color: var(--gold); background: rgba(245, 184, 74, 0.15); box-shadow: 0 0 15px rgba(245, 184, 74, 0.2); }
.rashi-sym { font-size: 32px; display: block; margin-bottom: 8px; }
.rashi-icon {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 8px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.28);
}
.rashi-name { font-size: 13px; color: var(--text-dim); }

.horoscope-result { margin-top: 24px; padding: 20px; background: rgba(0,0,0,0.1); border-radius: 12px; }

.matching-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}
.matching-form-wrap h3 { color: var(--gold-light); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

@media (max-width: 800px) { .matching-container { grid-template-columns: 1fr; } }

.astro-panel {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.08));
    border-radius: 16px;
}

.astro-sub {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.astro-toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.result-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--gold-light);
    background: rgba(245, 184, 74, 0.08);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.insight-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

.insight-card h4 {
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 14px;
}

.insight-card p {
    margin: 0;
    text-align: left;
    color: var(--text);
    line-height: 1.55;
}

.astro-stats {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-pill {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text);
    background: rgba(255,255,255,0.02);
}

.match-meter {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.match-meter-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #18b26a, #f0c96b);
}

.rashi-card {
    font-family: inherit;
    color: var(--text);
}

@media (max-width: 700px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ WARM BRAND THEME ============ */
:root {
    --bg-deep: #f7f2e8;
    --bg-dark: #fffaf2;
    --bg-card: #fffdf8;
    --gold: #c47a00;
    --gold-light: #df9414;
    --gold-dim: #936000;
    --saffron: #e87500;
    --teal: #176f75;
    --purple: #395b96;
    --purple-light: #5c78ad;
    --text: #24364b;
    --text-dim: #667085;
    --border: rgba(160, 112, 34, 0.24);
    --glow: rgba(196, 122, 0, 0.12);
}

body {
    background:
        radial-gradient(circle at 12% 0%, rgba(232, 117, 0, 0.12), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(23, 111, 117, 0.10), transparent 30%),
        linear-gradient(160deg, #f7f2e8, #fffaf2 48%, #f1eadc);
    color: var(--text);
}

.stars-container { opacity: 0.08; }

.form-card,
.chat-section,
.loading-overlay,
.result-header,
.chart-box,
.prediction-card,
.page-container,
.daily-card,
.astro-panel {
    background: rgba(255, 253, 248, 0.94);
    border-color: var(--border);
    box-shadow: 0 14px 36px rgba(47, 39, 27, 0.08);
}

.field-group input,
.field-group select,
#chatInput,
select {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

select option { background: #fff; color: var(--text); }

.city-dropdown,
.rashi-card,
.insight-card,
.contact-card,
.lucky-card,
.daily-card {
    background: rgba(255, 255, 255, 0.68);
    border-color: var(--border);
}

.house-cell,
.center-cell {
    background: #fffaf0;
}

.main-nav a,
.logo-sub,
.field-group small,
.result-meta,
.city-option .city-meta,
.rashi-name,
.today-label,
.astro-sub,
.site-footer {
    color: var(--text-dim);
}

.site-footer {
    border-top-color: var(--border);
}

::-webkit-scrollbar-track { background: #eee6d7; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* Ensure header navigation keeps strong contrast after theme overrides. */
.site-header .main-nav a { color: #123f7a; }
.site-header .main-nav a:hover,
.site-header .main-nav a.active { color: #c46f00; }
.site-header .nav-icon { color: #c46f00; }

/* Professional multi-column footer. */
.site-footer {
    margin-top: 56px;
    padding: 42px 24px 18px;
    background: linear-gradient(160deg, #0b1c2b, #07131f);
    border-top: 1px solid rgba(245, 184, 74, 0.28);
    color: #d9e3e8;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(130px, 0.8fr)) minmax(210px, 1fr);
    gap: 34px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fdfbf5; }
.footer-brand-name { color: #f5b84a; font: 700 24px 'Playfair Display', serif; }
.footer-tagline { margin: 5px 0 0; color: #a9bdc9; font-size: 12px; }
.footer-column { display: flex; flex-direction: column; gap: 10px; }
.footer-column h3 { margin: 0 0 7px; color: #ffd88a; font-size: 14px; text-transform: uppercase; letter-spacing: 1.4px; }
.footer-column a, .footer-column p { margin: 0; color: #b8c9d2; text-decoration: none; font-size: 14px; line-height: 1.5; }
.footer-column a { transition: color 0.2s ease, transform 0.2s ease; }
.footer-column a:hover { color: #f5b84a; transform: translateX(3px); }
.footer-column i { width: 18px; margin-right: 5px; color: #e87500; text-align: center; }
.footer-socials { display: flex; gap: 8px; margin-top: 5px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(245,184,74,0.3); border-radius: 50%; }
.footer-socials a:hover { background: rgba(245,184,74,0.12); transform: none; }
.footer-bottom { max-width: 1200px; margin: 34px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8299a7; font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom span { color: #8299a7; }
.footer-bottom i { color: #f5b84a; }
html:lang(hi) .footer-brand-name, html:lang(hi) .footer-column, html:lang(hi) .footer-bottom { font-family: 'Noto Sans Devanagari', 'Crimson Pro', serif; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; gap: 26px; } .footer-brand { grid-column: auto; } }

/* Home content glass panel over the animated celestial background. */
.main-container.home-page { max-width: 1200px; }
.home-page > .page-container {
    max-width: 1120px;
    background: rgba(18, 40, 59, 0.46);
    border-color: rgba(245, 184, 74, 0.24);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.home-page .daily-card { background: rgba(18, 40, 59, 0.48); }
.home-page .insight-card { background: rgba(255, 255, 255, 0.055); }

/* Shared page width and animated celestial background for every page. */
body {
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: 150px;
    right: -150px;
    width: min(46vw, 560px);
    height: min(46vw, 560px);
    background: url('../img/mandala-art.svg') center / contain no-repeat;
    opacity: 0.08;
    animation: sharedMandalaMotion 30s linear infinite;
}

body::after {
    left: 2vw;
    bottom: 10%;
    width: min(26vw, 300px);
    height: 150px;
    background: url('../img/stars-art.svg') center / contain no-repeat;
    opacity: 0.22;
    animation: sharedStarsMotion 9s ease-in-out infinite alternate;
}

.main-container {
    max-width: 1200px;
    padding-top: 28px;
}

.page-container {
    max-width: 1120px;
}

@keyframes sharedMandalaMotion {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.06); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes sharedStarsMotion {
    from { transform: translateY(0) translateX(0); opacity: 0.16; }
    to { transform: translateY(-18px) translateX(12px); opacity: 0.3; }
}

@media (max-width: 700px) {
    body::before { width: 360px; height: 360px; right: -150px; top: 180px; }
    body::after { width: 220px; height: 110px; left: -30px; }
    .main-container { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .home-page::before,
    .home-page::after { animation: none; }
}

/* Transparent outer content windows: borders define the panels. */
.page-container,
.form-card,
.astro-panel,
.chat-section,
.prediction-card,
.result-header,
.loading-overlay {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-page .page-container > h1 {
    font-size: clamp(28px, 5vw, 52px);
    color: var(--gold);
    text-shadow: 0 0 30px rgba(245, 184, 74, 0.35);
    line-height: 1.25;
}

.chat-page .page-container > h1,
.matching-page .page-container > h1,
.horoscope-page .page-container > h1 {
    font-size: clamp(28px, 5vw, 52px);
    color: var(--gold);
    text-shadow: 0 0 30px rgba(245, 184, 74, 0.35);
    line-height: 1.25;
}

html:lang(hi) .home-page .page-container > h1,
html:lang(hi) .chat-page .page-container > h1,
html:lang(hi) .matching-page .page-container > h1,
html:lang(hi) .horoscope-page .page-container > h1 {
    font-family: 'Noto Sans Devanagari', 'Crimson Pro', serif;
    line-height: 1.45;
}

.horoscope-result,
.result-section,
.kundali-chart-wrap,
.matching-container {
    background: transparent;
}

.horoscope-result {
    border: 1px solid var(--border);
}

.home-page > .page-container {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Compact footer layout. */
.site-footer { margin-top: 38px; padding: 26px 24px 12px; }
.footer-inner { grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(110px, 0.75fr)); gap: 20px; }
.footer-column { gap: 6px; }
.footer-column h3 { margin-bottom: 4px; }
.footer-bottom { margin-top: 20px; padding-top: 12px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; gap: 20px; } .footer-brand { grid-column: auto; } }

/* High-contrast header navigation on the warm logo background. */
.main-nav a { color: #123f7a; }
.main-nav a:hover,
.main-nav a.active { color: #c46f00; }
.nav-icon { color: #c46f00; }

/* Keep the original dark content theme with a soft transition below the header. */
:root {
    --bg-deep: #081421;
    --bg-dark: #0f2233;
    --bg-card: #12283b;
    --gold: #f5b84a;
    --gold-light: #ffd88a;
    --gold-dim: #8b6c30;
    --saffron: #e87500;
    --teal: #56b6b8;
    --purple: #586fae;
    --purple-light: #7e91c4;
    --text: #e7edf0;
    --text-dim: #a9bdc9;
    --border: rgba(245, 184, 74, 0.25);
    --glow: rgba(245, 184, 74, 0.18);
}

body {
    background:
        linear-gradient(180deg, #fdfbf5 0, #eee5d5 18px, rgba(8, 20, 33, 0.96) 105px),
        linear-gradient(160deg, #081421, #0f2233 45%, #07101a);
    background-attachment: fixed;
    color: var(--text);
}

.stars-container { opacity: 0.7; }

.form-card,
.chat-section,
.loading-overlay,
.result-header,
.chart-box,
.prediction-card,
.page-container,
.daily-card,
.astro-panel {
    background: linear-gradient(160deg, rgba(18, 40, 59, 0.94), rgba(10, 28, 42, 0.94));
    border-color: rgba(245, 184, 74, 0.2);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.field-group input,
.field-group select,
#chatInput,
select {
    background: rgba(10, 24, 36, 0.85);
    color: var(--text);
    border-color: var(--border);
}

select option { background: #12283b; color: var(--text); }

.city-dropdown,
.rashi-card,
.insight-card,
.contact-card,
.lucky-card,
.daily-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}

.house-cell,
.center-cell { background: rgba(6, 18, 28, 0.5); }

.main-nav a,
.logo-sub,
.field-group small,
.result-meta,
.city-option .city-meta,
.rashi-name,
.today-label,
.astro-sub,
.site-footer {
    color: var(--text-dim);
}

.site-footer { border-top-color: var(--border); }

::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* Bring the Kundali page's animated celestial treatment to the home page. */
.home-page {
    padding-top: 34px;
    isolation: isolate;
}

.home-page::before {
    content: '';
    position: fixed;
    top: 120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: url('../img/compass-art.svg') center / contain no-repeat;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
    animation: homeCircleSpin 28s linear infinite;
}

.home-page::after {
    content: '';
    position: fixed;
    left: 4%;
    bottom: 8%;
    width: 260px;
    height: 130px;
    background: url('../img/stars-art.svg') center / contain no-repeat;
    opacity: 0.28;
    pointer-events: none;
    z-index: -1;
    animation: homeStarsFloat 7s ease-in-out infinite alternate;
}

.home-page > .page-container::before {
    content: '';
    position: fixed;
    top: 45px;
    left: 50%;
    width: 480px;
    height: 480px;
    margin-left: -240px;
    background: url('../img/mandala-art.svg') center / contain no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
    animation: homeCenterMandalaSpin 34s linear infinite;
}

@keyframes homeStarsFloat {
    from { transform: translateY(0); opacity: 0.2; }
    to { transform: translateY(-14px); opacity: 0.36; }
}

@keyframes homeCircleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes homeCenterMandalaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
    .home-page > .page-container::before {
        width: 340px;
        height: 340px;
        margin-left: -170px;
    }
}

.today-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.today-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.today-date {
    font-size: 24px;
    color: var(--gold-light);
    font-family: 'Playfair Display', serif;
}

.daily-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 14px;
}

.daily-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.daily-card h3 {
    color: var(--gold-light);
    margin-bottom: 12px;
    font-size: 16px;
}

.mini-calendar .cal-header {
    text-align: center;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.cal-week span {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
}

.cal-day {
    min-height: 34px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text);
    background: rgba(255,255,255,0.02);
}

.cal-day.today {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(245, 184, 74, 0.12);
}

.cal-day.muted {
    background: transparent;
    border-color: transparent;
}

.chat-session-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .daily-layout {
        grid-template-columns: 1fr;
    }
}

/* Final transparent-window overrides for all primary content pages. */
.page-container,
.page-container.astro-panel,
.form-card,
.chat-section,
.horoscope-result,
.result-section,
.matching-container,
.kundali-chart-wrap,
.result-header,
.chart-box,
.prediction-card {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.chat-section .chat-header {
    background: transparent;
}

.horoscope-page .page-container,
.matching-page .page-container,
.chat-page .page-container,
.horoscope-page .chat-section,
.matching-page .matching-container,
.chat-page .chat-section,
.chat-page .chat-header {
    background: transparent;
    box-shadow: none;
}

/* Page-specific mandala accents. */
.horoscope-page {
    isolation: isolate;
}

.horoscope-page::before {
    content: '';
    position: fixed;
    top: 180px;
    width: min(34vw, 420px);
    height: min(34vw, 420px);
    background: url('../img/mandala-art.svg') center / contain no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
    animation: sharedMandalaMotion 32s linear infinite reverse;
}

.horoscope-page::before { left: -120px; }

body:has(.home-page)::before { display: none; }

.horoscope-page .rashi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.horoscope-page .rashi-card { min-height: 176px; padding: 30px 16px; }
.horoscope-page .rashi-icon { width: 140px; height: 140px; }
.horoscope-page .rashi-name { font-size: 20px; font-weight: 600; }

@media (max-width: 800px) {
    .horoscope-page .rashi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .horoscope-page .rashi-grid { grid-template-columns: 1fr; }
}
