/* =========================================
   ASTROLITE APP - COMPLETE STYLESHEET
   App-like Experience with Sidebar Navigation
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Lato:wght@400;700&display=swap');

/* =========================================
   1. CSS VARIABLES & ROOT SETTINGS
   ========================================= */
:root {
    /* Color Palette */
    --gold: #d4af37;
    --gold-dim: #997b2f;
    --gold-light: #f3e5ab;
    --gold-glow: rgba(212, 175, 55, 0.6);

    /* Parchment & Glass */
    --parchment-bg: rgba(244, 228, 188, 0.85);
    --parchment-light: rgba(255, 253, 245, 0.9);
    --glass-bg: rgba(27, 39, 53, 0.85);
    --glass-border: rgba(212, 175, 55, 0.4);

    /* Text Colors */
    --ink: #2c1810;
    --ink-light: #5a4a42;
    --text-light: #f5ead6;

    /* Space Background */
    --space-dark: #050b14;
    --space-light: #1b2735;

    /* Functional */
    --danger: #ef4444;
    --success: #10b981;

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;

    /* Layout */
    --header-height: 80px;
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--space-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =========================================
   2. OPTIMIZED GALAXY BACKGROUND
   Mobile-Friendly Performance
   ========================================= */
.galaxy-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, #0a0a1a 0%, #000005 100%);
}

/* Optimized Stars - Single Layer */
.stars-optimized {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 15% 90%, rgba(212, 175, 55, 0.8), transparent);
    background-size: 200% 200%;
    animation: starsMove 120s linear infinite;
    opacity: 0.8;
}

@keyframes starsMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-50%, -50%);
    }
}

/* Optimized Nebula - Single Layer */
.nebula-optimized {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%,
            rgba(138, 43, 226, 0.15) 0%,
            transparent 50%),
        radial-gradient(ellipse at 70% 60%,
            rgba(218, 165, 32, 0.12) 0%,
            transparent 50%);
    opacity: 0.6;
    animation: nebulaPulse 20s ease-in-out infinite;
}

@keyframes nebulaPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

/* Solar System - DISABLED (Using Three.js instead) */
.solar-system {
    display: none !important;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 35px;
    margin: -17.5px;
    background: radial-gradient(circle, #fff5cc, #ffcc00, #ff9900, #ff6600);
    border-radius: 50%;
    box-shadow: 0 0 30px #ff9900, 0 0 60px #ff6600;
    animation: sunPulse 4s ease-in-out infinite;
}

.sun-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(255, 200, 50, 0.4), transparent 60%);
    border-radius: 50%;
}

@keyframes sunPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-1 {
    width: 60px;
    height: 60px;
    margin: -30px;
    animation: orbit 4s linear infinite;
}

.orbit-2 {
    width: 90px;
    height: 90px;
    margin: -45px;
    animation: orbit 7s linear infinite;
}

.orbit-3 {
    width: 120px;
    height: 120px;
    margin: -60px;
    animation: orbit 12s linear infinite;
}

.orbit-4 {
    width: 160px;
    height: 160px;
    margin: -80px;
    animation: orbit 20s linear infinite;
}

.orbit-5 {
    width: 210px;
    height: 210px;
    margin: -105px;
    animation: orbit 40s linear infinite;
}

.orbit-6 {
    width: 270px;
    height: 270px;
    margin: -135px;
    animation: orbit 60s linear infinite;
}

@keyframes orbit {
    from {
        transform: rotateZ(0deg);
    }

    to {
        transform: rotateZ(360deg);
    }
}

.planet {
    position: absolute;
    top: -4px;
    left: 50%;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.5);
}

.mercury {
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #e5e5e5, #8c8c8c);
}

.venus {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd699, #e6ac00);
}

.earth {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #87ceeb, #228b22);
}

.mars {
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, #ff6b4a, #cc4422);
}

.jupiter {
    width: 15px;
    height: 15px;
    background: linear-gradient(180deg, #d4a574 0%, #c9a066 50%, #8b6914 100%);
}

.saturn {
    width: 13px;
    height: 13px;
    background: radial-gradient(circle, #f4e4bc, #c9a227);
    position: relative;
}

.saturn-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 6px;
    margin: -3px 0 0 -12px;
    border: 2px solid rgba(210, 180, 140, 0.6);
    border-radius: 50%;
    transform: rotateX(75deg);
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================
   3. APP HEADER - Fixed, Non-blocking
   ========================================= */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(5, 11, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s;
}

.logo-section {
    text-align: center;
    flex: 1;
}

.logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to bottom, #fcf6ba, #bf953f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px var(--gold-glow);
    letter-spacing: 2px;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--gold-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* =========================================
   4. SIDEBAR NAVIGATION
   ========================================= */
.sidebar-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: rgba(15, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 900;
    transition: transform 0.3s ease;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--gold);
    color: var(--gold-light);
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.15);
    border-left-color: var(--gold);
    color: var(--gold);
}

.nav-icon {
    font-size: 20px;
    min-width: 25px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-divider {
    padding: 20px 25px 10px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 10px;
}

.nav-divider:first-child {
    border-top: none;
    margin-top: 0;
}

/* Scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

/* =========================================
   5. MAIN APP CONTAINER
   ========================================= */
.app-container {
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--header-height);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
    max-width: 1400px;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 10;
}

/* When sidebar is visible */
.sidebar-nav:not([style*="display: none"])~.mobile-overlay~.app-container {
    margin-left: var(--sidebar-width);
    margin-right: 0;
}

/* Vedic Calculation Engine Banner */
.trust-banner {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.trust-icon {
    font-size: 28px;
}

.trust-text strong {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 16px;
    display: block;
    margin-bottom: 3px;
}

.trust-text p {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.9;
    margin: 0;
}

/* =========================================
   6. CONTENT SECTIONS
   ========================================= */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    font-family: var(--font-heading);
    background: linear-gradient(180deg, #FF9933 0%, #D4AF37 35%, #C9A227 50%, #D4AF37 65%, #FF9933 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

/* =========================================
   7. FORM SECTION - Dashboard Only
   ========================================= */
.form-section {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #f5ead6;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gold-dim);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    color: #2c1810;
    font-weight: 600;
    transition: all 0.3s;
}

input:focus,
select:focus {
    outline: none;
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-primary {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #c9a227, #8b6914);
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    margin-right: 10px;
}

/* Autocomplete */
.autocomplete-wrapper {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment-light);
    border: 1px solid var(--gold);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 6px 6px;
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px dashed var(--gold-dim);
    color: var(--ink);
}

.suggestion-item:hover {
    background: var(--gold-glow);
}

.city-name {
    font-weight: 700;
}

.city-details {
    font-size: 11px;
    color: var(--ink-light);
}

.location-type {
    font-size: 9px;
    padding: 2px 5px;
    background: var(--gold-glow);
    border-radius: 3px;
    margin-left: 8px;
}

/* =========================================
   8. DASHBOARD GRID LAYOUT
   ========================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.full-width {
    grid-column: 1 / -1;
}

/* =========================================
   9. VEDIC PARCHMENT CARDS - GLASSMORPHISM DESIGN (EXACT OLD VERSION)
   ========================================= */
.card,
.parchment-texture,
.analysis-card {
    /* DARK GLASSMORPHISM - Better visibility */
    background: rgba(27, 39, 53, 0.85);

    /* GLASS BORDER - Golden glowing edge */
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;

    /* LAYERED SHADOW - Creates depth and floating effect */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(212, 175, 55, 0.2);

    padding: 28px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    color: #f5ead6;
}

/* VEDIC MANDALA CORNER - Top Left */
.card::before,
.parchment-texture::before,
.analysis-card::before {
    content: '࿊';
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 18px;
    color: #8B6914;
    opacity: 0.5;
}

/* VEDIC MANDALA CORNER - Top Right */
.card::after,
.parchment-texture::after,
.analysis-card::after {
    content: '࿊';
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 18px;
    color: #8B6914;
    opacity: 0.5;
}

/* HOVER - Enhanced glass effect with glow */
.card:hover,
.analysis-card:hover {
    background: rgba(32, 46, 62, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(212, 175, 55, 0.35);
    transform: translateY(-3px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card h4,
/* CARD TITLES - Vedic Golden Style */
.card h4,
.form-title,
.analysis-header h3,
.analysis-header h4 {
    font-family: var(--font-heading);
    /* Cream white color for better visibility */
    color: #f5ead6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 20px;
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
}

/* Decorative underline */
.card h4::after,
.form-title::after,
.analysis-header h3::after,
.analysis-header h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            #c9a227 20%,
            #c9a227 80%,
            transparent 100%);
}

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
    font-size: 14px;
}

.info-row .label {
    font-weight: 700;
    color: var(--gold-dim);
}

.info-row .value {
    color: var(--text-light);
    font-weight: 600;
}

/* =========================================
   10. CHARTS DISPLAY
   ========================================= */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.chart-wrapper {
    background: rgba(27, 39, 53, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.chart-wrapper h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container,
.chart-container-sm {
    position: relative;
    margin: 0 auto;
}

.chart-container {
    display: none;
}

.chart-container.active {
    display: block;
}

.kundli-chart {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.kundli-chart rect {
    fill: none;
    stroke: var(--gold-dim);
    stroke-width: 2;
}

.kundli-chart line {
    stroke: var(--gold-dim);
    stroke-width: 1.5;
}

.rashi-num {
    fill: #FF6347;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    text-anchor: middle;
}

.planet-text {
    fill: var(--gold-light);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
}

.chart-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.chart-selector-enhanced {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 2px solid var(--gold-dim) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.chart-selector-enhanced:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3) !important;
}

/* =========================================
   11. HIGHLIGHTS SECTION
   ========================================= */
.highlights-section {
    margin: 30px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.highlight-card {
    text-align: center;
}

.highlight-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    margin: 15px 0;
    font-size: 14px;
}

.status-badge.is-manglik {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: #ff6b6b;
}

.status-badge.not-manglik {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

.highlight-text {
    font-size: 13px;
    color: var(--text-light);
    margin: 10px 0;
}

.compact-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.compact-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
    font-size: 13px;
}

.logic-btn {
    background: rgba(27, 39, 53, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    padding: 8px 16px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.logic-btn:hover {
    background: rgba(27, 39, 53, 1);
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.logic-btn-small {
    background: rgba(27, 39, 53, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    padding: 6px 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.logic-btn-small:hover {
    background: rgba(27, 39, 53, 1);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.reason-box {
    display: none;
    margin-top: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 13px;
    font-style: italic;
    color: var(--ink-light);
    border: 1px solid var(--gold-dim);
}

/* Card Body - White Content Area */
.card-body,
.analysis-card .card-body {
    background: rgba(255, 250, 240, 0.95);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    color: #2c1810;
}

.card-body p,
.card-body li,
.card-body h5,
.card-body span,
.card-body div {
    color: #2c1810 !important;
}

/* =========================================
   12. PREDICTIONS & ANALYSIS (EXACT OLD VERSION)
   ========================================= */
.prediction-list {
    list-style: none;
    padding: 0;
}

.prediction-list li {
    /* Light background like timeline for better readability */
    background: rgba(255, 250, 240, 0.95);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-left: 4px solid var(--gold);
    font-size: 16px;
    line-height: 1.8;
    color: #2c1810;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.prediction-list li p,
.prediction-list li strong,
.prediction-list li span {
    color: #2c1810 !important;
}

.pred-text {
    font-size: 16px;
    color: #2c1810;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* =========================================
   13. PLANET TABLE
   ========================================= */
.table-responsive {
    overflow-x: auto;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
}

.compact-table th,
.compact-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 13px;
}

.compact-table th {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.compact-table td {
    color: var(--text-light);
}

/* =========================================
   14. DRISHTI (ASPECTS)
   ========================================= */
.drishti-list {
    font-size: 13px;
}

.drishti-item {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 253, 245, 0.5);
    border-left: 3px solid var(--gold-dim);
    border-radius: 6px;
}

.drishti-item strong {
    color: var(--gold);
}

/* =========================================
   15. TIMELINE (DASHA)
   ========================================= */
.timeline-list {
    padding: 0;
}

.dasha-card {
    background: rgba(27, 39, 53, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #f5ead6;
}

.dasha-card.current-dasha {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.dasha-header {
    padding: 15px;
    background: rgba(212, 175, 55, 0.15);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    color: #f5ead6;
}

.dasha-header:hover {
    background: rgba(212, 175, 55, 0.25);
}

.dasha-title {
    flex: 1;
    font-size: 18px;
    color: #f5ead6;
    font-weight: 700;
}

.dasha-title strong {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 18px;
}

.current-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
}

.dasha-period {
    font-size: 14px;
    color: #f5ead6;
    opacity: 0.9;
    font-weight: 600;
}

.expand-icon {
    transition: transform 0.3s;
    color: var(--gold);
    font-size: 16px;
}

.dasha-body {
    padding: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 250, 240, 0.95);
}

.dasha-body p,
.dasha-body li,
.dasha-body h5,
.dasha-body span {
    color: #2c1810 !important;
}

.dasha-meaning h4 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 17px;
}

.dasha-meaning p {
    font-size: 15px;
    color: #2c1810;
    line-height: 1.6;
    margin-bottom: 10px;
}

.antardasha-section {
    margin-top: 20px;
}

.antardasha-section h5 {
    font-family: var(--font-heading);
    color: var(--gold-dim);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.antardasha-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.antardasha-table th,
.antardasha-table td {
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: left;
    font-size: 14px;
}

.antardasha-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-weight: 700;
    font-size: 15px;
}

.antardasha-table td {
    color: #2c1810;
}

.antardasha-table tr.current-antardasha {
    background: rgba(212, 175, 55, 0.15);
}

.antardasha-section {
    margin-top: 20px;
}

.antardasha-section h5 {
    font-family: var(--font-heading);
    color: var(--gold-dim);
    font-size: 14px;
    margin-bottom: 15px;
}

.antardasha-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.antardasha-table th,
.antardasha-table td {
    padding: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: left;
}

.antardasha-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-weight: 700;
}

.antardasha-table tr.current-antardasha {
    background: rgba(212, 175, 55, 0.15);
}

/* =========================================
   16. EXPORT SECTION
   ========================================= */
.export-section {
    text-align: center;
    margin: 40px 0;
}

.export-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #c9a227, #8b6914);
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.export-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.export-pdf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================
   17. UTILITIES
   ========================================= */
.hidden {
    display: none !important;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--space-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-dim), var(--gold));
    border-radius: 5px;
}

/* =========================================
   18. MOBILE RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 250px;
    }

    .app-container {
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Hide complex background elements for performance */
    .solar-system,
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    /* Mobile Header */
    .menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 24px;
    }

    .tagline {
        font-size: 8px;
    }

    /* Mobile Sidebar - Hidden by default */
    .sidebar-nav {
        position: fixed;
        left: 0;
        top: var(--header-height);
        transform: translateX(-100%);
        box-shadow: none;
        z-index: 900;
        width: var(--sidebar-width);
        height: calc(100vh - var(--header-height));
        display: block !important;
        /* Override inline style */
    }

    .sidebar-nav.active {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.8);
    }

    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 850;
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Mobile App Container - No sidebar margin */
    .app-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }

    /* Mobile Forms */
    .form-section {
        padding: 20px 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: 1;
    }

    /* Mobile Cards */
    .card,
    .analysis-card {
        padding: 20px;
        backdrop-filter: blur(5px) !important;
        margin-bottom: 20px;
    }

    /* Mobile Charts */
    .charts-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kundli-chart {
        max-width: 100%;
    }

    /* Mobile Dashboard Grid */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile Highlights */
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Table */
    .table-responsive {
        font-size: 12px;
        overflow-x: auto;
    }

    .compact-table th,
    .compact-table td {
        padding: 8px;
        font-size: 12px;
    }

    /* Mobile Section Title */
    .section-title {
        font-size: 24px;
        letter-spacing: 2px;
    }

    /* Mobile Trust Banner */
    .trust-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    /* Mobile Dasha Cards - Performance Optimization */
    .dasha-card {
        background: rgba(27, 39, 53, 0.95);
        backdrop-filter: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        will-change: auto;
    }

    .dasha-card.current-dasha {
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
    }

    .dasha-header {
        padding: 12px;
        background: rgba(212, 175, 55, 0.15);
    }

    .dasha-title {
        font-size: 15px;
    }

    .dasha-period {
        font-size: 12px;
    }

    .dasha-body {
        padding: 15px;
        background: rgba(255, 250, 240, 0.98);
    }

    .antardasha-table {
        font-size: 12px;
    }

    .antardasha-table th,
    .antardasha-table td {
        padding: 8px;
        font-size: 11px;
    }

    /* Mobile Predictions - Performance */
    .prediction-list li {
        padding: 15px;
        margin-bottom: 15px;
        background: rgba(255, 250, 240, 0.98);
        backdrop-filter: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    /* Mobile Cards - Remove expensive effects */
    .card,
    .analysis-card {
        backdrop-filter: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }

    .card:hover,
    .analysis-card:hover {
        transform: none !important;
    }

    /* Reduce animations on mobile */
    .stars-optimized {
        animation-duration: 200s;
    }

    .nebula-optimized {
        animation-duration: 40s;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }

    .logo {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .card h4 {
        font-size: 14px;
    }

    input,
    select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 14px 24px;
        font-size: 16px;
    }
}