﻿﻿﻿﻿/* ============ 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: rgba(10,4,21,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: clamp(34px, 2.8vw, 40px);
    height: clamp(34px, 2.8vw, 40px);
    border-radius: 8px;
    border: 1px solid rgba(245, 184, 74, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 2.6vw, 30px);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 0 20px rgba(245, 184, 74, 0.25);
}
.logo-sub { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; display: none; }
@media(min-width:600px) { .logo-sub { display: block; } }
html:lang(hi) .logo-text {
    font-family: 'Noto Sans Devanagari', 'Crimson Pro', serif;
    letter-spacing: 0;
}

.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: var(--text-dim); font-size: 12px; 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;
}

/* 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('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('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('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('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: rgba(8, 20, 33, 0.78);
    border-bottom: 1px solid rgba(245, 184, 74, 0.18);
}

.lang-btn {
    border-radius: 999px;
    padding: 6px 12px;
    color: #c9d9e2;
}

.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; gap: 24px; align-items: center; }
.main-nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 500; transition: all 0.3s ease; position: relative; }
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; }
.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) {
    .header-inner { flex-direction: column; gap: 16px; }
    .main-nav { order: 2; width: 100%; justify-content: center; gap: 20px; }
    .lang-selector { order: 1; position: absolute; right: 24px; top: 24px; }
    .logo { margin-right: auto; }
    .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;
    }
}

.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;
    }
}
