/*
 * Vedic Birth Chart & Kundali Stylesheet
 * Dr. Ananjan Astro Intelligence
 * AI-Assisted Strategic Life Intelligence Platform
 * (c) Dr. Ananjan Maiti — astro.ananjanmaiti.com
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-cosmic: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-focus: rgba(179, 134, 0, 0.4);
    --text-primary: #1e2238;
    --text-secondary: #5a6082;
    --gold: #b38600; /* Rich gold for readability on light themes */
    --gold-glow: rgba(179, 134, 0, 0.15);
    --gold-dark: #8c6900;
    --purple-glow: rgba(92, 61, 179, 0.06);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vedic-chart-app {
    font-family: 'DM Sans', 'Inter', sans-serif;
    background: var(--bg-cosmic);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vedic-chart-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header Section */
.vedic-header {
    text-align: center;
    margin-bottom: 1rem;
}

.vedic-brand-badge {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #D4AF37;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    padding: 0.25rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.06);
}

.vedic-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0.3rem 0 0 0;
    background: linear-gradient(135deg, #1A1A2E 30%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.vedic-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
}

/* Card Styling (Glassmorphism) */
.vedic-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.vedic-card:hover {
    border-color: rgba(179, 134, 0, 0.15);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1), 0 0 20px var(--purple-glow);
}

/* Input Form grid */
.vedic-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    background: rgba(255, 255, 255, 1);
}

/* Auto-detect button */
.btn-detect {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--gold);
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-detect:hover {
    background: rgba(179, 134, 0, 0.08);
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Main Calculate Button */
.btn-submit {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(179, 134, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Two-column output layout */
.vedic-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .vedic-workspace {
        grid-template-columns: minmax(320px, 400px) 1fr;
    }
}

/* Chart Center Column */
.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Custom City Dropdown list */
.city-search-container {
    position: relative;
    width: 100%;
}

.city-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    box-shadow: var(--card-shadow);
}

.city-dropdown-list li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.city-dropdown-list li:hover {
    background: var(--glass-bg-hover);
    color: var(--gold);
}

/* SVG Chart Design styles */
.svg-chart-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    box-sizing: border-box;
}

#kundli-svg {
    width: 100%;
    height: 100%;
    max-width: 350px;
    max-height: 350px;
}

/* Interactive SVGs styles */
.svg-house {
    fill: rgba(255, 255, 255, 0.75);
    stroke: rgba(0, 0, 0, 0.12);
    stroke-width: 1.5;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.svg-house:hover {
    fill: rgba(92, 61, 179, 0.05);
    stroke: var(--gold);
    filter: drop-shadow(0 0 3px var(--gold-glow));
}

.svg-house.active {
    fill: rgba(179, 134, 0, 0.04);
    stroke: var(--gold);
}

.svg-border-line {
    stroke: rgba(0, 0, 0, 0.22);
    stroke-width: 2.5;
    fill: none;
}

.svg-diagonal-line {
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 1.5;
    fill: none;
}

.svg-rashi-text {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    fill: var(--gold);
    pointer-events: none;
    text-shadow: none;
}

.svg-planets-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    fill: var(--text-primary);
    pointer-events: none;
    text-shadow: none;
}

/* SVG Planet Status Colors */
.svg-planet-normal { fill: var(--text-primary); }
.svg-planet-exalted { fill: #2e7d32; font-weight: 700; }
.svg-planet-debilitated { fill: #c62828; font-weight: 700; }
.svg-planet-combust { fill: #e65100; font-weight: 600; }
.svg-planet-retro { font-style: italic; }

/* Planet Status Badges (Placements Table) */
.planet-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
    vertical-align: middle;
    margin-right: 3px;
    margin-top: 2px;
}
.badge-retro {
    background: rgba(106, 27, 154, 0.1);
    color: #6a1b9a;
    border: 1px solid rgba(106, 27, 154, 0.2);
}
.badge-combust {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
    border: 1px solid rgba(230, 81, 0, 0.2);
}
.badge-exalted {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}
.badge-debilitated {
    background: rgba(198, 40, 40, 0.1);
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
}
.badge-moolat {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border: 1px solid rgba(21, 101, 192, 0.2);
}
.badge-own {
    background: rgba(249, 168, 37, 0.1);
    color: #f57f17;
    border: 1px solid rgba(249, 168, 37, 0.2);
}

/* ═══════════════════════════════════════════════════════════════ */
/* DRISHTI TAB STYLES                                              */
/* ═══════════════════════════════════════════════════════════════ */
.drishti-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.drishti-planet-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1.5px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    position: relative;
}
.drishti-planet-btn:hover {
    border-color: var(--planet-color, var(--gold));
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.drishti-planet-btn.active {
    border-color: var(--planet-color, var(--gold));
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), inset 0 0 0 1px var(--planet-color, var(--gold));
    font-weight: 600;
}
.drishti-icon {
    font-size: 1.1rem;
    color: var(--planet-color, var(--gold));
}
.drishti-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.dot-exalted { background: #2e7d32; }
.dot-debilitated { background: #c62828; }
.dot-combust { background: #e65100; }
.dot-retro { background: #6a1b9a; }

.drishti-detail-panel {
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem;
    min-height: 200px;
}
.drishti-detail-header {
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Drishti Arrows */
.drishti-arrows {
    margin: 1rem 0;
}
.drishti-arrow-source {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    display: inline-block;
}
.drishti-arrow-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.drishti-arrow-target {
    flex: 1;
    min-width: 180px;
    border-left: 3px solid var(--gold);
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.4);
    border-radius: 0 8px 8px 0;
    position: relative;
    transition: all 0.2s;
}
.drishti-arrow-target:hover {
    background: rgba(255,255,255,0.7);
    transform: translateX(3px);
}
.drishti-special {
    border-left-width: 4px;
    background: rgba(255,248,225,0.5);
}
.drishti-arrow-line {
    position: absolute;
    left: -15px;
    top: 50%;
    width: 12px;
    height: 2px;
    transform: translateY(-50%);
}

/* Drishti House Grid */
.drishti-house-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 1rem;
}
.drishti-house-cell {
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.4);
    border: 1px solid var(--glass-border);
    text-align: center;
    min-height: 60px;
    transition: all 0.2s;
    position: relative;
}
.drishti-source {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,248,225,0.6));
    border: 2px solid var(--source-color, var(--gold));
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.drishti-aspected {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(232,245,233,0.4));
    border: 2px dashed var(--aspect-color, var(--gold));
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.drishti-cell-house {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
}
.drishti-cell-sign {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1px;
}
.drishti-cell-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 3px;
}
.drishti-aspect-badge {
    background: rgba(46, 125, 50, 0.75);
}
.drishti-cell-occupants {
    margin-top: 3px;
    line-height: 1.3;
}

/* Drishti Status Cards */
.drishti-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.drishti-status-card {
    flex: 1;
    min-width: 160px;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
}
.drishti-status-card span { font-size: 0.75rem; color: var(--text-secondary); }
.drishti-status-exalted { background: rgba(46,125,50,0.07); border: 1px solid rgba(46,125,50,0.2); }
.drishti-status-debil { background: rgba(198,40,40,0.07); border: 1px solid rgba(198,40,40,0.2); }
.drishti-status-retro { background: rgba(106,27,154,0.07); border: 1px solid rgba(106,27,154,0.2); }
.drishti-status-combust { background: rgba(230,81,0,0.07); border: 1px solid rgba(230,81,0,0.2); }

/* Drishti Legend */
.drishti-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.drishti-legend-item { display: flex; align-items: center; gap: 4px; }
.drishti-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Drishti Matrix Table */
.drishti-matrix-table td { font-size: 0.82rem; }

@media (max-width: 768px) {
    .drishti-house-grid { grid-template-columns: repeat(3, 1fr); }
    .drishti-arrow-targets { flex-direction: column; }
    .drishti-arrow-target { min-width: auto; }
    .drishti-status-row { flex-direction: column; }
}
@media (max-width: 480px) {
    .drishti-house-grid { grid-template-columns: repeat(2, 1fr); }
    .drishti-planet-btn { padding: 5px 8px; font-size: 0.75rem; }
}

/* Aspect Quality Styles */
.drishti-quality-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 3px;
    display: inline-block;
}
.drishti-quality-inline {
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 2px;
}
.drishti-quality-mini {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 1px;
}
.aspect-excellent, .aspect-excellent .drishti-quality-tag { color: #1b7a2b; }
.aspect-excellent.drishti-quality-tag { background: rgba(27, 122, 43, 0.1); }
.aspect-supportive, .aspect-supportive .drishti-quality-tag { color: #2e7d32; }
.aspect-supportive.drishti-quality-tag { background: rgba(46, 125, 50, 0.1); }
.aspect-growth, .aspect-growth .drishti-quality-tag { color: #0277bd; }
.aspect-growth.drishti-quality-tag { background: rgba(2, 119, 189, 0.1); }
.aspect-mixed, .aspect-mixed .drishti-quality-tag { color: #e65100; }
.aspect-mixed.drishti-quality-tag { background: rgba(230, 81, 0, 0.1); }
.aspect-challenging, .aspect-challenging .drishti-quality-tag { color: #c62828; }
.aspect-challenging.drishti-quality-tag { background: rgba(198, 40, 40, 0.1); }
.aspect-obstacle, .aspect-obstacle .drishti-quality-tag { color: #b71c1c; }
.aspect-obstacle.drishti-quality-tag { background: rgba(183, 28, 28, 0.12); }
.aspect-neutral { color: var(--text-secondary); }

/* Aspected house cell quality coloring */
.drishti-house-cell.aspect-excellent { border-color: #2e7d32 !important; background: rgba(46, 125, 50, 0.06); }
.drishti-house-cell.aspect-supportive { border-color: #43a047 !important; background: rgba(67, 160, 71, 0.05); }
.drishti-house-cell.aspect-growth { border-color: #0277bd !important; background: rgba(2, 119, 189, 0.05); }
.drishti-house-cell.aspect-mixed { border-color: #e65100 !important; background: rgba(230, 81, 0, 0.04); }
.drishti-house-cell.aspect-challenging { border-color: #c62828 !important; background: rgba(198, 40, 40, 0.05); }
.drishti-house-cell.aspect-obstacle { border-color: #b71c1c !important; background: rgba(183, 28, 28, 0.07); }

/* Arrow target quality coloring */
.drishti-arrow-target.aspect-excellent { border-left: 3px solid #2e7d32 !important; background: rgba(46, 125, 50, 0.04); }
.drishti-arrow-target.aspect-supportive { border-left: 3px solid #43a047 !important; background: rgba(67, 160, 71, 0.03); }
.drishti-arrow-target.aspect-growth { border-left: 3px solid #0277bd !important; background: rgba(2, 119, 189, 0.03); }
.drishti-arrow-target.aspect-challenging { border-left: 3px solid #c62828 !important; background: rgba(198, 40, 40, 0.04); }
.drishti-arrow-target.aspect-obstacle { border-left: 3px solid #b71c1c !important; background: rgba(183, 28, 28, 0.05); }

/* House Overview Grid */
.drishti-house-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.drishti-house-ov-cell {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    transition: transform 0.15s;
}
.drishti-house-ov-cell:hover { transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.ho-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.ho-house-num { font-weight: 700; font-size: 0.82rem; color: var(--primary-dark); }
.ho-rashi { font-size: 0.72rem; color: var(--text-secondary); }
.ho-verdict {
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.house-ov-excellent .ho-verdict { color: #1b7a2b; background: rgba(27, 122, 43, 0.1); }
.house-ov-obstacle .ho-verdict { color: #b71c1c; background: rgba(183, 28, 28, 0.1); }
.house-ov-mixed .ho-verdict { color: #e65100; background: rgba(230, 81, 0, 0.1); }
.house-ov-excellent { border-color: #a5d6a7; background: rgba(165, 214, 167, 0.08); }
.house-ov-obstacle { border-color: #ef9a9a; background: rgba(239, 154, 154, 0.08); }
.house-ov-mixed { border-color: #ffe0b2; background: rgba(255, 224, 178, 0.08); }
.ho-details { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.ho-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
}
.ho-excellent { color: #1b7a2b; background: rgba(27, 122, 43, 0.12); }
.ho-supportive { color: #2e7d32; background: rgba(46, 125, 50, 0.1); }
.ho-growth { color: #0277bd; background: rgba(2, 119, 189, 0.1); }
.ho-mixed { color: #e65100; background: rgba(230, 81, 0, 0.1); }
.ho-challenging { color: #c62828; background: rgba(198, 40, 40, 0.1); }
.ho-obstacle { color: #b71c1c; background: rgba(183, 28, 28, 0.12); }

@media (max-width: 768px) {
    .drishti-house-overview-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .drishti-house-overview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tabs for Report Area */
.vedic-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.vedic-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 0.65rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.vedic-tab-btn:hover {
    color: var(--text-primary);
}

.vedic-tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* Tab contents and cards */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table styles */
.vedic-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.vedic-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.vedic-table th {
    padding: 1rem;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.vedic-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.vedic-table tr:hover td {
    background: rgba(0, 0, 0, 0.01);
}

/* Vimshottari Timeline styles */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.timeline-item:hover {
    background: rgba(179, 134, 0, 0.02);
    border-color: rgba(179, 134, 0, 0.08);
}

.timeline-item.active {
    background: rgba(179, 134, 0, 0.03);
    border-color: rgba(179, 134, 0, 0.12);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    left: calc(-2rem + 2px);
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--gold);
    box-shadow: 0 0 5px var(--gold-glow);
}

.timeline-item.active::before {
    background: var(--gold);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-ruler {
    color: var(--gold);
    font-size: 1rem;
}

.timeline-dates {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timeline-duration {
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.sub-timeline {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    border-left: 1px dashed rgba(179, 134, 0, 0.2);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.sub-timeline.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(179, 134, 0, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 10px rgba(179, 134, 0, 0.8); }
}

.sub-timeline-item {
    position: relative;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.sub-timeline-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(179, 134, 0, 0.1);
}

.sub-timeline-item.active {
    background: rgba(179, 134, 0, 0.05);
    border-color: rgba(179, 134, 0, 0.15);
    box-shadow: 0 2px 8px rgba(179, 134, 0, 0.04);
}

.sub-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.sub-timeline-ruler {
    color: var(--text-primary);
}

.sub-timeline-item.active .sub-timeline-ruler {
    color: var(--gold-dark);
    font-weight: 600;
}

.sub-timeline-duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sub-timeline-dates {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

/* Pratyantardasha (3rd level sub-sub-timeline) */
.sub-sub-timeline {
    margin-top: 0.4rem;
    padding-left: 1rem;
    border-left: 1px dotted rgba(92, 61, 179, 0.2);
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.3rem;
    padding-bottom: 0.15rem;
}

.sub-sub-timeline.active {
    display: flex;
    animation: slideDown 0.25s ease-out;
}

.sub-sub-timeline-item {
    position: relative;
    padding: 0.25rem 0.4rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.sub-sub-timeline-item:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(92, 61, 179, 0.1);
}

.sub-sub-timeline-item.active {
    background: rgba(92, 61, 179, 0.04);
    border-color: rgba(92, 61, 179, 0.15);
    box-shadow: 0 1px 5px rgba(92, 61, 179, 0.04);
}

.sub-sub-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 400;
}

.sub-sub-timeline-ruler {
    color: var(--text-secondary);
    font-weight: 500;
}

.sub-sub-timeline-item.active .sub-sub-timeline-ruler {
    color: #5c3db3;
    font-weight: 600;
}

.sub-sub-timeline-duration {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.sub-sub-timeline-dates {
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-top: 0.05rem;
    opacity: 0.8;
}

.sub-timeline-toggle-icon {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.65rem;
    margin-right: 4px;
    vertical-align: middle;
    color: var(--text-secondary);
    cursor: pointer;
}

.sub-timeline-item.expanded .sub-timeline-toggle-icon {
    transform: rotate(90deg);
}

.timeline-toggle-icon {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 6px;
    font-size: 0.75rem;
    vertical-align: middle;
}

.timeline-item.expanded .timeline-toggle-icon {
    transform: rotate(90deg);
}

/* Interactive House details popup */
.house-info-box {
    background: rgba(92, 61, 179, 0.03);
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.house-info-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
}

.house-info-body {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Custom Report Card styling */
.report-card.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 1.5rem;
}

.report-item:last-child {
    border: none;
    padding-bottom: 0;
}

.report-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

.tag-rashi {
    background: rgba(179, 134, 0, 0.1);
    color: var(--gold);
}

.tag-house {
    background: rgba(92, 61, 179, 0.1);
    color: #5c3db3;
}

/* Empty placeholder */
.empty-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-placeholder i {
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.05);
    display: block;
    margin-bottom: 1rem;
}

.empty-placeholder p {
    margin: 0;
    font-weight: 300;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tabs Container layout */
.vedic-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vedic-tabs-container .vedic-tabs {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Export Button styling */
.btn-export {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--gold);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 5px;
}

.btn-export:hover {
    background: rgba(179, 134, 0, 0.08);
    border-color: var(--gold);
    color: var(--gold-dark);
    box-shadow: 0 0 10px var(--gold-glow);
    transform: translateY(-1px);
}

.btn-export:active {
    transform: translateY(0);
}

.btn-export:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   ENHANCED DASHA DASHBOARD STYLES
   ============================================ */

/* Dashboard Container */
.dasha-dashboard {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(245,247,250,0.9));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    animation: fadeIn 0.5s ease;
}

.dasha-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dasha-dashboard-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.dasha-toggle-all-btn {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    transition: var(--transition-smooth);
}

.dasha-toggle-all-btn:hover {
    background: rgba(179,134,0,0.08);
    border-color: var(--gold);
}

/* Three-column current period grid */
.dasha-current-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dasha-current-card {
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    transition: var(--transition-smooth);
}

.dasha-current-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.dasha-current-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.dasha-current-planet {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dasha-current-dates {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Progress bar shared style */
.dasha-progress-bar {
    position: relative;
    height: 5px;
    background: rgba(0,0,0,0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 4px;
}

.dasha-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 100px;
    transition: width 1s ease;
}

.dasha-progress-label {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

/* Pulsing dot for active items */
.dasha-pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

/* Analysis Panel (Current Period) */
.dasha-analysis-panel {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.4s ease;
}

.dasha-analysis-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.dasha-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.dasha-analysis-item {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 8px;
    padding: 8px 10px;
}

.dasha-analysis-key {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.dasha-analysis-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dasha-analysis-section {
    margin-bottom: 10px;
}

.dasha-analysis-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dasha-analysis-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.55;
}

.dasha-analysis-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .dasha-analysis-two-col {
        grid-template-columns: 1fr;
    }
}

.dasha-analysis-section.dasha-positive {
    background: rgba(46,125,50,0.04);
    border: 1px solid rgba(46,125,50,0.12);
    border-radius: 10px;
    padding: 10px 12px;
}

.dasha-analysis-section.dasha-negative {
    background: rgba(211,47,47,0.04);
    border: 1px solid rgba(211,47,47,0.12);
    border-radius: 10px;
    padding: 10px 12px;
}

.dasha-positive-title {
    color: #2E7D32 !important;
}

.dasha-negative-title {
    color: #C62828 !important;
}

.dasha-remedy-box {
    background: rgba(245,127,23,0.05);
    border: 1px solid rgba(245,127,23,0.15);
    border-radius: 10px;
    padding: 10px 12px;
}

.dasha-remedy-title {
    color: #F57F17 !important;
}

/* Maha Dasha Cards */
.dasha-maha-card {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.55);
    padding: 1rem 1.25rem;
    transition: var(--transition-smooth);
    animation: fadeIn 0.3s ease;
}

.dasha-maha-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.dasha-maha-card.active {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.8);
}

.dasha-maha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dasha-maha-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dasha-maha-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dasha-maha-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dasha-maha-dates {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dasha-maha-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dasha-maha-duration {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
}

.dasha-active-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.dasha-sub-badge {
    font-size: 0.68rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.04);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Maha Dasha Analysis (inline expandable) */
.dasha-maha-analysis {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--glass-border);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
    animation: slideDown 0.3s ease-out;
}

.dasha-maha-analysis.active {
    display: block;
}

.dasha-maha-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.dasha-maha-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.02);
    padding: 4px 8px;
    border-radius: 6px;
}

.dasha-maha-meta strong {
    color: var(--text-primary);
}

.dasha-maha-themes {
    font-size: 0.82rem;
    line-height: 1.5;
}

.dasha-maha-effects-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .dasha-maha-effects-row {
        grid-template-columns: 1fr;
    }
}

.dasha-maha-positive {
    background: rgba(46,125,50,0.04);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(46,125,50,0.1);
}

.dasha-maha-negative {
    background: rgba(198,40,40,0.04);
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(198,40,40,0.1);
}

.dasha-maha-remedy {
    font-size: 0.8rem;
    border: 1px solid;
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 6px;
    font-style: italic;
}

/* Bhukti effect text */
.dasha-bhukti-effect {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 3px;
    font-style: italic;
    padding-left: 2px;
}

/* Override sub-timeline for card layout */
.dasha-maha-card .sub-timeline {
    padding-left: 0.75rem;
    border-left: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}

.dasha-maha-card .sub-timeline.active {
    display: flex;
}

.dasha-maha-card .sub-timeline-item {
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
}

.dasha-maha-card .sub-timeline-item.active {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .dasha-current-grid {
        grid-template-columns: 1fr;
    }
    .dasha-current-card {
        padding: 0.85rem 1rem;
    }
    .dasha-current-label {
        font-size: 0.62rem;
    }
    .dasha-current-planet {
        font-size: 1rem;
    }
    .dasha-current-dates {
        font-size: 0.72rem;
    }
    .dasha-maha-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dasha-maha-right {
        margin-top: 4px;
    }
    .dasha-analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dasha-analysis-panel {
        padding: 1rem;
    }
    .dasha-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .vedic-tabs-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .vedic-tabs {
        width: 100%;
    }
    .vedic-tab-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.5rem;
    }
}

/* Yogas & content overflow fix */
.report-card {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ======================== */
/* Gochar (Transit) Tab     */
/* ======================== */

.transit-section {
    margin-bottom: 2rem;
}

.transit-section-title {
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.transit-table td,
.transit-table th {
    white-space: nowrap;
}

.transit-house-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Transit Yogas */
.transit-yogas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.transit-yogas-header .transit-section-title {
    margin: 0;
}

.transit-yoga-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--gold);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.transit-yoga-card {
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ccc;
    transition: var(--transition-smooth);
}

.transit-yoga-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.transit-yoga-benefic {
    background: rgba(46, 125, 50, 0.05);
    border-left-color: #2E7D32;
}

.transit-yoga-challenging {
    background: rgba(198, 40, 40, 0.05);
    border-left-color: #C62828;
}

.transit-yoga-mixed {
    background: rgba(245, 124, 0, 0.05);
    border-left-color: #F57C00;
}

.transit-yoga-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.transit-yoga-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.transit-yoga-type-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 0.4rem;
}

.transit-yoga-benefic-badge {
    background: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
}

.transit-yoga-challenging-badge {
    background: rgba(198, 40, 40, 0.12);
    color: #C62828;
}

.transit-yoga-mixed-badge {
    background: rgba(245, 124, 0, 0.12);
    color: #E65100;
}

.transit-impact-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.impact-very-high {
    background: rgba(183, 28, 28, 0.1);
    color: #B71C1C;
}

.impact-high {
    background: rgba(230, 81, 0, 0.1);
    color: #E65100;
}

.impact-medium {
    background: rgba(0, 96, 100, 0.1);
    color: #006064;
}

.transit-planet-chips {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.transit-planet-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.transit-yoga-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0.4rem 0 0.6rem 0;
}

.transit-remedy {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: rgba(179, 134, 0, 0.06);
    border: 1px solid rgba(179, 134, 0, 0.15);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.transit-remedy strong {
    color: var(--gold-dark);
}

/* House-wise Transit Grid */
.transit-house-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.transit-house-cell {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem 0.6rem;
    text-align: center;
    transition: var(--transition-smooth);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.transit-house-active {
    background: rgba(179, 134, 0, 0.06);
    border-color: rgba(179, 134, 0, 0.2);
}

.transit-house-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.transit-house-theme {
    font-size: 0.62rem;
    color: var(--text-secondary);
    line-height: 1.3;
    text-transform: capitalize;
}

.transit-house-planets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.transit-planet-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.transit-house-planets {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
}

.transit-house-planet-names {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
    width: 100%;
    text-align: center;
}

.transit-house-empty {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.15);
}

/* Transit Dashboard Header */
.transit-dashboard {
    background: linear-gradient(135deg, rgba(179, 134, 0, 0.06) 0%, rgba(26, 35, 126, 0.04) 100%);
    border: 1px solid rgba(179, 134, 0, 0.15);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.5rem;
}

.transit-dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.transit-moon-sign {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.transit-moon-icon {
    font-size: 2rem;
    color: var(--gold);
    filter: drop-shadow(0 2px 6px rgba(179, 134, 0, 0.3));
}

.transit-moon-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.transit-moon-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-dark, var(--gold));
}

.transit-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.transit-date-picker {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.transit-date-picker label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.transit-date-field {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.82rem !important;
    min-width: 140px;
    border-radius: 8px !important;
}

.btn-transit-today {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.btn-transit-today:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.btn-export-transit {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(179, 134, 0, 0.3);
    background: rgba(179, 134, 0, 0.08);
    color: var(--gold-dark, var(--gold));
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-export-transit:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* Score Cards */
.transit-score-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.transit-score-card {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    padding: 0.7rem 0.6rem;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.score-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.score-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.score-max {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.score-risk .score-value { color: #C62828; }
.score-reward .score-value { color: #2E7D32; }
.score-benefic .score-value { color: #2E7D32; }
.score-adverse .score-value { color: #C62828; }
.score-mixed .score-value { color: #E65100; }

.score-bar {
    height: 5px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    margin-top: 0.4rem;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.score-bar-fill.risk-fill { background: linear-gradient(90deg, #ef5350, #b71c1c); }
.score-bar-fill.reward-fill { background: linear-gradient(90deg, #66bb6a, #1b5e20); }

/* Risk/Reward Rating Bars on Yoga Cards */
.transit-rating-row {
    display: flex;
    gap: 1rem;
    margin: 0.6rem 0 0.25rem 0;
}

.transit-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.rating-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 42px;
}

.rating-label.risk-label { color: #C62828; }
.rating-label.reward-label { color: #2E7D32; }

.rating-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.rating-bar-fill.risk-fill { background: linear-gradient(90deg, #ef9a9a, #c62828); }
.rating-bar-fill.reward-fill { background: linear-gradient(90deg, #a5d6a7, #2e7d32); }

.rating-num {
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 30px;
    text-align: right;
}

.rating-num.risk-num { color: #C62828; }
.rating-num.reward-num { color: #2E7D32; }

/* Category Badge */
.transit-category-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* Adverse card alias for challenging */
.transit-yoga-adverse {
    background: rgba(198, 40, 40, 0.05);
    border-left-color: #C62828;
}

.transit-yoga-adverse-badge {
    background: rgba(198, 40, 40, 0.12);
    color: #C62828;
}

@media (max-width: 768px) {
    .transit-score-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .transit-dashboard-top {
        flex-direction: column;
    }
    .transit-controls {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .transit-house-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .transit-yoga-top {
        flex-direction: column;
    }
    .transit-score-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .transit-rating-row {
        flex-direction: column;
        gap: 0.4rem;
    }
    .transit-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ======================== */
/* Transit Navigation Bar   */
/* ======================== */

.transit-nav-bar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.transit-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    padding: 0;
}

.transit-nav-btn:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.transit-nav-btn.transit-today-btn {
    width: auto;
    padding: 0 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================== */
/* Risk & Reward Analysis Tab v2  */
/* ============================== */

/* ── Control Bar ── */
.rr-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.rr-month-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rr-nav-arrow {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rr-nav-arrow:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    transform: scale(1.05);
}

.rr-month-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 170px;
    text-align: center;
    letter-spacing: -0.01em;
}

.rr-dasha-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.rr-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rr-pill-maha {
    background: linear-gradient(135deg, rgba(179,134,0,0.15), rgba(179,134,0,0.08));
    color: #8B6914;
    border: 1px solid rgba(179,134,0,0.2);
}

.rr-pill-ad {
    background: linear-gradient(135deg, rgba(92,107,192,0.15), rgba(92,107,192,0.08));
    color: #3949AB;
    border: 1px solid rgba(92,107,192,0.2);
}

/* ── Hero / Executive Summary ── */
.rr-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.rr-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.04;
    background: radial-gradient(circle at 20% 50%, currentColor 0%, transparent 70%);
    pointer-events: none;
}

.rr-tone-favorable {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
    color: #fff;
}

.rr-tone-challenging {
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 50%, #d32f2f 100%);
    color: #fff;
}

.rr-tone-moderate {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 50%, #fb8c00 100%);
    color: #fff;
}

.rr-hero-gauge {
    flex-shrink: 0;
}

.rr-gauge-ring {
    position: relative;
    width: 110px;
    height: 110px;
}

.rr-gauge-svg {
    width: 110px;
    height: 110px;
}

.rr-gauge-fill {
    stroke: rgba(255,255,255,0.85);
    transition: stroke-dasharray 0.8s ease;
}

.rr-gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.rr-gauge-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 40%);
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.rr-hero-info {
    flex: 1;
}

.rr-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}

.rr-hero-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-bottom: 1rem;
}

.rr-hero-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rr-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    min-width: 70px;
}

.rr-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.rr-stat-num.rr-green { color: #a5d6a7; }
.rr-stat-num.rr-amber { color: #ffe082; }
.rr-stat-num.rr-red { color: #ef9a9a; }

.rr-stat-label {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* ── Quick Decision Cards ── */
.rr-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rr-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rr-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.rr-quick-green { background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(67,160,71,0.04)); border-left: 3px solid #43a047; }
.rr-quick-red { background: linear-gradient(135deg, rgba(198,40,40,0.08), rgba(239,83,80,0.04)); border-left: 3px solid #ef5350; }
.rr-quick-gold { background: linear-gradient(135deg, rgba(179,134,0,0.1), rgba(179,134,0,0.04)); border-left: 3px solid var(--gold); }
.rr-quick-blue { background: linear-gradient(135deg, rgba(26,35,126,0.08), rgba(92,107,192,0.04)); border-left: 3px solid #5C6BC0; }

.rr-quick-icon {
    font-size: 1.1rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
    margin-top: 2px;
}

.rr-quick-green .rr-quick-icon { color: #2E7D32; }
.rr-quick-red .rr-quick-icon { color: #C62828; }
.rr-quick-gold .rr-quick-icon { color: #8B6914; }
.rr-quick-blue .rr-quick-icon { color: #3949AB; }

.rr-quick-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.rr-quick-value {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.rr-quick-meta {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ── Legend Bar ── */
.rr-legend-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rr-legend-bar .rr-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rr-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.rr-legend-bar .rr-legend-note {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-left: auto;
}

/* ── Sector Grid ── */
.rr-sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rr-sector-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.rr-sector-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.rr-sector-dasha {
    border-color: rgba(179,134,0,0.25);
    box-shadow: 0 0 0 1px rgba(179,134,0,0.1);
}

/* Sector Header */
.rr-sector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    gap: 0.5rem;
}

.rr-sector-header.rr-status-favorable {
    background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(67,160,71,0.05));
    border-bottom: 2px solid rgba(67,160,71,0.25);
}

.rr-sector-header.rr-status-challenging {
    background: linear-gradient(135deg, rgba(198,40,40,0.1), rgba(239,83,80,0.05));
    border-bottom: 2px solid rgba(239,83,80,0.25);
}

.rr-sector-header.rr-status-moderate {
    background: linear-gradient(135deg, rgba(245,124,0,0.08), rgba(255,167,38,0.04));
    border-bottom: 2px solid rgba(245,124,0,0.2);
}

.rr-sector-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.rr-sector-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rr-sector-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rr-sector-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rr-sector-dasha-tag {
    font-size: 0.58rem;
    font-weight: 700;
    color: #8B6914;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rr-sector-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.rr-sector-badge.rr-status-favorable {
    background: rgba(46,125,50,0.12);
    color: #2E7D32;
}

.rr-sector-badge.rr-status-challenging {
    background: rgba(198,40,40,0.1);
    color: #C62828;
}

.rr-sector-badge.rr-status-moderate {
    background: rgba(245,124,0,0.1);
    color: #E65100;
}

/* Sector Body */
.rr-sector-body {
    padding: 0.75rem 1rem 0.85rem;
}

.rr-sector-metrics {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.rr-metric {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rr-metric-bar {
    flex: 1;
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.rr-metric-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.rr-fill-reward {
    background: linear-gradient(90deg, #66bb6a, #43a047);
}

.rr-fill-risk {
    background: linear-gradient(90deg, #ef5350, #c62828);
}

.rr-metric-val {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    min-width: 24px;
}

.rr-metric-lbl {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rr-green { color: #2E7D32; }
.rr-red { color: #C62828; }

/* Analysis Layers Bar */
.rr-layers-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    margin-bottom: 1rem;
}
.rr-layers-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.3rem;
}
.rr-layer-chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    white-space: nowrap;
    cursor: default;
}
.rr-layer-on {
    background: rgba(46,125,50,0.1);
    color: #2E7D32;
    border: 1px solid rgba(46,125,50,0.2);
}
.rr-layer-dim {
    background: rgba(0,0,0,0.03);
    color: #999;
    border: 1px solid rgba(0,0,0,0.06);
}
.rr-layer-warn {
    background: rgba(198,40,40,0.1);
    color: #C62828;
    border: 1px solid rgba(198,40,40,0.2);
    animation: rr-pulse 2s ease-in-out infinite;
}
@keyframes rr-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.rr-canvas-v2 {
    width: 100%;
    height: 180px;
    display: block;
    margin-bottom: 0.5rem;
}

/* Factor Breakdown Panel */
.rr-factors-panel {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 0.6rem;
    margin-bottom: 0.5rem;
}
.rr-factors-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}
.rr-factors-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.rr-factor-row {
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    border-left: 3px solid transparent;
    transition: background 0.2s;
}
.rr-factor-row.rr-f-positive { border-left-color: #43a047; }
.rr-factor-row.rr-f-negative { border-left-color: #ef5350; }
.rr-factor-row.rr-f-neutral  { border-left-color: #bbb; }
.rr-factor-row:hover { background: rgba(255,255,255,0.9); }

.rr-factor-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}
.rr-factor-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.rr-factor-label {
    font-size: 0.72rem;
    font-weight: 700;
    flex: 1;
}
.rr-factor-net {
    font-size: 0.72rem;
    font-weight: 800;
    font-family: 'Inter', monospace;
    padding: 1px 6px;
    border-radius: 4px;
}
.rr-factor-net.rr-f-positive { background: rgba(67,160,71,0.12); color: #2E7D32; }
.rr-factor-net.rr-f-negative { background: rgba(239,83,80,0.12); color: #C62828; }
.rr-factor-net.rr-f-neutral  { background: rgba(0,0,0,0.05); color: #888; }

.rr-factor-bars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.15rem;
}
.rr-factor-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
    overflow: hidden;
}
.rr-factor-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.rr-bar-rw { background: linear-gradient(90deg, #66bb6a, #2E7D32); }
.rr-bar-rk { background: linear-gradient(90deg, #ef9a9a, #C62828); }

.rr-factor-detail {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.3;
    font-style: italic;
}

.rr-year-section {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 1.2rem 1rem 0.8rem;
    margin-bottom: 1.5rem;
}
.rr-year-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.25rem 0;
}
.rr-year-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.rr-year-canvas {
    width: 100%;
    height: 220px;
    display: block;
    border-radius: 10px;
}

/* Sector Footer */
.rr-sector-footer {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 0.55rem;
}

.rr-sector-days {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.rr-day-tag {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.rr-day-best {
    background: rgba(46,125,50,0.08);
    color: #2E7D32;
}

.rr-day-caution {
    background: rgba(198,40,40,0.08);
    color: #C62828;
}

.rr-sector-action {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .rr-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .rr-sector-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rr-control-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .rr-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem 1rem;
        gap: 1rem;
    }
    .rr-hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    .rr-hero-stat {
        min-width: 80px;
    }
    .rr-quick-grid {
        grid-template-columns: 1fr;
    }
    .rr-sector-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================== */
/* Vedic Yoga Tab — Enhanced      */
/* ============================== */

.yoga-hero {
    margin-bottom: 1.5rem;
}
.yoga-hero-inner {
    background: linear-gradient(135deg, rgba(179,134,0,0.06) 0%, rgba(179,134,0,0.02) 100%);
    border: 1px solid rgba(179,134,0,0.15);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.yoga-hero-title h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
}
.yoga-hero-title p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}
.yoga-hero-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.yoga-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.5);
}
.yoga-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}
.yoga-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}
.yoga-stat-benefic .yoga-stat-num { color: #1B5E20; }
.yoga-stat-benefic { border-color: rgba(27,94,32,0.15); background: rgba(27,94,32,0.04); }
.yoga-stat-malefic .yoga-stat-num { color: #B71C1C; }
.yoga-stat-malefic { border-color: rgba(183,28,28,0.12); background: rgba(183,28,28,0.04); }
.yoga-stat-mixed .yoga-stat-num { color: #E65100; }
.yoga-stat-mixed { border-color: rgba(230,81,0,0.12); background: rgba(230,81,0,0.04); }
.yoga-stat-total .yoga-stat-num { color: var(--gold-dark); }
.yoga-stat-total { border-color: rgba(179,134,0,0.15); background: rgba(179,134,0,0.04); }

/* Category sections */
.yoga-category-section {
    margin-bottom: 1.75rem;
}
.yoga-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}
.yoga-category-icon {
    font-size: 1.1rem;
}
.yoga-category-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}
.yoga-category-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    margin-left: auto;
}

/* Yoga cards */
.yoga-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.yoga-card {
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.yoga-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.yoga-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.45rem;
}
.yoga-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}
.yoga-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.yoga-type-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.yoga-strength {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.04);
    color: var(--text-secondary);
}
.yoga-str-vstrong { background: rgba(179,134,0,0.1); color: var(--gold-dark); }
.yoga-str-strong { background: rgba(33,150,243,0.08); color: #1565C0; }
.yoga-str-medium { background: rgba(0,0,0,0.04); color: var(--text-secondary); }
.yoga-str-mild { background: rgba(0,0,0,0.03); color: var(--text-secondary); }

.yoga-card-desc {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-primary);
}
.yoga-card-forming {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 0.55rem 0.75rem;
    background: rgba(255,255,255,0.6);
    border: 1px dashed rgba(0,0,0,0.08);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.yoga-forming-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.yoga-forming-text {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.78rem;
    word-break: break-word;
}

/* Checklist section */
.yoga-checklist-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}
.yoga-checklist-header h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}
.yoga-checklist-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.yoga-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.6rem;
}
.yoga-cl-item {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: var(--transition-smooth);
}
.yoga-cl-item-active {
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.yoga-cl-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
}
.yoga-cl-cond {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-left: 20px;
    line-height: 1.3;
}
.yoga-cl-status {
    margin-left: 20px;
    margin-top: 2px;
}
.yoga-cl-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.08rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.yoga-cl-active {
    /* colored inline */
}
.yoga-cl-inactive {
    color: var(--text-secondary);
    background: rgba(0,0,0,0.02);
    font-size: 0.6rem;
}

/* Yoga Karaka section */
.yoga-karaka-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    margin-top: 1rem;
}
.yoga-karaka-title {
    font-family: 'Outfit', sans-serif;
    color: var(--gold);
    margin: 0 0 0.25rem 0;
}
.yoga-karaka-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}
.yoga-karaka-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.yoga-karaka-card {
    padding: 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}
.yoga-karaka-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.yoga-karaka-planet {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}
.yoga-karaka-note {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.yoga-karaka-yk {
    border-color: rgba(179,134,0,0.25);
    background: rgba(179,134,0,0.04);
    border-left: 4px solid var(--gold);
}
.yoga-karaka-yk .yoga-karaka-label { color: var(--gold-dark); }
.yoga-karaka-yk .yoga-karaka-planet { color: var(--gold-dark); }
.yoga-karaka-benefic {
    border-color: rgba(46,125,50,0.2);
    background: rgba(46,125,50,0.03);
    border-left: 4px solid #2E7D32;
}
.yoga-karaka-benefic .yoga-karaka-label { color: #2E7D32; }
.yoga-karaka-benefic .yoga-karaka-planet { color: #2E7D32; }
.yoga-karaka-malefic {
    border-color: rgba(198,40,40,0.2);
    background: rgba(198,40,40,0.03);
    border-left: 4px solid #C62828;
}
.yoga-karaka-malefic .yoga-karaka-label { color: #C62828; }
.yoga-karaka-malefic .yoga-karaka-planet { color: #C62828; }

@media (max-width: 600px) {
    .yoga-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }
    .yoga-hero-stats {
        justify-content: center;
    }
    .yoga-checklist-grid {
        grid-template-columns: 1fr;
    }
    .yoga-karaka-grid {
        grid-template-columns: 1fr;
    }
    .yoga-card-header {
        flex-direction: column;
    }
}

/* ============================== */
/* Button Group                   */
/* ============================== */

.vedic-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================== */
/* Monthly Remedies               */
/* ============================== */

.rr-remedies-section {
    margin-top: 2rem;
}

.remedy-card {
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.25rem;
}

.remedy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.remedy-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.remedy-card-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dasha-badge {
    background: rgba(179, 134, 0, 0.12);
    color: var(--gold-dark, var(--gold));
}

.ad-badge {
    background: rgba(26, 35, 126, 0.1);
    color: #1A237E;
}

.risk-badge {
    background: rgba(198, 40, 40, 0.1);
    color: #C62828;
}

.reward-badge {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
}

.mixed-badge {
    background: rgba(245, 124, 0, 0.1);
    color: #E65100;
}

.remedy-dasha {
    border-left: 4px solid var(--gold);
    background: rgba(179, 134, 0, 0.03);
}

.remedy-antardasha {
    border-left: 4px solid #5C6BC0;
    background: rgba(92, 107, 192, 0.03);
}

.remedy-risk-areas {
    border-left: 4px solid #C62828;
    background: rgba(198, 40, 40, 0.02);
}

.remedy-opp-areas {
    border-left: 4px solid #2E7D32;
    background: rgba(46, 125, 50, 0.02);
}

.remedy-summary {
    border-left: 4px solid var(--gold);
    background: linear-gradient(135deg, rgba(179, 134, 0, 0.04), rgba(255,255,255,0.3));
}

.remedy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
}

.remedy-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.remedy-icon {
    font-size: 1.1rem;
    min-width: 22px;
    text-align: center;
    margin-top: 1px;
}

.remedy-item strong {
    color: var(--text-primary);
}

.remedy-houses {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.remedy-house-item {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border-left: 3px solid #ccc;
}

.risk-house {
    background: rgba(198, 40, 40, 0.03);
    border-left-color: #ef5350;
}

.reward-house {
    background: rgba(46, 125, 50, 0.03);
    border-left-color: #43a047;
}

.remedy-house-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.remedy-house-text {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 600px) {
    .remedy-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================== */
/* Print / PDF Styles             */
/* ============================== */

.print-header {
    display: none;
}

.btn-print {
    background: rgba(26, 35, 126, 0.06);
    border-color: rgba(26, 35, 126, 0.2);
    color: #1A237E;
}

.btn-print:hover {
    background: #1A237E;
    color: #fff;
    border-color: #1A237E;
}

@media print {
    /* Reset page */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11pt !important;
    }

    /* Show print header */
    .print-header {
        display: block !important;
        text-align: center;
        padding: 1rem 0 0.75rem 0;
        border-bottom: 2px solid #b38600;
        margin-bottom: 1rem;
        page-break-after: avoid;
    }

    .print-title {
        font-family: 'Outfit', sans-serif;
        font-size: 18pt;
        font-weight: 800;
        color: #b38600;
        margin-bottom: 2px;
    }

    .print-subtitle {
        font-family: 'Outfit', sans-serif;
        font-size: 12pt;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }

    .print-details {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        font-size: 9pt;
        color: #555;
        flex-wrap: wrap;
    }

    /* Hide non-content elements */
    .vedic-header,
    .vedic-form,
    .chart-col,
    #house-details-box,
    #calc-placeholder,
    .vedic-tabs-container,
    .btn-export,
    .btn-print,
    .btn-detect,
    .btn-submit,
    .vedic-btn-group,
    .transit-nav-bar,
    .transit-controls,
    .btn-transit-today,
    .btn-export-transit,
    #transit-date-input,
    #rr-prev-month,
    #rr-next-month,
    .transit-nav-btn,
    .rr-month-nav button {
        display: none !important;
    }

    /* Show only active tab full-width */
    .vedic-chart-app,
    .vedic-chart-container,
    .vedic-workspace,
    .vedic-card,
    #results-area {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .vedic-workspace {
        grid-template-columns: 1fr !important;
    }

    .tab-content {
        display: none !important;
    }

    .tab-content.active {
        display: block !important;
        padding: 0 !important;
    }

    .report-card.active {
        display: flex !important;
    }

    /* Table improvements for print */
    .vedic-table {
        font-size: 9pt !important;
        page-break-inside: auto;
    }

    .vedic-table tr {
        page-break-inside: avoid;
    }

    /* Transit yoga cards */
    .transit-yoga-card {
        page-break-inside: avoid;
        box-shadow: none !important;
    }

    .transit-dashboard {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
    }

    /* Risk & Reward Charts */
    .rr-sector-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .rr-sector-card {
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .rr-canvas-v2 {
        height: 110px !important;
    }

    .rr-hero {
        background: #333 !important;
        color: #fff !important;
    }

    .rr-control-bar {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
    }

    .rr-quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Remedy cards */
    .remedy-card {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    /* Dasha cards */
    .dasha-maha-card {
        page-break-inside: avoid;
    }

    /* House grid */
    .transit-house-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* Score cards */
    .transit-score-cards {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    /* Hide all non-active content sections */
    .vedic-card > *:not(.tab-content):not(.vedic-tabs-container) {
        display: block !important;
    }

    /* Page margins */
    @page {
        margin: 1cm;
        size: A4;
    }
}

/* ============================================
   DIVISIONAL CHARTS (D-9 Navamsa, D-10 Dashamsha)
   ============================================ */

.divisional-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .divisional-charts-grid {
        grid-template-columns: 1fr;
    }
}

.divisional-chart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.divisional-chart-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin: 0;
}

.divisional-chart-sublabel {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 400;
    margin: 0;
}

.mini-svg-chart-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.mini-svg-chart-wrapper:hover {
    border-color: rgba(179, 134, 0, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(179, 134, 0, 0.06);
}

.mini-svg-chart-wrapper svg {
    width: 100%;
    height: 100%;
    max-width: 280px;
    max-height: 280px;
}

/* Divisional Chart Placement Tables */
.divisional-table-section {
    margin-top: 1.5rem;
}

.divisional-table-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.divisional-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.divisional-table th {
    padding: 0.6rem 0.75rem;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.divisional-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.divisional-table tr:hover td {
    background: rgba(0, 0, 0, 0.01);
}

.divisional-interpretation {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(92, 61, 179, 0.03);
    border: 1px dashed rgba(179, 134, 0, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.divisional-interpretation strong {
    color: var(--gold);
}

/* ============================================
   ASHTAKAVARGA SCORING SYSTEM
   ============================================ */

/* Sarvashtakavarga Summary Table */
.sav-section {
    margin-bottom: 2.5rem;
}

.sav-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.75rem 0;
}

.sav-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sav-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
    min-width: 600px;
}

.sav-table th {
    padding: 0.6rem 0.5rem;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--glass-border);
}

.sav-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
}

.sav-cell {
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.sav-cell.strong {
    background: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.25);
}

.sav-cell.moderate {
    background: rgba(245, 127, 23, 0.12);
    color: #E65100;
    border: 1px solid rgba(245, 127, 23, 0.25);
}

.sav-cell.weak {
    background: rgba(198, 40, 40, 0.12);
    color: #C62828;
    border: 1px solid rgba(198, 40, 40, 0.25);
}

/* Bhinnashtakavarga (BAV) Grid */
.bav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .bav-grid {
        grid-template-columns: 1fr;
    }
}

.bav-section {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.bav-section:hover {
    border-color: rgba(179, 134, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.bav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.bav-planet-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bav-total-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

.bav-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bav-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.8rem;
}

.bav-table th {
    padding: 0.4rem 0.3rem;
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--glass-border);
}

.bav-table td {
    padding: 0.4rem 0.3rem;
}

.bav-cell {
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.bav-cell.high {
    background: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.bav-cell.mid {
    background: rgba(245, 127, 23, 0.1);
    color: #E65100;
    border: 1px solid rgba(245, 127, 23, 0.2);
}

.bav-cell.low {
    background: rgba(198, 40, 40, 0.1);
    color: #C62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
}

/* Ashtakavarga Summary Interpretation */
.ashtakavarga-interpretation {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(92, 61, 179, 0.03);
    border: 1px dashed rgba(179, 134, 0, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.ashtakavarga-interpretation strong {
    color: var(--gold);
}

/* Print additions for new tabs */
@media print {
    .divisional-charts-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .mini-svg-chart-wrapper {
        max-width: 250px !important;
        padding: 0.5rem !important;
    }

    .bav-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .bav-section {
        padding: 0.75rem !important;
        break-inside: avoid;
    }

    .sav-cell, .bav-cell {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ============================================
   MAP PICKER STYLE RULES
   ============================================ */

.city-dropdown-list {
    z-index: 1010 !important; /* Force dropdown list to stay above Leaflet layers */
}

.map-picker-wrapper {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(179, 134, 0, 0.15);
    border-radius: 16px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
    animation: vbcSlideDown 0.3s ease-out;
}

/* ============================================
   ASHTAKAVARGA DEEP ANALYSIS DASHBOARD
   ============================================ */

/* Hero Dashboard */
.av-hero {
    margin-bottom: 1.5rem;
}
.av-hero-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}
.av-hero-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.av-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.av-hero-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}
.av-hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.25rem;
}
.av-hero-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}
.av-hero-total .av-hero-val { color: var(--gold); }
.av-hero-strong .av-hero-val { color: #2E7D32; }
.av-hero-weak .av-hero-val { color: #C62828; }
.av-hero-vittaya .av-hero-val { color: #1565C0; }
.av-hero-indu .av-hero-val { color: #E65100; font-size: 2.2rem; }
.av-hero-finance .av-hero-val { font-size: 2rem; }

/* Section containers */
.av-dash-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}
.av-section-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.35rem 0;
}
.av-section-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

/* SAV Bar Chart */
.av-sav-chart {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 180px;
    padding: 0 0.5rem;
}
.av-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.av-bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}
.av-bar-track {
    width: 100%;
    height: 120px;
    background: rgba(0,0,0,0.03);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.av-bar-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 4px;
}
.av-bar-fill.av-bar-excellent { background: linear-gradient(180deg, #1B5E20, #4CAF50); }
.av-bar-fill.av-bar-strong { background: linear-gradient(180deg, #2E7D32, #66BB6A); }
.av-bar-fill.av-bar-moderate { background: linear-gradient(180deg, #E65100, #FF9800); }
.av-bar-fill.av-bar-weak { background: linear-gradient(180deg, #B71C1C, #EF5350); }
.av-bar-sign {
    font-size: 1rem;
    line-height: 1;
}
.av-bar-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.av-bar-house {
    font-size: 0.6rem;
    color: var(--text-tertiary, #999);
    font-weight: 500;
}
.av-sav-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    justify-content: center;
}
.av-legend-item {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.av-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}
.av-legend-dot.av-bar-excellent { background: #2E7D32; }
.av-legend-dot.av-bar-strong { background: #4CAF50; }
.av-legend-dot.av-bar-moderate { background: #FF9800; }
.av-legend-dot.av-bar-weak { background: #EF5350; }

/* Planet Strength Grid */
.av-planet-strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.av-ps-card {
    border-radius: 14px;
    padding: 0.9rem;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.4);
    transition: transform 0.2s;
}
.av-ps-card:hover { transform: translateY(-2px); }
.av-ps-card.av-ps-excellent { border-left: 4px solid #1B5E20; }
.av-ps-card.av-ps-strong { border-left: 4px solid #4CAF50; }
.av-ps-card.av-ps-average { border-left: 4px solid #FF9800; }
.av-ps-card.av-ps-weak { border-left: 4px solid #C62828; }

.av-ps-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.av-ps-emoji { font-size: 1.3rem; }
.av-ps-name { font-weight: 700; font-size: 0.95rem; }
.av-ps-hindi { font-size: 0.75rem; color: var(--text-secondary); }
.av-ps-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.av-ps-bindu-ring {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.av-ps-ring-svg {
    width: 100%;
    height: 100%;
}
.av-ps-bindu-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}
.av-ps-info { flex: 1; }
.av-ps-level {
    font-weight: 700;
    font-size: 0.85rem;
}
.av-ps-excellent .av-ps-level { color: #1B5E20; }
.av-ps-strong .av-ps-level { color: #4CAF50; }
.av-ps-average .av-ps-level { color: #FF9800; }
.av-ps-weak .av-ps-level { color: #C62828; }
.av-ps-total, .av-ps-sign {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.av-ps-spark {
    display: flex;
    gap: 2px;
    height: 24px;
    align-items: flex-end;
    margin-bottom: 0.4rem;
}
.av-spark-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: height 0.3s;
}
.av-spark-bar.av-spark-natal {
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.av-ps-karakatwa {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 0.35rem;
    line-height: 1.4;
}

/* BAV Heatmap */
.av-heatmap-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.av-heatmap {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.av-heatmap th {
    padding: 0.4rem 0.3rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-bottom: 2px solid var(--glass-border);
}
.av-hm-sign {
    font-size: 0.6rem;
    display: block;
}
.av-heatmap td {
    padding: 2px;
    text-align: center;
}
.av-hm-planet {
    font-weight: 700;
    font-size: 0.78rem;
    text-align: left !important;
    padding-left: 0.5rem !important;
    white-space: nowrap;
}
.av-hm-cell {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    transition: transform 0.15s;
}
.av-hm-cell:hover { transform: scale(1.15); }
.av-hm-total {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.82rem;
}
.av-hm-sav-row { border-top: 2px solid var(--glass-border); }
.av-hm-sav-excellent { background: rgba(27,94,32,0.3) !important; color: #1B5E20 !important; font-weight: 800; }
.av-hm-sav-strong { background: rgba(46,125,50,0.2) !important; color: #2E7D32 !important; font-weight: 700; }
.av-hm-sav-mod { background: rgba(230,81,0,0.15) !important; color: #E65100 !important; }
.av-hm-sav-weak { background: rgba(198,40,40,0.15) !important; color: #C62828 !important; }

/* Reduction tabs */
.av-reduction-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.av-red-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.av-red-tab:hover { background: rgba(255,255,255,0.5); }
.av-red-tab.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}
.av-red-table .av-hm-cell { width: 28px; height: 28px; line-height: 28px; font-size: 0.75rem; }
.av-red-changed {
    outline: 2px solid #E65100 !important;
    outline-offset: -1px;
}

/* Shodhya Pinda */
.av-pinda-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.av-pinda-card {
    background: rgba(255,255,255,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem;
}
.av-pinda-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}
.av-pinda-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
}
.av-pinda-bar-track {
    height: 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}
.av-pinda-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.av-pinda-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* Indu Lagna */
.av-indu-card {
    background: linear-gradient(135deg, rgba(230,81,0,0.08), rgba(255,152,0,0.05));
    border: 1px solid rgba(230,81,0,0.2);
    border-radius: 14px;
    padding: 1.25rem;
}
.av-indu-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.av-indu-glyph {
    font-size: 2.8rem;
    color: #E65100;
    line-height: 1;
}
.av-indu-sign {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}
.av-indu-house {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.av-indu-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.av-indu-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
}
.av-indu-row span:first-child { color: var(--text-secondary); }
.av-indu-row span:last-child { font-weight: 600; }
.av-indu-good { color: #2E7D32 !important; }
.av-indu-bad { color: #C62828 !important; }
.av-indu-interpretation {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    border-top: 1px solid rgba(230,81,0,0.15);
    padding-top: 0.6rem;
    font-style: italic;
}

/* Life Analysis Panels */
.av-life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.av-life-panel {
    background: rgba(255,255,255,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.9rem;
}
.av-life-panel-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}
.av-life-item {
    display: grid;
    grid-template-columns: 1fr 100px 36px;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    padding: 0.3rem 0.4rem;
    border-radius: 6px;
    font-size: 0.78rem;
}
.av-life-item.av-life-best {
    background: rgba(76,175,80,0.08);
    border: 1px solid rgba(76,175,80,0.2);
}
.av-life-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.73rem;
}
.av-life-bar-track {
    height: 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.av-life-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.av-life-val {
    font-weight: 700;
    font-size: 0.8rem;
    text-align: right;
    color: var(--text-primary);
}
.av-life-note {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-style: italic;
}

/* House Grid */
.av-house-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}
.av-house-card {
    border-radius: 10px;
    padding: 0.6rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.15s;
}
.av-house-card:hover { transform: scale(1.03); }
.av-hc-strong { background: rgba(46,125,50,0.1); border-color: rgba(46,125,50,0.25); }
.av-hc-ok { background: rgba(255,152,0,0.08); border-color: rgba(255,152,0,0.2); }
.av-hc-weak { background: rgba(198,40,40,0.08); border-color: rgba(198,40,40,0.2); }
.av-hc-num {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--gold);
}
.av-hc-sign { font-size: 0.75rem; color: var(--text-secondary); }
.av-hc-score {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0.15rem 0;
}
.av-hc-strong .av-hc-score { color: #2E7D32; }
.av-hc-ok .av-hc-score { color: #E65100; }
.av-hc-weak .av-hc-score { color: #C62828; }
.av-hc-thresh {
    font-size: 0.65rem;
    color: var(--text-secondary);
}
.av-hc-status {
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0.1rem 0;
}
.av-hc-strong .av-hc-status { color: #2E7D32; }
.av-hc-ok .av-hc-status { color: #E65100; }
.av-hc-weak .av-hc-status { color: #C62828; }
.av-hc-theme {
    font-size: 0.62rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Interpretation Cards */
.av-interp-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.av-interp-card {
    background: rgba(255,255,255,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}
.av-interp-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255,255,255,0.3);
}
.av-interp-emoji { font-size: 1.3rem; }
.av-interp-name {
    font-weight: 700;
    font-size: 0.9rem;
}
.av-interp-hindi {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.av-interp-pos {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.av-interp-badge {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.av-interp-excellent { background: rgba(27,94,32,0.15); color: #1B5E20; }
.av-interp-strong { background: rgba(76,175,80,0.15); color: #2E7D32; }
.av-interp-average { background: rgba(255,152,0,0.15); color: #E65100; }
.av-interp-weak { background: rgba(198,40,40,0.15); color: #C62828; }
.av-interp-veryweak { background: rgba(198,40,40,0.2); color: #B71C1C; }
.av-interp-body {
    padding: 0.75rem 0.9rem;
}
.av-interp-reading {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.av-interp-transit {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Key Findings */
.av-findings {
    background: linear-gradient(135deg, rgba(179,134,0,0.06), rgba(255,215,0,0.03));
    border-color: rgba(179,134,0,0.2);
}
.av-findings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}
.av-finding-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.04);
}
.av-fi-icon { font-size: 1.2rem; flex-shrink: 0; }
.av-fi-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.av-fi-text strong { color: var(--text-primary); }

/* ======= ASHTAKAVARGA RESPONSIVE ======= */
@media (max-width: 768px) {
    .av-hero-grid { grid-template-columns: repeat(3, 1fr); }
    .av-hero-val { font-size: 1.4rem; }
    .av-planet-strength-grid { grid-template-columns: 1fr; }
    .av-life-grid { grid-template-columns: 1fr; }
    .av-house-grid { grid-template-columns: repeat(4, 1fr); }
    .av-findings-grid { grid-template-columns: 1fr; }
    .av-indu-details { grid-template-columns: 1fr; }
    .av-sav-chart { height: 140px; }
    .av-bar-track { height: 90px; }
    .av-heatmap { font-size: 0.7rem; }
    .av-hm-cell { width: 24px; height: 24px; line-height: 24px; font-size: 0.68rem; }
}
@media (max-width: 480px) {
    .av-hero-grid { grid-template-columns: repeat(2, 1fr); }
    .av-house-grid { grid-template-columns: repeat(3, 1fr); }
    .av-reduction-tabs { flex-wrap: wrap; }
    .av-red-tab { flex: 1; text-align: center; min-width: 100px; }
    .av-dasha-grid { grid-template-columns: 1fr !important; }
    .av-transit-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   ASHTAKAVARGA — DASHA & TRANSIT ANALYSIS
   ============================================ */
.av-dasha-section {
    background: linear-gradient(135deg, rgba(103,58,183,0.05), rgba(156,39,176,0.03));
    border-color: rgba(103,58,183,0.2);
}
.av-dasha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.av-dasha-card {
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.5);
    position: relative;
}
.av-dasha-card.av-dl-excellent { border-left: 5px solid #1B5E20; }
.av-dasha-card.av-dl-strong { border-left: 5px solid #4CAF50; }
.av-dasha-card.av-dl-average { border-left: 5px solid #FF9800; }
.av-dasha-card.av-dl-weak { border-left: 5px solid #C62828; }

.av-dl-badge {
    position: absolute;
    top: -1px;
    right: 12px;
    background: #673AB7;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 0 0 8px 8px;
}
.av-dl-badge-antar { background: #1565C0; }
.av-dl-badge-pratyantar { background: #455A64; }

.av-dl-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.av-dl-emoji { font-size: 1.5rem; }
.av-dl-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}
.av-dl-dates {
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.av-dl-strength-badge {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
}
.av-dl-excellent .av-dl-strength-badge { background: rgba(27,94,32,0.15); color: #1B5E20; }
.av-dl-strong .av-dl-strength-badge { background: rgba(76,175,80,0.15); color: #2E7D32; }
.av-dl-average .av-dl-strength-badge { background: rgba(255,152,0,0.15); color: #E65100; }
.av-dl-weak .av-dl-strength-badge { background: rgba(198,40,40,0.15); color: #C62828; }

.av-dl-progress {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.2rem;
}
.av-dl-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.av-dl-progress-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: right;
    margin-bottom: 0.5rem;
}

.av-dl-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}
.av-dl-stat {
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
    padding: 0.3rem 0.4rem;
    text-align: center;
}
.av-dl-stat-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    display: block;
}
.av-dl-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
}
.av-dl-interp {
    font-size: 0.78rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.3rem;
}
.av-dl-wealth {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-style: italic;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Mini dasha card (pratyantardasha) */
.av-dasha-card-mini {
    grid-column: 1 / -1;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.35);
    position: relative;
}
.av-dasha-card-mini .av-dl-head { margin-top: 0.3rem; margin-bottom: 0.2rem; }
.av-dl-mini-stats {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-left: 2rem;
}

/* Transit Section */
.av-transit-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(103,58,183,0.15);
}
.av-transit-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.3rem;
}
.av-transit-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.av-transit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}
.av-transit-card {
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.4);
}
.av-transit-card.av-tq-excellent { border-top: 3px solid #1B5E20; }
.av-transit-card.av-tq-strong { border-top: 3px solid #4CAF50; }
.av-transit-card.av-tq-moderate { border-top: 3px solid #FF9800; }
.av-transit-card.av-tq-weak { border-top: 3px solid #C62828; }

.av-tc-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.av-tc-emoji { font-size: 1.2rem; }
.av-tc-info { flex: 1; }
.av-tc-name {
    font-weight: 700;
    font-size: 0.85rem;
}
.av-tc-pos {
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.av-tc-quality {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
}
.av-tc-quality.av-tq-excellent { background: rgba(27,94,32,0.12); color: #1B5E20; }
.av-tc-quality.av-tq-strong { background: rgba(76,175,80,0.12); color: #2E7D32; }
.av-tc-quality.av-tq-moderate { background: rgba(255,152,0,0.12); color: #E65100; }
.av-tc-quality.av-tq-weak { background: rgba(198,40,40,0.12); color: #C62828; }

.av-tc-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}
.av-tc-score-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
    background: rgba(0,0,0,0.03);
    border-radius: 4px;
}
.av-tc-score-item span:first-child { color: var(--text-secondary); }
.av-tc-score-val {
    font-weight: 700;
    color: var(--text-primary);
}
.av-tc-reading {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-secondary);
    padding-top: 0.3rem;
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* Timing Summary */
.av-timing-summary {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.4);
    border: 1px solid var(--glass-border);
}
.av-timing-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.av-timing-verdict {
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    text-align: center;
}
.av-timing-verdict.av-timing-good {
    background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(76,175,80,0.05));
    border: 1px solid rgba(46,125,50,0.2);
}
.av-timing-verdict.av-timing-mixed {
    background: linear-gradient(135deg, rgba(255,152,0,0.1), rgba(255,193,7,0.05));
    border: 1px solid rgba(255,152,0,0.2);
}
.av-timing-verdict.av-timing-caution {
    background: linear-gradient(135deg, rgba(198,40,40,0.08), rgba(244,67,54,0.04));
    border: 1px solid rgba(198,40,40,0.2);
}
.av-timing-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}
.av-timing-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
}
.av-timing-good .av-timing-text { color: #1B5E20; }
.av-timing-mixed .av-timing-text { color: #E65100; }
.av-timing-caution .av-timing-text { color: #C62828; }

.av-timing-factors {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.av-timing-factor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-size: 0.78rem;
}
.av-timing-factor.av-tf-good {
    background: rgba(46,125,50,0.06);
    border: 1px solid rgba(46,125,50,0.12);
}
.av-timing-factor.av-tf-bad {
    background: rgba(198,40,40,0.05);
    border: 1px solid rgba(198,40,40,0.1);
}
.av-tf-good span:first-child { color: #2E7D32; font-weight: 700; }
.av-tf-bad span:first-child { color: #C62828; font-weight: 700; }

@media (max-width: 768px) {
    .av-dasha-grid { grid-template-columns: 1fr; }
    .av-transit-grid { grid-template-columns: repeat(2, 1fr); }
    .av-dl-stats { grid-template-columns: repeat(2, 1fr); }
}

.map-picker-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

#vedic-map-picker {
    height: 220px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1; /* Keep base map z-index low */
}

/* Ensure Leaflet controls don't overlap navigation or overlays */
.leaflet-control-container {
    z-index: 1000;
}
.leaflet-pane {
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   PAST LIFE & KARMIC ANALYSIS TAB
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.karma-hero { margin-bottom: 1.5rem; }

/* Axis Visual */
.karma-axis-visual {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.25rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.karma-axis-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,215,0,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(138,43,226,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.karma-axis-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1.5rem;
    position: relative;
}
.karma-axis-icon { font-size: 1.5rem; }
.karma-axis-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.karma-node-card {
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    text-align: center;
    border-radius: 14px;
    padding: 1.5rem 1rem;
    position: relative;
}
.karma-ketu-card {
    background: linear-gradient(135deg, rgba(156,39,176,0.2) 0%, rgba(103,58,183,0.15) 100%);
    border: 1px solid rgba(156,39,176,0.3);
}
.karma-rahu-card {
    background: linear-gradient(135deg, rgba(255,152,0,0.2) 0%, rgba(255,193,7,0.15) 100%);
    border: 1px solid rgba(255,152,0,0.3);
}
.karma-node-glyph { font-size: 2.5rem; margin-bottom: 0.5rem; }
.karma-node-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}
.karma-node-sign {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}
.karma-node-house {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}
.karma-node-tag {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.3rem;
}
.karma-ketu-card .karma-node-tag { background: rgba(156,39,176,0.3); color: #ce93d8; }
.karma-rahu-card .karma-node-tag { background: rgba(255,152,0,0.3); color: #ffcc80; }
.karma-node-element { font-size: 0.75rem; opacity: 0.6; }

.karma-axis-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 100px;
}
.karma-axis-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(156,39,176,0.5), rgba(255,215,0,0.5));
}
.karma-axis-arrow-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}
.karma-element-combo {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    position: relative;
}
.karma-element-combo strong { color: #ffd700; }

/* Stats Row */
.karma-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}
.karma-stat-card {
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
}
.karma-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}
.karma-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}
.karma-stat-sub {
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 0.15rem;
}

/* Sections */
.karma-section {
    margin-top: 1.75rem;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 1.5rem;
}
.karma-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-dark, #8b6914);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0,0,0,0.06);
}
.karma-section-icon { font-size: 1.3rem; }
.karma-section-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Nodal Reading */
.karma-nodal-reading {
    display: grid;
    gap: 0.75rem;
}
.karma-reading-panel {
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid;
}
.karma-past-panel {
    background: linear-gradient(135deg, rgba(156,39,176,0.04) 0%, rgba(103,58,183,0.02) 100%);
    border-left-color: #9C27B0;
}
.karma-present-panel {
    background: linear-gradient(135deg, rgba(255,152,0,0.04) 0%, rgba(255,193,7,0.02) 100%);
    border-left-color: #FF9800;
}
.karma-challenge-panel {
    background: linear-gradient(135deg, rgba(198,40,40,0.04) 0%, rgba(211,47,47,0.02) 100%);
    border-left-color: #C62828;
}
.karma-vedic-panel {
    background: linear-gradient(135deg, rgba(46,125,50,0.04) 0%, rgba(76,175,80,0.02) 100%);
    border-left-color: #2E7D32;
}
.karma-rp-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
}
.karma-rp-icon { font-size: 1.1rem; }
.karma-rp-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.05);
    color: var(--text-secondary);
}
.karma-reading-panel p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* Controllers */
.karma-controllers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.karma-ctrl-card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
.karma-ctrl-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #fff;
}
.karma-ctrl-ketu-hdr { background: linear-gradient(135deg, #7B1FA2, #9C27B0); }
.karma-ctrl-rahu-hdr { background: linear-gradient(135deg, #E65100, #FF9800); }
.karma-ctrl-glyph { font-size: 1.8rem; }
.karma-ctrl-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}
.karma-ctrl-role { font-size: 0.72rem; opacity: 0.85; }
.karma-ctrl-body { padding: 1rem; }
.karma-ctrl-pos {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.karma-ctrl-reading {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Ketu Detail */
.karma-kd-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.karma-kd-card {
    border-radius: 10px;
    padding: 1rem;
    background: rgba(0,0,0,0.015);
    border: 1px solid rgba(0,0,0,0.05);
}
.karma-kd-head {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    color: var(--gold-dark);
}
.karma-kd-card p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}
.karma-kd-remedy {
    background: linear-gradient(135deg, rgba(46,125,50,0.04) 0%, rgba(76,175,80,0.02) 100%);
    border-color: rgba(46,125,50,0.15);
}

/* Trinal Spread */
.karma-trinal-spread {
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
    padding: 1rem;
}
.karma-trinal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}
.karma-trinal-houses {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.karma-trinal-house {
    text-align: center;
    min-width: 100px;
    padding: 0.75rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(156,39,176,0.15);
}
.karma-th-destiny { border-color: rgba(255,152,0,0.2); }
.karma-th-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}
.karma-th-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}
.karma-th-theme {
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Rahu Destiny */
.karma-rahu-destiny {}
.karma-rahu-reading {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255,152,0,0.04) 0%, rgba(255,193,7,0.02) 100%);
    border-radius: 10px;
    border-left: 3px solid #FF9800;
}

/* Storehouse */
.karma-storehouse {}
.karma-store-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(63,81,181,0.06) 0%, rgba(33,150,243,0.04) 100%);
    border-radius: 12px;
}
.karma-store-sign-glyph { font-size: 2.5rem; }
.karma-store-sign {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-dark);
}
.karma-store-element {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.karma-store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.karma-store-item {
    border-radius: 10px;
    padding: 1rem;
    background: rgba(0,0,0,0.015);
    border: 1px solid rgba(0,0,0,0.05);
}
.karma-si-head {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: var(--gold-dark);
}
.karma-store-item p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}
.karma-si-lesson {
    background: linear-gradient(135deg, rgba(46,125,50,0.04) 0%, rgba(76,175,80,0.02) 100%);
    border-color: rgba(46,125,50,0.15);
}

/* 12th house planets */
.karma-12th-planets {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1rem;
}
.karma-12p-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-dark);
    margin-bottom: 0.4rem;
}
.karma-12p-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.karma-12p-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.karma-12p-card {
    border-radius: 10px;
    padding: 0.85rem;
    background: rgba(198,40,40,0.03);
    border: 1px solid rgba(198,40,40,0.1);
}
.karma-12p-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #C62828;
    margin-bottom: 0.4rem;
}
.karma-12p-glyph { font-size: 1.2rem; }
.karma-12p-card p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}
.karma-12p-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem;
    background: rgba(46,125,50,0.04);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #2E7D32;
    border: 1px solid rgba(46,125,50,0.1);
}

/* Retrograde */
.karma-retro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}
.karma-retro-card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
.karma-retro-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem;
    background: linear-gradient(135deg, rgba(69,90,100,0.08) 0%, rgba(96,125,139,0.04) 100%);
}
.karma-retro-glyph { font-size: 1.5rem; }
.karma-retro-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}
.karma-retro-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: #C62828;
    color: #fff;
    margin-left: 0.3rem;
    vertical-align: middle;
}
.karma-retro-area {
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.karma-retro-body { padding: 0.85rem; }
.karma-retro-row {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.karma-retro-row:last-child { margin-bottom: 0; }
.karma-retro-label {
    font-weight: 700;
    color: var(--gold-dark);
    margin-right: 0.3rem;
}

/* Kaalsarpa */
.karma-kaalsarpa {}
.karma-ks-alert {
    background: linear-gradient(135deg, rgba(198,40,40,0.06) 0%, rgba(244,67,54,0.03) 100%);
    border: 1px solid rgba(198,40,40,0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.karma-ks-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #C62828;
    margin-bottom: 0.3rem;
}
.karma-ks-config {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}
.karma-ks-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}
.karma-ks-effects, .karma-ks-remedies {
    margin-bottom: 0.75rem;
}
.karma-ks-effect-title, .karma-ks-remedy-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--gold-dark);
    margin-bottom: 0.4rem;
}
.karma-ks-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.karma-ks-remedy-list li { color: #2E7D32; }

/* Pitra */
.karma-pitra {}
.karma-pitra-intro {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.karma-pitra-indicators {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.karma-pitra-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: rgba(198,40,40,0.03);
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    border: 1px solid rgba(198,40,40,0.08);
}
.karma-pitra-icon { color: #E65100; font-size: 0.9rem; flex-shrink: 0; margin-top: 0.1rem; }
.karma-pitra-remedies {
    background: rgba(46,125,50,0.03);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(46,125,50,0.1);
}
.karma-pitra-rem-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: #2E7D32;
    margin-bottom: 0.4rem;
}

/* Nodal House Reading */
.karma-house-reading {
    display: grid;
    gap: 0.75rem;
}
.karma-hr-panel {
    border-radius: 12px;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(156,39,176,0.04) 0%, rgba(103,58,183,0.02) 100%);
    border-left: 4px solid #9C27B0;
}
.karma-hr-present {
    background: linear-gradient(135deg, rgba(255,152,0,0.04) 0%, rgba(255,193,7,0.02) 100%);
    border-left-color: #FF9800;
}
.karma-hr-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
}
.karma-hr-panel p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* Summary */
.karma-summary {}
.karma-sum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.karma-sum-item {
    border-radius: 12px;
    padding: 1.15rem;
    background: rgba(0,0,0,0.015);
    border: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}
.karma-sum-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.karma-sum-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.karma-sum-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-dark);
    margin-bottom: 0.4rem;
}
.karma-sum-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .karma-stats-row { grid-template-columns: repeat(3, 1fr); }
    .karma-axis-row { flex-direction: column; }
    .karma-axis-connector { flex-direction: row; min-width: auto; }
    .karma-axis-line { width: 2px; height: 30px; }
    .karma-controllers-grid { grid-template-columns: 1fr; }
    .karma-kd-row { grid-template-columns: 1fr; }
    .karma-store-grid { grid-template-columns: 1fr; }
    .karma-sum-grid { grid-template-columns: repeat(2, 1fr); }
    .karma-retro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .karma-stats-row { grid-template-columns: repeat(2, 1fr); }
    .karma-axis-visual { padding: 1.25rem; }
    .karma-sum-grid { grid-template-columns: 1fr; }
    .karma-trinal-houses { gap: 0.75rem; }
}

@keyframes vbcSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER — Dr. Ananjan Astro Intelligence                    */
/* ═══════════════════════════════════════════════════════════ */
.vedic-footer {
    width: 100%;
    margin-top: 3rem;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.5rem 1.5rem;
    color: #c8c8d4;
    font-family: 'DM Sans', sans-serif;
}
.vedic-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.vedic-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}
.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 0.02em;
}
.footer-tagline {
    font-size: 0.82rem;
    color: #9a9ab0;
    font-weight: 400;
    letter-spacing: 0.03em;
}
.vedic-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.vedic-footer-links a {
    color: #D4AF37;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}
.vedic-footer-links a:hover {
    color: #f0d060;
    border-bottom-color: #f0d060;
}
.vedic-footer-copy {
    font-size: 0.78rem;
    color: #7a7a90;
    line-height: 1.6;
}
.footer-disclaimer {
    font-size: 0.7rem;
    color: #5a5a70;
    font-style: italic;
}
@media (max-width: 600px) {
    .vedic-footer { padding: 1.5rem 1rem 1rem; border-radius: 14px 14px 0 0; }
    .footer-logo-text { font-size: 1.1rem; }
    .vedic-brand-badge { font-size: 0.72rem; padding: 0.2rem 0.7rem; }
    .vedic-header h1 { font-size: 2rem; }
    .remedy-cards-grid { grid-template-columns: 1fr !important; }
    .remedy-overview-card { padding: 1.15rem !important; }
    #ai-astrology-wrapper > div:nth-child(2) { grid-template-columns: 1fr !important; }
}

/* KP Astrology tab styles */
.kp-planet-btn:hover, .kp-house-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.kp-planet-btn.kp-active, .kp-house-btn.kp-active {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
@media (max-width: 600px) {
    #kp-wrapper > div { padding: 1rem !important; }
    #kp-wrapper .vedic-table { font-size: 0.72rem !important; }
    #tab-kp [style*="grid-template-columns:repeat(auto-fill"] { grid-template-columns: 1fr !important; }
    #tab-kp [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
    #tab-kp [style*="grid-template-columns:repeat(auto-fit"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media print {
    #kp-wrapper > div { break-inside: avoid; }
}

/* Remedy tab print styles */
@media print {
    .remedy-planet-card { break-inside: avoid; }
    .remedy-overview-card { break-inside: avoid; }
}

/* ═══════════════════════════════════════
   VASTU REMEDIES TAB STYLES
   ═══════════════════════════════════════ */
.vastu-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}
.vastu-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.5rem 0;
}

/* Compass */
.vastu-compass-container {
    max-width: 420px;
    margin: 0 auto;
}
.vastu-compass-svg {
    width: 100%;
    height: auto;
}
.vastu-zone-circle:hover {
    fill-opacity: 0.4 !important;
    stroke-opacity: 0.8 !important;
    cursor: pointer;
}
.vastu-zone-detail {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(179,134,0,0.04);
    border: 1px solid rgba(179,134,0,0.15);
    border-radius: 10px;
    animation: vastuSlideIn 0.3s ease;
}
@keyframes vastuSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Five Elements Grid */
.vastu-elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.vastu-element-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    transition: var(--transition-smooth);
}
.vastu-element-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.vastu-elem-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.vastu-elem-bar-wrap {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.vastu-elem-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.vastu-elem-remedy {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    padding: 0.4rem;
    background: rgba(0,0,0,0.02);
    border-radius: 6px;
    line-height: 1.5;
}

/* Direction Table */
.vastu-dir-table td, .vastu-dir-table th {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
}
.vastu-exalted { color: #27ae60; font-weight: 600; }
.vastu-debilitated { color: #e74c3c; font-weight: 600; }
.vastu-own { color: #2980b9; font-weight: 600; }
.vastu-neutral { color: var(--text-secondary); }
.vastu-priority-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 16-Zone Grid */
.vastu-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.8rem;
}
.vastu-zone-card {
    padding: 0.8rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.vastu-zone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.85);
}
.vastu-zone-active {
    background: rgba(179,134,0,0.05);
    border-color: rgba(179,134,0,0.2);
}
.vastu-zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vastu-zone-dir {
    font-weight: 700;
    font-size: 0.92rem;
    font-family: 'Outfit', sans-serif;
}
.vastu-zone-deity {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-style: italic;
}
.vastu-zone-tip {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    line-height: 1.5;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.35rem;
}
.vastu-planet-chip {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Remedies Grid */
.vastu-remedies-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.vastu-remedy-planet-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition-smooth);
}
.vastu-remedy-planet-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.vastu-remedy-planet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.vastu-afflicted-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.2);
    margin-left: 0.3rem;
}
.vastu-remedy-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}
.vastu-remedy-item {
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.vastu-remedy-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.vastu-remedy-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}
.vastu-remedy-type-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.04);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}
.vastu-remedy-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-dark);
}
.vastu-remedy-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.vastu-remedy-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Filter Buttons */
.vastu-filter-btn {
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(179,134,0,0.25);
    border-radius: 20px;
    background: rgba(255,255,255,0.6);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.vastu-filter-btn:hover {
    background: rgba(179,134,0,0.08);
    color: var(--gold-dark);
}
.vastu-filter-active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* Timing Grid */
.vastu-timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.7rem;
}
.vastu-timing-card {
    padding: 0.7rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.vastu-timing-card:hover {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Tips Grid */
.vastu-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
}
.vastu-tip-card {
    padding: 0.8rem;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-smooth);
}
.vastu-tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.vastu-tip-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}
.vastu-tip-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--gold-dark);
    margin-bottom: 0.3rem;
}
.vastu-tip-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Budget Grid */
.vastu-budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
}
.vastu-budget-card {
    padding: 1rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    text-align: center;
}
.vastu-budget-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vastu-budget-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0.3rem 0;
}
.vastu-budget-note {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 600px) {
    .vastu-section { padding: 0.85rem; }
    .vastu-elements-grid { grid-template-columns: 1fr; }
    .vastu-zones-grid { grid-template-columns: 1fr; }
    .vastu-remedy-items { grid-template-columns: 1fr; }
    .vastu-timing-grid { grid-template-columns: repeat(2, 1fr); }
    .vastu-tips-grid { grid-template-columns: 1fr; }
    .vastu-budget-grid { grid-template-columns: repeat(2, 1fr); }
    .vastu-compass-container { max-width: 320px; }
    .vastu-remedy-planet-header { flex-direction: column; align-items: flex-start; }
}

/* Print */
@media print {
    .vastu-section { break-inside: avoid; }
    .vastu-remedy-planet-card { break-inside: avoid; }
    .vastu-filter-btn { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MEDICAL ASTROLOGY TAB — Ayurvedic Health Analysis
   ═══════════════════════════════════════════════════════════════ */

/* Section containers */
.med-section {
    background: rgba(212,175,55,0.03);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.med-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.med-section-title .med-icon {
    font-size: 1.3rem;
}

/* Dosha Constitution Wheel */
.dosha-wheel-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}
.dosha-chart-svg {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}
.dosha-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}
.dosha-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    border: 1px solid rgba(212,175,55,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dosha-legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.15);
}
.dosha-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dosha-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.dosha-percent {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: auto;
    font-weight: 600;
}
.dosha-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    margin-top: 0.3rem;
    overflow: hidden;
}
.dosha-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}
.dosha-vata { background: linear-gradient(135deg, #6C63FF, #9B8FFF); }
.dosha-pitta { background: linear-gradient(135deg, #FF6B35, #FF9A5C); }
.dosha-kapha { background: linear-gradient(135deg, #2ECC71, #7DCEA0); }

/* Dosha detail cards */
.dosha-detail-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.dosha-detail-card {
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(212,175,55,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dosha-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.12);
}
.dosha-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.dosha-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}
.dosha-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}
.dosha-card-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.dosha-card-body strong {
    color: var(--text-primary);
}

/* Planetary Health Grid */
.med-planet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.med-planet-card {
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(212,175,55,0.1);
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.med-planet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}
.med-planet-card.benefic::before { background: linear-gradient(to bottom, #2ECC71, #27AE60); }
.med-planet-card.malefic::before { background: linear-gradient(to bottom, #E74C3C, #C0392B); }
.med-planet-card.neutral::before { background: linear-gradient(to bottom, #F39C12, #E67E22); }
.med-planet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212,175,55,0.12);
}
.med-planet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.med-planet-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.med-planet-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}
.med-badge-strong { background: rgba(46,204,113,0.15); color: #27AE60; }
.med-badge-weak { background: rgba(231,76,60,0.15); color: #E74C3C; }
.med-badge-neutral { background: rgba(243,156,18,0.15); color: #E67E22; }
.med-planet-body {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.med-planet-body .med-tag {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.12rem 0.45rem;
    margin: 0.15rem 0.15rem 0.15rem 0;
    border-radius: 6px;
    background: rgba(212,175,55,0.08);
    color: var(--gold);
    font-weight: 500;
}

/* Body Map / House-Organ */
.med-body-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}
.med-body-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    border: 1px solid rgba(212,175,55,0.08);
    font-size: 0.83rem;
    color: var(--text-secondary);
    transition: background 0.2s;
}
.med-body-item:hover {
    background: rgba(212,175,55,0.06);
}
.med-body-house {
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    min-width: 28px;
}

/* Dhatu (Tissue) Analysis */
.med-dhatu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.med-dhatu-card {
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(212,175,55,0.1);
    position: relative;
}
.med-dhatu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.med-dhatu-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
}
.med-dhatu-planet {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}
.med-dhatu-bar {
    height: 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
}
.med-dhatu-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}
.med-dhatu-status {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Chakra Analysis */
.med-chakra-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}
.med-chakra-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}
.med-chakra-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.med-chakra-dot:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
}
.med-chakra-dot.active-chakra {
    box-shadow: 0 0 0 4px rgba(212,175,55,0.3), 0 0 20px rgba(212,175,55,0.2);
    transform: scale(1.1);
}
.med-chakra-details {
    flex: 1;
    min-width: 250px;
}
.med-chakra-detail-card {
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(212,175,55,0.1);
}
.med-chakra-detail-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.med-chakra-info-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.83rem;
    color: var(--text-secondary);
}
.med-chakra-info-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 90px;
}

/* Remedy Cards */
.med-remedy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.med-remedy-card {
    background: rgba(255,255,255,0.6);
    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid rgba(212,175,55,0.12);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.med-remedy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.12);
}
.med-remedy-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, rgba(212,175,55,0.08) 0%, transparent 70%);
}
.med-remedy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}
.med-remedy-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--gold);
    padding: 0.15rem 0.5rem;
    background: rgba(212,175,55,0.1);
    border-radius: 6px;
}
.med-remedy-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #27AE60;
    background: rgba(46,204,113,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}
.med-remedy-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.med-remedy-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.med-remedy-planet-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.12rem 0.4rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    background: rgba(108,99,255,0.08);
    color: #6C63FF;
    font-weight: 600;
}

/* Filter Buttons */
.med-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.med-filter-btn {
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.med-filter-btn:hover,
.med-filter-btn.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* Budget Estimation */
.med-budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.med-budget-table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    background: rgba(212,175,55,0.06);
    color: var(--gold);
    font-weight: 700;
    border-bottom: 2px solid rgba(212,175,55,0.15);
}
.med-budget-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: var(--text-secondary);
}
.med-budget-table tr:hover td {
    background: rgba(212,175,55,0.03);
}
.med-budget-total {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.med-budget-total td {
    border-top: 2px solid var(--gold);
    padding-top: 0.75rem;
}

/* Three Bodies Section */
.med-three-bodies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.med-body-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,0.1);
    transition: transform 0.25s;
}
.med-body-card:hover {
    transform: translateY(-3px);
}
.med-body-emoji {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.med-body-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.med-body-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Five Elements Health */
.med-elements-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}
.med-element-card {
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    border: 1px solid rgba(212,175,55,0.1);
    transition: transform 0.25s;
}
.med-element-card:hover {
    transform: translateY(-2px);
}
.med-element-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}
.med-element-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.med-element-val {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.med-element-bar {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.med-element-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

/* Disease Timing */
.med-timing-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.med-timing-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    border: 1px solid rgba(212,175,55,0.08);
    font-size: 0.83rem;
}
.med-timing-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.med-timing-period {
    font-weight: 700;
    color: var(--text-primary);
}
.med-timing-desc {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Disclaimer */
.med-disclaimer {
    background: rgba(231,76,60,0.04);
    border: 1px dashed rgba(231,76,60,0.2);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1.5rem;
}
.med-disclaimer strong {
    color: #E74C3C;
}

/* Responsive */
@media (max-width: 768px) {
    .med-elements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dosha-wheel-container {
        flex-direction: column;
        align-items: center;
    }
    .dosha-chart-svg {
        width: 180px;
        height: 180px;
    }
    .med-planet-grid,
    .med-remedy-grid,
    .med-dhatu-grid {
        grid-template-columns: 1fr;
    }
    .med-three-bodies {
        grid-template-columns: 1fr;
    }
    .med-chakra-container {
        flex-direction: column;
        align-items: center;
    }
    .med-chakra-spine {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .med-elements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .med-body-grid {
        grid-template-columns: 1fr;
    }
    .med-section {
        padding: 1rem;
    }
}

/* Print */
@media print {
    .med-section {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
    .med-filter-bar {
        display: none;
    }
    .med-planet-card:hover,
    .med-remedy-card:hover,
    .med-dhatu-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ═══════════════════ BNN WEALTH ASTROLOGY TAB ═══════════════════ */
.bnn-section { margin-bottom: 2rem; }
.bnn-section-title {
    font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 700;
    color: var(--gold); margin: 0 0 1rem 0; padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(212,175,55,0.15); display: flex; align-items: center; gap: 0.5rem;
}
.bnn-section-title .bnn-icon { font-size: 1.3rem; }

/* Venus Lagna Chart */
.bnn-venus-chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.bnn-venus-house {
    background: linear-gradient(135deg, rgba(212,175,55,0.04), rgba(212,175,55,0.08));
    border: 1px solid rgba(212,175,55,0.12); border-radius: 10px; padding: 0.75rem; text-align: center;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.bnn-venus-house:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(212,175,55,0.15); border-color: rgba(212,175,55,0.3); }
.bnn-venus-house.wealth-house { border-color: rgba(46,204,113,0.4); background: linear-gradient(135deg, rgba(46,204,113,0.06), rgba(46,204,113,0.12)); }
.bnn-venus-house.wealth-house::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #2ecc71, #27ae60); }
.bnn-house-num { font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.bnn-house-sign { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin: 0.25rem 0; }
.bnn-house-planets { font-size: 0.8rem; color: var(--gold); font-weight: 500; min-height: 1.2rem; }
.bnn-house-badge { font-size: 0.6rem; background: rgba(46,204,113,0.15); color: #27ae60; padding: 0.15rem 0.4rem; border-radius: 4px; margin-top: 0.3rem; display: inline-block; font-weight: 600; }

/* Ashtalakshmi Cards */
.bnn-lakshmi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.bnn-lakshmi-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.02), rgba(212,175,55,0.04));
    border: 1px solid rgba(212,175,55,0.1); border-radius: 14px; padding: 1.25rem;
    transition: all 0.35s ease; position: relative; overflow: hidden;
}
.bnn-lakshmi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212,175,55,0.12); }
.bnn-lakshmi-card.active { border-color: rgba(46,204,113,0.5); background: linear-gradient(145deg, rgba(46,204,113,0.03), rgba(46,204,113,0.08)); }
.bnn-lakshmi-card.active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #2ecc71, #f1c40f); }
.bnn-lakshmi-card.inactive { opacity: 0.55; filter: grayscale(30%); }
.bnn-lakshmi-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.bnn-lakshmi-emoji { font-size: 2rem; }
.bnn-lakshmi-name { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; color: var(--gold); }
.bnn-lakshmi-subtitle { font-size: 0.78rem; color: var(--text-secondary); font-weight: 400; }
.bnn-lakshmi-planets { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.bnn-lakshmi-planets strong { color: var(--text-primary); }
.bnn-lakshmi-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.bnn-lakshmi-status {
    display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600;
    padding: 0.2rem 0.6rem; border-radius: 20px; margin-top: 0.5rem;
}
.bnn-lakshmi-status.active-status { background: rgba(46,204,113,0.15); color: #27ae60; }
.bnn-lakshmi-status.inactive-status { background: rgba(149,165,166,0.15); color: #95a5a6; }

/* Wealth Yoga Cards */
.bnn-yoga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.bnn-yoga-card {
    background: rgba(212,175,55,0.03); border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px; padding: 1rem; transition: all 0.3s ease;
}
.bnn-yoga-card:hover { border-color: rgba(212,175,55,0.25); }
.bnn-yoga-card.found { border-left: 4px solid #2ecc71; background: rgba(46,204,113,0.04); }
.bnn-yoga-card.not-found { border-left: 4px solid rgba(149,165,166,0.3); opacity: 0.6; }
.bnn-yoga-name { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--gold); font-size: 0.95rem; margin-bottom: 0.3rem; }
.bnn-yoga-detail { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.bnn-yoga-strength { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 20px; margin-top: 0.4rem; }
.bnn-yoga-strength.strong { background: rgba(46,204,113,0.15); color: #27ae60; }
.bnn-yoga-strength.moderate { background: rgba(241,196,15,0.15); color: #d4a017; }
.bnn-yoga-strength.weak { background: rgba(231,76,60,0.15); color: #e74c3c; }

/* Nakshatra Wealth DNA */
.bnn-nakshatra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.bnn-nakshatra-card {
    background: rgba(212,175,55,0.02); border: 1px solid rgba(212,175,55,0.1);
    border-radius: 10px; padding: 0.85rem; transition: all 0.3s ease; cursor: pointer;
}
.bnn-nakshatra-card:hover { border-color: rgba(212,175,55,0.25); transform: translateY(-1px); }
.bnn-nakshatra-card.active-nak { border-color: rgba(46,204,113,0.4); background: rgba(46,204,113,0.05); }
.bnn-nakshatra-card.active-nak::after { content: 'ACTIVE'; position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.6rem; font-weight: 700; color: #27ae60; background: rgba(46,204,113,0.15); padding: 0.1rem 0.4rem; border-radius: 4px; }
.bnn-nak-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.bnn-nak-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--gold); }
.bnn-nak-lord { font-size: 0.72rem; color: var(--text-secondary); background: rgba(0,0,0,0.03); padding: 0.15rem 0.4rem; border-radius: 4px; }
.bnn-nak-combos { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }
.bnn-nak-score { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; }
.bnn-nak-score-bar { flex: 1; height: 6px; background: rgba(0,0,0,0.06); border-radius: 3px; overflow: hidden; }
.bnn-nak-score-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.bnn-nak-score-label { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); min-width: 32px; text-align: right; }

/* Indu Lagna Section */
.bnn-indu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.bnn-indu-card {
    background: linear-gradient(135deg, rgba(155,89,182,0.04), rgba(155,89,182,0.08));
    border: 1px solid rgba(155,89,182,0.15); border-radius: 10px; padding: 0.85rem; text-align: center;
}
.bnn-indu-label { font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.bnn-indu-value { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: #9b59b6; margin: 0.25rem 0; }
.bnn-indu-detail { font-size: 0.78rem; color: var(--text-secondary); }

/* Business vs Job Indicator */
.bnn-career-meter {
    display: flex; align-items: center; gap: 1rem; padding: 1rem;
    background: rgba(212,175,55,0.03); border: 1px solid rgba(212,175,55,0.1); border-radius: 12px;
}
.bnn-career-label { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.85rem; min-width: 70px; text-align: center; }
.bnn-career-bar { flex: 1; height: 14px; background: rgba(0,0,0,0.06); border-radius: 7px; overflow: hidden; position: relative; }
.bnn-career-fill { height: 100%; border-radius: 7px; transition: width 0.8s ease; }
.bnn-career-factors { margin-top: 0.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.bnn-factor { font-size: 0.8rem; color: var(--text-secondary); padding: 0.4rem 0.6rem; background: rgba(0,0,0,0.02); border-radius: 6px; }
.bnn-factor.positive { border-left: 3px solid #2ecc71; }
.bnn-factor.negative { border-left: 3px solid #e74c3c; }

/* Wealth Score Gauge */
.bnn-score-container { text-align: center; padding: 1.5rem; }
.bnn-score-ring {
    width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 1rem;
    background: conic-gradient(var(--gold) var(--score-pct), rgba(0,0,0,0.06) var(--score-pct));
    display: flex; align-items: center; justify-content: center; position: relative;
}
.bnn-score-ring::before {
    content: ''; width: 130px; height: 130px; border-radius: 50%;
    background: var(--bg-card, #fff); position: absolute;
}
.bnn-score-value {
    position: relative; z-index: 1; font-family: 'Outfit', sans-serif;
    font-size: 2rem; font-weight: 800; color: var(--gold);
}
.bnn-score-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* Remedy Pricing Cards */
.bnn-remedy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.bnn-remedy-card {
    background: linear-gradient(145deg, rgba(241,196,15,0.02), rgba(241,196,15,0.06));
    border: 1px solid rgba(241,196,15,0.15); border-radius: 14px; padding: 1.25rem;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.bnn-remedy-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(241,196,15,0.12); border-color: rgba(241,196,15,0.3); }
.bnn-remedy-card .bnn-remedy-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.bnn-remedy-card .bnn-remedy-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--gold); margin-bottom: 0.3rem; }
.bnn-remedy-card .bnn-remedy-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.75rem; }
.bnn-remedy-card .bnn-remedy-price {
    font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; color: #27ae60;
    background: rgba(46,204,113,0.1); padding: 0.3rem 0.75rem; border-radius: 8px; display: inline-block;
}
.bnn-remedy-card .bnn-remedy-freq { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.4rem; }
.bnn-remedy-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bnn-remedy-filter button {
    font-size: 0.78rem; padding: 0.35rem 0.85rem; border-radius: 20px; border: 1px solid rgba(212,175,55,0.2);
    background: transparent; color: var(--text-secondary); cursor: pointer; font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
}
.bnn-remedy-filter button:hover, .bnn-remedy-filter button.active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Wealth Summary Banner */
.bnn-wealth-banner {
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(46,204,113,0.06));
    border: 1px solid rgba(212,175,55,0.2); border-radius: 16px; padding: 1.5rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
    margin-bottom: 1.5rem;
}
.bnn-wealth-stat { text-align: center; }
.bnn-wealth-stat-value { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.bnn-wealth-stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* Responsive */
@media (max-width: 768px) {
    .bnn-lakshmi-grid, .bnn-yoga-grid, .bnn-nakshatra-grid, .bnn-remedy-grid { grid-template-columns: 1fr; }
    .bnn-venus-chart { grid-template-columns: repeat(3, 1fr); }
    .bnn-wealth-banner { grid-template-columns: repeat(2, 1fr); }
    .bnn-career-factors { grid-template-columns: 1fr; }
}

/* ═══════════════════ LOGIN OVERLAY ═══════════════════ */
.login-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a0e1a 0%, #141b2d 40%, #1a1f35 70%, #0d1117 100%);
    background-size: 400% 400%;
    animation: loginBgShift 12s ease infinite;
    min-height: 100vh; min-height: 100dvh;
}
html:has(.login-overlay[style*="flex"]) { overflow: hidden; height: 100vh; height: 100dvh; }
html:has(.login-overlay[style*="flex"]) body { overflow: hidden; height: 100vh; height: 100dvh; }
@keyframes loginBgShift {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.login-overlay::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 30% 20%, rgba(212,175,55,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(212,175,55,0.05) 0%, transparent 50%);
}
.login-card {
    position: relative; width: 100%; max-width: 380px; margin: 1rem;
    background: rgba(20,27,45,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 20px; padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(212,175,55,0.06);
}
.login-logo { text-align: center; margin-bottom: 1.25rem; }
.login-logo-icon {
    font-size: 2.5rem; color: var(--gold, #d4af37);
    text-shadow: 0 0 30px rgba(212,175,55,0.4);
    animation: loginPulse 3s ease-in-out infinite;
    line-height: 1;
}
@keyframes loginPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}
.login-logo h2 {
    font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
    color: var(--gold, #d4af37); margin: 0.5rem 0 0.2rem;
    background: linear-gradient(135deg, #d4af37, #f0d060, #d4af37);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-logo p {
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
    color: rgba(255,255,255,0.45); margin: 0; letter-spacing: 0.5px;
}
.login-form { display: flex; flex-direction: column; gap: 0.9rem; }
.login-field label {
    display: block; font-family: 'Outfit', sans-serif; font-size: 0.78rem;
    font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 0.4rem;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.login-field input {
    width: 100%; padding: 0.7rem 0.9rem; font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; color: #fff; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(212,175,55,0.15); border-radius: 12px;
    outline: none; transition: all 0.3s ease; box-sizing: border-box;
}
.login-field input:focus {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
    background: rgba(255,255,255,0.08);
}
.login-field input::placeholder { color: rgba(255,255,255,0.25); }
.login-pass-wrap {
    position: relative; display: flex; align-items: center;
}
.login-pass-wrap input { padding-right: 3rem; }
.login-eye {
    position: absolute; right: 0.75rem; background: none; border: none;
    font-size: 1.1rem; cursor: pointer; color: rgba(255,255,255,0.35);
    padding: 0.2rem; transition: color 0.2s;
}
.login-eye:hover { color: rgba(212,175,55,0.7); }
.login-error {
    text-align: center; font-size: 0.82rem; color: #e74c3c;
    background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.2);
    padding: 0.6rem; border-radius: 8px; font-weight: 500;
}
.login-shake { animation: shakeErr 0.4s ease; }
@keyframes shakeErr {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-4px); }
}
.login-submit {
    width: 100%; padding: 0.75rem; font-family: 'Outfit', sans-serif;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px;
    color: #0a0e1a; background: linear-gradient(135deg, #d4af37, #f0d060);
    border: none; border-radius: 12px; cursor: pointer;
    transition: all 0.3s ease; text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212,175,55,0.25);
}
.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.35);
    background: linear-gradient(135deg, #f0d060, #d4af37);
}
.login-submit:active { transform: translateY(0); }
.login-footer {
    text-align: center; margin-top: 1rem; font-size: 0.7rem;
    color: rgba(255,255,255,0.25); font-family: 'DM Sans', sans-serif;
}
/* Logout Button */
.btn-logout {
    background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.25);
    color: #e74c3c; font-family: 'DM Sans', sans-serif; font-size: 0.7rem;
    padding: 0.2rem 0.6rem; border-radius: 6px; cursor: pointer;
    margin-left: 0.75rem; transition: all 0.2s ease; font-weight: 600;
}
.btn-logout:hover { background: rgba(231,76,60,0.2); border-color: rgba(231,76,60,0.4); }

@media (max-width: 480px) {
    .login-card { padding: 2rem 1.5rem 1.5rem; border-radius: 18px; }
    .login-logo h2 { font-size: 1.15rem; }
    .login-logo-icon { font-size: 2.5rem; }
}

/* ══════════════════════════════════════════════
   TRANSIT CALENDAR & PLANETARY DASHBOARD
   ══════════════════════════════════════════════ */

.tc-section { margin-bottom: 1.5rem; }
.tc-section-title {
    font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--gold); margin: 0 0 0.75rem; padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(212,175,55,0.12);
}

/* Planet Cards Grid */
.tc-planet-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.65rem;
}
.tc-planet-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px; padding: 0.75rem 0.85rem; transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tc-planet-card:hover { background: rgba(212,175,55,0.03); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.tc-planet-card.tc-fav { border-color: rgba(46,204,113,0.25); }
.tc-planet-card.tc-unfav { border-color: rgba(231,76,60,0.25); }
.tc-planet-header {
    display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; flex-wrap: wrap;
}
.tc-planet-icon { font-size: 1.3rem; }
.tc-planet-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--text-primary, #1a1a2e); }
.tc-planet-badge {
    margin-left: auto; font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.4rem;
    border-radius: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.tc-planet-badge.tc-fav { background: rgba(46,204,113,0.12); color: #27ae60; }
.tc-planet-badge.tc-unfav { background: rgba(231,76,60,0.12); color: #c0392b; }
.tc-planet-details { font-size: 0.78rem; }
.tc-detail-row { padding: 0.12rem 0; color: var(--text-secondary, #5a6082); }
.tc-detail-row .tc-label { color: var(--text-secondary, #5a6082); opacity: 0.65; font-size: 0.7rem; margin-right: 0.3rem; }
.tc-detail-row strong { color: var(--text-primary, #1a1a2e); }

/* Sign Changes Timeline */
.tc-changes-timeline {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.tc-change-card {
    display: flex; align-items: center; gap: 0.75rem;
    background: #fff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px; padding: 0.6rem 0.85rem; transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tc-change-card:hover { background: rgba(212,175,55,0.03); }
.tc-change-card.tc-change-good { border-left: 3px solid #27ae60; }
.tc-change-card.tc-change-bad { border-left: 3px solid #c0392b; }
.tc-change-date {
    text-align: center; min-width: 44px; padding: 0.3rem;
    background: rgba(212,175,55,0.08); border-radius: 8px;
}
.tc-change-day { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.tc-change-month { font-size: 0.6rem; color: var(--text-secondary, #5a6082); text-transform: uppercase; letter-spacing: 0.5px; }
.tc-change-info { flex: 1; }
.tc-change-planet { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.85rem; }
.tc-change-move { font-size: 0.78rem; color: var(--text-secondary, #5a6082); margin-top: 0.1rem; }
.tc-change-house { font-size: 0.68rem; color: var(--text-secondary, #5a6082); opacity: 0.7; margin-top: 0.1rem; }
.tc-change-countdown {
    font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 600;
    color: var(--text-secondary, #5a6082); opacity: 0.6; white-space: nowrap;
}

/* House Affliction Grid */
.tc-house-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}
.tc-house-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px; padding: 0.6rem; text-align: center; transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tc-house-card:hover { background: rgba(212,175,55,0.03); }
.tc-house-card.tc-house-blessed { border-color: rgba(46,204,113,0.35); background: rgba(46,204,113,0.05); }
.tc-house-card.tc-house-afflicted { border-color: rgba(231,76,60,0.35); background: rgba(231,76,60,0.05); }
.tc-house-card.tc-house-mild-positive { border-color: rgba(241,196,15,0.3); }
.tc-house-card.tc-house-mild-negative { border-color: rgba(243,156,18,0.3); }
.tc-house-num {
    font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800;
    color: var(--gold); line-height: 1;
}
.tc-house-sign { font-size: 0.72rem; color: var(--text-secondary, #5a6082); margin: 0.15rem 0; }
.tc-house-planets { font-size: 1rem; min-height: 1.3em; margin: 0.2rem 0; }
.tc-house-theme { font-size: 0.6rem; color: var(--text-secondary, #5a6082); opacity: 0.6; }
.tc-house-status { font-size: 0.72rem; font-weight: 600; margin-top: 0.2rem; color: var(--text-primary, #1a1a2e); }
.tc-house-alert { font-size: 0.58rem; margin-top: 0.15rem; padding: 0.1rem 0.3rem; border-radius: 4px; }
.tc-house-alert.tc-alert-bad { background: rgba(231,76,60,0.1); color: #c0392b; }
.tc-house-alert.tc-alert-good { background: rgba(46,204,113,0.1); color: #27ae60; }
.tc-empty-house { font-size: 0.65rem; color: var(--text-secondary, #5a6082); opacity: 0.4; }
.tc-loading { text-align: center; padding: 2rem 1rem; color: var(--text-secondary, #5a6082); font-size: 0.95rem; animation: tcPulse 1.5s ease-in-out infinite; }
@keyframes tcPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Monthly Calendar */

/* Range indicator bar */
.tc-cal-range-info {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem;
    padding: 0.4rem 0.7rem; background: rgba(0,0,0,0.02); border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.1);
}
.tc-range-label {
    font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
    color: var(--gold, #b38600); text-transform: uppercase; letter-spacing: 0.5px;
}
.tc-range-bar {
    display: flex; align-items: center; gap: 4px;
}
.tc-range-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(0,0,0,0.08); transition: all 0.2s; cursor: default;
}
.tc-range-dot.tc-range-today {
    background: var(--gold, #b38600); width: 10px; height: 10px;
}
.tc-range-dot.tc-range-active {
    background: var(--text-primary, #1a1a2e); width: 12px; height: 12px;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.3);
}
.tc-range-dot.tc-range-active.tc-range-today {
    background: var(--gold, #b38600);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.4);
}

/* Month summary bar */
.tc-month-summary {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 0.5rem; margin-bottom: 0.75rem; padding: 0.45rem 0.7rem;
    background: #fff; border-radius: 8px; border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tc-month-verdict {
    font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.tc-month-stats {
    display: flex; align-items: center; gap: 0.7rem; font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 600;
}
.tc-stat-good { color: #27ae60; }
.tc-stat-ok { color: var(--text-secondary, #5a6082); }
.tc-stat-bad { color: #e74c3c; }
.tc-stat-avg {
    color: var(--text-primary, #1a1a2e); background: rgba(0,0,0,0.04);
    padding: 0.15rem 0.5rem; border-radius: 4px; font-weight: 700;
}

/* Navigation bar */
.tc-cal-nav {
    display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.tc-nav-btn {
    background: rgba(0,0,0,0.03); border: 1px solid rgba(212,175,55,0.2);
    color: var(--text-secondary, #5a6082); font-family: 'Outfit', sans-serif; font-size: 0.72rem;
    font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 6px; cursor: pointer; transition: all 0.2s;
}
.tc-nav-btn:hover:not(:disabled) { background: rgba(212,175,55,0.1); color: var(--gold); }
.tc-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.tc-today-btn { background: rgba(212,175,55,0.1); color: var(--gold); }
.tc-today-btn.tc-today-active { background: var(--gold, #b38600); color: #fff; font-weight: 700; }
.tc-cal-month {
    font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-primary, #1a1a2e);
    margin: 0 0.4rem; flex-shrink: 0;
}

.tc-calendar {
    background: #fff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.tc-cal-header {
    display: grid; grid-template-columns: repeat(7, 1fr);
    background: rgba(212,175,55,0.06); border-bottom: 1px solid rgba(212,175,55,0.1);
}
.tc-cal-day-name {
    font-family: 'Outfit', sans-serif; font-size: 0.65rem; font-weight: 700;
    color: var(--gold); text-align: center; padding: 0.4rem 0;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.tc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.tc-cal-cell {
    border: 1px solid rgba(0,0,0,0.06); padding: 0.3rem 0.35rem;
    min-height: 72px; position: relative; cursor: default; transition: all 0.15s;
}
.tc-cal-cell:hover { transform: scale(1.04); z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.tc-cal-empty { background: rgba(0,0,0,0.03); }
.tc-cal-date { font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 800; color: var(--text-primary, #1a1a2e); line-height: 1; }
.tc-cal-score {
    font-family: 'Outfit', sans-serif; font-size: 0.78rem; font-weight: 700;
    margin-top: 0.15rem; line-height: 1;
}
.tc-cal-rating {
    font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 0.12rem; line-height: 1;
}
.tc-cal-moon { font-size: 0.72rem; margin-top: 0.08rem; }
.tc-cal-changes { display: flex; gap: 2px; margin-top: 0.08rem; flex-wrap: wrap; }
.tc-change-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* Calendar day colors — strong visual distinction */
.tc-day-excellent { background: linear-gradient(135deg, rgba(39,174,96,0.32), rgba(46,204,113,0.18)); border-color: rgba(39,174,96,0.4); border-left: 3px solid #27ae60; }
.tc-day-excellent .tc-cal-score { color: #1e8449; font-size: 0.85rem; }
.tc-day-excellent .tc-cal-date { color: #1e8449; }
.tc-day-excellent .tc-cal-rating { color: #1e8449; font-weight: 900; }

.tc-day-good { background: linear-gradient(135deg, rgba(46,204,113,0.22), rgba(46,204,113,0.10)); border-color: rgba(46,204,113,0.28); border-left: 3px solid #2ecc71; }
.tc-day-good .tc-cal-score { color: #27ae60; }
.tc-day-good .tc-cal-rating { color: #27ae60; }

.tc-day-neutral { background: rgba(0,0,0,0.02); border-left: 3px solid #bdc3c7; }
.tc-day-neutral .tc-cal-score { color: var(--text-secondary, #5a6082); }
.tc-day-neutral .tc-cal-rating { color: var(--text-secondary, #5a6082); opacity: 0.7; }

.tc-day-challenging { background: linear-gradient(135deg, rgba(243,156,18,0.25), rgba(230,126,34,0.12)); border-color: rgba(243,156,18,0.3); border-left: 3px solid #e67e22; }
.tc-day-challenging .tc-cal-score { color: #d35400; }
.tc-day-challenging .tc-cal-rating { color: #d35400; }

.tc-day-difficult { background: linear-gradient(135deg, rgba(231,76,60,0.28), rgba(192,57,43,0.14)); border-color: rgba(231,76,60,0.35); border-left: 3px solid #e74c3c; }
.tc-day-difficult .tc-cal-score { color: #c0392b; font-size: 0.85rem; }
.tc-day-difficult .tc-cal-date { color: #922b21; }
.tc-day-difficult .tc-cal-rating { color: #c0392b; font-weight: 900; }

.tc-day-today { outline: 3px solid var(--gold); outline-offset: -2px; border-radius: 4px; }
.tc-day-today .tc-cal-date { color: var(--gold); }

/* Calendar Legend */
.tc-cal-legend {
    display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0.6rem 0.85rem;
    font-size: 0.68rem; color: var(--text-secondary, #5a6082);
}
.tc-legend-item { display: flex; align-items: center; gap: 0.3rem; }
.tc-legend-dot {
    width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,0.08);
}

/* Responsive */
/* Retrograde Badge */
.tc-retro-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff;
    font-size: 0.6rem; font-weight: 700; padding: 0.15rem 0.45rem;
    border-radius: 4px; letter-spacing: 0.5px; text-transform: uppercase;
    animation: tcRetroPulse 2s ease-in-out infinite;
}
@keyframes tcRetroPulse { 0%,100% { box-shadow: 0 0 4px rgba(231,76,60,0.3); } 50% { box-shadow: 0 0 10px rgba(231,76,60,0.6); } }

/* Events Table Navigation */
.tc-events-nav {
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem;
    padding: 0.5rem 0.7rem; background: rgba(0,0,0,0.02); border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.1);
}
.tc-events-range-btn {
    font-size: 0.72rem !important; padding: 0.35rem 0.7rem !important;
}
.tc-events-range-btn.tc-range-active-btn {
    background: var(--gold, #b38600) !important; color: #fff !important;
    border-color: var(--gold, #b38600) !important; font-weight: 700 !important;
}
.tc-events-period-badge {
    font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 600;
    color: var(--text-secondary, #5a6082); margin-left: auto;
    background: rgba(0,0,0,0.04); padding: 0.2rem 0.6rem; border-radius: 4px;
}

/* Filter Bar */
.tc-filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tc-filter-btn {
    background: rgba(0,0,0,0.03); border: 1px solid rgba(212,175,55,0.2);
    color: var(--text-secondary, #5a6082); font-family: 'Outfit', sans-serif; font-size: 0.72rem;
    font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 6px; cursor: pointer; transition: all 0.2s;
}
.tc-filter-btn:hover { background: rgba(212,175,55,0.08); color: var(--gold); }
.tc-filter-btn.active { background: rgba(212,175,55,0.12); color: var(--gold); border-color: rgba(212,175,55,0.4); }

/* Events Table */
.tc-events-table-wrapper { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(212,175,55,0.15); background: #fff; }
.tc-events-table {
    width: 100%; border-collapse: collapse; font-size: 0.78rem;
    font-family: 'Outfit', sans-serif; color: var(--text-primary, #1a1a2e);
}
.tc-events-table thead th {
    background: rgba(212,175,55,0.08); color: var(--gold); font-weight: 700;
    padding: 0.55rem 0.5rem; text-align: left; font-size: 0.7rem;
    letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap;
    border-bottom: 2px solid rgba(212,175,55,0.15); position: sticky; top: 0; z-index: 1;
}
.tc-events-table tbody td {
    padding: 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.05);
    vertical-align: top; line-height: 1.45;
}
.tc-events-table tbody tr:hover { background: rgba(212,175,55,0.04); }

/* Row type colors */
.tc-row-benefic { border-left: 3px solid #2ecc71; }
.tc-row-adverse { border-left: 3px solid #e74c3c; }
.tc-row-mixed { border-left: 3px solid #f39c12; }

/* Table cell styles */
.tc-td-date { font-weight: 700; white-space: nowrap; color: var(--gold); font-size: 0.76rem; }
.tc-td-month { font-size: 0.7rem; color: var(--text-secondary, #5a6082); white-space: nowrap; }
.tc-td-planet { font-weight: 700; font-size: 0.82rem; }
.tc-td-type { font-size: 0.72rem; white-space: nowrap; }
.tc-td-details { max-width: 180px; font-size: 0.75rem; }
.tc-td-house { font-size: 0.7rem; white-space: nowrap; }
.tc-td-effect { max-width: 250px; font-size: 0.72rem; color: var(--text-secondary, #5a6082); }
.tc-td-remedy { max-width: 200px; font-size: 0.68rem; color: var(--text-secondary, #5a6082); font-style: italic; }

/* Nature badges */
.tc-nature-badge {
    display: inline-block; padding: 0.12rem 0.4rem; border-radius: 4px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.tc-nature-good { background: rgba(46,204,113,0.12); color: #27ae60; }
.tc-nature-bad { background: rgba(231,76,60,0.12); color: #c0392b; }
.tc-nature-mixed { background: rgba(243,156,18,0.12); color: #e67e22; }

/* Risk/Reward bar */
.tc-rr-bar { display: flex; gap: 0.3rem; margin-top: 0.2rem; font-size: 0.6rem; }
.tc-risk { color: #c0392b; }
.tc-reward { color: #27ae60; }

@media (max-width: 768px) {
    .tc-planet-grid { grid-template-columns: 1fr 1fr; }
    .tc-house-grid { grid-template-columns: repeat(4, 1fr); }
    .tc-cal-cell { min-height: 50px; padding: 0.25rem; }
    .tc-cal-date { font-size: 0.65rem; }
    .tc-cal-score { font-size: 0.55rem; }
    .tc-cal-moon { font-size: 0.6rem; }
    .tc-events-table { font-size: 0.7rem; }
    .tc-td-effect { max-width: 180px; }
    .tc-td-remedy { max-width: 150px; }
}
@media (max-width: 480px) {
    .tc-planet-grid { grid-template-columns: 1fr; }
    .tc-house-grid { grid-template-columns: repeat(3, 1fr); }
    .tc-cal-cell { min-height: 42px; }
    .tc-change-card { flex-wrap: wrap; }
    .tc-events-table thead th { font-size: 0.6rem; padding: 0.4rem 0.3rem; }
    .tc-events-table tbody td { font-size: 0.65rem; padding: 0.35rem 0.3rem; }
}


