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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Base colors */
    --bg-cosmic: #070b18;
    --bg-cosmic-secondary: #0c1025;
    --bg-cosmic-tertiary: #111630;

    /* Glassmorphism */
    --glass-bg: rgba(14, 18, 42, 0.68);
    --glass-bg-hover: rgba(20, 26, 55, 0.82);
    --glass-bg-solid: rgba(12, 16, 37, 0.92);
    --glass-border: rgba(99, 102, 241, 0.08);
    --glass-border-hover: rgba(14, 165, 233, 0.22);
    --glass-border-focus: rgba(14, 165, 233, 0.5);

    /* Ocean Breeze 5-Color Palette (Dark Variant)
       1. #0EA5E9 — Sky Blue   (primary)
       2. #6366F1 — Indigo     (headers)
       3. #8B5CF6 — Violet     (accents)
       4. #F43F5E — Rose       (alerts)
       5. #14B8A6 — Teal       (success) */
    --neon-cyan: #0EA5E9;
    --neon-purple: #6366F1;
    --neon-magenta: #F43F5E;
    --neon-gradient: linear-gradient(135deg, #0EA5E9, #6366F1, #8B5CF6);
    --neon-gradient-reverse: linear-gradient(135deg, #8B5CF6, #6366F1, #0EA5E9);
    --neon-cyan-glow: rgba(14, 165, 233, 0.15);
    --neon-purple-glow: rgba(99, 102, 241, 0.15);
    --neon-magenta-glow: rgba(244, 63, 94, 0.12);

    /* Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accent (gold legacy compat) */
    --gold: #0EA5E9;
    --gold-glow: rgba(14, 165, 233, 0.15);
    --gold-dark: #6366F1;
    --purple-glow: rgba(99, 102, 241, 0.08);

    /* Shadows */
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.04);
    --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(14, 165, 233, 0.1);
    --glow-cyan: 0 0 20px rgba(14, 165, 233, 0.15), 0 0 40px rgba(14, 165, 233, 0.05);
    --glow-purple: 0 0 20px rgba(99, 102, 241, 0.15), 0 0 40px rgba(99, 102, 241, 0.05);

    /* Layout */
    --radius-card: 16px;
    --radius-btn: 12px;
    --radius-input: 24px;
    --radius-pill: 100px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESETS & BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-cosmic);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.4);
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.2) transparent;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: rgba(14, 165, 233, 0.3);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(14, 165, 233, 0.15); }
    33% { border-color: rgba(99, 102, 241, 0.2); }
    66% { border-color: rgba(244, 63, 94, 0.15); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(14, 165, 233, 0.2); }
    50% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.4), 0 0 40px rgba(14, 165, 233, 0.1); }
}

@keyframes cosmicFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(4px) rotate(-0.5deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes shakeErr {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes cosmicBg {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

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

/* ═══════════════════════════════════════════════════════════════
   MAIN APP CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.vedic-chart-app {
    font-family: 'Inter', sans-serif;
    background: var(--bg-cosmic);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(244, 63, 94, 0.02) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* ═══════════════════════════════════════════════════════════════
   HEADER — Frosted Glass Sticky
   ═══════════════════════════════════════════════════════════════ */
.vedic-header {
    text-align: center;
    margin-bottom: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 24, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
}

.vedic-brand-badge {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    padding: 0.3rem 1.2rem;
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius-pill);
    background: rgba(14, 165, 233, 0.06);
    animation: borderGlow 4s ease infinite;
}

.vedic-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0.3rem 0 0 0;
    background: var(--neon-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    letter-spacing: -0.02em;
}

.vedic-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════
   CARD STYLING — Glassmorphism with Animated Borders
   ═══════════════════════════════════════════════════════════════ */
.vedic-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vedic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-card);
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.05), rgba(244, 63, 94, 0.05), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.vedic-card:hover {
    border-color: rgba(14, 165, 233, 0.12);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   FORM STYLES
   ═══════════════════════════════════════════════════════════════ */
.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.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Space Grotesk', sans-serif;
}

.form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-input);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), 0 0 20px rgba(14, 165, 233, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Auto-detect button */
.btn-detect {
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-btn);
    color: var(--neon-cyan);
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-detect:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Main Calculate Button */
.btn-submit {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: var(--radius-btn);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3), 0 0 60px rgba(99, 102, 241, 0.15);
}

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

/* ═══════════════════════════════════════════════════════════════
   CHART SECTION
   ═══════════════════════════════════════════════════════════════ */
.chart-section-card {
    margin-bottom: 1.5rem;
}

.chart-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(14, 165, 233, 0.03);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.chart-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin: 0;
}

.btn-toggle-chart {
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-cyan);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-toggle-chart:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--neon-cyan);
}

.chart-section-body {
    padding: 1.25rem;
}

.chart-section-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .chart-section-layout {
        grid-template-columns: minmax(300px, 380px) 1fr;
    }
}

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

.chart-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    font-style: italic;
}

.chart-section-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
}

.house-details-default {
    width: 100%;
}

.house-info-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    background: rgba(14, 165, 233, 0.03);
    border: 1px dashed rgba(14, 165, 233, 0.15);
    border-radius: 12px;
}

.house-info-placeholder-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.house-info-placeholder p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* House Overview Grid */
.chart-house-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.house-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.78rem;
}

.house-mini-card:hover {
    border-color: var(--neon-cyan);
    background: rgba(14, 165, 233, 0.04);
    box-shadow: 0 2px 12px var(--neon-cyan-glow);
    transform: translateY(-1px);
}

.house-mini-card.active {
    border-color: var(--neon-cyan);
    background: rgba(14, 165, 233, 0.06);
    box-shadow: 0 2px 16px var(--neon-cyan-glow);
}

.house-mini-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 0.82rem;
}

.house-mini-sign {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.75rem;
}

.house-mini-planets {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-top: 2px;
}

.house-mini-planets.has-planets {
    color: var(--neon-purple);
    font-weight: 600;
}

/* Legacy compat */
.vedic-workspace {
    display: block;
}

.chart-col {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   CITY SEARCH DROPDOWN
   ═══════════════════════════════════════════════════════════════ */
.city-search-container {
    position: relative;
    width: 100%;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
}

.city-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(16, 16, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

.city-dropdown-list li:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-cyan);
}

.city-dropdown-list li:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   SVG CHART STYLES
   ═══════════════════════════════════════════════════════════════ */
.svg-chart-wrapper {
    background: rgba(7, 11, 24, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: inset 0 0 30px rgba(14, 165, 233, 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;
}

.svg-house {
    fill: rgba(18, 18, 46, 0.8);
    stroke: rgba(14, 165, 233, 0.15);
    stroke-width: 1.5;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.svg-house:hover {
    fill: rgba(14, 165, 233, 0.06);
    stroke: var(--neon-cyan);
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.2));
}

.svg-house.active {
    fill: rgba(14, 165, 233, 0.08);
    stroke: var(--neon-cyan);
    stroke-width: 2;
}

.svg-border-line {
    stroke: rgba(14, 165, 233, 0.25);
    stroke-width: 2.5;
    fill: none;
}

.svg-diagonal-line {
    stroke: rgba(99, 102, 241, 0.12);
    stroke-width: 1.5;
    fill: none;
}

.svg-rashi-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    fill: var(--neon-cyan);
    pointer-events: none;
}

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

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

/* Planet Status Badges */
.planet-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
    vertical-align: middle;
    margin-right: 3px;
    margin-top: 2px;
}
.badge-retro {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.badge-combust {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.25);
}
.badge-exalted {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.badge-debilitated {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}
.badge-moolat {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.25);
}
.badge-own {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   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 rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    position: relative;
}
.drishti-planet-btn:hover {
    border-color: var(--planet-color, var(--neon-cyan));
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.drishti-planet-btn.active {
    border-color: var(--planet-color, var(--neon-cyan));
    background: rgba(14, 165, 233, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2), inset 0 0 0 1px var(--planet-color, var(--neon-cyan));
    font-weight: 600;
}
.drishti-icon {
    font-size: 1.1rem;
    color: var(--planet-color, var(--neon-cyan));
}
.drishti-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.dot-exalted { background: #4ade80; }
.dot-debilitated { background: #f87171; }
.dot-combust { background: #fb923c; }
.dot-retro { background: #c084fc; }

.drishti-detail-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem;
    min-height: 200px;
}
.drishti-detail-header {
    padding: 0.75rem 1rem;
    background: rgba(14, 165, 233, 0.04);
    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(14, 165, 233, 0.04);
    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(--neon-cyan);
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
    position: relative;
    transition: all 0.2s;
}
.drishti-arrow-target:hover {
    background: rgba(14, 165, 233, 0.04);
    transform: translateX(3px);
}
.drishti-special {
    border-left-width: 4px;
    background: rgba(99, 102, 241, 0.04);
}
.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.02);
    border: 1px solid var(--glass-border);
    text-align: center;
    min-height: 60px;
    transition: all 0.2s;
    position: relative;
}
.drishti-source {
    background: rgba(14, 165, 233, 0.06);
    border: 2px solid var(--source-color, var(--neon-cyan));
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.1);
}
.drishti-aspected {
    background: rgba(99, 102, 241, 0.04);
    border: 2px dashed var(--aspect-color, var(--neon-purple));
    box-shadow: 0 1px 8px rgba(99, 102, 241, 0.06);
}
.drishti-cell-house {
    font-family: 'Space Grotesk', 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(74, 222, 128, 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;
    background: rgba(255, 255, 255, 0.03);
}
.drishti-status-card span { font-size: 0.75rem; color: var(--text-secondary); }
.drishti-status-exalted { background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.2); }
.drishti-status-debil { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.2); }
.drishti-status-retro { background: rgba(192, 132, 252, 0.08); border: 1px solid rgba(192, 132, 252, 0.2); }
.drishti-status-combust { background: rgba(251, 146, 60, 0.08); border: 1px solid rgba(251, 146, 60, 0.2); }

/* Drishti Legend */
.drishti-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 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: var(--radius-pill);
    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: #4ade80; }
.aspect-excellent.drishti-quality-tag { background: rgba(74, 222, 128, 0.12); }
.aspect-supportive, .aspect-supportive .drishti-quality-tag { color: #22c55e; }
.aspect-supportive.drishti-quality-tag { background: rgba(34, 197, 94, 0.12); }
.aspect-growth, .aspect-growth .drishti-quality-tag { color: #38bdf8; }
.aspect-growth.drishti-quality-tag { background: rgba(56, 189, 248, 0.12); }
.aspect-mixed, .aspect-mixed .drishti-quality-tag { color: #fb923c; }
.aspect-mixed.drishti-quality-tag { background: rgba(251, 146, 60, 0.12); }
.aspect-challenging, .aspect-challenging .drishti-quality-tag { color: #f87171; }
.aspect-challenging.drishti-quality-tag { background: rgba(248, 113, 113, 0.12); }
.aspect-obstacle, .aspect-obstacle .drishti-quality-tag { color: #ef4444; }
.aspect-obstacle.drishti-quality-tag { background: rgba(239, 68, 68, 0.15); }
.aspect-neutral { color: var(--text-secondary); }

/* Aspected house cell quality coloring */
.drishti-house-cell.aspect-excellent { border-color: #4ade80 !important; background: rgba(74, 222, 128, 0.06); }
.drishti-house-cell.aspect-supportive { border-color: #22c55e !important; background: rgba(34, 197, 94, 0.05); }
.drishti-house-cell.aspect-growth { border-color: #38bdf8 !important; background: rgba(56, 189, 248, 0.05); }
.drishti-house-cell.aspect-mixed { border-color: #fb923c !important; background: rgba(251, 146, 60, 0.05); }
.drishti-house-cell.aspect-challenging { border-color: #f87171 !important; background: rgba(248, 113, 113, 0.05); }
.drishti-house-cell.aspect-obstacle { border-color: #ef4444 !important; background: rgba(239, 68, 68, 0.07); }

/* Arrow target quality coloring */
.drishti-arrow-target.aspect-excellent { border-left: 3px solid #4ade80 !important; background: rgba(74, 222, 128, 0.04); }
.drishti-arrow-target.aspect-supportive { border-left: 3px solid #22c55e !important; background: rgba(34, 197, 94, 0.03); }
.drishti-arrow-target.aspect-growth { border-left: 3px solid #38bdf8 !important; background: rgba(56, 189, 248, 0.03); }
.drishti-arrow-target.aspect-challenging { border-left: 3px solid #f87171 !important; background: rgba(248, 113, 113, 0.04); }
.drishti-arrow-target.aspect-obstacle { border-left: 3px solid #ef4444 !important; background: rgba(239, 68, 68, 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 var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    transition: transform 0.15s;
    background: rgba(255, 255, 255, 0.02);
}
.drishti-house-ov-cell:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.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(--neon-cyan); }
.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: var(--radius-pill);
    display: inline-block;
}
.house-ov-excellent .ho-verdict { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.house-ov-obstacle .ho-verdict { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.house-ov-mixed .ho-verdict { color: #fb923c; background: rgba(251, 146, 60, 0.12); }
.house-ov-excellent { border-color: rgba(74, 222, 128, 0.25); background: rgba(74, 222, 128, 0.04); }
.house-ov-obstacle { border-color: rgba(248, 113, 113, 0.25); background: rgba(248, 113, 113, 0.04); }
.house-ov-mixed { border-color: rgba(251, 146, 60, 0.25); background: rgba(251, 146, 60, 0.04); }
.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: var(--radius-pill);
    white-space: nowrap;
}
.ho-excellent { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.ho-supportive { color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.ho-growth { color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.ho-mixed { color: #fb923c; background: rgba(251, 146, 60, 0.1); }
.ho-challenging { color: #f87171; background: rgba(248, 113, 113, 0.1); }
.ho-obstacle { color: #ef4444; background: rgba(239, 68, 68, 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); }
}

/* ═══════════════════════════════════════════════════════════════
   TAB BAR — Pill-Shaped Horizontal Scrollable
   ═══════════════════════════════════════════════════════════════ */
.vedic-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: none;
}
.vedic-tabs::-webkit-scrollbar { display: none; }

.vedic-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    border-radius: var(--radius-pill);
    border-bottom: none;
}

.vedic-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.vedic-tab-btn.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
    color: #fff;
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.1), 0 0 40px rgba(99, 102, 241, 0.05);
}

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

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

/* ═══════════════════════════════════════════════════════════════
   TABLE STYLES — Dark Rows
   ═══════════════════════════════════════════════════════════════ */
.vedic-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

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

.vedic-table th {
    padding: 1rem;
    color: var(--neon-cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    background: rgba(14, 165, 233, 0.04);
}

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

.vedic-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.01);
}

.vedic-table tr:hover td {
    background: rgba(14, 165, 233, 0.03);
}

/* ═══════════════════════════════════════════════════════════════
   VIMSHOTTARI TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple), var(--neon-magenta));
    opacity: 0.3;
}

.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(14, 165, 233, 0.03);
    border-color: rgba(14, 165, 233, 0.08);
}

.timeline-item.active {
    background: rgba(14, 165, 233, 0.05);
    border-color: rgba(14, 165, 233, 0.15);
}

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

.timeline-item.active::before {
    background: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

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

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

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

.timeline-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Sub-timeline */
.sub-timeline {
    display: none;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
    border-left: 2px solid rgba(99, 102, 241, 0.2);
    position: relative;
}

.sub-timeline.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.sub-timeline-item {
    position: relative;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.sub-timeline-item:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.1);
}

.sub-timeline-item.active {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
}

.sub-timeline-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.sub-timeline-ruler {
    color: var(--neon-purple);
    font-size: 0.9rem;
}

.sub-timeline-item.active .sub-timeline-ruler {
    color: var(--neon-purple);
    font-weight: 700;
}

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

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

/* Sub-sub-timeline (Pratyantardasha) */
.sub-sub-timeline {
    display: none;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    border-left: 2px solid rgba(244, 63, 94, 0.15);
}

.sub-sub-timeline.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.sub-sub-timeline-item:hover {
    background: rgba(244, 63, 94, 0.04);
    border-color: rgba(244, 63, 94, 0.1);
}

.sub-sub-timeline-item.active {
    background: rgba(244, 63, 94, 0.06);
    border-color: rgba(244, 63, 94, 0.15);
}

.sub-sub-timeline-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
}

.sub-sub-timeline-ruler {
    color: var(--neon-magenta);
    font-size: 0.82rem;
}

.sub-sub-timeline-item.active .sub-sub-timeline-ruler {
    color: var(--neon-magenta);
    font-weight: 700;
}

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

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

/* Toggle icons */
.sub-timeline-toggle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    text-align: center;
    line-height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: transform 0.3s;
    color: var(--neon-cyan);
}

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

.timeline-toggle-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    text-align: center;
    line-height: 22px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s;
    color: var(--neon-cyan);
}

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

/* ═══════════════════════════════════════════════════════════════
   HOUSE INFO BOX
   ═══════════════════════════════════════════════════════════════ */
.house-info-box {
    background: rgba(14, 165, 233, 0.03);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    animation: fadeIn 0.3s ease;
}

.house-info-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin: 0 0 0.75rem 0;
}

.house-info-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   REPORT CARDS
   ═══════════════════════════════════════════════════════════════ */
.report-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.report-card.active {
    border-color: rgba(14, 165, 233, 0.15);
    background: rgba(14, 165, 233, 0.03);
}

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

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

.report-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin: 0 0 0.4rem 0;
}

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

/* Tags */
.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    margin: 2px;
}

.tag-rashi {
    background: rgba(14, 165, 233, 0.1);
    color: var(--neon-cyan);
}

.tag-house {
    background: rgba(99, 102, 241, 0.1);
    color: var(--neon-purple);
}

/* Empty placeholder */
.empty-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-placeholder i {
    font-size: 3rem;
    color: rgba(14, 165, 233, 0.2);
    margin-bottom: 1rem;
    display: block;
}

.empty-placeholder p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite;
    margin: 2rem auto;
}

/* ═══════════════════════════════════════════════════════════════
   TABS CONTAINER & EXPORT BAR
   ═══════════════════════════════════════════════════════════════ */
.vedic-tabs-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.vedic-tabs-container .vedic-tabs {
    margin-bottom: 0.5rem;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-btn);
    background: rgba(14, 165, 233, 0.06);
    color: var(--neon-cyan);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-export:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-1px);
}

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

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

/* Premium tab button */
.tab-btn-premium {
    position: relative;
    overflow: visible;
}

.tab-btn-premium:hover, .tab-btn-premium.active {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(99, 102, 241, 0.12));
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--neon-magenta);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   DASHA DASHBOARD
   ═══════════════════════════════════════════════════════════════ */
.dasha-dashboard {
    background: rgba(14, 165, 233, 0.02);
    border: 1px solid rgba(14, 165, 233, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.dasha-dashboard-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dasha-toggle-all-btn {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-pill);
    background: rgba(14, 165, 233, 0.06);
    color: var(--neon-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Space Grotesk', sans-serif;
}

.dasha-toggle-all-btn:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Current Dasha Grid */
.dasha-current-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.dasha-current-card:hover {
    border-color: rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}

.dasha-current-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
}

.dasha-current-planet {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 0.2rem;
}

.dasha-current-dates {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Progress bar */
.dasha-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 0.6rem;
    overflow: hidden;
}

.dasha-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: width 0.6s ease;
}

.dasha-progress-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.dasha-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    animation: pulseGlow 2s ease infinite;
    margin-right: 4px;
}

/* Analysis panel */
.dasha-analysis-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.dasha-analysis-header {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
}

.dasha-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.dasha-analysis-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.dasha-analysis-key {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
}

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

.dasha-analysis-section {
    margin-bottom: 1rem;
}
.dasha-analysis-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.dasha-analysis-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dasha-analysis-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dasha-analysis-section.dasha-positive {
    background: rgba(74, 222, 128, 0.04);
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.dasha-analysis-section.dasha-negative {
    background: rgba(248, 113, 113, 0.04);
    border: 1px solid rgba(248, 113, 113, 0.1);
    border-radius: 10px;
    padding: 1rem;
}

.dasha-positive-title {
    color: #4ade80;
}
.dasha-negative-title {
    color: #f87171;
}

.dasha-remedy-box {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.75rem;
}

.dasha-remedy-title {
    color: var(--neon-purple);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Maha Dasha Cards */
.dasha-maha-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.dasha-maha-card:hover {
    border-color: rgba(14, 165, 233, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dasha-maha-card.active {
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.08);
}

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

.dasha-maha-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dasha-maha-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.dasha-maha-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.dasha-maha-dates {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.dasha-maha-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dasha-maha-duration {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dasha-active-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
    color: var(--neon-cyan);
    border: 1px solid rgba(14, 165, 233, 0.25);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.1);
}

.dasha-sub-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--neon-purple);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Maha Dasha Analysis */
.dasha-maha-analysis {
    display: none;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.dasha-maha-analysis.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dasha-maha-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin: 0.75rem 0;
}

.dasha-maha-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

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

.dasha-maha-themes {
    margin: 0.75rem 0;
}

.dasha-maha-effects-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.dasha-maha-positive {
    background: rgba(74, 222, 128, 0.04);
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 10px;
    padding: 0.85rem;
}

.dasha-maha-negative {
    background: rgba(248, 113, 113, 0.04);
    border: 1px solid rgba(248, 113, 113, 0.1);
    border-radius: 10px;
    padding: 0.85rem;
}

.dasha-maha-remedy {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    padding: 0.85rem;
    margin-top: 0.5rem;
}

/* Bhukti effect */
.dasha-bhukti-effect {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* Dasha sub-timelines inside cards */
.dasha-maha-card .sub-timeline {
    margin: 0 0.75rem 0.75rem;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(99, 102, 241, 0.15);
}

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

.dasha-maha-card .sub-timeline-item {
    padding: 0.35rem 0.5rem;
}

.dasha-maha-card .sub-timeline-item.active {
    background: rgba(99, 102, 241, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   TRANSIT SECTION
   ═══════════════════════════════════════════════════════════════ */
.transit-section { margin-bottom: 1.5rem; }
.transit-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
}

.transit-table td,
.transit-table th {
    font-size: 0.82rem;
    padding: 0.6rem;
}

.transit-house-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.1);
    color: var(--neon-cyan);
}

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

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

.transit-yoga-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(14, 165, 233, 0.1);
    color: var(--neon-cyan);
}

.transit-yoga-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.transit-yoga-card:hover {
    border-color: rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

.transit-yoga-benefic {
    border-left: 3px solid #4ade80;
    background: rgba(74, 222, 128, 0.03);
}

.transit-yoga-challenging {
    border-left: 3px solid #f87171;
    background: rgba(248, 113, 113, 0.03);
}

.transit-yoga-mixed {
    border-left: 3px solid #fb923c;
    background: rgba(251, 146, 60, 0.03);
}

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

.transit-yoga-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.transit-yoga-type-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.transit-yoga-benefic-badge {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.transit-yoga-challenging-badge {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.transit-yoga-mixed-badge {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
}

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

.impact-very-high {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.impact-high {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
}

.impact-medium {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.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: var(--radius-pill);
}

.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(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.transit-remedy strong {
    color: var(--neon-purple);
}

/* 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.02);
    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(14, 165, 233, 0.04);
    border-color: rgba(14, 165, 233, 0.15);
}

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

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

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

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

.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: var(--text-muted);
    opacity: 0.4;
}

/* Transit Dashboard */
.transit-dashboard {
    background: rgba(14, 165, 233, 0.03);
    border: 1px solid rgba(14, 165, 233, 0.1);
    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(--neon-cyan);
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 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: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.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.04);
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.btn-transit-today:hover {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border-color: transparent;
}

.btn-export-transit {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
    background: rgba(14, 165, 233, 0.06);
    color: var(--neon-cyan);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-export-transit:hover {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border-color: transparent;
}

/* 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.03);
    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-muted);
    margin-bottom: 0.25rem;
}

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

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

.score-risk .score-value { color: #f87171; }
.score-reward .score-value { color: #4ade80; }
.score-benefic .score-value { color: #4ade80; }
.score-adverse .score-value { color: #f87171; }
.score-mixed .score-value { color: #fb923c; }

.score-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 0.4rem;
    overflow: hidden;
}

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

.score-bar-fill.risk-fill { background: linear-gradient(90deg, #fb923c, #ef4444); }
.score-bar-fill.reward-fill { background: linear-gradient(90deg, #4ade80, #22c55e); }

/* Rating Bars */
.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: #f87171; }
.rating-label.reward-label { color: #4ade80; }

.rating-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    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, #fb923c, #ef4444); }
.rating-bar-fill.reward-fill { background: linear-gradient(90deg, #4ade80, #22c55e); }

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

.rating-num.risk-num { color: #f87171; }
.rating-num.reward-num { color: #4ade80; }

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

.transit-yoga-adverse {
    background: rgba(248, 113, 113, 0.04);
    border-left-color: #f87171;
}

.transit-yoga-adverse-badge {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

/* Transit Navigation */
.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.04);
    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: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border-color: transparent;
}

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

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

/* ═══════════════════════════════════════════════════════════════
   RISK & REWARD ANALYSIS
   ═══════════════════════════════════════════════════════════════ */
.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.03);
    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 var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    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: rgba(14, 165, 233, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* ═══════════════════════════════════════════════════════════════
   YOGA STYLES
   ═══════════════════════════════════════════════════════════════ */
.yoga-hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.yoga-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}
.yoga-karaka-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}
.yoga-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .yoga-checklist-grid { grid-template-columns: 1fr; }
    .yoga-karaka-grid { grid-template-columns: 1fr; }
    .yoga-card-header { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON GROUP & EXPORT BAR
   ═══════════════════════════════════════════════════════════════ */
.vedic-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL TTS BAR
   ═══════════════════════════════════════════════════════════════ */
@keyframes gtts-entrance {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gtts-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.2); }
    50% { box-shadow: 0 0 14px 3px rgba(14, 165, 233, 0.15); }
}
@keyframes gtts-speaking {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.12); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.08); }
}

.global-tts-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 6px;
    background: rgba(14, 165, 233, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 12px;
    flex-wrap: wrap;
    animation: gtts-entrance 0.5s ease-out, gtts-pulse-glow 2.5s ease-in-out 0.5s 3;
}

.gtts-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gtts-play-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1.5px solid var(--neon-cyan);
    border-radius: var(--radius-pill);
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
.gtts-play-btn:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
    box-shadow: var(--glow-cyan);
}
.gtts-play-btn.speaking {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    box-shadow: 0 2px 20px rgba(14, 165, 233, 0.4);
}
.gtts-play-btn.speaking .gtts-play-icon {
    animation: gtts-speaking 0.8s ease-in-out infinite;
    display: inline-block;
}

.gtts-stop-btn {
    padding: 6px 12px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-pill);
    background: rgba(248, 113, 113, 0.08);
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}
.gtts-stop-btn:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: #f87171;
}

.gtts-play-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.gtts-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gtts-lang-group, .gtts-voice-group {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 2px 3px;
}

.gtts-lang-label {
    font-size: 0.75rem;
    padding: 0 4px;
    color: var(--text-secondary);
}

.gtts-lang-btn, .gtts-voice-btn {
    padding: 6px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gtts-lang-btn.active, .gtts-voice-btn.active {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.3);
    transform: scale(1.05);
}

.gtts-lang-btn:hover:not(.active), .gtts-voice-btn:hover:not(.active) {
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-cyan);
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateY(-1px);
}

.gtts-voice-btn {
    font-size: 0.82rem;
    padding: 6px 14px;
}

.gtts-translate-btn {
    padding: 6px 16px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gtts-translate-btn:hover {
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

.gtts-translate-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

@media (max-width: 600px) {
    .global-tts-bar {
        flex-direction: column;
        gap: 6px;
        padding: 6px 10px;
    }
    .gtts-right {
        width: 100%;
        justify-content: center;
    }
}

/* TTS Reading Highlight */
@keyframes tts-highlight-pulse {
    0% { background-color: rgba(14, 165, 233, 0.15); }
    50% { background-color: rgba(14, 165, 233, 0.3); }
    100% { background-color: rgba(14, 165, 233, 0.15); }
}

.tts-reading-active {
    background-color: rgba(14, 165, 233, 0.2) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15), inset 0 0 8px rgba(14, 165, 233, 0.08) !important;
    animation: tts-highlight-pulse 1.5s ease-in-out infinite !important;
    transition: background-color 0.3s ease !important;
    outline: 2px solid rgba(14, 165, 233, 0.35);
    outline-offset: 2px;
    padding: 2px 4px;
    margin: -2px -4px;
}

/* ═══════════════════════════════════════════════════════════════
   MONTHLY REMEDIES
   ═══════════════════════════════════════════════════════════════ */
.rr-remedies-section {
    margin-top: 2rem;
}

.remedy-card {
    background: rgba(255, 255, 255, 0.02);
    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: 'Space Grotesk', 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: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dasha-badge { background: rgba(14, 165, 233, 0.1); color: var(--neon-cyan); }
.ad-badge { background: rgba(99, 102, 241, 0.1); color: var(--neon-purple); }
.risk-badge { background: rgba(248, 113, 113, 0.1); color: #f87171; }
.reward-badge { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.mixed-badge { background: rgba(251, 146, 60, 0.1); color: #fb923c; }

.remedy-dasha { border-left: 4px solid var(--neon-cyan); background: rgba(14, 165, 233, 0.02); }
.remedy-antardasha { border-left: 4px solid var(--neon-purple); background: rgba(99, 102, 241, 0.02); }
.remedy-risk-areas { border-left: 4px solid #f87171; background: rgba(248, 113, 113, 0.02); }
.remedy-opp-areas { border-left: 4px solid #4ade80; background: rgba(74, 222, 128, 0.02); }
.remedy-summary { border-left: 4px solid var(--neon-cyan); background: rgba(14, 165, 233, 0.02); }

.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 var(--glass-border);
}

.risk-house { background: rgba(248, 113, 113, 0.03); border-left-color: #f87171; }
.reward-house { background: rgba(74, 222, 128, 0.03); border-left-color: #4ade80; }

.remedy-house-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Grotesk', 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 STYLES
   ═══════════════════════════════════════════════════════════════ */
.print-header { display: none; }

.btn-print {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--neon-purple);
}
.btn-print:hover {
    background: var(--neon-purple);
    color: #fff;
    border-color: var(--neon-purple);
}

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

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

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

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

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

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

    .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,
    .login-overlay,
    .global-tts-bar,
    .ai-fab,
    .tour-overlay,
    .btn-demo,
    .btn-toggle-chart,
    .tab-accordion-toggle,
    #vedic-calc-form,
    #saved-charts-panel,
    #calc-placeholder,
    .feature-banner,
    .vedic-header p,
    .chart-hint,
    #tab-ai,
    .ai-chat-container,
    .theme-toggle {
        display: none !important;
    }

    .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-card {
        border: 1px solid #ddd !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .tab-content {
        display: block !important;
        page-break-before: always;
    }
    .tab-content:first-of-type {
        page-break-before: avoid;
    }

    .vedic-header h1 {
        -webkit-text-fill-color: #333 !important;
        background: none !important;
        font-size: 1.8rem !important;
    }

    .vedic-brand-badge {
        color: #666 !important;
        border: none !important;
        background: none !important;
    }

    .chart-section-card {
        page-break-after: always;
    }

    .svg-chart-wrapper {
        max-width: 400px;
        margin: 0 auto;
        background: #fff !important;
        border-color: #ddd !important;
    }

    .vedic-table th {
        color: #333 !important;
        background: #f5f5f5 !important;
    }
    .vedic-table td {
        color: #444 !important;
    }

    #kp-wrapper > div { break-inside: avoid; }
    .remedy-planet-card { break-inside: avoid; }
    .remedy-overview-card { break-inside: avoid; }

    .printing {
        padding: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   KARMA / KARMIC ANALYSIS
   ═══════════════════════════════════════════════════════════════ */
.karma-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.karma-axis-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.karma-axis-connector { display: flex; align-items: center; min-width: 60px; justify-content: center; }
.karma-axis-line { width: 2px; height: 40px; background: var(--glass-border); }
.karma-controllers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.karma-kd-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.karma-store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.85rem; }
.karma-axis-visual { padding: 1.5rem; }
.karma-trinal-houses { display: flex; gap: 1rem; flex-wrap: wrap; }

.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(248, 113, 113, 0.04);
    border: 1px solid rgba(248, 113, 113, 0.1);
}
.karma-12p-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #f87171;
    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(74, 222, 128, 0.04);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 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 var(--glass-border);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
.karma-retro-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem;
    background: rgba(192, 132, 252, 0.06);
}
.karma-retro-glyph { font-size: 1.5rem; }
.karma-retro-name {
    font-family: 'Space Grotesk', 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: var(--radius-pill);
    background: #f87171;
    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(--neon-purple);
    margin-right: 0.3rem;
}

/* Kaalsarpa */
.karma-kaalsarpa {}
.karma-ks-alert {
    background: rgba(248, 113, 113, 0.04);
    border: 1px solid rgba(248, 113, 113, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.karma-ks-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #f87171;
    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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--neon-purple);
    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: #4ade80; }

/* 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(248, 113, 113, 0.03);
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    border: 1px solid rgba(248, 113, 113, 0.08);
}
.karma-pitra-icon { color: #fb923c; font-size: 0.9rem; flex-shrink: 0; margin-top: 0.1rem; }
.karma-pitra-remedies {
    background: rgba(74, 222, 128, 0.03);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(74, 222, 128, 0.1);
}
.karma-pitra-rem-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: #4ade80;
    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: rgba(192, 132, 252, 0.04);
    border-left: 4px solid #c084fc;
}
.karma-hr-present {
    background: rgba(251, 191, 36, 0.04);
    border-left-color: #fbbf24;
}
.karma-hr-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', 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(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: box-shadow 0.2s;
}
.karma-sum-item:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
.karma-sum-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.karma-sum-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-bottom: 0.4rem;
}
.karma-sum-text { font-size: 0.8rem; line-height: 1.6; color: var(--text-secondary); }

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

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.vedic-footer {
    width: 100%;
    margin-top: 3rem;
    background: rgba(7, 11, 24, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-family: 'Inter', 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: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
}
.footer-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
}
.vedic-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.vedic-footer-links a {
    color: var(--neon-cyan);
    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: var(--neon-purple);
    border-bottom-color: var(--neon-purple);
}
.vedic-footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.footer-disclaimer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    font-style: italic;
}

@media (max-width: 600px) {
    .vedic-footer { padding: 1.5rem 1rem 1rem; }
    .footer-logo-text { font-size: 1.1rem; }
    .vedic-brand-badge { font-size: 0.68rem; padding: 0.2rem 0.7rem; }
    .vedic-header h1 { font-size: 2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   KP ASTROLOGY
   ═══════════════════════════════════════════════════════════════ */
.kp-planet-btn, .kp-house-btn {
    transition: var(--transition-smooth);
}
.kp-planet-btn:hover, .kp-house-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.kp-planet-btn.kp-active, .kp-house-btn.kp-active {
    box-shadow: 0 2px 16px rgba(14, 165, 233, 0.15);
    border-color: var(--neon-cyan);
    background: rgba(14, 165, 233, 0.08);
}

@media (max-width: 600px) {
    #kp-wrapper > div { padding: 1rem !important; }
    #kp-wrapper .vedic-table { font-size: 0.72rem !important; }
}

/* ═══════════════════════════════════════════════════════════════
   VASTU REMEDIES
   ═══════════════════════════════════════════════════════════════ */
.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: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin: 0 0 0.5rem 0;
}

.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(14, 165, 233, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 10px;
    animation: vbcSlideDown 0.3s ease;
}
@keyframes vastuSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.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.03);
    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 16px rgba(0, 0, 0, 0.3); }
.vastu-elem-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.vastu-elem-bar-wrap { height: 6px; background: rgba(255, 255, 255, 0.05); 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(255, 255, 255, 0.02);
    border-radius: 6px;
    line-height: 1.5;
}

.vastu-dir-table td, .vastu-dir-table th { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
.vastu-exalted { color: #4ade80; font-weight: 600; }
.vastu-debilitated { color: #f87171; font-weight: 600; }
.vastu-own { color: #38bdf8; font-weight: 600; }
.vastu-neutral { color: var(--text-secondary); }
.vastu-priority-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.vastu-zone-card:hover { border-color: rgba(14, 165, 233, 0.15); transform: translateY(-1px); }
.vastu-zone-active { border-color: rgba(14, 165, 233, 0.25); background: rgba(14, 165, 233, 0.04); }
.vastu-zone-header { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 0.3rem; }
.vastu-zone-dir { font-size: 0.72rem; color: var(--text-secondary); }
.vastu-zone-deity { font-size: 0.78rem; color: var(--text-primary); margin: 0.2rem 0; }
.vastu-zone-tip {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.3rem;
}

.vastu-planet-chip {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-cyan);
    margin: 2px;
}

.vastu-remedies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.85rem; }
.vastu-remedy-planet-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.vastu-remedy-planet-card:hover { border-color: rgba(14, 165, 233, 0.15); transform: translateY(-1px); }
.vastu-remedy-planet-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem;
    background: rgba(14, 165, 233, 0.04);
}
.vastu-afflicted-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-pill);
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}
.vastu-remedy-items { padding: 0.5rem 0.85rem; }
.vastu-remedy-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}
.vastu-remedy-item:hover { background: rgba(14, 165, 233, 0.02); }
.vastu-remedy-item-top { display: flex; justify-content: space-between; align-items: center; }
.vastu-remedy-type-badge {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.vastu-remedy-price { font-size: 0.68rem; color: var(--text-muted); }
.vastu-remedy-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.2rem 0;
}
.vastu-remedy-item-desc { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; }

.vastu-filter-btn {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.vastu-filter-btn:hover { background: rgba(14, 165, 233, 0.06); color: var(--neon-cyan); }
.vastu-filter-active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
    color: var(--neon-cyan);
    border-color: rgba(14, 165, 233, 0.25);
}

.vastu-timing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.vastu-timing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem;
    transition: var(--transition-smooth);
}
.vastu-timing-card:hover { border-color: rgba(14, 165, 233, 0.15); }

.vastu-tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.vastu-tip-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition-smooth);
}
.vastu-tip-card:hover { border-color: rgba(14, 165, 233, 0.15); transform: translateY(-2px); }
.vastu-tip-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.vastu-tip-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.vastu-tip-text { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; }

.vastu-budget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.vastu-budget-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}
.vastu-budget-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.vastu-budget-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--neon-cyan); }
.vastu-budget-note { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ═══════════════════════════════════════════════════════════════
   MEDICAL ASTROLOGY
   ═══════════════════════════════════════════════════════════════ */
.med-section { margin-bottom: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 14px; padding: 1.25rem; }
.med-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.med-section-title .med-icon { font-size: 1.3rem; }

.dosha-wheel-container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.dosha-chart-svg { width: 180px; height: 180px; 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.5rem 0.75rem;
    background: rgba(255,255,255,0.02); border-radius: 8px; transition: var(--transition-smooth);
}
.dosha-legend-item:hover { background: rgba(255,255,255,0.04); }
.dosha-color-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dosha-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); min-width: 48px; }
.dosha-percent { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem; }
.dosha-bar-track {
    flex: 1; height: 8px; background: rgba(255,255,255,0.05);
    border-radius: 4px; overflow: hidden; min-width: 80px;
}
.dosha-bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.dosha-vata { background: linear-gradient(135deg, #818cf8, #a78bfa); }
.dosha-pitta { background: linear-gradient(135deg, #fb923c, #f97316); }
.dosha-kapha { background: linear-gradient(135deg, #4ade80, #22c55e); }

.dosha-detail-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.85rem; }
.dosha-detail-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 1rem; transition: var(--transition-smooth);
}
.dosha-detail-card:hover { border-color: rgba(14, 165, 233, 0.1); transform: translateY(-1px); }
.dosha-card-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.dosha-card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.dosha-card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; }
.dosha-card-body { font-size: 0.82rem; line-height: 1.6; color: var(--text-secondary); }
.dosha-card-body strong { color: var(--text-primary); }

.med-planet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.med-planet-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 1rem; position: relative;
    overflow: hidden; transition: var(--transition-smooth);
}
.med-planet-card::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
}
.med-planet-card.benefic::before { background: linear-gradient(to bottom, #4ade80, #22c55e); }
.med-planet-card.malefic::before { background: linear-gradient(to bottom, #f87171, #ef4444); }
.med-planet-card.neutral::before { background: linear-gradient(to bottom, #fbbf24, #f59e0b); }
.med-planet-card:hover { border-color: rgba(14, 165, 233, 0.1); transform: translateY(-1px); }
.med-planet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.med-planet-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem; }
.med-planet-badge {
    font-size: 0.62rem; font-weight: 700; padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill); text-transform: uppercase;
}
.med-badge-strong { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.med-badge-weak { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.med-badge-neutral { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.med-planet-body { font-size: 0.82rem; line-height: 1.6; color: var(--text-secondary); }
.med-planet-body .med-tag {
    display: inline-block; padding: 0.1rem 0.4rem; border-radius: var(--radius-pill);
    font-size: 0.7rem; font-weight: 600; margin: 2px;
}

.med-body-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.med-body-item {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 0.75rem; text-align: center;
    transition: var(--transition-smooth);
}
.med-body-item:hover { border-color: rgba(14, 165, 233, 0.1); }
.med-body-house { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--neon-cyan); }

.med-dhatu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.med-dhatu-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; padding: 0.85rem; }
.med-dhatu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.med-dhatu-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; }
.med-dhatu-planet { font-size: 0.72rem; color: var(--text-secondary); }
.med-dhatu-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; margin-bottom: 0.3rem; }
.med-dhatu-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.med-dhatu-status { font-size: 0.72rem; color: var(--text-secondary); }

.med-chakra-container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.med-chakra-spine { position: relative; width: 40px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.med-chakra-dot {
    width: 24px; height: 24px; border-radius: 50%; position: relative; cursor: pointer;
    transition: var(--transition-smooth); border: 2px solid transparent;
}
.med-chakra-dot:hover { transform: scale(1.15); }
.med-chakra-dot.active-chakra { border-color: var(--neon-cyan); box-shadow: 0 0 12px var(--neon-cyan-glow); }
.med-chakra-details { flex: 1; min-width: 250px; }
.med-chakra-detail-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; padding: 1rem; }
.med-chakra-detail-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 0.5rem; }
.med-chakra-info-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.82rem; }
.med-chakra-info-label { color: var(--text-muted); }

.med-remedy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.med-remedy-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 1rem; transition: var(--transition-smooth);
    position: relative; overflow: hidden;
}
.med-remedy-card:hover { border-color: rgba(14, 165, 233, 0.12); transform: translateY(-2px); }
.med-remedy-card::after {
    content: ''; position: absolute; top: 0; right: 0; width: 60px; height: 60px;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.06), transparent);
    pointer-events: none;
}
.med-remedy-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.med-remedy-type {
    font-size: 0.6rem; font-weight: 700; padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.3px;
}
.med-remedy-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--text-muted); }
.med-remedy-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.med-remedy-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }
.med-remedy-planet-tag {
    display: inline-block; padding: 0.1rem 0.4rem; border-radius: var(--radius-pill);
    font-size: 0.65rem; font-weight: 600; margin: 2px;
    background: rgba(14, 165, 233, 0.08); color: var(--neon-cyan);
}

.med-filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.med-filter-btn {
    padding: 0.35rem 0.8rem; border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill); background: rgba(255,255,255,0.03);
    color: var(--text-secondary); font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: var(--transition-smooth);
}
.med-filter-btn:hover,
.med-filter-btn.active {
    background: rgba(14, 165, 233, 0.08);
    color: var(--neon-cyan);
    border-color: rgba(14, 165, 233, 0.2);
}

.med-budget-table { width: 100%; border-collapse: collapse; }
.med-budget-table th {
    text-align: left; padding: 0.6rem; font-size: 0.75rem; color: var(--neon-cyan);
    border-bottom: 1px solid var(--glass-border); font-family: 'Space Grotesk', sans-serif;
}
.med-budget-table td { padding: 0.5rem 0.6rem; font-size: 0.82rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.med-budget-table tr:hover td { background: rgba(14, 165, 233, 0.02); }
.med-budget-total { border-top: 2px solid var(--glass-border); }
.med-budget-total td { font-weight: 700; color: var(--neon-cyan); }

.med-three-bodies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.med-body-card {
    text-align: center; padding: 1.25rem; background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border); border-radius: 12px;
    transition: var(--transition-smooth);
}
.med-body-card:hover { border-color: rgba(14, 165, 233, 0.1); }
.med-body-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.med-body-label { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--text-primary); }
.med-body-sub { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }

.med-elements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.med-element-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 0.85rem; text-align: center;
}
.med-element-card:hover { border-color: rgba(14, 165, 233, 0.1); }
.med-element-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.med-element-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.82rem; margin-bottom: 0.3rem; }
.med-element-val { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.med-element-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.med-element-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }

.med-timing-list { display: flex; flex-direction: column; gap: 0.5rem; }
.med-timing-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.85rem;
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 8px; transition: var(--transition-smooth);
}
.med-timing-icon { font-size: 1.2rem; }
.med-timing-period { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.med-timing-desc { font-size: 0.78rem; color: var(--text-secondary); }

.med-disclaimer {
    font-size: 0.75rem; color: var(--text-muted); font-style: italic; line-height: 1.6;
    padding: 1rem; background: rgba(248, 113, 113, 0.03); border: 1px solid rgba(248, 113, 113, 0.08);
    border-radius: 8px; margin-top: 1rem;
}
.med-disclaimer strong { color: #f87171; }

/* ═══════════════════════════════════════════════════════════════
   BNN (BUSINESS / WEALTH) SECTION
   ═══════════════════════════════════════════════════════════════ */
.bnn-section { margin-bottom: 2rem; }
.bnn-section-title {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem;
    color: var(--neon-cyan); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.bnn-section-title .bnn-icon { font-size: 1.3rem; }

.bnn-venus-chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.bnn-venus-house {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 0.75rem; text-align: center; position: relative;
    transition: var(--transition-smooth);
}
.bnn-venus-house:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); border-color: rgba(14, 165, 233, 0.2); }
.bnn-venus-house.wealth-house { border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.04); }
.bnn-venus-house.wealth-house::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #4ade80, #22c55e); border-radius: 10px 10px 0 0; }
.bnn-house-num { font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); 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(--neon-cyan); font-weight: 500; min-height: 1.2rem; }
.bnn-house-badge { font-size: 0.6rem; background: rgba(74, 222, 128, 0.15); color: #4ade80; padding: 0.15rem 0.4rem; border-radius: var(--radius-pill); margin-top: 0.3rem; display: inline-block; font-weight: 600; }

.bnn-lakshmi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.bnn-lakshmi-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 1.25rem; position: relative;
    transition: var(--transition-smooth); overflow: hidden;
}
.bnn-lakshmi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
.bnn-lakshmi-card.active { border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.04); }
.bnn-lakshmi-card.active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #4ade80, #fbbf24); }
.bnn-lakshmi-card.inactive { opacity: 0.5; 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: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--neon-cyan); }
.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-block; font-size: 0.62rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: var(--radius-pill); text-transform: uppercase; }
.bnn-lakshmi-status.active-status { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.bnn-lakshmi-status.inactive-status { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

.bnn-yoga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.bnn-yoga-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; transition: var(--transition-smooth); }
.bnn-yoga-card:hover { border-color: rgba(14, 165, 233, 0.15); }
.bnn-yoga-card.found { border-left: 4px solid #4ade80; background: rgba(74, 222, 128, 0.03); }
.bnn-yoga-card.not-found { border-left: 4px solid rgba(255, 255, 255, 0.08); opacity: 0.5; }
.bnn-yoga-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--neon-cyan); 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: var(--radius-pill); margin-top: 0.4rem; }
.bnn-yoga-strength.strong { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.bnn-yoga-strength.moderate { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.bnn-yoga-strength.weak { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.bnn-nakshatra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.bnn-nakshatra-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; position: relative; transition: var(--transition-smooth); }
.bnn-nakshatra-card:hover { border-color: rgba(14, 165, 233, 0.15); transform: translateY(-1px); }
.bnn-nakshatra-card.active-nak { border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.04); }
.bnn-nakshatra-card.active-nak::after { content: 'ACTIVE'; position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.6rem; font-weight: 700; color: #4ade80; background: rgba(74, 222, 128, 0.15); padding: 0.1rem 0.4rem; border-radius: var(--radius-pill); }
.bnn-nak-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.bnn-nak-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--neon-cyan); }
.bnn-nak-lord { font-size: 0.72rem; color: var(--text-secondary); background: rgba(255,255,255,0.04); padding: 0.15rem 0.4rem; border-radius: var(--radius-pill); }
.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(255,255,255,0.05); 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; }

.bnn-indu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.bnn-indu-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; padding: 0.85rem; }
.bnn-indu-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.bnn-indu-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--neon-purple); margin: 0.25rem 0; }
.bnn-indu-detail { font-size: 0.78rem; color: var(--text-secondary); }

.bnn-career-meter { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.bnn-career-label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.85rem; min-width: 70px; text-align: center; }
.bnn-career-bar { flex: 1; height: 14px; background: rgba(255,255,255,0.05); 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(255,255,255,0.02); border-radius: 6px; }
.bnn-factor.positive { border-left: 3px solid #4ade80; }
.bnn-factor.negative { border-left: 3px solid #f87171; }

.bnn-score-container { text-align: center; padding: 1.5rem; }
.bnn-score-ring {
    width: 120px; height: 120px; border-radius: 50%; position: relative;
    margin: 0 auto 0.5rem; display: flex; align-items: center; justify-content: center;
}
.bnn-score-ring::before {
    content: ''; position: absolute; inset: 4px; border-radius: 50%;
    background: var(--bg-cosmic);
}
.bnn-score-value {
    font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.8rem;
    position: relative; z-index: 1;
}
.bnn-score-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }

.bnn-remedy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.bnn-remedy-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 1.25rem; text-align: center;
    transition: var(--transition-smooth);
}
.bnn-remedy-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); border-color: rgba(14, 165, 233, 0.2); }
.bnn-remedy-card .bnn-remedy-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.bnn-remedy-card .bnn-remedy-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--neon-cyan); 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: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text-muted); }
.bnn-remedy-card .bnn-remedy-freq { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.4rem; }
.bnn-remedy-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.bnn-remedy-filter button {
    padding: 0.3rem 0.7rem; border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.03); color: var(--text-secondary); font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: var(--transition-smooth);
}
.bnn-remedy-filter button:hover, .bnn-remedy-filter button.active {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)); color: #fff; border-color: transparent;
}

.bnn-wealth-banner {
    background: rgba(14, 165, 233, 0.03); border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 14px; padding: 1.25rem; display: flex; justify-content: space-around;
    flex-wrap: wrap; gap: 1rem;
}
.bnn-wealth-stat { text-align: center; }
.bnn-wealth-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 800; background: var(--neon-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bnn-wealth-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE — Split Cosmic Design
   ═══════════════════════════════════════════════════════════════ */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-cosmic);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.login-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.04) 0%, transparent 50%);
    animation: cosmicBg 20s ease infinite;
    background-size: 200% 200%;
    pointer-events: none;
}

.login-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.login-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(99, 102, 241, 0.05));
    position: relative;
}

.login-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.login-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.login-hero-content .login-logo-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.3));
}

.login-hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-hero-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.login-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.login-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.login-feat:hover {
    background: rgba(14, 165, 233, 0.06);
}

.login-feat span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(14, 14, 36, 0.8);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
}

.login-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.login-card-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.auth-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    font-family: 'Space Grotesk', sans-serif;
}
.auth-tab:hover { color: var(--text-secondary); }
.auth-tab.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.login-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.login-switch a {
    color: var(--neon-cyan);
    text-decoration: none;
}
.login-switch a:hover { text-decoration: underline; }

.login-success {
    text-align: center;
    color: #4ade80;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-form { display: flex; flex-direction: column; gap: 0.9rem; }

.login-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-input);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}
.login-field input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), 0 0 20px rgba(14, 165, 233, 0.06);
    background: rgba(255, 255, 255, 0.06);
}
.login-field input::placeholder { color: var(--text-muted); }

.login-pass-wrap {
    position: relative;
}
.login-pass-wrap input { padding-right: 3rem; }
.login-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}
.login-eye:hover { color: var(--neon-cyan); }

.login-error {
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 500;
    min-height: 1.2rem;
}
.login-shake { animation: shakeErr 0.4s ease; }

.login-submit {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: var(--radius-btn);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}
.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3), 0 0 60px rgba(99, 102, 241, 0.15);
}
.login-submit:active { transform: translateY(0); }

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.fp-clickable {
    cursor: pointer;
}

/* Logout button */
.btn-logout {
    background: none;
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-logout:hover { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.4); color: #f87171; }

@media (max-width: 768px) {
    .login-split { flex-direction: column; }
    .login-hero { min-height: 35vh; }
    .login-hero-content h1 { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════════════════════════════
   TRANSIT CALENDAR
   ═══════════════════════════════════════════════════════════════ */
.tc-section { margin-bottom: 1.5rem; }
.tc-section-title {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
    color: var(--neon-cyan); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}

.tc-planet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.tc-planet-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 0.75rem; transition: var(--transition-smooth);
}
.tc-planet-card:hover { background: rgba(14, 165, 233, 0.03); }
.tc-planet-card.tc-fav { border-color: rgba(74, 222, 128, 0.2); }
.tc-planet-card.tc-unfav { border-color: rgba(248, 113, 113, 0.2); }
.tc-planet-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.tc-planet-icon { font-size: 1.3rem; }
.tc-planet-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.tc-planet-badge { font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: var(--radius-pill); text-transform: uppercase; }
.tc-planet-badge.tc-fav { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.tc-planet-badge.tc-unfav { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.tc-planet-details { font-size: 0.78rem; }
.tc-detail-row { padding: 0.12rem 0; color: var(--text-secondary); }
.tc-detail-row .tc-label { color: var(--text-muted); opacity: 0.65; font-size: 0.7rem; margin-right: 0.3rem; }
.tc-detail-row strong { color: var(--text-primary); }

.tc-changes-timeline { display: flex; flex-direction: column; gap: 0.5rem; }
.tc-change-card {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.85rem;
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 10px; transition: var(--transition-smooth);
}
.tc-change-card:hover { background: rgba(14, 165, 233, 0.03); }
.tc-change-card.tc-change-good { border-left: 3px solid #4ade80; }
.tc-change-card.tc-change-bad { border-left: 3px solid #f87171; }
.tc-change-date { text-align: center; min-width: 40px; }
.tc-change-day { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--neon-cyan); line-height: 1; }
.tc-change-month { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.tc-change-info { flex: 1; }
.tc-change-planet { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; }
.tc-change-move { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.1rem; }
.tc-change-house { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.1rem; }
.tc-change-countdown { font-size: 0.72rem; color: var(--neon-cyan); font-weight: 600; white-space: nowrap; }

.tc-house-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.tc-house-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 8px; padding: 0.5rem; text-align: center; transition: var(--transition-smooth);
}
.tc-house-card:hover { background: rgba(14, 165, 233, 0.03); }
.tc-house-card.tc-house-blessed { border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.04); }
.tc-house-card.tc-house-afflicted { border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.04); }
.tc-house-card.tc-house-mild-positive { border-color: rgba(251, 191, 36, 0.2); }
.tc-house-card.tc-house-mild-negative { border-color: rgba(251, 146, 60, 0.2); }
.tc-house-num { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 0.82rem; color: var(--neon-cyan); }
.tc-house-sign { font-size: 0.72rem; color: var(--text-secondary); 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-muted); }
.tc-house-status { font-size: 0.72rem; font-weight: 600; margin-top: 0.2rem; color: var(--text-primary); }
.tc-house-alert { font-size: 0.58rem; margin-top: 0.15rem; padding: 0.1rem 0.3rem; border-radius: var(--radius-pill); }
.tc-house-alert.tc-alert-bad { background: rgba(248, 113, 113, 0.1); color: #f87171; }
.tc-house-alert.tc-alert-good { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.tc-empty-house { font-size: 0.65rem; color: var(--text-muted); opacity: 0.4; }
.tc-loading { text-align: center; padding: 2rem 1rem; color: var(--text-secondary); font-size: 0.95rem; animation: neonPulse 1.5s ease-in-out infinite; }

.tc-cal-range-info { margin-bottom: 0.75rem; }
.tc-range-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.tc-range-bar { display: flex; gap: 2px; flex-wrap: wrap; }
.tc-range-dot { width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,0.08); }
.tc-range-dot.tc-range-today { outline: 2px solid var(--neon-cyan); outline-offset: 1px; }
.tc-range-dot.tc-range-active { background: rgba(14, 165, 233, 0.3); }
.tc-range-dot.tc-range-active.tc-range-today { background: var(--neon-cyan); }

.tc-month-summary { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; padding: 0.85rem; margin-bottom: 0.75rem; }
.tc-month-verdict { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; }
.tc-month-stats { display: flex; gap: 1rem; font-size: 0.78rem; }
.tc-stat-good { color: #4ade80; }
.tc-stat-ok { color: var(--text-secondary); }
.tc-stat-bad { color: #f87171; }
.tc-stat-avg { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

.tc-cal-nav { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.tc-nav-btn {
    padding: 0.3rem 0.6rem; border: 1px solid var(--glass-border); border-radius: 6px;
    background: rgba(255,255,255,0.03); color: var(--text-primary); font-size: 0.78rem;
    cursor: pointer; transition: var(--transition-smooth);
}
.tc-nav-btn:hover:not(:disabled) { background: rgba(14, 165, 233, 0.08); color: var(--neon-cyan); }
.tc-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.tc-today-btn { background: rgba(14, 165, 233, 0.06); color: var(--neon-cyan); }
.tc-today-btn.tc-today-active { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)); color: #fff; font-weight: 700; }

.tc-cal-month { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; flex: 1; text-align: center; }
.tc-calendar { border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden; }
.tc-cal-header { display: grid; grid-template-columns: repeat(7, 1fr); background: rgba(14, 165, 233, 0.04); }
.tc-cal-day-name {
    text-align: center; padding: 0.4rem; font-size: 0.68rem; font-weight: 700;
    color: var(--neon-cyan); text-transform: uppercase; letter-spacing: 0.05em;
}
.tc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.tc-cal-cell {
    min-height: 60px; padding: 0.3rem; border: 1px solid rgba(255,255,255,0.02);
    text-align: center; cursor: pointer; transition: var(--transition-smooth); position: relative;
}
.tc-cal-cell:hover { transform: scale(1.04); z-index: 2; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); }
.tc-cal-empty { background: rgba(255,255,255,0.01); }
.tc-cal-date { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.tc-cal-score { font-size: 0.6rem; font-weight: 700; margin-top: 0.15rem; }
.tc-cal-rating { font-size: 0.55rem; font-weight: 700; margin-top: 0.08rem; }
.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; justify-content: center; }
.tc-change-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.tc-day-excellent { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.2); border-left: 3px solid #4ade80; }
.tc-day-excellent .tc-cal-score { color: #4ade80; font-size: 0.85rem; }
.tc-day-excellent .tc-cal-date { color: #4ade80; }
.tc-day-excellent .tc-cal-rating { color: #4ade80; font-weight: 900; }

.tc-day-good { background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.15); border-left: 3px solid #22c55e; }
.tc-day-good .tc-cal-score { color: #22c55e; }
.tc-day-good .tc-cal-rating { color: #22c55e; }

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

.tc-day-challenging { background: rgba(251, 146, 60, 0.1); border-color: rgba(251, 146, 60, 0.2); border-left: 3px solid #fb923c; }
.tc-day-challenging .tc-cal-score { color: #fb923c; }
.tc-day-challenging .tc-cal-rating { color: #fb923c; }

.tc-day-difficult { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.2); border-left: 3px solid #f87171; }
.tc-day-difficult .tc-cal-score { color: #f87171; font-size: 0.85rem; }
.tc-day-difficult .tc-cal-date { color: #f87171; }
.tc-day-difficult .tc-cal-rating { color: #f87171; font-weight: 900; }

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

.tc-cal-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.72rem; color: var(--text-muted); }
.tc-legend-item { display: flex; align-items: center; gap: 0.3rem; }
.tc-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.tc-retro-badge {
    display: inline-block; font-size: 0.55rem; font-weight: 800; padding: 0.08rem 0.3rem;
    border-radius: var(--radius-pill); background: rgba(192, 132, 252, 0.15); color: #c084fc;
    text-transform: uppercase; letter-spacing: 0.3px;
}

.tc-events-nav { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.tc-events-range-btn {
    padding: 0.3rem 0.65rem; border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.03); color: var(--text-secondary); font-size: 0.75rem; cursor: pointer;
}
.tc-events-range-btn.tc-range-active-btn {
    background: rgba(14, 165, 233, 0.1); color: var(--neon-cyan); border-color: rgba(14, 165, 233, 0.25);
}
.tc-events-period-badge {
    font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill); background: rgba(14, 165, 233, 0.08); color: var(--neon-cyan);
}

.tc-filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tc-filter-btn {
    padding: 0.3rem 0.65rem; border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.03); color: var(--text-secondary); font-size: 0.75rem;
    font-weight: 600; cursor: pointer; transition: var(--transition-smooth);
}
.tc-filter-btn:hover { background: rgba(14, 165, 233, 0.06); color: var(--neon-cyan); }
.tc-filter-btn.active { background: rgba(14, 165, 233, 0.1); color: var(--neon-cyan); border-color: rgba(14, 165, 233, 0.25); }

.tc-events-table-wrapper { overflow-x: auto; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.02); }
.tc-events-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.tc-events-table thead th {
    padding: 0.6rem 0.5rem; text-align: left; font-size: 0.68rem; font-weight: 700;
    color: var(--neon-cyan); border-bottom: 1px solid var(--glass-border); background: rgba(14, 165, 233, 0.03);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.tc-events-table tbody td { padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.02); }
.tc-events-table tbody tr:hover { background: rgba(14, 165, 233, 0.03); }

.tc-row-benefic { border-left: 3px solid #4ade80; }
.tc-row-adverse { border-left: 3px solid #f87171; }
.tc-row-mixed { border-left: 3px solid #fbbf24; }

.tc-td-date { font-weight: 700; white-space: nowrap; color: var(--neon-cyan); font-size: 0.76rem; }
.tc-td-month { font-size: 0.7rem; color: var(--text-muted); 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); }
.tc-td-remedy { max-width: 200px; font-size: 0.68rem; color: var(--text-muted); font-style: italic; }

.tc-nature-badge {
    display: inline-block; padding: 0.12rem 0.4rem; border-radius: var(--radius-pill);
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.tc-nature-good { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.tc-nature-bad { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.tc-nature-mixed { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }

.tc-rr-bar { display: flex; gap: 0.3rem; margin-top: 0.2rem; font-size: 0.6rem; }
.tc-risk { color: #f87171; }
.tc-reward { color: #4ade80; }

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

/* ═══════════════════════════════════════════════════════════════
   ADMIN MODE
   ═══════════════════════════════════════════════════════════════ */
.vedic-chart-app .tab-content,
.vedic-chart-app .vedic-table,
.vedic-chart-app .report-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.vbc-admin-mode .vedic-chart-app .tab-content,
.vbc-admin-mode .vedic-chart-app .vedic-table,
.vbc-admin-mode .vedic-chart-app .report-card,
.vbc-admin-mode .vedic-chart-app * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.admin-tab-copy-btn:hover {
    background: rgba(14, 165, 233, 0.15) !important;
    transform: translateY(-1px);
}

#admin-mode-badge {
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes adminPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
    50% { box-shadow: 0 0 8px 2px rgba(14, 165, 233, 0.3); }
}

#vbc-copy-toast {
    pointer-events: none;
}

.vbc-admin-mode .vedic-btn-group {
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURE SHOWCASE BANNER
   ═══════════════════════════════════════════════════════════════ */
.feature-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0e0e24 0%, var(--bg-cosmic-tertiary) 40%, #0a0a1a 100%);
    border-radius: var(--radius-card);
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.06);
}

.feature-banner-glow {
    position: absolute;
    top: -60%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
    pointer-events: none;
    animation: cosmicFloat 8s ease infinite;
}

.feature-banner-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--neon-cyan);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.feature-banner-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    background: var(--neon-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    line-height: 1.3;
}

.feature-banner-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.feature-banner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
    cursor: pointer;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    user-select: none;
}

.feature-pill:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}

.feature-pill:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 4px rgba(14, 165, 233, 0.15);
}

.fp-icon { font-size: 0.9rem; line-height: 1; }
.fp-text { font-weight: 500; }
.fp-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.2rem;
    line-height: 1.2;
}

.feature-pill.fp-gold {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.2);
    color: var(--neon-cyan);
}

.feature-pill.fp-ai {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--neon-purple);
}

.feature-pill.fp-premium {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.2);
    color: var(--neon-magenta);
    animation: premiumPulse 3s ease-in-out infinite;
}

@keyframes premiumPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
    50% { box-shadow: 0 0 15px 2px rgba(244, 63, 94, 0.12); }
}

.feature-banner-cta {
    text-align: center;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.feature-banner-cta span {
    font-size: 0.78rem;
    color: rgba(14, 165, 233, 0.5);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .feature-banner { padding: 1.5rem 1rem 1.25rem; border-radius: 14px; }
    .feature-banner-title { font-size: 1.15rem; }
    .feature-banner-grid { gap: 0.4rem; padding: 0; }
    .feature-pill { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
    .fp-icon { font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════════
   KUNDALI MILAN
   ═══════════════════════════════════════════════════════════════ */
.milan-results-wrapper {
    animation: fadeIn 0.5s ease;
}

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

/* ═══════════════════════════════════════════════════════════════
   TOUR / ONBOARDING
   ═══════════════════════════════════════════════════════════════ */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 24, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}
@keyframes tourFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

.tour-card {
    background: var(--glass-bg-solid);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(14, 165, 233, 0.05);
    position: relative;
    animation: fadeIn 0.4s ease;
}
@keyframes tourSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-step-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}
.tour-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}
.tour-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.tour-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.tour-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}
.tour-dot.active {
    background: var(--neon-cyan);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}
.tour-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.tour-btn-next {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
}
.tour-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}
.tour-btn-skip {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-btn);
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
}
.tour-btn-skip:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Demo Button */
.btn-demo {
    background: rgba(14, 165, 233, 0.06);
    border: 1.5px dashed rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-btn);
    color: var(--neon-cyan);
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}
.btn-demo:hover {
    background: rgba(14, 165, 233, 0.12);
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════════════════════════
   AI FAB (MOBILE)
   ═══════════════════════════════════════════════════════════════ */
.ai-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #fff;
    border: none;
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    animation: fabPulse 2s ease-in-out infinite;
}
.ai-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(14, 165, 233, 0.5);
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 4px 36px rgba(14, 165, 233, 0.6), 0 0 60px rgba(99, 102, 241, 0.15); }
}
.ai-fab-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg-solid);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    border: 1px solid var(--glass-border);
}
.ai-fab:hover .ai-fab-tooltip {
    opacity: 1;
}

.fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--neon-magenta);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    min-width: 18px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   TAB ACCORDION (MOBILE)
   ═══════════════════════════════════════════════════════════════ */
.tab-accordion-toggle {
    display: none;
    width: 100%;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-cyan);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}
.tab-accordion-toggle:hover {
    background: rgba(14, 165, 233, 0.1);
}
.tab-accordion-toggle::after {
    content: '\25BC';
    float: right;
    transition: transform 0.3s;
}
.tab-accordion-toggle.open::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .ai-fab { display: flex; }
    .tab-accordion-toggle { display: block; }
    .vedic-tabs-container .vedic-tabs {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        flex-wrap: wrap;
    }
    .vedic-tabs-container .vedic-tabs.accordion-open {
        max-height: 600px;
    }
    .vedic-tabs-container .vedic-tabs .vedic-tab-btn {
        width: 48%;
        text-align: center;
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        margin: 2px 0;
        padding: 0.55rem 0.4rem;
        font-size: 0.78rem;
    }
    .vedic-tabs-container .vedic-tabs .vedic-tab-btn.active {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.12));
        border-color: rgba(14, 165, 233, 0.3);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SHARE & DOWNLOAD BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-share-wa {
    background: rgba(37, 211, 102, 0.08) !important;
    border-color: rgba(37, 211, 102, 0.2) !important;
    color: #25D366 !important;
}
.btn-share-wa:hover {
    background: rgba(37, 211, 102, 0.15) !important;
    border-color: #25D366 !important;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.2);
}

.btn-download-png {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
}
.btn-download-png:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.2);
}

@media (max-width: 768px) {
    .vedic-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    .vedic-btn-group .btn-export {
        flex: 1;
        min-width: 45%;
        font-size: 0.78rem;
        padding: 0.45rem 0.6rem;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE & DARK MODE
   ═══════════════════════════════════════════════════════════════ */
.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    vertical-align: middle;
    margin-left: 0.5rem;
    color: var(--neon-cyan);
}
.theme-toggle:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--neon-cyan);
    transform: rotate(30deg);
}

/* Dark mode is now the default. .dark-mode adjusts slightly */
body.dark-mode {
    /* Already dark, just subtle tweaks */
    --bg-cosmic: #080816;
    --glass-bg: rgba(14, 14, 34, 0.7);
}

body.dark-mode .vedic-chart-app {
    background: #080816;
}

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADERS
   ═══════════════════════════════════════════════════════════════ */
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.04) 25%, rgba(14, 165, 233, 0.08) 50%, rgba(14, 165, 233, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}
.skeleton-line:nth-child(2) { width: 85%; }
.skeleton-line:nth-child(3) { width: 70%; }
.skeleton-line:nth-child(4) { width: 90%; height: 12px; }
.skeleton-line:nth-child(5) { width: 60%; height: 12px; }

.skeleton-chart {
    width: 200px;
    height: 200px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.03) 25%, rgba(14, 165, 233, 0.07) 50%, rgba(14, 165, 233, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 12px;
    margin: 1rem auto;
}

/* ═══════════════════════════════════════════════════════════════
   MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════════ */
.vedic-tab-btn:active {
    transform: scale(0.97);
}

.btn-submit:active,
.btn-detect:active,
.btn-export:active,
.btn-demo:active {
    transform: scale(0.97) translateY(0);
}

.feature-pill:active {
    transform: scale(0.96);
}

.tab-content.active {
    animation: tabFadeIn 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .vedic-header {
        padding: 1rem 0.75rem;
    }
    .vedic-header h1 {
        font-size: 1.8rem;
    }
    .vedic-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    .vedic-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .dasha-analysis-two-col {
        grid-template-columns: 1fr;
    }
    .dasha-maha-effects-row {
        grid-template-columns: 1fr;
    }
    .med-three-bodies {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vedic-chart-app {
        padding: 0 0.5rem 1rem;
    }
    .vedic-header h1 {
        font-size: 1.5rem;
    }
    .vedic-card {
        padding: 1rem;
        border-radius: 12px;
    }
    .vedic-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    .vedic-table {
        font-size: 0.78rem;
    }
    .vedic-table th, .vedic-table td {
        padding: 0.6rem 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINTING MODE CLASS
   ═══════════════════════════════════════════════════════════════ */
.printing {
    overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════════
   ASHTAKAVARGA DASHBOARD — Hero, SAV, Planet Strength, Heatmap,
   Reduction, Pinda, Indu Lagna, Life Analysis, House Grid,
   Interpretation, Findings, Dasha & Transit
   (Adapted for Cosmic Dark Glassmorphism theme)
   ═══════════════════════════════════════════════════════════════ */

/* Hero Cards */
.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.3);
}
.av-hero-val {
    font-family: 'Space Grotesk', 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(--neon-cyan, #00d4ff); }
.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: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan, #00d4ff);
    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(255,255,255,0.08);
    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-muted, #5a5e7a);
    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.05);
    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; color: var(--text-primary); }
.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: 'Space Grotesk', 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(255,255,255,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;
    color: var(--text-primary);
}
.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.03);
    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.08); }
.av-red-tab.active {
    background: var(--neon-cyan, #00d4ff);
    color: #fff;
    border-color: var(--neon-cyan, #00d4ff);
}
.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.03);
    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;
    color: var(--text-primary);
}
.av-pinda-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--neon-cyan, #00d4ff);
}
.av-pinda-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.08);
    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: 'Space Grotesk', 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.03);
    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.03);
    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(255,255,255,0.08);
    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(255,255,255,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(--neon-cyan, #00d4ff);
}
.av-hc-sign { font-size: 0.75rem; color: var(--text-secondary); }
.av-hc-score {
    font-family: 'Space Grotesk', 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.03);
    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.03);
}
.av-interp-emoji { font-size: 1.3rem; }
.av-interp-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.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(255,255,255,0.05);
}

/* Key Findings */
.av-findings {
    background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(123,45,255,0.03));
    border-color: rgba(0,212,255,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.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,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.05);
    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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.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(255,255,255,0.08);
    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(255,255,255,0.05);
    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: 'Space Grotesk', 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(255,255,255,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.03);
    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: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan, #00d4ff);
    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.05);
}
.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;
    color: var(--text-primary);
}
.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(255,255,255,0.05);
    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(255,255,255,0.04);
}

/* Timing Summary */
.av-timing-summary {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
}
.av-timing-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-cyan, #00d4ff);
    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: 'Space Grotesk', 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
   ═══════════════════════════════════════════════════════════════ */
.map-picker-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--neon-purple, #7b2dff);
    margin-bottom: 0.75rem;
}

#vedic-map-picker {
    height: 220px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.leaflet-control-container {
    z-index: 1000;
}
.leaflet-pane {
    z-index: 1;
}

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

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

.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(0,212,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(123,45,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.karma-axis-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan, #00d4ff);
    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: 'Space Grotesk', 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: 'Space Grotesk', 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(0,212,255,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: var(--neon-cyan, #00d4ff); }

/* Stats Row */
.karma-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}
.karma-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
}
.karma-stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon-cyan, #00d4ff);
}
.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(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
}
.karma-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-purple, #7b2dff);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255,255,255,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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
}
.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(255,255,255,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 var(--glass-border);
    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: 'Space Grotesk', 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(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}
.karma-kd-head {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    color: var(--neon-purple, #7b2dff);
}
.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(255,255,255,0.02);
    border-radius: 10px;
    padding: 1rem;
}
.karma-trinal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-purple, #7b2dff);
    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: var(--glass-bg);
    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: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon-cyan, #00d4ff);
}
.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: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neon-purple, #7b2dff);
}
.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(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}
.karma-si-head {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: var(--neon-purple, #7b2dff);
}
.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(255,255,255,0.06);
    padding-top: 1rem;
}
.karma-12p-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--neon-purple, #7b2dff);
    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: 'Space Grotesk', 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 var(--glass-border);
    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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.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(--neon-purple, #7b2dff);
    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: 'Space Grotesk', 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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--neon-purple, #7b2dff);
    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: 'Space Grotesk', 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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}
.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(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: box-shadow 0.2s;
}
.karma-sum-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.karma-sum-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.karma-sum-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--neon-purple, #7b2dff);
    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                                                     */
/* ═══════════════════════════════════════════════════════════ */
.vedic-footer {
    width: 100%;
    margin-top: 3rem;
    background: linear-gradient(135deg, #0a0a1a 0%, #0e0e24 100%);
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.5rem 1.5rem;
    color: #c8c8d4;
    font-family: 'Inter', 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: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-cyan, #00d4ff);
    letter-spacing: 0.02em;
}
.footer-tagline {
    font-size: 0.82rem;
    color: var(--text-secondary);
    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: var(--neon-cyan, #00d4ff);
    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: #7b2dff;
    border-bottom-color: #7b2dff;
}
.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.3);
}
.kp-planet-btn.kp-active, .kp-house-btn.kp-active {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
@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: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan, #00d4ff);
    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(0,212,255,0.04);
    border: 1px solid rgba(0,212,255,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.05);
    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.3);
}
.vastu-elem-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.vastu-elem-bar-wrap {
    height: 6px;
    background: rgba(255,255,255,0.08);
    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(255,255,255,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.05);
    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.3);
    background: rgba(255,255,255,0.08);
}
.vastu-zone-active {
    background: rgba(0,212,255,0.05);
    border-color: rgba(0,212,255,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: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}
.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(255,255,255,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.05);
    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.3);
}
.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(255,255,255,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(255,255,255,0.05);
    transition: var(--transition-smooth);
}
.vastu-remedy-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.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(255,255,255,0.04);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}
.vastu-remedy-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--neon-purple, #7b2dff);
}
.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(0,212,255,0.25);
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.vastu-filter-btn:hover {
    background: rgba(0,212,255,0.08);
    color: var(--neon-cyan, #00d4ff);
}
.vastu-filter-active {
    background: var(--neon-cyan, #00d4ff);
    color: white;
    border-color: var(--neon-cyan, #00d4ff);
}

/* 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.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.vastu-timing-card:hover {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 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.05);
    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.3);
}
.vastu-tip-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}
.vastu-tip-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--neon-purple, #7b2dff);
    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.05);
    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: 'Space Grotesk', 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
   ═══════════════════════════════════════════════════════════════ */

.med-section {
    background: rgba(0,212,255,0.03);
    border: 1px solid rgba(0,212,255,0.12);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.med-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan, #00d4ff);
    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.05);
    border-radius: 10px;
    border: 1px solid rgba(0,212,255,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dosha-legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,212,255,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(255,255,255,0.08);
    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.05);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(0,212,255,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.dosha-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,212,255,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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.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.05);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0,212,255,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(0,212,255,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(0,212,255,0.08);
    color: var(--neon-cyan, #00d4ff);
    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.05);
    border-radius: 10px;
    border: 1px solid rgba(0,212,255,0.08);
    font-size: 0.83rem;
    color: var(--text-secondary);
    transition: background 0.2s;
}
.med-body-item:hover {
    background: rgba(0,212,255,0.06);
}
.med-body-house {
    font-weight: 700;
    color: var(--neon-cyan, #00d4ff);
    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.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0,212,255,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(--neon-cyan, #00d4ff);
    font-weight: 600;
}
.med-dhatu-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    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(0,212,255,0.3);
}
.med-chakra-dot.active-chakra {
    box-shadow: 0 0 0 4px rgba(0,212,255,0.3), 0 0 20px rgba(0,212,255,0.2);
    transform: scale(1.1);
}
.med-chakra-details {
    flex: 1;
    min-width: 250px;
}
.med-chakra-detail-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(0,212,255,0.1);
}
.med-chakra-detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.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.05);
    border-radius: 14px;
    padding: 1.2rem;
    border: 1px solid rgba(0,212,255,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(0,212,255,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(0,212,255,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(--neon-cyan, #00d4ff);
    padding: 0.15rem 0.5rem;
    background: rgba(0,212,255,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: 'Space Grotesk', 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(0,212,255,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(--neon-cyan, #00d4ff);
    color: #fff;
    border-color: var(--neon-cyan, #00d4ff);
}

/* 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(0,212,255,0.06);
    color: var(--neon-cyan, #00d4ff);
    font-weight: 700;
    border-bottom: 2px solid rgba(0,212,255,0.15);
}
.med-budget-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary);
}
.med-budget-table tr:hover td {
    background: rgba(0,212,255,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(--neon-cyan, #00d4ff);
    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.05);
    border-radius: 14px;
    border: 1px solid rgba(0,212,255,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: 'Space Grotesk', 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.05);
    border-radius: 12px;
    border: 1px solid rgba(0,212,255,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(255,255,255,0.08);
    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.05);
    border-radius: 10px;
    border: 1px solid rgba(0,212,255,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: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700;
    color: var(--neon-cyan, #00d4ff); margin: 0 0 1rem 0; padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0,212,255,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(0,212,255,0.04), rgba(0,212,255,0.08));
    border: 1px solid rgba(0,212,255,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(0,212,255,0.15); border-color: rgba(0,212,255,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: 'Space Grotesk', 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(--neon-cyan, #00d4ff); 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(0,212,255,0.04));
    border: 1px solid rgba(0,212,255,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(0,212,255,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, #00d4ff); }
.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: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--neon-cyan, #00d4ff); }
.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(0,212,255,0.03); border: 1px solid rgba(0,212,255,0.1);
    border-radius: 12px; padding: 1rem; transition: all 0.3s ease;
}
.bnn-yoga-card:hover { border-color: rgba(0,212,255,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: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--neon-cyan, #00d4ff); 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(0,212,255,0.02); border: 1px solid rgba(0,212,255,0.1);
    border-radius: 10px; padding: 0.85rem; transition: all 0.3s ease; cursor: pointer;
    position: relative;
}
.bnn-nakshatra-card:hover { border-color: rgba(0,212,255,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: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--neon-cyan, #00d4ff); }
.bnn-nak-lord { font-size: 0.72rem; color: var(--text-secondary); background: rgba(255,255,255,0.05); 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(255,255,255,0.08); 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: 'Space Grotesk', 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(0,212,255,0.03); border: 1px solid rgba(0,212,255,0.1); border-radius: 12px;
}
.bnn-career-label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.85rem; min-width: 70px; text-align: center; color: var(--text-primary); }
.bnn-career-bar { flex: 1; height: 14px; background: rgba(255,255,255,0.08); 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(255,255,255,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(--neon-cyan, #00d4ff) var(--score-pct), rgba(255,255,255,0.08) 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-cosmic, #0a0a1a); position: absolute;
}
.bnn-score-value {
    position: relative; z-index: 1; font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; font-weight: 800; color: var(--neon-cyan, #00d4ff);
}
.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(0,212,255,0.02), rgba(0,212,255,0.06));
    border: 1px solid rgba(0,212,255,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(0,212,255,0.12); border-color: rgba(0,212,255,0.3); }
.bnn-remedy-card .bnn-remedy-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.bnn-remedy-card .bnn-remedy-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--neon-cyan, #00d4ff); 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: 'Space Grotesk', 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(0,212,255,0.2);
    background: transparent; color: var(--text-secondary); cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}
.bnn-remedy-filter button:hover, .bnn-remedy-filter button.active { background: var(--neon-cyan, #00d4ff); color: #fff; border-color: var(--neon-cyan, #00d4ff); }

/* Wealth Summary Banner */
.bnn-wealth-banner {
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(46,204,113,0.06));
    border: 1px solid rgba(0,212,255,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: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--neon-cyan, #00d4ff); }
.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, #0a0a1a 0%, #0e0e24 40%, #12122e 70%, #0a0a1a 100%);
    background-size: 400% 400%;
    animation: loginBgShift 12s ease infinite;
}
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(0,212,255,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(123,45,255,0.05) 0%, transparent 50%);
}

.login-split {
    position: relative; z-index: 1;
    display: flex; align-items: stretch;
    width: 90%; max-width: 920px;
    background: rgba(18,18,46,0.85);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 60px rgba(0,212,255,0.06);
    overflow: hidden;
}

.login-hero {
    flex: 1; display: flex; align-items: center;
    background: linear-gradient(160deg, #0a0a1a 0%, #0e0e24 100%);
    padding: 2.5rem 2rem;
    position: relative;
}
.login-hero::after {
    content: ''; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,212,255,0.35), transparent);
}
.login-hero-content {
    position: relative; z-index: 1;
}
.login-hero-content .login-logo-icon {
    font-size: 2.5rem; color: var(--neon-cyan, #00d4ff);
    text-shadow: 0 0 30px rgba(0,212,255,0.5);
    animation: loginPulse 3s ease-in-out infinite;
    line-height: 1; margin-bottom: 0.8rem;
}
@keyframes loginPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}
.login-hero-content h1 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700;
    line-height: 1.25; margin: 0 0 0.35rem;
    background: linear-gradient(135deg, #e8eaf6, #00d4ff, #7b2dff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-hero-sub {
    font-family: 'Inter', sans-serif; font-size: 0.82rem;
    color: rgba(255,255,255,0.7); margin: 0 0 1.2rem; letter-spacing: 0.3px;
}
.login-features {
    display: flex; flex-direction: column; gap: 0.45rem;
}
.login-feat {
    font-family: 'Inter', sans-serif; font-size: 0.8rem;
    color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.6rem; border-radius: 7px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s;
}
.login-feat:hover {
    background: rgba(255,255,255,0.15); border-color: rgba(0,212,255,0.3);
    color: rgba(255,255,255,0.95);
}
.login-feat span {
    font-size: 0.9rem; color: var(--neon-cyan, #00d4ff); min-width: 1.1rem; text-align: center;
}

.login-form-side {
    flex: 0.85; display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 2rem;
    background: var(--bg-cosmic, #0a0a1a);
}
.login-card {
    position: relative; width: 100%; max-width: 320px;
}
.login-card h2 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 700;
    color: var(--text-primary); margin: 0 0 0.25rem;
}
.login-card-sub {
    font-family: 'Inter', sans-serif; font-size: 0.78rem;
    color: var(--text-secondary); margin: 0 0 1rem;
}
.auth-tabs {
    display: flex; gap: 0; margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.auth-tab {
    flex: 1; padding: 0.6rem 0; font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.3s;
    letter-spacing: 0.3px;
}
.auth-tab:hover { color: var(--text-primary); }
.auth-tab.active { color: var(--neon-cyan, #00d4ff); border-bottom-color: var(--neon-cyan, #00d4ff); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.login-switch {
    text-align: center; font-family: 'Inter', sans-serif; font-size: 0.78rem;
    color: var(--text-secondary); margin-top: 0.8rem;
}
.login-switch a {
    color: var(--neon-cyan, #00d4ff); text-decoration: none; font-weight: 600;
}
.login-switch a:hover { text-decoration: underline; }
.login-success {
    text-align: center; font-size: 0.82rem; color: #2ecc71;
    background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.2);
    padding: 0.6rem; border-radius: 8px; font-weight: 500;
}
.login-form { display: flex; flex-direction: column; gap: 0.9rem; }
.login-field label {
    display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem;
    font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.login-field input {
    width: 100%; padding: 0.75rem 1rem; font-family: 'Inter', sans-serif;
    font-size: 0.9rem; color: var(--text-primary); background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    outline: none; transition: all 0.3s ease; box-sizing: border-box;
}
.login-field input:focus {
    border-color: var(--neon-cyan, #00d4ff);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
    background: rgba(255,255,255,0.1);
}
.login-field input::placeholder { color: var(--text-muted, #5a5e7a); }
.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: var(--text-secondary);
    padding: 0.2rem; transition: color 0.2s;
}
.login-eye:hover { color: var(--neon-cyan, #00d4ff); }
.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.8rem; font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px;
    color: #fff; background: linear-gradient(135deg, #00d4ff, #7b2dff);
    border: none; border-radius: 12px; cursor: pointer;
    transition: all 0.3s ease; text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,212,255,0.25);
    margin-top: 0.3rem;
}
.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,212,255,0.35);
    background: linear-gradient(135deg, #00b8e6, #6a1bff);
}
.login-submit:active { transform: translateY(0); }
.login-footer {
    text-align: center; margin-top: 1.2rem; font-size: 0.7rem;
    color: var(--text-muted, #5a5e7a); font-family: 'Inter', sans-serif;
}
.btn-logout {
    background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.25);
    color: #e74c3c; font-family: 'Inter', 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: 768px) {
    .login-split { flex-direction: column; width: 95%; max-width: 420px; }
    .login-hero { padding: 1.5rem 1.5rem 1rem; }
    .login-hero::after { display: none; }
    .login-hero-content h1 { font-size: 1.2rem; }
    .login-hero-content .login-logo-icon { font-size: 2rem; margin-bottom: 0.5rem; }
    .login-hero-sub { font-size: 0.78rem; margin-bottom: 0.8rem; }
    .login-features { gap: 0.35rem; }
    .login-feat { font-size: 0.75rem; padding: 0.3rem 0.5rem; }
    .login-form-side { padding: 1.2rem 1.5rem 1.5rem; }
    .login-card h2 { font-size: 1.15rem; }
    .login-card-sub { margin-bottom: 1rem; }
}

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

.tc-section { margin-bottom: 1.5rem; }
.tc-section-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--neon-cyan, #00d4ff); margin: 0 0 0.75rem; padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0,212,255,0.12);
}

.tc-planet-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.65rem;
}
.tc-planet-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 0.75rem 0.85rem; transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tc-planet-card:hover { background: rgba(0,212,255,0.03); box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.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: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.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); }
.tc-detail-row .tc-label { color: var(--text-secondary); opacity: 0.65; font-size: 0.7rem; margin-right: 0.3rem; }
.tc-detail-row strong { color: var(--text-primary); }

.tc-changes-timeline {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.tc-change-card {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 0.6rem 0.85rem; transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tc-change-card:hover { background: rgba(0,212,255,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(0,212,255,0.08); border-radius: 8px;
}
.tc-change-day { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--neon-cyan, #00d4ff); line-height: 1; }
.tc-change-month { font-size: 0.6rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.tc-change-info { flex: 1; }
.tc-change-planet { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.tc-change-move { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.1rem; }
.tc-change-house { font-size: 0.68rem; color: var(--text-secondary); opacity: 0.7; margin-top: 0.1rem; }
.tc-change-countdown {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600;
    color: var(--text-secondary); opacity: 0.6; white-space: nowrap;
}

.tc-house-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}
.tc-house-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 10px; padding: 0.6rem; text-align: center; transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tc-house-card:hover { background: rgba(0,212,255,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: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 800;
    color: var(--neon-cyan, #00d4ff); line-height: 1;
}
.tc-house-sign { font-size: 0.72rem; color: var(--text-secondary); 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); opacity: 0.6; }
.tc-house-status { font-size: 0.72rem; font-weight: 600; margin-top: 0.2rem; color: var(--text-primary); }
.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); opacity: 0.4; }
.tc-loading { text-align: center; padding: 2rem 1rem; color: var(--text-secondary); font-size: 0.95rem; animation: tcPulse 1.5s ease-in-out infinite; }
@keyframes tcPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Monthly Calendar */
.tc-cal-range-info {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem;
    padding: 0.4rem 0.7rem; background: rgba(255,255,255,0.02); border-radius: 8px;
    border: 1px solid rgba(0,212,255,0.1);
}
.tc-range-label {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 600;
    color: var(--neon-cyan, #00d4ff); 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(255,255,255,0.08); transition: all 0.2s; cursor: default;
}
.tc-range-dot.tc-range-today {
    background: var(--neon-cyan, #00d4ff); width: 10px; height: 10px;
}
.tc-range-dot.tc-range-active {
    background: var(--text-primary); width: 12px; height: 12px;
    box-shadow: 0 0 0 3px rgba(0,212,255,0.3);
}
.tc-range-dot.tc-range-active.tc-range-today {
    background: var(--neon-cyan, #00d4ff);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.4);
}

.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: var(--glass-bg); border-radius: 8px; border: 1px solid var(--glass-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.tc-month-verdict {
    font-family: 'Space Grotesk', 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: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600;
}
.tc-stat-good { color: #27ae60; }
.tc-stat-ok { color: var(--text-secondary); }
.tc-stat-bad { color: #e74c3c; }
.tc-stat-avg {
    color: var(--text-primary); background: rgba(255,255,255,0.04);
    padding: 0.15rem 0.5rem; border-radius: 4px; font-weight: 700;
}

.tc-cal-nav {
    display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.tc-nav-btn {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(0,212,255,0.2);
    color: var(--text-secondary); font-family: 'Space Grotesk', 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(0,212,255,0.1); color: var(--neon-cyan, #00d4ff); }
.tc-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.tc-today-btn { background: rgba(0,212,255,0.1); color: var(--neon-cyan, #00d4ff); }
.tc-today-btn.tc-today-active { background: var(--neon-cyan, #00d4ff); color: #fff; font-weight: 700; }
.tc-cal-month {
    font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-primary);
    margin: 0 0.4rem; flex-shrink: 0;
}

.tc-calendar {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.tc-cal-header {
    display: grid; grid-template-columns: repeat(7, 1fr);
    background: rgba(0,212,255,0.06); border-bottom: 1px solid rgba(0,212,255,0.1);
}
.tc-cal-day-name {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.65rem; font-weight: 700;
    color: var(--neon-cyan, #00d4ff); 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(255,255,255,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.4); }
.tc-cal-empty { background: rgba(255,255,255,0.02); }
.tc-cal-date { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.tc-cal-score {
    font-family: 'Space Grotesk', 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; }

.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: #2ecc71; font-size: 0.85rem; }
.tc-day-excellent .tc-cal-date { color: #2ecc71; }
.tc-day-excellent .tc-cal-rating { color: #2ecc71; 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(255,255,255,0.02); border-left: 3px solid #7f8c8d; }
.tc-day-neutral .tc-cal-score { color: var(--text-secondary); }
.tc-day-neutral .tc-cal-rating { color: var(--text-secondary); 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: #e74c3c; font-size: 0.85rem; }
.tc-day-difficult .tc-cal-date { color: #c0392b; }
.tc-day-difficult .tc-cal-rating { color: #e74c3c; font-weight: 900; }

.tc-day-today { outline: 3px solid var(--neon-cyan, #00d4ff); outline-offset: -2px; border-radius: 4px; }
.tc-day-today .tc-cal-date { color: var(--neon-cyan, #00d4ff); }

.tc-cal-legend {
    display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0.6rem 0.85rem;
    font-size: 0.68rem; color: var(--text-secondary);
}
.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(255,255,255,0.08);
}

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

.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(255,255,255,0.02); border-radius: 8px;
    border: 1px solid rgba(0,212,255,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(--neon-cyan, #00d4ff) !important; color: #fff !important;
    border-color: var(--neon-cyan, #00d4ff) !important; font-weight: 700 !important;
}
.tc-events-period-badge {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600;
    color: var(--text-secondary); margin-left: auto;
    background: rgba(255,255,255,0.04); padding: 0.2rem 0.6rem; border-radius: 4px;
}

.tc-filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tc-filter-btn {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(0,212,255,0.2);
    color: var(--text-secondary); font-family: 'Space Grotesk', 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(0,212,255,0.08); color: var(--neon-cyan, #00d4ff); }
.tc-filter-btn.active { background: rgba(0,212,255,0.12); color: var(--neon-cyan, #00d4ff); border-color: rgba(0,212,255,0.4); }

.tc-events-table-wrapper { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(0,212,255,0.15); background: var(--glass-bg); }
.tc-events-table {
    width: 100%; border-collapse: collapse; font-size: 0.78rem;
    font-family: 'Space Grotesk', sans-serif; color: var(--text-primary);
}
.tc-events-table thead th {
    background: rgba(0,212,255,0.08); color: var(--neon-cyan, #00d4ff); 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(0,212,255,0.15); position: sticky; top: 0; z-index: 1;
}
.tc-events-table tbody td {
    padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: top; line-height: 1.45;
}
.tc-events-table tbody tr:hover { background: rgba(0,212,255,0.04); }

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

.tc-td-date { font-weight: 700; white-space: nowrap; color: var(--neon-cyan, #00d4ff); font-size: 0.76rem; }
.tc-td-month { font-size: 0.7rem; color: var(--text-secondary); 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); }
.tc-td-remedy { max-width: 200px; font-size: 0.68rem; color: var(--text-secondary); font-style: italic; }

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

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

/* ═══ ADMIN MODE STYLES ═══ */
.vedic-chart-app .tab-content,
.vedic-chart-app .vedic-table,
.vedic-chart-app .report-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.vbc-admin-mode .vedic-chart-app .tab-content,
.vbc-admin-mode .vedic-chart-app .vedic-table,
.vbc-admin-mode .vedic-chart-app .report-card,
.vbc-admin-mode .vedic-chart-app * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
.admin-tab-copy-btn:hover {
    background: rgba(0,212,255,0.2) !important;
    transform: translateY(-1px);
}
#admin-mode-badge {
    animation: adminPulse 3s ease-in-out infinite;
}
@keyframes adminPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
    50% { box-shadow: 0 0 8px 2px rgba(0,212,255,0.3); }
}
#vbc-copy-toast {
    pointer-events: none;
}
.vbc-admin-mode .vedic-btn-group {
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ═══ Feature Showcase Banner ═══ */
.feature-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0a0a1a 0%, #0e0e24 40%, #12122e 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,212,255,0.15);
}
.feature-banner-glow {
    position: absolute;
    top: -60%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.feature-banner-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.feature-banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,212,255,0.08));
    border: 1px solid rgba(0,212,255,0.35);
    color: var(--neon-cyan, #00d4ff);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}
.feature-banner-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    background: linear-gradient(135deg, #fff 30%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}
.feature-banner-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}
.feature-banner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
}
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.85);
    transition: all 0.25s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    user-select: none;
}
.feature-pill:hover {
    background: rgba(0,212,255,0.18);
    border-color: rgba(0,212,255,0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(0,212,255,0.25);
}
.feature-pill:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 4px rgba(0,212,255,0.2);
}
.fp-icon {
    font-size: 0.9rem;
    line-height: 1;
}
.fp-text {
    font-weight: 500;
}
.fp-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00d4ff, #7b2dff);
    color: #fff;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.2rem;
    line-height: 1.2;
}
.feature-pill.fp-gold {
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.06));
    border-color: rgba(0,212,255,0.3);
    color: #7bffff;
}
.feature-pill.fp-ai {
    background: linear-gradient(135deg, rgba(100,149,237,0.15), rgba(100,149,237,0.06));
    border-color: rgba(100,149,237,0.3);
    color: #87CEEB;
}
.feature-pill.fp-premium {
    background: linear-gradient(135deg, rgba(255,107,107,0.12), rgba(0,212,255,0.12));
    border-color: rgba(255,107,107,0.3);
    color: #ffb3b3;
    animation: premiumPulse 3s ease-in-out infinite;
}
@keyframes premiumPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); }
    50% { box-shadow: 0 0 12px 2px rgba(255,107,107,0.15); }
}
.feature-banner-cta {
    text-align: center;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}
.feature-banner-cta span {
    font-size: 0.78rem;
    color: rgba(0,212,255,0.7);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}
@media (max-width: 600px) {
    .feature-banner {
        padding: 1.5rem 1rem 1.25rem;
        border-radius: 16px;
    }
    .feature-banner-title {
        font-size: 1.15rem;
    }
    .feature-banner-grid {
        gap: 0.4rem;
        padding: 0;
    }
    .feature-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    .fp-icon {
        font-size: 0.8rem;
    }
}

/* ═══ Kundali Milan Results ═══ */
.milan-results-wrapper {
    animation: milanFadeIn 0.5s ease;
}
@keyframes milanFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
#milan-results table th,
#milan-results table td {
    vertical-align: middle;
}
#milan-results table tbody tr:hover {
    background: rgba(0,212,255,0.04);
}
@media (max-width: 600px) {
    #milan-form-area .form-group {
        grid-column: span 2;
    }
    #tab-milan div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    #milan-results div[style*="grid-template-columns:auto 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    #milan-results div[style*="width:130px"] {
        margin: 0 auto;
    }
    #milan-results div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════ */
/* UX IMPROVEMENTS                     */
/* ═══════════════════════════════════ */

/* Onboarding Tour */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    animation: tourFadeIn 0.3s ease;
}
@keyframes tourFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
.tour-card {
    background: var(--glass-bg-solid, rgba(16, 16, 40, 0.9));
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    animation: tourSlideUp 0.4s ease;
    border: 1px solid var(--glass-border);
}
@keyframes tourSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.tour-step-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}
.tour-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}
.tour-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.tour-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.tour-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s;
}
.tour-dot.active {
    background: var(--neon-cyan, #00d4ff);
    transform: scale(1.2);
}
.tour-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.tour-btn-next {
    background: linear-gradient(135deg, var(--neon-cyan, #00d4ff), var(--neon-purple, #7b2dff));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
}
.tour-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,212,255,0.35);
}
.tour-btn-skip {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
}
.tour-btn-skip:hover {
    border-color: var(--neon-cyan, #00d4ff);
    color: var(--neon-cyan, #00d4ff);
}

/* Demo Chart Button */
.btn-demo {
    background: rgba(0,212,255,0.08);
    border: 1.5px dashed var(--neon-cyan, #00d4ff);
    border-radius: 10px;
    color: var(--neon-cyan, #00d4ff);
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}
.btn-demo:hover {
    background: rgba(0,212,255,0.15);
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,212,255,0.2);
}

/* Sticky AI FAB (Mobile) */
.ai-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan, #00d4ff), var(--neon-purple, #7b2dff));
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(0,212,255,0.4);
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    animation: fabPulse 2s ease-in-out infinite;
}
.ai-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,212,255,0.5);
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,212,255,0.4); }
    50% { box-shadow: 0 4px 30px rgba(0,212,255,0.6); }
}
.ai-fab-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg-solid, rgba(16, 16, 40, 0.9));
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.ai-fab:hover .ai-fab-tooltip {
    opacity: 1;
}

/* Tab Accordion (Mobile) */
.tab-accordion-toggle {
    display: none;
    width: 100%;
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-cyan, #00d4ff);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}
.tab-accordion-toggle:hover {
    background: rgba(0,212,255,0.12);
}
.tab-accordion-toggle::after {
    content: '\25BC';
    float: right;
    transition: transform 0.3s;
}
.tab-accordion-toggle.open::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .ai-fab {
        display: flex;
    }
    .tab-accordion-toggle {
        display: block;
    }
    .vedic-tabs-container .vedic-tabs {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        flex-wrap: wrap;
    }
    .vedic-tabs-container .vedic-tabs.accordion-open {
        max-height: 600px;
    }
    .vedic-tabs-container .vedic-tabs .vedic-tab-btn {
        width: 48%;
        text-align: center;
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        margin: 2px 0;
        padding: 0.55rem 0.4rem;
        font-size: 0.78rem;
    }
    .vedic-tabs-container .vedic-tabs .vedic-tab-btn.active {
        background: rgba(0,212,255,0.1);
        border-color: var(--neon-cyan, #00d4ff);
    }
}

/* ═══════════════════════════════════ */
/* SHAREABILITY & VIRALITY             */
/* ═══════════════════════════════════ */

.btn-share-wa {
    background: rgba(37, 211, 102, 0.08) !important;
    border-color: rgba(37, 211, 102, 0.3) !important;
    color: #25D366 !important;
}
.btn-share-wa:hover {
    background: rgba(37, 211, 102, 0.18) !important;
    border-color: #25D366 !important;
    color: #25D366 !important;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.2);
}
.btn-download-png {
    background: rgba(66, 133, 244, 0.08) !important;
    border-color: rgba(66, 133, 244, 0.3) !important;
    color: #5a9cf5 !important;
}
.btn-download-png:hover {
    background: rgba(66, 133, 244, 0.18) !important;
    border-color: #4285f4 !important;
    color: #5a9cf5 !important;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.2);
}

/* Enhanced Print Styles */
@media print {
    body {
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .login-overlay,
    .vedic-tabs-container,
    .vedic-btn-group,
    .global-tts-bar,
    .ai-fab,
    .tour-overlay,
    .btn-detect,
    .btn-demo,
    .btn-toggle-chart,
    .tab-accordion-toggle,
    #vedic-calc-form,
    #saved-charts-panel,
    #calc-placeholder,
    .feature-banner,
    .vedic-header p,
    .chart-hint,
    #tab-ai,
    .ai-chat-container {
        display: none !important;
    }
    .vedic-chart-app {
        padding: 0 !important;
    }
    .vedic-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .tab-content {
        display: block !important;
        page-break-before: always;
    }
    .tab-content:first-of-type {
        page-break-before: avoid;
    }
    .vedic-header h1 {
        -webkit-text-fill-color: #1e2238 !important;
        background: none !important;
        font-size: 1.8rem !important;
    }
    .vedic-brand-badge {
        color: #d4af37 !important;
        border: none !important;
        background: none !important;
    }
    .chart-section-card {
        page-break-after: always;
    }
    .svg-chart-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Button group responsive */
@media (max-width: 768px) {
    .vedic-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    .vedic-btn-group .btn-export {
        flex: 1;
        min-width: 45%;
        font-size: 0.78rem;
        padding: 0.45rem 0.6rem;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════ */
/* DARK MODE TOGGLE (already dark by default) */
/* ═══════════════════════════════════════════ */

.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    vertical-align: middle;
    margin-left: 0.5rem;
    color: var(--neon-cyan, #00d4ff);
}
.theme-toggle:hover {
    background: rgba(0,212,255,0.1);
    border-color: var(--neon-cyan, #00d4ff);
    transform: rotate(30deg);
}

/* Skeleton Loader */
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, rgba(0,212,255,0.05) 25%, rgba(0,212,255,0.12) 50%, rgba(0,212,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}
.skeleton-line:nth-child(2) { width: 85%; }
.skeleton-line:nth-child(3) { width: 70%; }
.skeleton-line:nth-child(4) { width: 90%; height: 12px; }
.skeleton-line:nth-child(5) { width: 60%; height: 12px; }

.skeleton-chart {
    width: 200px;
    height: 200px;
    background: linear-gradient(90deg, rgba(0,212,255,0.03) 25%, rgba(0,212,255,0.08) 50%, rgba(0,212,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 12px;
    margin: 1rem auto;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Micro-interactions */
.vedic-tab-btn {
    transition: all 0.2s ease;
}
.vedic-tab-btn:active {
    transform: scale(0.97);
}
.btn-submit:active,
.btn-detect:active,
.btn-export:active,
.btn-demo:active {
    transform: scale(0.97) translateY(0);
}
.feature-pill {
    transition: all 0.25s ease;
}
.feature-pill:active {
    transform: scale(0.96);
}

/* Smooth tab content fade */
.tab-content.active {
    animation: tabFadeIn 0.3s ease;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Saved charts panel */
#saved-charts-panel h3 {
    color: var(--neon-cyan, #00d4ff);
}

/* Report cards */
.report-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(0,212,255,0.08);
}
.report-card h4 {
    color: var(--neon-cyan, #00d4ff);
}
.report-card p,
.report-card li {
    color: var(--text-secondary);
}

/* Print: light overrides */
@media print {
    body {
        --bg-cosmic: #fff;
        --glass-bg: #fff;
        --text-primary: #1e2238;
        --text-secondary: #5a6082;
    }
    .vedic-chart-app {
        background: #fff !important;
    }
    .vedic-card {
        background: #fff !important;
        border-color: #ddd !important;
    }
    .theme-toggle {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   DYNAMIC SECTION CSS — Ashtakavarga, Karma, Vastu, Medical, Footer
   Adapted for Cosmic Dark Glassmorphism Theme
   ═══════════════════════════════════════════════════════════════════ */

.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: 'Space Grotesk', 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: 'Space Grotesk', 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(255,255,255,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.04);
    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: 'Space Grotesk', 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(255,255,255,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.03);
    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.04); }
.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.03);
    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: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
}
.av-pinda-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.05);
    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: 'Space Grotesk', 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.03);
    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.03);
    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(255,255,255,0.05);
    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(255,255,255,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: 'Space Grotesk', 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.03);
    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.03);
}
.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(255,255,255,0.06);
}

/* 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.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.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.04);
    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: 'Space Grotesk', 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(255,255,255,0.05);
    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(255,255,255,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: 'Space Grotesk', 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(255,255,255,0.06);
}

/* 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.03);
    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: 'Space Grotesk', 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.04);
}
.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(255,255,255,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(255,255,255,0.06);
}

/* Timing Summary */
.av-timing-summary {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
}
.av-timing-title {
    font-family: 'Space Grotesk', 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: 'Space Grotesk', 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: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold, #ffd700);
    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: 'Space Grotesk', 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: 'Space Grotesk', 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: 'Space Grotesk', 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, rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
}
.karma-stat-val {
    font-family: 'Space Grotesk', 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, rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.5rem;
}
.karma-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold, #ffd700);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}
.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: 'Space Grotesk', 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(255,255,255,0.04);
    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(255,255,255,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: 'Space Grotesk', 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(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}
.karma-kd-head {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    color: var(--gold, #ffd700);
}
.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(255,255,255,0.02);
    border-radius: 10px;
    padding: 1rem;
}
.karma-trinal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold, #ffd700);
    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: rgba(255,255,255,0.05);
    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: 'Space Grotesk', 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: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold, #ffd700);
}
.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(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}
.karma-si-head {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: var(--gold, #ffd700);
}
.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(255,255,255,0.06);
    padding-top: 1rem;
}
.karma-12p-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold, #ffd700);
    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: 'Space Grotesk', 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(255,255,255,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: 'Space Grotesk', 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, #ffd700);
    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: 'Space Grotesk', 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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--gold, #ffd700);
    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: 'Space Grotesk', 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: 'Space Grotesk', 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(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    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: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold, #ffd700);
    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: 'Inter', 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: 'Space Grotesk', 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: 'Space Grotesk', 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.05);
    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(255,255,255,0.05);
    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(255,255,255,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.05);
    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.08);
}
.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: 'Space Grotesk', 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(255,255,255,0.06);
    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.05);
    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(255,255,255,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(255,255,255,0.06);
    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(255,255,255,0.03);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}
.vastu-remedy-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold, #ffd700);
}
.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.05);
    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, #ffd700);
}
.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.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.vastu-timing-card:hover {
    background: rgba(255,255,255,0.08);
    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.04);
    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, #ffd700);
    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.05);
    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: 'Space Grotesk', 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: 'Space Grotesk', 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.04);
    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(255,255,255,0.05);
    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.05);
    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: 'Space Grotesk', 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.04);
    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.04);
    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.04);
    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(255,255,255,0.05);
    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.04);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(212,175,55,0.1);
}
.med-chakra-detail-title {
    font-family: 'Space Grotesk', 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.05);
    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: 'Space Grotesk', 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(255,255,255,0.06);
    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.04);
    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: 'Space Grotesk', 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.04);
    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(255,255,255,0.05);
    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.04);
    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: 'Space Grotesk', 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: 'Space Grotesk', 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: 'Space Grotesk', 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: 'Space Grotesk', 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: 'Space Grotesk', 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(255,255,255,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(255,255,255,0.05); 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: 'Space Grotesk', 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: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.85rem; min-width: 70px; text-align: center; }
.bnn-career-bar { flex: 1; height: 14px; background: rgba(255,255,255,0.05); 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(255,255,255,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: 'Space Grotesk', 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: 'Space Grotesk', 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: 'Space Grotesk', 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: 'Inter', 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: 'Space Grotesk', 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, #f5f0e8 0%, #fff8ef 40%, #fef9f0 70%, #f0ead6 100%);
    background-size: 400% 400%;
    animation: loginBgShift 12s ease infinite;
}
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%);
}

/* ── Split Layout — centered card, not full-height ── */
.login-split {
    position: relative; z-index: 1;
    display: flex; align-items: stretch;
    width: 90%; max-width: 920px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.08), 0 0 60px rgba(212,175,55,0.06);
    overflow: hidden;
}

/* ── Left Hero Panel ── */
.login-hero {
    flex: 1; display: flex; align-items: center;
    background: linear-gradient(160deg, #4a148c 0%, #1a237e 100%);
    padding: 2.5rem 2rem;
    position: relative;
}
.login-hero::after {
    content: ''; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(212,175,55,0.35), transparent);
}
.login-hero-content {
    position: relative; z-index: 1;
}
.login-hero-content .login-logo-icon {
    font-size: 2.5rem; color: #ffd700;
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
    animation: loginPulse 3s ease-in-out infinite;
    line-height: 1; margin-bottom: 0.8rem;
}
@keyframes loginPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}
.login-hero-content h1 {
    font-family: 'Space Grotesk', serif; font-size: 1.5rem; font-weight: 700;
    line-height: 1.25; margin: 0 0 0.35rem;
    background: linear-gradient(135deg, #ffd700, #ffe44d, #ffd700);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-hero-sub {
    font-family: 'Inter', sans-serif; font-size: 0.82rem;
    color: rgba(255,255,255,0.7); margin: 0 0 1.2rem; letter-spacing: 0.3px;
}
.login-features {
    display: flex; flex-direction: column; gap: 0.45rem;
}
.login-feat {
    font-family: 'Inter', sans-serif; font-size: 0.8rem;
    color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.6rem; border-radius: 7px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s;
}
.login-feat:hover {
    background: rgba(255,255,255,0.15); border-color: rgba(255,215,0,0.3);
    color: rgba(255,255,255,0.95);
}
.login-feat span {
    font-size: 0.9rem; color: #ffd700; min-width: 1.1rem; text-align: center;
}

/* ── Right Form Panel ── */
.login-form-side {
    flex: 0.85; display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 2rem;
    background: rgba(255,255,255,0.05);
}
.login-card {
    position: relative; width: 100%; max-width: 320px;
}
.login-card h2 {
    font-family: 'Space Grotesk', serif; font-size: 1.35rem; font-weight: 700;
    color: #1a1a2e; margin: 0 0 0.25rem;
}
.login-card-sub {
    font-family: 'Inter', sans-serif; font-size: 0.78rem;
    color: #888; margin: 0 0 1rem;
}
/* Auth Tabs (Sign In / Sign Up) */
.auth-tabs {
    display: flex; gap: 0; margin-bottom: 1.2rem;
    border-bottom: 1px solid #e0d6c2;
}
.auth-tab {
    flex: 1; padding: 0.6rem 0; font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem; font-weight: 600; color: #999;
    background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.3s;
    letter-spacing: 0.3px;
}
.auth-tab:hover { color: #555; }
.auth-tab.active { color: #8b6914; border-bottom-color: #b8860b; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.login-switch {
    text-align: center; font-family: 'Inter', sans-serif; font-size: 0.78rem;
    color: #999; margin-top: 0.8rem;
}
.login-switch a {
    color: #8b6914; text-decoration: none; font-weight: 600;
}
.login-switch a:hover { text-decoration: underline; }
.login-success {
    text-align: center; font-size: 0.82rem; color: #2ecc71;
    background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.2);
    padding: 0.6rem; border-radius: 8px; font-weight: 500;
}
.login-form { display: flex; flex-direction: column; gap: 0.9rem; }
.login-field label {
    display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem;
    font-weight: 600; color: #777; margin-bottom: 0.4rem;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.login-field input {
    width: 100%; padding: 0.75rem 1rem; font-family: 'Inter', sans-serif;
    font-size: 0.9rem; color: #1a1a2e; background: #f8f6f1;
    border: 1px solid #ddd5c3; border-radius: 12px;
    outline: none; transition: all 0.3s ease; box-sizing: border-box;
}
.login-field input:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
    background: rgba(255,255,255,0.05);
}
.login-field input::placeholder { color: #bbb; }
.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: #aaa;
    padding: 0.2rem; transition: color 0.2s;
}
.login-eye:hover { color: #8b6914; }
.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.8rem; font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px;
    color: #fff; background: linear-gradient(135deg, #4a148c, #1a237e);
    border: none; border-radius: 12px; cursor: pointer;
    transition: all 0.3s ease; text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(26,35,126,0.25);
    margin-top: 0.3rem;
}
.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,35,126,0.35);
    background: linear-gradient(135deg, #6a1b9a, #283593);
}
.login-submit:active { transform: translateY(0); }
.login-footer {
    text-align: center; margin-top: 1.2rem; font-size: 0.7rem;
    color: #bbb; font-family: 'Inter', 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: 'Inter', 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); }

/* ── Mobile: stack vertically ── */
@media (max-width: 768px) {
    .login-split { flex-direction: column; width: 95%; max-width: 420px; }
    .login-hero { padding: 1.5rem 1.5rem 1rem; }
    .login-hero::after { display: none; }
    .login-hero-content h1 { font-size: 1.2rem; }
    .login-hero-content .login-logo-icon { font-size: 2rem; margin-bottom: 0.5rem; }
    .login-hero-sub { font-size: 0.78rem; margin-bottom: 0.8rem; }
    .login-features { gap: 0.35rem; }
    .login-feat { font-size: 0.75rem; padding: 0.3rem 0.5rem; }
    .login-form-side { padding: 1.2rem 1.5rem 1.5rem; }
    .login-card h2 { font-size: 1.15rem; }
    .login-card-sub { margin-bottom: 1rem; }
}

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

.tc-section { margin-bottom: 1.5rem; }
.tc-section-title {
    font-family: 'Space Grotesk', 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: rgba(255,255,255,0.05); 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: 'Space Grotesk', 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: rgba(255,255,255,0.05); 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: 'Space Grotesk', 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: 'Space Grotesk', 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: 'Space Grotesk', 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: rgba(255,255,255,0.05); 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: 'Space Grotesk', 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(255,255,255,0.02); border-radius: 8px;
    border: 1px solid rgba(212,175,55,0.1);
}
.tc-range-label {
    font-family: 'Space Grotesk', 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: rgba(255,255,255,0.05); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tc-month-verdict {
    font-family: 'Space Grotesk', 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: 'Space Grotesk', 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(255,255,255,0.03);
    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(255,255,255,0.03); border: 1px solid rgba(212,175,55,0.2);
    color: var(--text-secondary, #5a6082); font-family: 'Space Grotesk', 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: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-primary, #1a1a2e);
    margin: 0 0.4rem; flex-shrink: 0;
}

.tc-calendar {
    background: rgba(255,255,255,0.05); 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: 'Space Grotesk', 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(255,255,255,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(255,255,255,0.03); }
.tc-cal-date { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 800; color: var(--text-primary, #1a1a2e); line-height: 1; }
.tc-cal-score {
    font-family: 'Space Grotesk', 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(255,255,255,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(255,255,255,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: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 600;
    color: var(--text-secondary, #5a6082); margin-left: auto;
    background: rgba(255,255,255,0.03); 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(255,255,255,0.03); border: 1px solid rgba(212,175,55,0.2);
    color: var(--text-secondary, #5a6082); font-family: 'Space Grotesk', 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: rgba(255,255,255,0.05); }
.tc-events-table {
    width: 100%; border-collapse: collapse; font-size: 0.78rem;
    font-family: 'Space Grotesk', 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(255,255,255,0.06);
    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; }
}

/* ═══ ADMIN MODE STYLES ═══ */

/* Default: prevent text copy for regular users */
.vedic-chart-app .tab-content,
.vedic-chart-app .vedic-table,
.vedic-chart-app .report-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Admin mode: enable full text selection & copy */
.vbc-admin-mode .vedic-chart-app .tab-content,
.vbc-admin-mode .vedic-chart-app .vedic-table,
.vbc-admin-mode .vedic-chart-app .report-card,
.vbc-admin-mode .vedic-chart-app * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Admin copy button hover */
.admin-tab-copy-btn:hover {
    background: rgba(212,175,55,0.2) !important;
    transform: translateY(-1px);
}

/* Admin badge pulse */
#admin-mode-badge {
    animation: adminPulse 3s ease-in-out infinite;
}
@keyframes adminPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
    50% { box-shadow: 0 0 8px 2px rgba(212,175,55,0.3); }
}

/* Copy toast animation */
#vbc-copy-toast {
    pointer-events: none;
}

/* Admin toolbar extra spacing */
.vbc-admin-mode .vedic-btn-group {
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ═══ Feature Showcase Banner ═══ */
.feature-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(212,175,55,0.15);
}

.feature-banner-glow {
    position: absolute;
    top: -60%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.feature-banner-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.08));
    border: 1px solid rgba(212,175,55,0.35);
    color: #d4af37;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.feature-banner-title {
    font-family: 'Space Grotesk', serif;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    background: linear-gradient(135deg, #fff 30%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.feature-banner-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.feature-banner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.85);
    transition: all 0.25s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    user-select: none;
}

.feature-pill:hover {
    background: rgba(212,175,55,0.18);
    border-color: rgba(212,175,55,0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}

.feature-pill:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 4px rgba(212,175,55,0.2);
}

.fp-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.fp-text {
    font-weight: 500;
}

.fp-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #d4af37, #f5d77a);
    color: #1a1a2e;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.2rem;
    line-height: 1.2;
}

.feature-pill.fp-gold {
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.06));
    border-color: rgba(212,175,55,0.3);
    color: #f5d77a;
}

.feature-pill.fp-ai {
    background: linear-gradient(135deg, rgba(100,149,237,0.15), rgba(100,149,237,0.06));
    border-color: rgba(100,149,237,0.3);
    color: #87CEEB;
}

.feature-pill.fp-premium {
    background: linear-gradient(135deg, rgba(255,107,107,0.12), rgba(212,175,55,0.12));
    border-color: rgba(255,107,107,0.3);
    color: #ffb3b3;
    animation: premiumPulse 3s ease-in-out infinite;
}

@keyframes premiumPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); }
    50% { box-shadow: 0 0 12px 2px rgba(255,107,107,0.15); }
}

.feature-banner-cta {
    text-align: center;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.feature-banner-cta span {
    font-size: 0.78rem;
    color: rgba(212,175,55,0.7);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Feature banner responsive */
@media (max-width: 600px) {
    .feature-banner {
        padding: 1.5rem 1rem 1.25rem;
        border-radius: 16px;
    }
    .feature-banner-title {
        font-size: 1.15rem;
    }
    .feature-banner-grid {
        gap: 0.4rem;
        padding: 0;
    }
    .feature-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    .fp-icon {
        font-size: 0.8rem;
    }
}

/* ═══ Kundali Milan Results ═══ */
.milan-results-wrapper {
    animation: milanFadeIn 0.5s ease;
}

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

#milan-results table th,
#milan-results table td {
    vertical-align: middle;
}

#milan-results table tbody tr:hover {
    background: rgba(179,134,0,0.04);
}

/* Milan form responsive */
@media (max-width: 600px) {
    #milan-form-area .form-group {
        grid-column: span 2;
    }
    #tab-milan div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    #milan-results div[style*="grid-template-columns:auto 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    #milan-results div[style*="width:130px"] {
        margin: 0 auto;
    }
    #milan-results div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════ */
/* PHASE 1: UX IMPROVEMENTS           */
/* ═══════════════════════════════════ */

/* ─── 1.1 Onboarding Tour ─── */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    animation: tourFadeIn 0.3s ease;
}
@keyframes tourFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
.tour-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    animation: tourSlideUp 0.4s ease;
}
@keyframes tourSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.tour-step-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}
.tour-card h3 {
    font-family: 'Space Grotesk', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}
.tour-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.tour-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.tour-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
}
.tour-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}
.tour-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.tour-btn-next {
    background: linear-gradient(135deg, var(--gold), var(--gold, #ffd700));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
}
.tour-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(179,134,0,0.35);
}
.tour-btn-skip {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
}
.tour-btn-skip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── 1.2 Demo Chart Button ─── */
.btn-demo {
    background: rgba(179,134,0,0.08);
    border: 1.5px dashed var(--gold);
    border-radius: 10px;
    color: var(--gold);
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}
.btn-demo:hover {
    background: rgba(179,134,0,0.15);
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(179,134,0,0.2);
}

/* ─── 1.4 Sticky AI FAB (Mobile) ─── */
.ai-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold, #ffd700));
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(179,134,0,0.4);
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    animation: fabPulse 2s ease-in-out infinite;
}
.ai-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(179,134,0,0.5);
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(179,134,0,0.4); }
    50% { box-shadow: 0 4px 30px rgba(179,134,0,0.6); }
}
.ai-fab-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e2238;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.ai-fab:hover .ai-fab-tooltip {
    opacity: 1;
}

/* ─── 1.5 Tab Accordion (Mobile) ─── */
.tab-accordion-toggle {
    display: none;
    width: 100%;
    background: rgba(179,134,0,0.06);
    border: 1px solid rgba(179,134,0,0.15);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}
.tab-accordion-toggle:hover {
    background: rgba(179,134,0,0.12);
}
.tab-accordion-toggle::after {
    content: '\25BC';
    float: right;
    transition: transform 0.3s;
}
.tab-accordion-toggle.open::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .ai-fab {
        display: flex;
    }
    .tab-accordion-toggle {
        display: block;
    }
    .vedic-tabs-container .vedic-tabs {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        flex-wrap: wrap;
    }
    .vedic-tabs-container .vedic-tabs.accordion-open {
        max-height: 600px;
    }
    .vedic-tabs-container .vedic-tabs .vedic-tab-btn {
        width: 48%;
        text-align: center;
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        margin: 2px 0;
        padding: 0.55rem 0.4rem;
        font-size: 0.78rem;
    }
    .vedic-tabs-container .vedic-tabs .vedic-tab-btn.active {
        background: rgba(179,134,0,0.1);
        border-color: var(--gold);
    }
}

/* ═══════════════════════════════════ */
/* PHASE 2: SHAREABILITY & VIRALITY   */
/* ═══════════════════════════════════ */

/* ─── 2.1 WhatsApp Share Button ─── */
.btn-share-wa {
    background: rgba(37, 211, 102, 0.08) !important;
    border-color: rgba(37, 211, 102, 0.3) !important;
    color: #128C7E !important;
}
.btn-share-wa:hover {
    background: rgba(37, 211, 102, 0.18) !important;
    border-color: #25D366 !important;
    color: #075E54 !important;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.2);
}

/* ─── 2.2 Save Image Button ─── */
.btn-download-png {
    background: rgba(66, 133, 244, 0.08) !important;
    border-color: rgba(66, 133, 244, 0.3) !important;
    color: #1a73e8 !important;
}
.btn-download-png:hover {
    background: rgba(66, 133, 244, 0.18) !important;
    border-color: #4285f4 !important;
    color: #1557b0 !important;
    box-shadow: 0 2px 10px rgba(66, 133, 244, 0.2);
}

/* ─── 2.3 Enhanced Print Styles ─── */
@media print {
    body {
        background: rgba(255,255,255,0.05) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .login-overlay,
    .vedic-tabs-container,
    .vedic-btn-group,
    .global-tts-bar,
    .ai-fab,
    .tour-overlay,
    .btn-detect,
    .btn-demo,
    .btn-toggle-chart,
    .tab-accordion-toggle,
    #vedic-calc-form,
    #saved-charts-panel,
    #calc-placeholder,
    .feature-banner,
    .vedic-header p,
    .chart-hint,
    #tab-ai,
    .ai-chat-container {
        display: none !important;
    }
    .vedic-chart-app {
        padding: 0 !important;
    }
    .vedic-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .tab-content {
        display: block !important;
        page-break-before: always;
    }
    .tab-content:first-of-type {
        page-break-before: avoid;
    }
    .vedic-header h1 {
        -webkit-text-fill-color: #1e2238 !important;
        background: none !important;
        font-size: 1.8rem !important;
    }
    .vedic-brand-badge {
        color: #d4af37 !important;
        border: none !important;
        background: none !important;
    }
    .chart-section-card {
        page-break-after: always;
    }
    .svg-chart-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ─── Button group responsive ─── */
@media (max-width: 768px) {
    .vedic-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    .vedic-btn-group .btn-export {
        flex: 1;
        min-width: 45%;
        font-size: 0.78rem;
        padding: 0.45rem 0.6rem;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════ */
/* PHASE 4: DARK MODE & VISUAL POLISH         */
/* ═══════════════════════════════════════════ */

/* ─── 4.1 Dark Mode Toggle Button ─── */
.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    vertical-align: middle;
    margin-left: 0.5rem;
    color: var(--gold);
}
.theme-toggle:hover {
    background: rgba(179,134,0,0.1);
    border-color: var(--gold);
    transform: rotate(30deg);
}

/* ─── 4.1 Dark Mode Variable Overrides ─── */
body.dark-mode {
    --bg-cosmic: linear-gradient(135deg, #0a0e1a 0%, #0f1525 100%);
    --glass-bg: rgba(20, 24, 40, 0.85);
    --glass-bg-hover: rgba(26, 32, 53, 0.95);
    --glass-border: rgba(212, 175, 55, 0.12);
    --glass-border-focus: rgba(212, 175, 55, 0.5);
    --text-primary: #e8e0d0;
    --text-secondary: #9a96b0;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.2);
    --gold-dark: #b8960f;
    --purple-glow: rgba(124, 110, 255, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body.dark-mode {
    background: #0a0e1a;
}

/* Login overlay */
body.dark-mode .login-overlay {
    background: linear-gradient(135deg, #0a0e1a, #111833);
}
body.dark-mode .login-hero {
    background: linear-gradient(135deg, #0d1225 0%, #1a1040 100%);
}
body.dark-mode .login-form-side {
    background: #0f1322;
}
body.dark-mode .login-card {
    background: #141828;
    border-color: rgba(212,175,55,0.15);
}
body.dark-mode .auth-tab {
    color: #9a96b0;
}
body.dark-mode .auth-tab.active {
    color: #d4af37;
    border-color: #d4af37;
}
body.dark-mode .login-field label {
    color: #9a96b0;
}
body.dark-mode .login-field input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(212,175,55,0.15);
    color: #e8e0d0;
}
body.dark-mode .login-field input:focus {
    border-color: #d4af37;
    background: rgba(255,255,255,0.1);
}
body.dark-mode .login-submit {
    background: linear-gradient(135deg, #d4af37, #b8960f);
}
body.dark-mode .login-footer {
    color: #5a5670;
}
body.dark-mode .login-switch,
body.dark-mode .login-card-sub {
    color: #9a96b0;
}

/* Main app */
body.dark-mode .vedic-chart-app {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1525 100%);
}

/* Header */
body.dark-mode .vedic-brand-badge {
    color: #d4af37;
    border-color: rgba(212,175,55,0.25);
    background: rgba(212,175,55,0.08);
}
body.dark-mode .vedic-header h1 {
    background: linear-gradient(135deg, #e8e0d0 30%, #d4af37 100%);
    -webkit-background-clip: text;
}
body.dark-mode .vedic-header p {
    color: #9a96b0;
}

/* Cards */
body.dark-mode .vedic-card {
    background: rgba(20, 24, 40, 0.85);
    border-color: rgba(212,175,55,0.1);
    backdrop-filter: blur(20px);
}
body.dark-mode .vedic-card:hover {
    border-color: rgba(212,175,55,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 25px rgba(124,110,255,0.06);
}

/* Form controls */
body.dark-mode .form-control {
    background: rgba(255,255,255,0.06);
    border-color: rgba(212,175,55,0.12);
    color: #e8e0d0;
}
body.dark-mode .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: #d4af37;
    box-shadow: 0 0 12px rgba(212,175,55,0.2);
}
body.dark-mode .form-group label {
    color: #9a96b0;
}

/* Buttons */
body.dark-mode .btn-detect {
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.2);
    color: #d4af37;
}
body.dark-mode .btn-detect:hover {
    background: rgba(212,175,55,0.15);
}
body.dark-mode .btn-demo {
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.3);
}
body.dark-mode .btn-export {
    background: rgba(255,255,255,0.06);
    border-color: rgba(212,175,55,0.15);
    color: #d4af37;
}
body.dark-mode .btn-export:hover {
    background: rgba(212,175,55,0.12);
    border-color: #d4af37;
}
body.dark-mode .btn-logout {
    color: #9a96b0;
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .btn-logout:hover {
    color: #e8e0d0;
    border-color: rgba(212,175,55,0.3);
}

/* Tabs */
body.dark-mode .vedic-tab-btn {
    color: #9a96b0;
}
body.dark-mode .vedic-tab-btn:hover {
    color: #e8e0d0;
}
body.dark-mode .vedic-tab-btn.active {
    color: #d4af37;
    border-bottom-color: #d4af37;
}
body.dark-mode .vedic-tabs {
    border-bottom-color: rgba(212,175,55,0.1);
}
body.dark-mode .vedic-tabs-container {
    border-bottom-color: rgba(212,175,55,0.1);
}
body.dark-mode .tab-accordion-toggle {
    background: rgba(212,175,55,0.06);
    border-color: rgba(212,175,55,0.15);
    color: #d4af37;
}

/* Tables */
body.dark-mode .vedic-table th {
    background: rgba(212,175,55,0.06);
    color: #d4af37;
    border-color: rgba(212,175,55,0.1);
}
body.dark-mode .vedic-table td {
    color: #e8e0d0;
    border-color: rgba(255,255,255,0.05);
}
body.dark-mode .vedic-table tr:hover td {
    background: rgba(212,175,55,0.04);
}

/* Chart section */
body.dark-mode .chart-section-header {
    background: rgba(212,175,55,0.04);
    border-color: rgba(212,175,55,0.1);
}
body.dark-mode .house-info-placeholder {
    background: rgba(212,175,55,0.04);
    border-color: rgba(212,175,55,0.1);
    color: #9a96b0;
}
body.dark-mode .chart-hint {
    color: #9a96b0;
}

/* SVG chart */
body.dark-mode #kundli-svg text {
    fill: #e8e0d0;
}
body.dark-mode #kundli-svg line,
body.dark-mode #kundli-svg path {
    stroke: rgba(212,175,55,0.4);
}
body.dark-mode #kundli-svg rect {
    fill: rgba(20,24,40,0.9);
    stroke: rgba(212,175,55,0.3);
}

/* Feature banner */
body.dark-mode .feature-banner {
    background: rgba(20,24,40,0.9);
    border-color: rgba(212,175,55,0.15);
}
body.dark-mode .feature-banner-title {
    color: #e8e0d0;
}
body.dark-mode .feature-banner-sub {
    color: #9a96b0;
}
body.dark-mode .feature-pill {
    background: rgba(255,255,255,0.04);
    border-color: rgba(212,175,55,0.12);
    color: #c0bcd0;
}
body.dark-mode .feature-pill:hover {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.3);
    color: #e8e0d0;
}
body.dark-mode .feature-pill.fp-gold {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.3);
}

/* Report cards inside tabs */
body.dark-mode .report-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(212,175,55,0.08);
}
body.dark-mode .report-card h4 {
    color: #d4af37;
}
body.dark-mode .report-card p,
body.dark-mode .report-card li {
    color: #c0bcd0;
}

/* Global TTS bar */
body.dark-mode .global-tts-bar {
    background: rgba(20,24,40,0.9);
    border-color: rgba(212,175,55,0.1);
}
body.dark-mode .gtts-play-btn,
body.dark-mode .gtts-stop-btn {
    color: #d4af37;
    border-color: rgba(212,175,55,0.2);
    background: rgba(212,175,55,0.06);
}
body.dark-mode .gtts-lang-btn,
body.dark-mode .gtts-voice-btn {
    color: #9a96b0;
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}
body.dark-mode .gtts-lang-btn.active,
body.dark-mode .gtts-voice-btn.active {
    color: #d4af37;
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.1);
}
body.dark-mode .gtts-translate-btn {
    color: #d4af37;
    border-color: rgba(212,175,55,0.2);
    background: rgba(212,175,55,0.06);
}

/* Placeholder */
body.dark-mode .empty-placeholder {
    color: #9a96b0;
}
body.dark-mode .empty-placeholder i {
    color: rgba(212,175,55,0.4);
}

/* Scrollbar */
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
body.dark-mode ::-webkit-scrollbar-track {
    background: #0a0e1a;
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.25);
    border-radius: 4px;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(212,175,55,0.4);
}

/* Tour overlay dark */
body.dark-mode .tour-card {
    background: #141828;
    border: 1px solid rgba(212,175,55,0.15);
}
body.dark-mode .tour-card h3 {
    color: #e8e0d0;
}
body.dark-mode .tour-card p {
    color: #9a96b0;
}
body.dark-mode .tour-dot {
    background: rgba(255,255,255,0.15);
}
body.dark-mode .tour-btn-skip {
    border-color: rgba(255,255,255,0.1);
    color: #9a96b0;
}

/* ─── 4.2 Skeleton Loader ─── */
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, rgba(179,134,0,0.06) 25%, rgba(179,134,0,0.12) 50%, rgba(179,134,0,0.06) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}
.skeleton-line:nth-child(2) { width: 85%; }
.skeleton-line:nth-child(3) { width: 70%; }
.skeleton-line:nth-child(4) { width: 90%; height: 12px; }
.skeleton-line:nth-child(5) { width: 60%; height: 12px; }

.skeleton-chart {
    width: 200px;
    height: 200px;
    background: linear-gradient(90deg, rgba(179,134,0,0.04) 25%, rgba(179,134,0,0.10) 50%, rgba(179,134,0,0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 12px;
    margin: 1rem auto;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

body.dark-mode .skeleton-line {
    background: linear-gradient(90deg, rgba(212,175,55,0.05) 25%, rgba(212,175,55,0.12) 50%, rgba(212,175,55,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
body.dark-mode .skeleton-chart {
    background: linear-gradient(90deg, rgba(212,175,55,0.03) 25%, rgba(212,175,55,0.08) 50%, rgba(212,175,55,0.03) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* ─── 4.3 Micro-interactions ─── */
.vedic-tab-btn {
    transition: all 0.2s ease;
}
.vedic-tab-btn:active {
    transform: scale(0.97);
}

.btn-submit:active,
.btn-detect:active,
.btn-export:active,
.btn-demo:active {
    transform: scale(0.97) translateY(0);
}

.feature-pill {
    transition: all 0.25s ease;
}
.feature-pill:active {
    transform: scale(0.96);
}

/* Smooth tab content fade */
.tab-content.active {
    animation: tabFadeIn 0.3s ease;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Theme toggle icon spin */
.theme-toggle {
    transition: all 0.3s ease;
}
body.dark-mode .theme-toggle {
    border-color: rgba(212,175,55,0.25);
    color: #d4af37;
}

/* Saved charts panel dark */
body.dark-mode #saved-charts-panel h3 {
    color: #d4af37;
}

/* WhatsApp & PNG buttons dark overrides */
body.dark-mode .btn-share-wa {
    background: rgba(37, 211, 102, 0.1) !important;
    border-color: rgba(37, 211, 102, 0.25) !important;
    color: #25D366 !important;
}
body.dark-mode .btn-download-png {
    background: rgba(66, 133, 244, 0.1) !important;
    border-color: rgba(66, 133, 244, 0.25) !important;
    color: #5a9cf5 !important;
}

/* Dasha, Transit, and other tab-specific dark fixes */
body.dark-mode .dasha-card,
body.dark-mode .transit-card,
body.dark-mode .kp-card,
body.dark-mode .yoga-card,
body.dark-mode .nakshatra-card,
body.dark-mode .remedy-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(212,175,55,0.1);
}
body.dark-mode .dasha-card h4,
body.dark-mode .transit-card h4,
body.dark-mode .kp-card h4 {
    color: #d4af37;
}

/* Print: always light */
@media print {
    body.dark-mode {
        --bg-cosmic: #fff;
        --glass-bg: #fff;
        --text-primary: #1e2238;
        --text-secondary: #5a6082;
        --gold: #b38600;
    }
    body.dark-mode .vedic-chart-app {
        background: rgba(255,255,255,0.05) !important;
    }
    body.dark-mode .vedic-card {
        background: rgba(255,255,255,0.05) !important;
        border-color: #ddd !important;
    }
    .theme-toggle {
        display: none !important;
    }
}

