/* Brand Identity & Theme Configurations */
:root {
    --deep-green: #085C3A;
    --brand-green: #18C979;
    --mint-green: #A9E7CE;
    --soft-green: #2E7B4F;
    --neutral-white: #F8F9FA;
    --light-grey: #F0FFFA;
    --warm-beige: #FFFDF0;
    --accent-yellow: #E9E4A0;
    --dark-charcoal: #212529;
    --border-glass: rgba(8, 92, 58, 0.15);
    --bg-glass: rgba(248, 249, 250, 0.75);
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 14px 40px rgba(15, 92, 59, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Manrope', 'Poppins', sans-serif;
    --font-body: 'Manrope', 'Poppins', sans-serif;

    /* Semantic Text & Surface Variables */
    --text-color:      #212529;
    --text-muted:      rgba(33, 37, 41, 0.58);
    --text-secondary:  rgba(33, 37, 41, 0.55);
    --card-bg:         #FFFFFF;
    --red:             #dc3545;

    /* Logo Base Variables (Deep Green Theme - default) */
    --logo-icon-bg: var(--brand-green);
    --logo-icon-fg: var(--neutral-white);
    --logo-text: var(--deep-green);
    --logo-tagline: var(--soft-green);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 5px rgba(168,213,192,0.5)); }
    50% { transform: scale(1.1) translateY(-2px); filter: drop-shadow(0 0 15px rgba(168,213,192,1)); color: #D4C87C; }
    100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 5px rgba(168,213,192,0.5)); }
}

.animated-rupee {
    display: inline-block;
    animation: pulse-glow 2s infinite ease-in-out;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-grey);
    color: var(--dark-charcoal);
    line-height: 1.6;
    /* Marketing page scrolls freely; app shell locks via JS */
    overflow-x: hidden;
    overflow-y: auto;
}
body.app-mode {
    height: 100vh;
    overflow: hidden;
}

/* Before/After grid — desktop base styles */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    max-width: 780px;
    margin: 0 auto 48px;
}

/* ── MARKETING PAGE MOBILE FIXES ────────────────────── */
@media (max-width: 600px) {
    /* Before/After cards: stack vertically */
    .before-after-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        max-width: 100% !important;
        margin: 0 0 32px !important;
    }
    .before-after-grid > div:nth-child(2) {
        /* Arrow: horizontal row */
        flex-direction: row !important;
        justify-content: center;
        padding: 4px 0 !important;
    }
    .before-after-grid > div:nth-child(2) span {
        white-space: nowrap;
    }

    /* Login modal — prevent background bleed */
    #login-modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    #login-modal > div {
        border-radius: 24px 24px 0 0 !important;
        max-height: 92dvh;
        overflow-y: auto;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Auth overlay bottom sheet on mobile */
    #auth-overlay .auth-modal {
        border-radius: 24px 24px 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        max-height: 92dvh;
        overflow-y: auto;
    }
}

/* ── MOBILE SCROLL FIX ──────────────────────────────────
   On mobile, body scroll is blocked by overflow:hidden.
   We release it and let the native scroll handle everything.
   Desktop keeps the shell-scroll (main-content scrolls internally).
──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }
    body {
        height: auto;
        min-height: 100dvh; /* dvh accounts for iOS address bar */
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .app-container {
        height: auto;
        min-height: 100dvh;
        width: 100%;
        overflow-x: hidden;
    }
    .main-content {
        height: auto !important;
        overflow-y: visible !important; /* body handles scroll */
        overflow-x: hidden;
        padding-bottom: 90px; /* bottom nav clearance */
    }
    .tab-content-container {
        overflow-y: visible !important; /* body handles scroll */
        overflow-x: hidden;
        padding: 16px !important;
    }
    /* Prevent horizontal bleed from wide elements */
    .glass-card, .tab-pane, .grid-3, .grid-2 {
        max-width: 100%;
        box-sizing: border-box;
    }
    /* Tables scroll horizontally inside their container */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    /* Inputs and buttons — proper touch target size */
    input, select, textarea, button {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--deep-green);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* App Shell Structure */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background-color: var(--deep-green);
    color: var(--neutral-white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background-color: var(--brand-green);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 28px;
    height: 28px;
    color: var(--neutral-white);
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--logo-text);
    display: block;
}

.brand-tagline {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--logo-tagline);
    display: block;
    margin-top: 2px;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mint-green);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    color: var(--neutral-white);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active .nav-link i {
    color: var(--accent-yellow);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.15);
}

.founder-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--brand-green);
    color: var(--neutral-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--accent-yellow);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-white);
}

.profile-title {
    font-size: 11px;
    color: var(--mint-green);
}

/* Main Content Area */
.main-content {
    flex: 1;
    min-height: 0; /* critical: allows flex child to shrink below content size */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background-color: var(--light-grey);
}

/* Top Header */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-toggle {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--deep-green);
}

.header-welcome h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cibil-pill {
    background-color: var(--neutral-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-glass);
    color: var(--dark-charcoal);
}

.cibil-pill strong {
    color: var(--brand-green);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn:active, .bnav-item:active, .bnav-cta-inner:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
}

.btn-primary {
    background-color: var(--deep-green);
    color: var(--neutral-white);
}

.btn-primary:hover {
    background-color: #0c4c31;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--brand-green);
    color: var(--neutral-white);
    box-shadow: 0 4px 15px rgba(31, 164, 99, 0.2);
}

.btn-accent:hover {
    background-color: #1a8f55;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(31, 164, 99, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--deep-green);
    border: 1.5px solid var(--deep-green);
}

.btn-outline:hover {
    background-color: rgba(15, 92, 59, 0.05);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--neutral-white);
    border: 1.5px solid var(--neutral-white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), var(--shadow-soft);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 92, 59, 0.25);
}

/* Tab Containers */
.tab-content-container {
    padding: 30px 40px;
    flex-grow: 1;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

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

/* Grids and Layout Helpers */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.grid-3-2 {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    margin-bottom: 24px;
}

.margin-top-md { margin-top: 20px; }
.margin-bottom-md { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-green { color: var(--brand-green) !important; }
.text-yellow { color: #ccaa00 !important; }
.text-gold { color: #bca043 !important; }
.flex-center-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-column-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.divider {
    border: none;
    border-top: 1px solid var(--border-glass);
    margin: 20px 0;
}
.divider-white {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 20px 0;
}

/* 1. HOME TAB SPECIFICS */
.welcome-banner {
    background: linear-gradient(135deg, #0F5C3B 0%, #1FA463 100%);
    color: var(--neutral-white);
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(31, 164, 99, 0.15);
    z-index: 1;
}

.banner-body {
    max-width: 65%;
    z-index: 2;
}

.welcome-banner h2 {
    color: #FFFFFF !important;
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
}

.welcome-banner p {
    color: var(--mint-green);
    font-size: 14px;
    margin-bottom: 20px;
}

.banner-actions {
    display: flex;
    gap: 12px;
}

.banner-visual {
    z-index: 2;
}

.banner-big-icon {
    font-size: 70px;
    color: var(--accent-yellow);
    opacity: 0.85;
}

/* Metric Cards Specifics */
.metric-card {
    display: flex;
    flex-direction: column;
}

.card-icon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.metric-icon.green-bg { background-color: rgba(31, 164, 99, 0.1); color: var(--brand-green); }
.metric-icon.yellow-bg { background-color: rgba(212, 200, 124, 0.15); color: #9c8e2b; }
.metric-icon.gold-bg { background-color: rgba(15, 92, 59, 0.08); color: var(--deep-green); }

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.badge.text-green { background-color: rgba(31, 164, 99, 0.1); }
.badge.text-yellow { background-color: rgba(212, 200, 124, 0.2); }
.badge.text-gold { background-color: rgba(15, 92, 59, 0.08); color: var(--deep-green); }

.metric-card h3 {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.metric-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
}

/* CIBIL Meter */
.meter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.cibil-dial {
    position: relative;
    width: 120px;
    height: 60px;
}

.dial-svg {
    width: 100%;
    height: 100%;
}

.dial-value {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--deep-green);
}

/* FOIR Visual */
.foir-visual {
    margin-top: 12px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

#home-foir-bar {
    background-color: var(--brand-green);
}

.foir-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

.foir-val { color: var(--deep-green); font-weight: 700; }
.foir-limit { color: var(--text-muted); }

/* Savings Metric display */
.savings-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
}

.currency-symbol {
    font-size: 20px;
    font-weight: 500;
    color: var(--brand-green);
}

.savings-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-green);
    letter-spacing: -0.5px;
}

/* Trust Section Grid */
.trust-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    margin-bottom: 20px;
}

.trust-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--deep-green);
    color: var(--neutral-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2.5px solid var(--accent-yellow);
}

.trust-header h4 {
    font-size: 16px;
}

.trust-header .subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.trust-quote {
    font-size: 13.5px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.trust-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
}

.t-stat h5 {
    font-size: 20px;
    color: var(--brand-green);
    font-weight: 700;
}

.t-stat span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Feature checklist */
.feature-highlights h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.feature-checklist {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-checklist li i {
    margin-top: 3px;
    font-size: 16px;
}

.feature-checklist li strong {
    font-size: 13px;
    color: var(--deep-green);
    display: block;
}

.feature-checklist li p {
    font-size: 11px;
    color: var(--text-muted);
}

/* 2. FORM WIZARD SPECIFICS */
.main-form-card {
    max-width: 800px;
    margin: 0 auto 24px;
}

.wizard-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.wizard-header h2 {
    font-size: 22px;
}

.wizard-header p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.step-indicator {
    flex-grow: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 8px;
    border-bottom: 2.5px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lang-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.lang-toggle-btn:hover {
    background: rgba(15, 92, 59, 0.05);
}

.step-indicator span:first-child {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.step-indicator.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
}

.step-indicator.active span:first-child {
    background-color: var(--brand-green);
    color: var(--neutral-white);
}

/* Inputs & Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--deep-green);
}

.cibil-summary-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .cibil-summary-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

.cibil-summary-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-green);
}

.cibil-summary-card label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.cibil-summary-card .value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background-color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--dark-charcoal);
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--brand-green);
    background-color: var(--neutral-white);
    box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.1);
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.consent-box {
    margin: 20px 0;
    padding: 16px;
    background-color: rgba(15, 92, 59, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--brand-green);
}

/* Checkbox alignment */
.checkbox-container {
    display: flex;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--brand-green);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    top: 2px;
    background-color: var(--neutral-white);
}

.checkbox-container input:checked + .checkmark-box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--neutral-white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-container input:checked + .checkmark-box {
    background-color: var(--brand-green);
}

.consent-text {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Wizard Buttons */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Results panel */
.results-panel {
    max-width: 800px;
    margin: 0 auto;
}

.results-panel.hidden {
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.results-header h3 {
    font-size: 18px;
}

.results-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.lead-id-pill {
    background-color: rgba(31, 164, 99, 0.1);
    color: var(--brand-green);
    font-weight: 600;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid var(--brand-green);
}

.summary-pill-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.summary-pill {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12.5px;
}

.summary-pill strong {
    color: var(--deep-green);
    margin-left: 4px;
}

/* Lender Match Component */
.lender-matches-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.lender-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background-color: var(--neutral-white);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.lender-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-green);
}

.lender-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lender-logo-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--deep-green);
    color: var(--neutral-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(15, 92, 59, 0.15);
}

.lender-info h4 {
    font-size: 14px;
}

.lender-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.lender-metrics {
    display: flex;
    gap: 30px;
}

.l-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.l-metric span {
    font-size: 10px;
    color: var(--text-muted);
}

.l-metric strong {
    font-size: 13.5px;
    color: var(--deep-green);
}

.lender-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.status-indicator-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator-pill.approved-pill {
    background-color: rgba(31, 164, 99, 0.1);
    color: var(--brand-green);
}

.status-indicator-pill.rejected-pill {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-indicator-pill.attention-pill {
    background-color: rgba(255, 193, 7, 0.15);
    color: #b58105;
}

.lender-status-col p {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.elig-cta-box {
    background-color: rgba(15, 92, 59, 0.04);
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--deep-green);
}

.elig-cta-box h4 {
    font-size: 14.5px;
}

.elig-cta-box p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 3. CALCULATORS TAB SPECIFICS */
.calculator-sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: 10px;
    width: max-content;
}

.sub-tab-btn {
    border: none;
    background-color: transparent;
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sub-tab-btn.active {
    background-color: var(--neutral-white);
    color: var(--deep-green);
    box-shadow: var(--shadow-soft);
}

.sub-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.sub-tab-pane.active {
    display: block;
}

/* Slider Controls */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-val-box {
    background-color: var(--neutral-white);
    padding: 6px 12px;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    font-weight: 700;
    color: var(--deep-green);
    font-size: 13.5px;
}

.slider-val-box input {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--deep-green);
    width: 60px;
    background-color: transparent;
}

.slider-input {
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    margin: 8px 0;
    -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-green);
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Calculator result display details */
.emi-display {
    font-size: 40px;
    font-weight: 700;
    color: var(--deep-green);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

/* Autocomplete Dropdown */
.position-relative { position: relative; }
.autocomplete-items {
    position: absolute;
    border: 1px solid var(--border-glass);
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--neutral-white);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-soft);
}
.autocomplete-items.hidden {
    display: none;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: var(--neutral-white); 
    border-bottom: 1px solid var(--border-glass);
    font-size: 13px;
    color: var(--dark-charcoal);
}
.autocomplete-items div:hover {
    background-color: var(--light-grey); 
}

.calc-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 16px;
}

[data-theme="dark"] .calc-breakdown-grid {
    background-color: rgba(255, 255, 255, 0.05);
}

.breakdown-item {
    display: flex;
    flex-direction: column;
}

.breakdown-item span {
    font-size: 11px;
    color: var(--text-muted);
}

.breakdown-item strong {
    font-size: 14px;
    color: var(--deep-green);
    margin-top: 4px;
}

[data-theme="dark"] .breakdown-item strong {
    color: var(--neon-green);
}

/* Balance Transfer layout specific */
.bg-gradient-premium {
    background: radial-gradient(circle at 10% 20%, rgba(15, 92, 59, 0.05) 0%, rgba(31, 164, 99, 0.05) 90.1%);
}

.visual-icon-glow {
    font-size: 44px;
    color: var(--deep-green);
    text-shadow: 0 4px 20px rgba(15, 92, 59, 0.3);
    margin-bottom: 12px;
}

.savings-large {
    font-size: 38px;
    font-weight: 700;
    color: var(--deep-green);
    letter-spacing: -1px;
}

.savings-disclaimer {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 20px 0;
}

/* FOIR calculator specifics */
.foir-meter-container {
    margin: 20px 0;
}

.foir-val-big {
    font-size: 44px;
    font-weight: 700;
    color: var(--brand-green);
}

.foir-alert-box {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 16px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* 4. CIBIL ANALYZER TAB SPECIFICS */
.upload-zone {
    border: 2px dashed rgba(15, 92, 59, 0.3);
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(31,164,99,0.05), rgba(243,167,18,0.02));
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    transform: translateY(0);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02), 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--brand-green);
    background: linear-gradient(135deg, rgba(31,164,99,0.08), rgba(243,167,18,0.04));
    transform: translateY(-5px);
    box-shadow: inset 0 0 30px rgba(31,164,99,0.1), 0 20px 40px rgba(31,164,99,0.15);
}

.scanner-line {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-green);
    box-shadow: 0 0 15px 5px rgba(31,164,99,0.4);
    animation: scan 3s infinite linear;
    opacity: 0.7;
    z-index: 1;
}

@keyframes scan {
    0% { top: -20%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 120%; opacity: 0; }
}

.pdf-upload-icon {
    font-size: 54px;
    color: #e06c75;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 10px rgba(224,108,117,0.3));
}

.float-animate {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.upload-zone h4 {
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.upload-zone p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.upload-badge {
    background-color: rgba(15, 92, 59, 0.06);
    color: var(--deep-green);
    font-size: 9px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
}

.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-glass);
}

.or-separator:not(:empty)::before {
    margin-right: .5em;
}

.or-separator:not(:empty)::after {
    margin-left: .5em;
}

/* Placeholder box */
.placeholder-icon {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pad-lg {
    padding: 60px 20px;
}

.cibil-analysis-placeholder h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.cibil-analysis-placeholder p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Results panel detail */
.results-header-cibil {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.results-header-cibil h3 {
    font-size: 18px;
}

.report-date {
    font-size: 11px;
    color: var(--text-muted);
}

.score-badge-cibil {
    font-size: 24px;
    font-weight: 700;
    background-color: var(--brand-green);
    color: var(--neutral-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3.5px solid var(--accent-yellow);
    box-shadow: 0 4px 10px rgba(31, 164, 99, 0.25);
}

.cibil-verdict-box {
    background-color: rgba(255, 193, 7, 0.05);
    padding: 14px;
    border-radius: 8px;
    border-left: 3.5px solid #ffc107;
    margin-bottom: 18px;
}

.cibil-verdict-box.border-yellow { border-left-color: #ffc107; background-color: rgba(255, 193, 7, 0.05); }
.cibil-verdict-box.border-green { border-left-color: var(--brand-green); background-color: rgba(31, 164, 99, 0.05); }
.cibil-verdict-box.border-red { border-left-color: #dc3545; background-color: rgba(220, 53, 69, 0.05); }

.cibil-verdict-box strong {
    font-size: 13.5px;
    display: block;
    margin-bottom: 4px;
}

.cibil-verdict-box p {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Schedule Table CSS */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    color: var(--dark-charcoal);
}

.schedule-table th, .schedule-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.schedule-table th:first-child, .schedule-table td:first-child {
    text-align: center;
    width: 70px;
}

.schedule-table th {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 600;
    color: var(--deep-green);
    position: sticky;
    top: 0;
    z-index: 10;
}



.schedule-table tbody tr:hover {
    background-color: rgba(31, 164, 99, 0.03);
}

.table-inline-input {
    width: 90px;
    padding: 4px 8px;
    border: 1px solid rgba(15, 92, 59, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    color: var(--dark-charcoal);
    text-align: right;
    outline: none;
    transition: var(--transition-smooth);
}

.table-inline-input:focus {
    border-color: var(--brand-green);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(31, 164, 99, 0.2);
}


.section-title-sm {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.risk-flags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.risk-flags-list li {
    font-size: 11.5px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.risk-flags-list li.flag-red i { color: #dc3545; }
.risk-flags-list li.flag-yellow i { color: #b58105; }
.risk-flags-list li.flag-green i { color: var(--brand-green); }

.cibil-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cibil-checklist li {
    font-size: 11.5px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cibil-checklist li i {
    color: var(--brand-green);
    margin-top: 3px;
}

.cibil-checklist li p {
    color: var(--text-secondary);
}

/* 5. EXPENSE TAB DETAIL */
.cashflow-visual-box {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.cashflow-summary-item {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-glass);
}

.cashflow-summary-item span {
    font-size: 11px;
    color: var(--text-muted);
}

.cashflow-summary-item strong {
    font-size: 18px;
    color: var(--deep-green);
    margin-top: 4px;
}

.expense-breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 500;
}

.bar-label span {
    color: var(--text-secondary);
}

.bg-green { background-color: var(--deep-green) !important; }
.bg-yellow { background-color: var(--accent-yellow) !important; }
.bg-mint { background-color: var(--soft-green) !important; }
.bg-gold { background-color: var(--brand-green) !important; }

.cashflow-verdict {
    background-color: rgba(15, 92, 59, 0.04);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid var(--border-glass);
}

.cashflow-verdict.alert-red {
    border-color: rgba(220, 53, 69, 0.15);
    background-color: rgba(220, 53, 69, 0.03);
}

.verdict-icon {
    font-size: 20px;
    margin-top: 2px;
}

.cashflow-verdict strong {
    font-size: 13px;
    display: block;
}

.cashflow-verdict p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* EXPENSE TRACKER V2 SPECIFICS */
.subscription-list {
    max-height: 200px;
    overflow-y: auto;
}

.split-bill-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.split-bill-modal.active { display: flex; }
.split-bill-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sync-animation {
    display: inline-block;
    animation: spin-pulse 1.5s infinite linear;
}
@keyframes spin-pulse {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 6. AI COACH TAB SPECIFICS */
.ai-coach-container {
    height: 520px;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.ai-coach-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: rgba(0, 0, 0, 0.02);
}

.coach-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--deep-green);
    color: var(--neutral-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid var(--accent-yellow);
}

.coach-details h3 {
    font-size: 14.5px;
}

.coach-details p {
    font-size: 10.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--brand-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--brand-green);
}

.chat-messages-area {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.2);
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.message.incoming {
    align-self: flex-start;
}

.message.outgoing {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.5;
}

.incoming .msg-bubble {
    background-color: var(--neutral-white);
    border: 1px solid var(--border-glass);
    border-top-left-radius: 2px;
    color: var(--dark-charcoal);
}

.outgoing .msg-bubble {
    background-color: var(--deep-green);
    color: var(--neutral-white);
    border-top-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(15, 92, 59, 0.15);
}

.msg-time {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
    align-self: flex-end;
}

.incoming .msg-time {
    align-self: flex-start;
}

/* Chat Input Bar */
.chat-input-row {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 12px;
    background-color: var(--neutral-white);
}

.chat-input {
    flex-grow: 1;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    font-family: var(--font-body);
    font-size: 13.5px;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input:focus {
    border-color: var(--brand-green);
}

.chat-send-btn {
    border-radius: 8px;
    padding: 12px 18px;
}

/* Suggested chips */
.chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 10px 24px;
    overflow-x: auto;
    background-color: rgba(0, 0, 0, 0.01);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.suggestion-chip {
    white-space: nowrap;
    background-color: var(--neutral-white);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--deep-green);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.suggestion-chip:hover {
    background-color: var(--deep-green);
    color: var(--neutral-white);
    border-color: var(--deep-green);
}

/* 7. SCHEDULER TAB SPECIFICS */
.main-booking-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden;
}

.grid-booking {
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-height: 520px;
}

.booking-sidebar {
    background-color: var(--deep-green);
    color: var(--neutral-white);
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.avatar-booking {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--neutral-white);
    color: var(--deep-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 2.5px solid var(--accent-yellow);
    margin-bottom: 20px;
}

.booking-sidebar h3 {
    color: var(--neutral-white);
    font-size: 18px;
}

.booking-duration {
    font-size: 12.5px;
    color: var(--mint-green);
    margin-top: 6px;
}

.booking-duration i {
    margin-right: 4px;
}

.booking-by {
    font-size: 11.5px;
    color: var(--soft-green);
}

.booking-benefit-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mint-green);
}

.benefit-item i {
    color: var(--accent-yellow);
}

.booking-form-pane {
    padding: 35px;
    overflow-y: auto;
    background-color: var(--neutral-white);
}

.booking-form-pane h3 {
    font-size: 18px;
}

.booking-form-pane p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Custom Booking selector styles */
.date-selector-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.date-btn {
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    background-color: var(--neutral-white);
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.date-btn span.day {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.date-btn span.date {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-green);
}

.date-btn.active,
.date-btn:hover {
    background-color: var(--deep-green);
    border-color: var(--deep-green);
}

.date-btn.active span.day,
.date-btn.active span.date,
.date-btn:hover span.day,
.date-btn:hover span.date {
    color: var(--neutral-white);
}

.slots-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.slot-btn {
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    background-color: var(--neutral-white);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--deep-green);
    transition: var(--transition-smooth);
}

.slot-btn.active,
.slot-btn:hover {
    background-color: var(--brand-green);
    color: var(--neutral-white);
    border-color: var(--brand-green);
}

/* 8. CRM DASHBOARD SPECIFICS */
.crm-top-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.crm-metric-box {
    display: flex;
    flex-direction: column;
}

.crm-metric-box span {
    font-size: 11px;
    color: var(--text-muted);
}

.crm-metric-box h3 {
    font-size: 24px;
    margin-top: 4px;
}

.crm-table-card {
    padding: 0;
    overflow: hidden;
}

.crm-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
}

.crm-table-header h3 {
    font-size: 16px;
}

.crm-table-header p {
    font-size: 11.5px;
    color: var(--text-muted);
}

.crm-filter-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    font-family: var(--font-body);
    font-size: 12px;
    outline: none;
    color: var(--dark-charcoal);
    cursor: pointer;
}

.table-scroll-container {
    overflow-x: auto;
}

.crm-table, .cibil-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.crm-table th, .crm-table td, .cibil-data-table th, .cibil-data-table td {
    padding: 14px 24px;
    font-size: 12.5px;
    border-bottom: 1px solid #E0E0E0;
}

.crm-table th, .cibil-data-table th {
    background: linear-gradient(135deg, rgba(31,164,99,0.1), rgba(243,167,18,0.02));
    font-weight: 700;
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.crm-table tbody tr, .cibil-data-table tbody tr {
    transition: var(--transition-smooth);
}

.crm-table tbody tr:nth-child(even), .cibil-data-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.crm-table tbody tr:hover, .cibil-data-table tbody tr:hover {
    background-color: rgba(15, 92, 59, 0.04);
}

.td-main-text {
    font-weight: 600;
    color: var(--deep-green);
}

.td-sub-text {
    font-size: 10.5px;
    color: var(--text-muted);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.status-badge.new { background-color: rgba(0, 123, 255, 0.1); color: #007bff; }
.status-badge.follow-up { background-color: rgba(255, 193, 7, 0.15); color: #b58105; }
.status-badge.approved { background-color: rgba(31, 164, 99, 0.1); color: var(--brand-green); }
.status-badge.disbursed { background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
.status-badge.rejected { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }

/* Modal Overlay Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 92, 59, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-card {
    width: 600px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: #dc3545;
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.modal-section {
    border-bottom: 1px dashed var(--border-glass);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.modal-section h4 {
    font-size: 13.5px;
    margin-bottom: 10px;
    color: var(--brand-green);
}

/* Responsiveness Media Queries */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-3-2 { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .grid-booking { grid-template-columns: 1fr; height: auto; }
    .booking-sidebar { padding: 24px; }
    .booking-form-pane { padding: 24px; }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .sidebar-menu {
        display: none;
        padding: 10px 16px;
    }
    
    .sidebar.menu-open .sidebar-menu {
        display: block;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .tab-content-container {
        padding: 20px 20px;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    
    .banner-body {
        max-width: 100%;
    }
    
    .banner-big-icon {
        display: none;
    }
    
    .crm-top-metrics {
        grid-template-columns: 1fr 1fr;
    }
    
    .calc-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   DYNAMIC CIBIL SCORE THEMES
   ========================================== */

/* Theme Transition Smoothness */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}
.glass-card, .top-header, .sidebar, .logo-icon, .checkmark, .brand-name, .brand-tagline {
    transition: var(--transition-smooth);
}

/* 1. THEME DEEP GREEN (CIBIL 781+) - VIP / Super Prime */
body.theme-deep-green {
    --light-grey: #E5F0EA;
    --dark-charcoal: #0F5C3B;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(15, 92, 59, 0.18);
    background-color: var(--light-grey);
    color: var(--dark-charcoal);

    --logo-icon-bg: var(--brand-green);
    --logo-icon-fg: var(--deep-green);
    --logo-text: var(--neutral-white);
    --logo-tagline: var(--neutral-white);
}

body.theme-deep-green h1,
body.theme-deep-green h2,
body.theme-deep-green h3,
body.theme-deep-green h4,
body.theme-deep-green h5,
body.theme-deep-green h6 {
    color: var(--deep-green) !important;
}

body.theme-deep-green .welcome-banner h2 {
    color: #FFFFFF !important;
}

body.theme-deep-green .brand-name {
    color: #FFFFFF !important;
}

body.theme-deep-green .brand-tagline {
    color: var(--soft-green) !important;
}

body.theme-deep-green .top-header {
    background-color: rgba(229, 240, 234, 0.95);
    border-bottom-color: var(--border-glass);
}

body.theme-deep-green .header-subtitle {
    color: #4b6a57;
}

body.theme-deep-green .cibil-pill {
    background-color: var(--neutral-white);
    color: var(--deep-green);
    border-color: var(--border-glass);
}

body.theme-deep-green .sidebar {
    background-color: #0F5C3B;
}


/* 2. THEME MINT GREEN (CIBIL 750-780) - Fresh / Prime */
body.theme-mint-green {
    --light-grey: #AEE2C9;
    --dark-charcoal: #0F5C3B;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(31, 164, 99, 0.18);
    background-color: var(--light-grey);
    color: var(--dark-charcoal);
}

body.theme-mint-green h1,
body.theme-mint-green h2,
body.theme-mint-green h3,
body.theme-mint-green h4,
body.theme-mint-green h5,
body.theme-mint-green h6 {
    color: var(--deep-green) !important;
}

body.theme-mint-green .top-header {
    background-color: rgba(174, 226, 201, 0.95);
    border-bottom-color: var(--border-glass);
}

body.theme-mint-green .header-subtitle {
    color: #4b6a57;
}

body.theme-mint-green .cibil-pill {
    background-color: var(--neutral-white);
    color: var(--deep-green);
    border-color: var(--border-glass);
}

body.theme-mint-green .sidebar {
    background-color: #0F5C3B;
}


/* 3. THEME WHITE (CIBIL 700-749) - Clean */
body.theme-white {
    --light-grey: #FFFFFF;
    --dark-charcoal: #1E2922;
    --bg-glass: rgba(245, 247, 246, 0.85);
    --border-glass: rgba(8, 92, 58, 0.15);
    background-color: var(--light-grey);
    color: var(--dark-charcoal);
}

body.theme-white .top-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border-glass);
}

body.theme-white .header-subtitle {
    color: var(--text-muted);
}

body.theme-white .sidebar {
    background-color: #0F5C3B;
}




/* 4. THEME WARM YELLOW (CIBIL 650-699) - Earthy / Advisory */
body.theme-warm-yellow {
    --light-grey: #FAF7E8;
    --dark-charcoal: #2C352E;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(212, 200, 124, 0.3);
    background-color: var(--light-grey);
    color: var(--dark-charcoal);
}

body.theme-warm-yellow h1,
body.theme-warm-yellow h2,
body.theme-warm-yellow h3,
body.theme-warm-yellow h4,
body.theme-warm-yellow h5,
body.theme-warm-yellow h6 {
    color: var(--deep-green) !important;
}

body.theme-warm-yellow .top-header {
    background-color: rgba(250, 247, 232, 0.95);
    border-bottom-color: var(--border-glass);
}

body.theme-warm-yellow .header-subtitle {
    color: #6a6e5e;
}

body.theme-warm-yellow .cibil-pill {
    background-color: var(--neutral-white);
    color: var(--deep-green);
    border-color: var(--border-glass);
}

body.theme-warm-yellow .sidebar {
    background-color: #0F5C3B;
}

body.theme-warm-yellow {
    --logo-icon-bg: var(--brand-green);
    --logo-icon-fg: var(--neutral-white);
    --logo-text: var(--deep-green);
    --logo-tagline: #6FBF9F;
}

/* 5. THEME LIGHT RED (CIBIL < 650) - Warning / Critical */
body.theme-light-red {
    --light-grey: #FCE8E8;
    --dark-charcoal: #3B1B1B;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(220, 53, 69, 0.3);
    background-color: var(--light-grey);
    color: var(--dark-charcoal);
}

body.theme-light-red h1,
body.theme-light-red h2,
body.theme-light-red h3,
body.theme-light-red h4,
body.theme-light-red h5,
body.theme-light-red h6 {
    color: #8A2323 !important;
}

body.theme-light-red .top-header {
    background-color: rgba(252, 232, 232, 0.95);
    border-bottom-color: var(--border-glass);
}

body.theme-light-red .header-subtitle {
    color: #8A2323;
}

body.theme-light-red .cibil-pill {
    background-color: var(--neutral-white);
    color: #8A2323;
    border-color: var(--border-glass);
}

body.theme-light-red .sidebar {
    background-color: #0F5C3B;
}

body.theme-light-red {
    --logo-icon-bg: var(--neutral-white);
    --logo-icon-fg: #8A2323;
    --logo-text: #8A2323;
    --logo-tagline: #8A2323;
}

/* Walnut-Style Expense Tracker CSS */
.safe-to-spend-dial {
    padding: 30px;
    border-radius: 50%;
    background: var(--bg-glass);
    box-shadow: inset 0 0 20px rgba(31, 164, 99, 0.1), 0 8px 32px rgba(15, 92, 59, 0.1);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 5px solid var(--brand-green);
    position: relative;
    transition: transform 0.3s ease;
}

.safe-to-spend-dial:hover {
    transform: scale(1.05);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    transition: all 0.2s ease;
}

.transaction-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--brand-green);
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: white;
}

.tx-icon.needs { background: var(--brand-green); }
.tx-icon.wants { background: var(--gold); color: var(--dark-charcoal); }
.tx-icon.savings { background: var(--deep-green); }

.tx-details {
    display: flex;
    flex-direction: column;
}

.tx-details strong {
    font-size: 15px;
    color: var(--dark-charcoal);
}

.tx-details span {
    font-size: 12px;
    color: var(--text-muted);
}

.tx-right {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-charcoal);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--dark-charcoal);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* ═══════════════════════════════════
   SMART ALERT ENGINE
═══════════════════════════════════ */
.smart-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    animation: slideUpSlight 0.4s ease;
}
.smart-alert.alert-warning {
    background: linear-gradient(90deg, rgba(243,167,18,0.1), rgba(243,167,18,0.03));
    border: 1px solid rgba(243,167,18,0.3);
    border-left: 4px solid #F3A712;
}
.smart-alert.alert-danger {
    background: linear-gradient(90deg, rgba(220,53,69,0.08), rgba(220,53,69,0.02));
    border: 1px solid rgba(220,53,69,0.25);
    border-left: 4px solid #dc3545;
}
.smart-alert.alert-success {
    background: linear-gradient(90deg, rgba(24,201,121,0.1), rgba(24,201,121,0.02));
    border: 1px solid rgba(24,201,121,0.25);
    border-left: 4px solid var(--brand-green);
}
.smart-alert.alert-info {
    background: linear-gradient(90deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
    border: 1px solid rgba(59,130,246,0.2);
    border-left: 4px solid #3b82f6;
}
.sa-icon-wrap {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 15px;
}
.alert-warning .sa-icon-wrap  { background: rgba(243,167,18,0.15); color: #F3A712; }
.alert-danger  .sa-icon-wrap  { background: rgba(220,53,69,0.12);  color: #dc3545; }
.alert-success .sa-icon-wrap  { background: rgba(24,201,121,0.12); color: var(--brand-green); }
.alert-info    .sa-icon-wrap  { background: rgba(59,130,246,0.12); color: #3b82f6; }
.sa-body { flex: 1; }
.sa-title { font-size: 13px; font-weight: 700; color: var(--text-color); margin: 0 0 2px; }
.sa-text  { font-size: 12px; color: var(--text-muted); margin: 0; }
.sa-action {
    padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700;
    cursor: pointer; border: 1px solid; white-space: nowrap; transition: all 0.2s;
    background: transparent;
}
.alert-warning .sa-action { color: #F3A712; border-color: rgba(243,167,18,0.4); }
.alert-danger  .sa-action { color: #dc3545; border-color: rgba(220,53,69,0.4); }
.alert-success .sa-action { color: var(--brand-green); border-color: rgba(24,201,121,0.4); }
.alert-info    .sa-action { color: #3b82f6; border-color: rgba(59,130,246,0.4); }
.sa-action:hover { opacity: 0.8; }


/* ═══════════════════════════════════
   LIVE LENDER RATE TABLE
═══════════════════════════════════ */
.lender-rate-section { padding: 22px; }

.lrt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}
.lrt-title { font-size: 15px; font-weight: 700; margin: 0 0 3px; color: var(--text-color); display: flex; align-items: center; gap: 8px; }
.lrt-title i { color: var(--brand-green); }
.lrt-subtitle { font-size: 12px; color: var(--text-muted); margin: 0; }

.lrt-live-badge {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: var(--brand-green);
    background: rgba(24,201,121,0.08);
    border: 1px solid rgba(24,201,121,0.2);
    border-radius: 20px; padding: 5px 12px;
}
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand-green);
    animation: pulse-glow 2s infinite;
    display: inline-block;
}

.lrt-filters {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.lrt-filter-btn {
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
    border: 1px solid var(--border-glass); background: transparent;
    color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.lrt-filter-btn:hover { border-color: var(--brand-green); color: var(--brand-green); }
.lrt-filter-btn.active {
    background: var(--brand-green); color: #fff;
    border-color: var(--brand-green);
}

.lrt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.lrt-card {
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    background: var(--card-bg, #fff);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}
.lrt-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.lrt-card.featured { border-color: var(--brand-green); }
.lrt-card.featured::before {
    content: 'Best Rate';
    position: absolute; top: -1px; right: 12px;
    background: var(--brand-green); color: #fff;
    font-size: 9px; font-weight: 700; padding: 3px 8px;
    border-radius: 0 0 6px 6px; text-transform: uppercase; letter-spacing: 0.5px;
}

.lrt-bank-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lrt-bank-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.lrt-bank-name { font-size: 13px; font-weight: 700; color: var(--text-color); line-height: 1.2; }
.lrt-bank-type { font-size: 10px; color: var(--text-muted); }

.lrt-rate {
    font-size: 22px; font-weight: 800; color: var(--brand-green); line-height: 1;
    margin-bottom: 2px;
}
.lrt-rate-label { font-size: 10px; color: var(--text-muted); margin-bottom: 10px; }

.lrt-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.lrt-pill {
    font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
    background: rgba(128,128,128,0.08); color: var(--text-muted);
    border: 1px solid var(--border-glass);
}

.lrt-apply-btn {
    width: 100%; padding: 8px; border-radius: 8px;
    background: rgba(24,201,121,0.1); color: var(--brand-green);
    border: 1px solid rgba(24,201,121,0.3); font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.lrt-apply-btn:hover { background: var(--brand-green); color: #fff; }

.lrt-disclaimer { font-size: 10px; color: var(--text-muted); margin: 0; line-height: 1.5; }

[data-theme="dark"] .lrt-card { background: var(--bg-glass); }

@media (max-width: 500px) {
    .lrt-grid { grid-template-columns: 1fr 1fr; }
    .lrt-rate { font-size: 18px; }
}


/* ═══════════════════════════════════
   FINANCIAL HEALTH SCORE WIDGET
═══════════════════════════════════ */
.fhs-widget { padding: 22px; }

.fhs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.fhs-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--text-color); display: flex; align-items: center; gap: 8px; }
.fhs-title i { color: var(--brand-green); }
.fhs-subtitle { font-size: 12px; color: var(--text-muted); margin: 0; }
.fhs-update-btn {
    background: rgba(24,201,121,0.1);
    border: 1px solid rgba(24,201,121,0.3);
    color: var(--brand-green);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}
.fhs-update-btn:hover { background: rgba(24,201,121,0.2); }

.fhs-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
}

.fhs-score-ring-wrap {
    position: relative;
    width: 130px;
    height: 130px;
}
.fhs-ring { width: 100%; height: 100%; }
.fhs-score-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.fhs-score-num {
    font-size: 30px;
    font-weight: 800;
    color: var(--brand-green);
    line-height: 1;
}
.fhs-score-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
    max-width: 70px;
    text-align: center;
    line-height: 1.3;
}

.fhs-pillars { display: flex; flex-direction: column; gap: 12px; }

.fhs-pillar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.fhs-pillar-name { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.fhs-pillar-name i { color: var(--brand-green); }
.fhs-pillar-val { font-size: 12px; font-weight: 700; color: var(--text-color); }

.fhs-bar-track {
    height: 6px;
    background: rgba(128,128,128,0.12);
    border-radius: 99px;
    overflow: hidden;
}
.fhs-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.fhs-bar-cibil { background: linear-gradient(90deg, #085C3A, #18C979); }
.fhs-bar-foir  { background: linear-gradient(90deg, #F3A712, #18C979); }
.fhs-bar-debt  { background: linear-gradient(90deg, #dc3545, #F3A712); }

.fhs-tip {
    grid-column: 1 / -1;
    background: rgba(24,201,121,0.06);
    border: 1px solid rgba(24,201,121,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

/* Dark mode FHS */
[data-theme="dark"] .fhs-bar-track { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .fhs-tip { background: rgba(24,201,121,0.08); }

@media (max-width: 600px) {
    .fhs-body { grid-template-columns: 1fr; justify-items: center; }
    .fhs-header { flex-direction: column; }
}


/* ═══════════════════════════════════
   SMART ONBOARDING MODAL
═══════════════════════════════════ */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.onboarding-modal {
    background: var(--bg-glass, #fff);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 92%;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    animation: slideUpSlight 0.35s ease;
}

.ob-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}
.ob-dot {
    width: 28px;
    height: 5px;
    border-radius: 99px;
    background: rgba(128,128,128,0.2);
    transition: all 0.3s ease;
}
.ob-dot.active { background: var(--brand-green); width: 36px; }

.ob-icon { font-size: 36px; text-align: center; margin-bottom: 10px; }
.ob-heading { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 6px; color: var(--text-color); }
.ob-sub { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.5; }

.ob-skip {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 14px;
    background: none;
    border: none;
    width: 100%;
    padding: 4px;
}
.ob-skip:hover { color: var(--brand-green); }

.ob-goals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ob-goal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 2px solid var(--border-glass);
    border-radius: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    transition: all 0.2s ease;
    background: var(--bg-glass);
}
.ob-goal-card:hover { border-color: var(--brand-green); background: rgba(24,201,121,0.06); }
.ob-goal-card.selected { border-color: var(--brand-green); background: rgba(24,201,121,0.12); color: var(--brand-green); }
.ob-goal-icon { font-size: 22px; }

/* Dark mode onboarding */
[data-theme="dark"] .onboarding-modal {
    background: #1E1E1E;
    border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .ob-goal-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

/* 6. SYSTEMATIC DARK THEME */
[data-theme="dark"],
html[data-theme="dark"] body {
    --light-grey: #121212 !important; /* Deep dark navy-gray background */
    --bg-glass: #1E1E1E !important; /* Elevated cards */
    --card-bg: #1E1E1E !important; /* Default card background in dark mode */
    --border-glass: rgba(255, 255, 255, 0.08) !important;
    --neon-green: #18C979 !important; /* Brand green for dark mode accents */
    --text-color: rgba(255, 255, 255, 0.85) !important;
    --text-muted: rgba(255, 255, 255, 0.55) !important;
    --text-secondary: rgba(255, 255, 255, 0.50) !important;
    background-color: var(--light-grey) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .brand-name, [data-theme="dark"] .mobile-logo-text .brand-name {
    color: var(--neon-green) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff;
}

[data-theme="dark"] .sidebar {
    background-color: #121212;
    border-right: 1px solid var(--border-glass);
}

[data-theme="dark"] {
    --logo-icon-bg: var(--neon-green);
    --logo-icon-fg: #000000;
    --logo-text: #FFFFFF;
    --logo-tagline: var(--neon-green);
}

[data-theme="dark"] .top-header {
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--border-glass);
}

[data-theme="dark"] .glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    box-shadow: none;
}

[data-theme="dark"] .btn-accent {
    background: var(--neon-green);
    color: #000000;
    font-weight: 700;
}

[data-theme="dark"] .btn-accent:hover {
    background: #b6e031;
    color: #000000;
}

[data-theme="dark"] .form-input {
    background-color: rgba(255,255,255,0.05);
    color: #ffffff;
    border-color: var(--border-glass);
}

[data-theme="dark"] .form-input:focus {
    background-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .cibil-pill {
    background-color: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
    font-weight: 700;
}

[data-theme="dark"] .text-accent {
    color: var(--neon-green) !important;
}

/* Fix for Loan Eligibility Tab / Wizard Steps in Dark Mode */
[data-theme="dark"] .wizard-step label,
[data-theme="dark"] .form-group label {
    color: #E2E8F0; /* Light grayish white for readability */
}

[data-theme="dark"] .wizard-step .form-input,
[data-theme="dark"] .wizard-step select.form-input {
    background-color: rgba(255,255,255,0.05);
    color: #ffffff;
    border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .wizard-step .form-input::placeholder {
    color: rgba(255,255,255,0.4);
}

[data-theme="dark"] .wizard-step .form-input:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--neon-green);
}

[data-theme="dark"] .table-inline-input {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}

[data-theme="dark"] #theme-toggle-btn {
    color: #f3a712;
    border-color: #f3a712;
}

[data-theme="dark"] .btn-outline {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

[data-theme="dark"] .safe-to-spend-dial {
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.6);
}

[data-theme="dark"] .transaction-item {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

/* AI Coach Dark Mode Fixes */
[data-theme="dark"] .incoming .msg-bubble {
    background-color: var(--bg-glass);
    color: #ffffff;
    border-color: var(--border-glass);
}

[data-theme="dark"] .chat-input-row,
[data-theme="dark"] .chat-suggestions {
    background-color: #050505;
    border-color: var(--border-glass);
}

[data-theme="dark"] .chat-input {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: var(--border-glass);
}

[data-theme="dark"] .chat-input:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .suggestion-chip {
    background-color: var(--bg-glass);
    color: var(--neon-green);
    border-color: var(--border-glass);
}

[data-theme="dark"] .suggestion-chip:hover {
    background-color: rgba(196, 241, 53, 0.15); /* neon-green with opacity */
}

/* Sidebar Collapsed State */
.app-container.sidebar-collapsed {
    grid-template-columns: 80px 1fr;
}

.app-container.sidebar-collapsed .sidebar-toggle-btn {
    opacity: 1;
    transform: translateY(-50%) rotate(180deg);
}

.app-container.sidebar-collapsed .logo-text,
.app-container.sidebar-collapsed .nav-item span,
.app-container.sidebar-collapsed .user-info {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    width: 0;
    transition: opacity 0.2s;
}

.app-container.sidebar-collapsed .logo-container {
    justify-content: center;
}

.app-container.sidebar-collapsed .nav-item {
    justify-content: center;
}

.app-container.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
}

.app-container.sidebar-collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar-toggle-btn {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar:hover .sidebar-toggle-btn {
    opacity: 1;
}

/* ==========================================
   BOTTOM NAVIGATION BAR (Mobile App Feel)
   ========================================== */
.bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(70px + env(safe-area-inset-bottom));
    background: var(--neutral-white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0 10px env(safe-area-inset-bottom) 10px;
    border-top: 1px solid var(--border-glass);
}

[data-theme="dark"] .bottom-nav {
    background: #111111;
    border-top: 1px solid rgba(255,255,255,0.1);
}

body.theme-deep-green .bottom-nav {
    background: #0F5C3B;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bnav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    transition: var(--transition-smooth);
    padding: 0 2px;
}
.bnav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

[data-theme="dark"] .bnav-item, 
body.theme-deep-green .bnav-item {
    color: rgba(255, 255, 255, 0.5);
}

.bnav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bnav-item.active {
    color: var(--brand-green);
}

.bnav-cta {
    position: relative;
    top: -20px;
}

.bnav-cta-inner {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--brand-green), #164f35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(31, 164, 99, 0.3);
    margin-bottom: 4px;
    border: 4px solid var(--neutral-white);
}

[data-theme="dark"] .bnav-cta-inner,
body.theme-deep-green .bnav-cta-inner {
    border-color: var(--dark-charcoal);
}

@media (max-width: 768px) {
    /* Show bottom nav, hide sidebar */
    .bottom-nav { display: flex !important; }
    .sidebar { display: none !important; }

    /* Account for bottom nav height */
    .main-content {
        height: auto;
        padding-bottom: 90px; /* Space for bottom nav */
    }
    
    #calc-sub-tabs-desktop { display: none !important; }
    #calc-sub-tabs-mobile { display: block !important; }
}

/* Mobile Header Overrides for Billion Dollar Layout */
@media (max-width: 768px) {
    .top-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
    .header-welcome { display: none !important; }
    .header-actions .cibil-pill, .hide-mobile { display: none !important; }
    
    .mobile-logo-text { font-size: 1.3rem; font-weight: 700; color: var(--deep-green); margin-left: -5px; }
    body.theme-deep-green .mobile-logo-text { color: #FFFFFF !important; }
    [data-theme="dark"] .mobile-logo-text { color: #ffc107 !important; }
    
    /* Make sure header actions stay visible */
    .header-actions {
        display: flex;
        gap: 10px;
    }
    
    /* Main Content adjustment for top header */
    .main-content {
        margin-top: 60px; /* Space for fixed header */
    }
}

/* 13. AUTHENTICATION MODAL (V4) */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.auth-split-container {
    width: 100%;
    max-width: 450px;
    height: auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: scale(0.97) translateY(12px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

.auth-overlay.active .auth-split-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.auth-branding {
    background: var(--deep-green);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.auth-brand-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--neon-green);
    letter-spacing: -1px;
}

.auth-branding h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: white;
}

.auth-branding p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 35px;
}

.auth-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--neon-green);
    background: rgba(185, 255, 102, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
}

.auth-form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--neutral-white);
    position: relative;
}

.mobile-drag-handle {
    display: none;
}

.auth-form-container h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-glass);
}

.auth-divider span {
    padding: 0 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.auth-bio-btn {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.otp-box {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(0,0,0,0.02);
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
}

.otp-box:focus {
    border-color: var(--brand-green);
    background: white;
    box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.1);
}

.auth-resend a {
    color: var(--brand-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
}

/* Mobile Responsive - Bottom Sheet */
@media (max-width: 768px) {
    .auth-overlay {
        align-items: flex-end;
    }

    .auth-split-container {
        grid-template-columns: 1fr;
        height: auto;
        border-radius: 24px 24px 0 0;
        border: none;
        border-bottom: none;
        transform: translateY(100%); /* Start hidden below screen */
    }

    .auth-overlay.active .auth-split-container {
        transform: translateY(0); /* Slide up */
    }

    .auth-branding {
        display: none; /* Hide branding entirely on mobile to save space */
    }
    
    .auth-close-btn {
        top: 14px;
        right: 14px;
    }
    
    .auth-form-container {
        padding: 35px 25px 40px;
        border-radius: 24px 24px 0 0;
        padding-top: 50px;
    }

    .mobile-drag-handle {
        display: block;
        width: 40px;
        height: 5px;
        background: rgba(0,0,0,0.1);
        border-radius: 10px;
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Fix sidebar logo readability in light themes */
.sidebar .brand-name {
    color: #FFFFFF !important;
}
.sidebar .brand-tagline {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* V5 Feature Animations */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(185, 255, 102, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(185, 255, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(185, 255, 102, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes slideUpSlight {
    0% { transform: translateY(50px); opacity: 0; }
    50% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    animation: pulseGlowWA 2s infinite;
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 105px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}
@keyframes pulseGlowWA {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Step Progress Indicator */
.lead-step-indicator {
    width: 25px;
    height: 25px;
    background: var(--bg-color);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.lead-step-indicator.active {
    border-color: var(--brand-green);
    color: var(--brand-green);
    box-shadow: 0 0 10px rgba(31, 164, 99, 0.5);
}
.lead-step-indicator.completed {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: white;
}

/* Auth modal dark mode — full card fix */
[data-theme="dark"] .auth-form-container {
    background: #1a1a1a !important;
    color: rgba(255,255,255,0.85) !important;
}
[data-theme="dark"] .auth-split-container {
    background: #1a1a1a !important;
    border-color: rgba(255,255,255,0.1) !important;
}
[data-theme="dark"] .auth-form-container h3,
[data-theme="dark"] .auth-form-container p,
[data-theme="dark"] .auth-form-container span,
[data-theme="dark"] .auth-form-container label {
    color: rgba(255,255,255,0.85) !important;
}
[data-theme="dark"] .mobile-drag-handle {
    background: rgba(255,255,255,0.2) !important;
}
[data-theme="dark"] .auth-close-btn {
    background: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.85) !important;
}
[data-theme="dark"] .auth-form-container .form-input {
    background: rgba(255, 255, 255, 0.08);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .auth-form-container .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
/* Phone prefix box in dark mode */
[data-theme="dark"] #auth-overlay [style*="background:var(--card-bg)"],
[data-theme="dark"] #auth-overlay [style*="background: var(--card-bg)"] {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.85) !important;
    border-color: rgba(255,255,255,0.15) !important;
}
/* Login modal card dark mode */
[data-theme="dark"] #login-modal > div {
    background: #1a1a1a !important;
    border-color: rgba(255,255,255,0.1) !important;
}
[data-theme="dark"] #login-modal h3,
[data-theme="dark"] #login-modal p {
    color: rgba(255,255,255,0.85) !important;
}
/* Google button in dark mode */
[data-theme="dark"] #login-modal button:last-of-type,
[data-theme="dark"] #auth-overlay button[onclick*="Google"] {
    background: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.85) !important;
    border-color: rgba(255,255,255,0.15) !important;
}
/* Disclaimer modal dark mode */
[data-theme="dark"] #disclaimer-modal .auth-form-container {
    background: #1a1a1a !important;
}
[data-theme="dark"] #disclaimer-modal p,
[data-theme="dark"] #disclaimer-modal strong {
    color: rgba(255,255,255,0.8) !important;
}

/* ========================================= */
/* LEAD GEN MODAL — REDESIGNED               */
/* ========================================= */

.lead-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.lead-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.lead-modal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 820px;
    min-height: 540px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.45s cubic-bezier(0.16,1,0.3,1);
}
.lead-modal-overlay.active .lead-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ── Left brand panel ── */
.lead-modal-brand {
    background: linear-gradient(145deg, #0a3d26 0%, #0e5c38 50%, #0f6e42 100%);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.lead-modal-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(24,201,121,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.lead-modal-brand-inner { position: relative; z-index: 1; }
.lead-modal-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
}
.lead-modal-logo span {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.lead-modal-brand-title {
    color: #fff;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}
.lead-modal-brand-sub {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 28px;
}
.lead-modal-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.lead-modal-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 13.5px;
    font-weight: 500;
}
.lead-perk-icon {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.lead-modal-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.lead-trust-avatars {
    display: flex;
}
.lead-trust-avatars span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    margin-left: -8px;
}
.lead-trust-avatars span:first-child { margin-left: 0; }
.lead-modal-trust p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin: 0;
}
.lead-modal-trust strong { color: #fff; }

/* ── Right form panel ── */
.lead-modal-form-panel {
    background: var(--neutral-white);
    padding: 40px 36px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.lead-modal-drag-handle { display: none; }
.lead-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.07);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.lead-modal-close:hover { background: rgba(0,0,0,0.13); color: var(--text-color); }

/* Form header */
.lead-modal-form-header { margin-bottom: 24px; }
.lead-step-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--brand-green);
    margin: 0 0 6px;
}
.lead-step-title {
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 4px;
    line-height: 1.3;
}
.lead-step-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Stepper */
.lead-stepper {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 28px;
    gap: 0;
}
.lead-stepper-track {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: var(--border-glass);
    z-index: 0;
}
.lead-stepper-fill {
    height: 100%;
    background: var(--brand-green);
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}
.lead-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
    background: var(--neutral-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.lead-step-dot:not(:first-child) { margin-left: auto; }
.lead-step-dot.active {
    border-color: var(--brand-green);
    color: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(31,164,99,0.15);
}
.lead-step-dot.completed {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
}

/* Fields */
.lead-field { margin-bottom: 6px; }
.lead-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}
.lead-label-note {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}
.lead-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lead-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}
.lead-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 42px;
    border: 1.5px solid var(--border-glass);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    background: var(--bg-color);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.lead-input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(31,164,99,0.12);
}
.lead-input::placeholder { color: var(--text-muted); }
.lead-select { cursor: pointer; }
.lead-select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 11px;
    pointer-events: none;
}

/* Buttons */
.lead-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin-top: 18px;
    background: var(--brand-green);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 4px 16px rgba(31,164,99,0.35);
}
.lead-btn-primary:hover {
    background: #18b368;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(31,164,99,0.45);
}
.lead-btn-primary:active { transform: translateY(0); }
.lead-btn-submit {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    background: var(--brand-green);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(31,164,99,0.35);
}
.lead-btn-submit:hover { background: #18b368; transform: translateY(-1px); }
.lead-btn-back {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 50px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-glass);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.lead-btn-back:hover { border-color: var(--brand-green); color: var(--brand-green); }
.lead-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.lead-form-note {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lead-form-note i { color: var(--brand-green); font-size: 10px; }

/* Success */
.lead-success-state { text-align: center; padding: 12px 0; }
.lead-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(31,164,99,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
    font-size: 28px;
    margin: 0 auto 18px;
}
.lead-success-title { color: var(--brand-green); font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.lead-success-body { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }

/* Dark theme overrides */
[data-theme="dark"] .lead-modal-form-panel {
    background: #141a17;
    border-left: 1px solid rgba(255,255,255,0.06);
}
[data-theme="dark"] .lead-modal-close { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); }
[data-theme="dark"] .lead-modal-close:hover { background: rgba(255,255,255,0.13); color: #fff; }
[data-theme="dark"] .lead-input {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}
[data-theme="dark"] .lead-input:focus { border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(31,164,99,0.18); }
[data-theme="dark"] .lead-input::placeholder { color: rgba(255,255,255,0.3); }
[data-theme="dark"] .lead-step-dot { background: #141a17; border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.35); }
[data-theme="dark"] .lead-step-dot.active { background: #141a17; border-color: var(--brand-green); color: var(--brand-green); }
[data-theme="dark"] .lead-stepper-track { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .lead-btn-back { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); }
[data-theme="dark"] .lead-btn-back:hover { border-color: var(--brand-green); color: var(--brand-green); }
[data-theme="dark"] .lead-success-icon { background: rgba(31,164,99,0.18); }

/* Tablet */
@media (max-width: 768px) {
    .lead-modal-overlay { align-items: flex-end; padding: 0; }
    .lead-modal-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        border-radius: 24px 24px 0 0;
        min-height: auto;
        transform: translateY(40px) scale(1);
        max-height: 92vh;
        overflow-y: auto;
    }
    .lead-modal-overlay.active .lead-modal-card {
        transform: translateY(0) scale(1);
    }
    .lead-modal-brand { display: none; }
    .lead-modal-form-panel {
        padding: 28px 24px 36px;
        border-radius: 24px 24px 0 0;
        min-height: auto;
    }
    .lead-modal-drag-handle {
        display: block;
        width: 36px;
        height: 4px;
        background: rgba(0,0,0,0.12);
        border-radius: 2px;
        margin: 0 auto 20px;
    }
    [data-theme="dark"] .lead-modal-drag-handle { background: rgba(255,255,255,0.15); }
}

/* Small mobile */
@media (max-width: 375px) {
    .lead-modal-form-panel { padding: 24px 20px 32px; }
    .lead-step-title { font-size: 16px; }
    .lead-input { height: 46px; font-size: 13px; }
    .lead-btn-primary, .lead-btn-submit, .lead-btn-back { height: 46px; }
}

/* ========================================= */
/* PREMIUM ANIMATIONS & MICRO-INTERACTIONS   */
/* ========================================= */

/* 1. Scroll-Triggered Reveal (3D Enhanced) */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    transform-origin: center top;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 2. Hover Lift Effects (Cards) */
.glass-card, .metric-card, .trust-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.glass-card:hover, .metric-card:hover, .trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 15px 30px rgba(185, 255, 102, 0.05) !important;
}

/* 3. Button Shine & Pulse */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: buttonShine 4s infinite;
}
@keyframes buttonShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* 4. Form Input Focus Glow */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.15) !important;
}
[data-theme="dark"] .form-input:focus {
    box-shadow: 0 0 0 3px rgba(185, 255, 102, 0.15) !important;
}

/* Google Trends Dark Mode Support */
[data-theme="dark"] #google-trends-container {
    filter: invert(1) hue-rotate(180deg) contrast(1.05) saturate(1.2) !important;
}

/* Fix for Select Dropdowns in Dark Mode */
[data-theme="dark"] select.form-input {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}
[data-theme="dark"] select.form-input option {
    background-color: #111;
    color: #fff;
}

/* AI Insight Box */
.ai-insight-box {
    background: linear-gradient(145deg, rgba(185, 255, 102, 0.05), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(185, 255, 102, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease-out forwards;
}

.ai-insight-box .insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--brand-green);
    font-weight: 600;
    font-size: 14px;
}

.ai-insight-box .insight-header i {
    font-size: 16px;
}

.ai-insight-box .insight-content {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
}

/* AI Insight Box — dark mode */
[data-theme="dark"] .ai-insight-box {
    background: linear-gradient(145deg, rgba(24, 201, 121, 0.08), rgba(255,255,255,0.03));
    border-color: rgba(24, 201, 121, 0.3);
}

/* Booking Scheduler Dark Mode Fixes */
[data-theme="dark"] .booking-form-pane {
    background-color: var(--bg-glass);
}

[data-theme="dark"] .date-btn,
[data-theme="dark"] .slot-btn {
    background-color: transparent;
    color: var(--dark-charcoal);
}

[data-theme="dark"] .date-btn span.day,
[data-theme="dark"] .date-btn span.date {
    color: var(--dark-charcoal);
}

[data-theme="dark"] .date-btn.active span.day,
[data-theme="dark"] .date-btn.active span.date,
[data-theme="dark"] .date-btn:hover span.day,
[data-theme="dark"] .date-btn:hover span.date {
    color: #ffffff;
}

/* AI Coach Dark Mode Fixes */
[data-theme="dark"] .ai-coach-header {
    background-color: var(--bg-glass);
}
[data-theme="dark"] .chat-messages-area {
    background-color: rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .chat-input-row {
    background-color: var(--bg-glass);
    border-color: var(--border-glass);
}
[data-theme="dark"] .chat-input {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: var(--border-glass);
}
[data-theme="dark"] .chat-suggestions {
    background-color: var(--bg-glass);
    border-color: var(--border-glass);
}
[data-theme="dark"] .suggestion-chip {
    background-color: var(--bg-glass);
    color: var(--neon-green);
    border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .incoming .msg-bubble {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.hidden {
    display: none !important;
}

@keyframes pulse-glow {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(243,167,18,0.3)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(243,167,18,0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(243,167,18,0.3)); }
}

.pulse-glow {
    animation: pulse-glow 2s infinite ease-in-out;
}

a {

/* ═══════════════════════════════════════════════
   APPLICATION TRACKER
═══════════════════════════════════════════════ */
.tracker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(128,128,128,0.12);
    background: var(--card-bg);
    margin-bottom: 10px;
    transition: box-shadow 0.2s ease;
}
.tracker-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.tracker-status-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.tracker-info { flex: 1; min-width: 0; }
.tracker-bank { font-size: 14px; font-weight: 700; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracker-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.tracker-pill {
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.tracker-del {
    background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 6px;
    transition: color 0.2s;
}
.tracker-del:hover { color: var(--red); }

/* Status colors */
.ts-applied      { background: rgba(108,117,125,0.12); color: #6c757d; }
.ts-docs_submitted { background: rgba(243,167,18,0.12); color: #F3A712; }
.ts-under_review { background: rgba(13,110,253,0.12); color: #0d6efd; }
.ts-approved     { background: rgba(24,201,121,0.15); color: #18C979; }
.ts-rejected     { background: rgba(220,53,69,0.12); color: #dc3545; }
.ts-disbursed    { background: rgba(8,92,58,0.15); color: #085C3A; }

.ts-dot-applied       { background: #6c757d; }
.ts-dot-docs_submitted{ background: #F3A712; }
.ts-dot-under_review  { background: #0d6efd; }
.ts-dot-approved      { background: #18C979; }
.ts-dot-rejected      { background: #dc3545; }
.ts-dot-disbursed     { background: #085C3A; }

/* Status Update inline */
.tracker-status-sel {
    font-size: 12px; padding: 4px 8px; border-radius: 8px;
    border: 1px solid rgba(128,128,128,0.2); background: var(--card-bg);
    color: var(--text-color); cursor: pointer;
}

/* ═══════════════════════════════════════════════
   WHATSAPP SMART CTA
═══════════════════════════════════════════════ */
.wa-smart-btn {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: #fff; border: none; border-radius: 14px;
    padding: 13px 18px; font-size: 14px; font-weight: 600;
    cursor: pointer; width: 100%; text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.wa-smart-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); color: #fff; }
.wa-smart-btn i { font-size: 22px; }
.wa-smart-btn span { display: flex; flex-direction: column; }
.wa-smart-btn .wa-label { font-size: 13px; font-weight: 700; }
.wa-smart-btn .wa-sub   { font-size: 11px; opacity: 0.85; font-weight: 400; }

/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS FIXES (Appended)
   ========================================================================= */
@media (max-width: 768px) {
    /* 1. Reclaim horizontal space by reducing card paddings */
    .glass-card {
        padding: 20px 15px !important;
    }
    .main-form-card {
        padding: 25px 15px !important;
    }

    /* 2. Fix side-by-side squished layouts in grids */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }

    /* 3. Fix Calculator Sliders (Stack labels and inputs vertically) */
    .slider-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
        margin-bottom: 5px;
    }
    .slider-val-box {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }
    .slider-val-box input {
        width: 100%;
        text-align: right;
    }

    /* 4. Fix Calculator Breakdown & Results Grid */
    .calc-breakdown-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .calculator-results-box {
        padding: 15px !important;
    }
    /* Tab content: tighter padding so cards don't overflow */
    .tab-content-container {
        padding: 12px !important;
    }

    /* Cards must not exceed viewport */
    .glass-card {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Stack calculator action buttons vertically on mobile */
    .calc-action-btns {
        flex-direction: column !important;
    }

    /* Before/After grid — force single column (override inline style) */
    [class*="before-after"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* 5. Sub-tabs responsive layout */
    .sub-tabs {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    .sub-tab-btn {
        flex: 0 0 auto;
    }

    /* 6. Onboarding Modal adjustments */
    .onboarding-modal {
        width: 95% !important;
        padding: 25px 20px 20px !important;
    }

    /* 7. Hide or Scale Robot SVG appropriately */
    /* If Robot is used as background wrapper on desktop, ensure it doesn't break mobile */
    .robot-wrapper svg {
        max-width: 100%;
        height: auto;
    }
    
    /* 8. Fix specific input sizing */
    .form-input {
        font-size: 16px !important; /* Prevents iOS auto-zoom */
    }
    
    /* 9. Ensure full width buttons */
    .btn-full {
        width: 100% !important;
    }
}

/* Fix specific iOS rendering issues */
@media screen and (max-width: 768px) {
    input[type="number"], input[type="text"], input[type="tel"] {
        font-size: 16px !important;
    }
}

/* =========================================================================
   ELIGIBILITY CHECKER MOBILE FIXES
   ========================================================================= */
@media (max-width: 768px) {
    /* Ensure form grid is strictly single column */
    .wizard-step .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Ensure wizard action buttons span full width */
    .wizard-actions .btn {
        width: 100% !important;
        justify-content: center;
        margin-top: 10px;
    }
    .wizard-actions {
        flex-direction: column;
        width: 100%;
    }

    /* Fix the wizard steps line overlapping/width */
    .wizard-steps {
        max-width: 100% !important;
        padding: 0 10px;
    }
}

/* ═══════════════════════════════════════════════
   HERO MICROCOPY
═══════════════════════════════════════════════ */
.hero__microcopy {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.hero__microcopy i { color: var(--brand-green); font-size: 11px; }

/* ═══════════════════════════════════════════════
   TRUST METRICS BAR
═══════════════════════════════════════════════ */
.trust-metrics-bar {
    background: var(--card-bg);
    border-top: 1px solid rgba(128,128,128,0.1);
    border-bottom: 1px solid rgba(128,128,128,0.1);
    padding: 28px 20px;
}
.trust-metrics-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.trust-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 32px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.tm-num {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--brand-green);
    line-height: 1;
    letter-spacing: -1px;
}
.tm-plus {
    font-size: 0.6em;
    font-weight: 700;
    vertical-align: super;
    margin-left: 1px;
}
.tm-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 5px;
    white-space: nowrap;
}
.tm-divider {
    width: 1px;
    height: 36px;
    background: rgba(128,128,128,0.15);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .trust-metrics-inner { gap: 0; }
    .trust-metric { padding: 10px 16px; min-width: 90px; }
    .tm-divider { height: 28px; }
    .tm-num { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════
   HERO BTN ICON
═══════════════════════════════════════════════ */
.btn--primary i, .btn--outline i { margin-right: 6px; }

/* ═══════════════════════════════════════════════
   HOW IT WORKS — 6-STEP GRID
═══════════════════════════════════════════════ */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 24px;
}
.hiw-step {
    background: var(--card-bg, #fff);
    border: 1px solid rgba(128,128,128,0.1);
    border-radius: 16px;
    padding: 22px 20px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hiw-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(24,201,121,0.1);
}
.hiw-num {
    font-size: 11px;
    font-weight: 900;
    color: var(--brand-green);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    opacity: 0.7;
}
.hiw-icon {
    font-size: 26px;
    margin-bottom: 10px;
    line-height: 1;
}
.hiw-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 8px;
    line-height: 1.3;
}
.hiw-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.6;
}
.hiw-note {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-green);
    background: rgba(24,201,121,0.08);
    border-radius: 20px;
    padding: 3px 10px;
    display: inline-block;
}
@media (max-width: 768px) {
    .hiw-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .hiw-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   MOBILE STICKY CTA
═══════════════════════════════════════════════ */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    padding: 10px 16px 14px;
    background: var(--bg-color, #fff);
    border-top: 1px solid rgba(128,128,128,0.12);
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.msc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
    flex: 1;
}
.msc-btn:active { opacity: 0.85; }
.msc-primary {
    background: var(--brand-green);
    color: #fff;
    box-shadow: 0 4px 16px rgba(24,201,121,0.3);
}
.msc-call {
    background: rgba(24,201,121,0.1);
    color: var(--brand-green);
    border: 1.5px solid rgba(24,201,121,0.3);
}

/* Show sticky CTA only on mobile, only on marketing page */
@media (max-width: 768px) {
    body:not(.app-mode) .mobile-sticky-cta {
        display: flex;
    }
    /* Push bottom nav up when in app */
    body.app-mode .mobile-sticky-cta {
        display: none;
    }
}
