/**
 * Vasool Easy | iLendPro - Premium 2026 UI Design System
 * Modern Glassmorphic, High-Contrast, Fast & Responsive
 */

:root, [data-theme-color="theme-royal"] {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary: #0ea5e9;
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --dark: #0f172a;
    --light: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 14px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.07);
    --shadow: 0 10px 25px -5px rgb(0 0 0 / 0.06), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 20px 30px -10px rgb(0 0 0 / 0.12), 0 10px 15px -5px rgb(0 0 0 / 0.05);
}

[data-theme-color="theme-emerald"] {
    --primary: #059669;
    --primary-light: #10b981;
    --primary-dark: #047857;
    --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --primary-glow: rgba(16, 185, 129, 0.4);
}

[data-theme-color="theme-ocean"] {
    --primary: #0284c7;
    --primary-light: #0ea5e9;
    --primary-dark: #0369a1;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    --primary-glow: rgba(14, 165, 233, 0.4);
}

[data-theme-color="theme-crimson"] {
    --primary: #e11d48;
    --primary-light: #f43f5e;
    --primary-dark: #be123c;
    --primary-gradient: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
    --primary-glow: rgba(225, 29, 72, 0.4);
}

[data-theme-color="theme-amber"] {
    --primary: #d97706;
    --primary-light: #f59e0b;
    --primary-dark: #b45309;
    --primary-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --primary-glow: rgba(245, 158, 11, 0.4);
}

[data-theme-color="theme-midnight"] {
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
    --primary-glow: rgba(124, 58, 237, 0.45);
}

[data-theme="dark"] {
    --card-bg: #1e293b;
    --border: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --light: #0f172a;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Card System */
.card-glass {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.card-glass:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.metric-card {
    padding: 22px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
}

.metric-card .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0 4px;
    letter-spacing: -0.5px;
}

.metric-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Sidebar Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #0f172a;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.sidebar-header {
    padding: 18px 16px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 8px 10px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-heading {
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: 0.9px !important;
    color: #94a3b8 !important;
}

.sidebar-item {
    margin-bottom: 2px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9.5px 14px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: 0.15px;
    -webkit-font-smoothing: antialiased;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid transparent;
}

.sidebar-item a:hover {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.sidebar-item.active a {
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-glow), rgba(255, 255, 255, 0.06));
    border-left: 3px solid var(--primary-light);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}


.app-layout {
    display: flex;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

.navbar-top {
    height: 64px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    max-width: 100%;
}

.content-body {
    padding: 24px;
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
}

/* Bulk Collection Matrix Table */
.bulk-table-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.bulk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bulk-table th {
    background: #f8fafc;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .bulk-table th {
    background: #0f172a;
    color: #cbd5e1;
}

.bulk-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.bulk-table tr:hover {
    background-color: rgba(99, 102, 241, 0.03);
}

/* Quick Action Pill Buttons */
.btn-action-pill {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-full { background: #10b981; color: white; }
.btn-part { background: #f59e0b; color: white; }
.btn-none { background: #ef4444; color: white; }
.btn-promise { background: #0ea5e9; color: white; }
.btn-skip { background: #64748b; color: white; }

.btn-action-pill:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
    color: white;
}

/* Traffic Light Risk Badges */
.badge-risk {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-low { background: #d1fae5; color: #065f46; }
.badge-medium { background: #fef3c7; color: #92400e; }
.badge-high { background: #ffedd5; color: #9a3412; animation: pulseBadge 2s infinite; }
.badge-critical { background: #fee2e2; color: #991b1b; animation: pulseBadge 1.5s infinite; }

@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.04); }
}

/* Floating AI Chatbot Assistant System */
.ai-chat-bubble {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient) !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--primary-glow);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ai-chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.ai-chat-window {
    position: fixed;
    bottom: 96px;
    right: 26px;
    width: 380px;
    height: 520px;
    background: rgba(18, 24, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatOpen {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
    background: var(--primary-gradient);
    padding: 16px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
}

.ai-msg-bot {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.ai-msg-user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-chat-input-box {
    padding: 12px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
}

.prompt-chip {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-chip:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

/* Multi-Level Sidebar Dropdown Menus */
.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 18px;
    color: #94a3b8;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 0;
    text-align: left;
}

.sidebar-dropdown-toggle:hover, .sidebar-dropdown-toggle.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.12);
}

.sidebar-dropdown-toggle .chevron {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .chevron {
    transform: rotate(90deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 4px 0 6px 16px;
    margin: 0 0 4px 10px;
    border-left: 1.5px dashed rgba(255, 255, 255, 0.15);
}

.sidebar-submenu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-submenu li a:hover, .sidebar-submenu li.active a {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    transform: translateX(3px);
}

/* Ultra-Vibrant Colorful Gradient Cards */
.card-gradient-primary {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.card-gradient-emerald {
    background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #10b981 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.card-gradient-amber {
    background: linear-gradient(135deg, #78350f 0%, #d97706 50%, #f59e0b 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.card-gradient-purple {
    background: linear-gradient(135deg, #581c87 0%, #7e22ce 50%, #a855f7 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.card-gradient-rose {
    background: linear-gradient(135deg, #881337 0%, #e11d48 50%, #f43f5e 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.card-gradient-cyan {
    background: linear-gradient(135deg, #164e63 0%, #0891b2 50%, #06b6d4 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.card-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Glowing Border and Animation Effects */
.glow-on-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-on-hover:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Customer Avatar Circle */
.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: white;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    padding: 6px 0;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 18px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: #38bdf8;
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    color: #38bdf8;
}

.mobile-nav-center {
    position: relative;
    top: -14px;
}

.mobile-nav-center .fab-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
    border: 3px solid #0f172a;
    transition: transform 0.2s ease;
}

.mobile-nav-center:active .fab-circle {
    transform: scale(0.92);
}

/* Mobile Sidebar Drawer System */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1045;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 1050 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.4) !important;
    }
    
    .sidebar.show {
        transform: translateX(0) !important;
    }
    
    .content-body { 
        padding: 12px 12px 86px 12px !important; 
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .navbar-top {
        padding: 8px 12px !important;
        height: auto !important;
        min-height: 52px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    
    .navbar-top .btn {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
    
    .metric-card {
        padding: 16px !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
    }
    
    .metric-value {
        font-size: 22px !important;
        margin: 6px 0 2px !important;
    }
    
    .metric-card .icon-box {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    
    .card-glass {
        border-radius: 12px !important;
        padding: 14px !important;
    }
    
    /* Perfect fit for mobile columns */
    .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
        row-gap: 8px !important;
    }
    
    .row > * {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    
    /* Horizontal scroll for scheme tabs & tables without page stretch */
    .nav-pills#scheme-tabs, .custom-nav-tabs, .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .nav-pills#scheme-tabs::-webkit-scrollbar, .custom-nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .nav-pills#scheme-tabs .nav-link, .custom-nav-tabs .nav-link, .scheme-tab-pill {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .table-responsive {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0 !important;
    }
    
    .btn-group, .btn-group-sm {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    
    .ai-chat-bubble { bottom: 74px; right: 14px; width: 42px; height: 42px; font-size: 17px; }
    .ai-chat-window { width: calc(100vw - 24px); right: 12px; bottom: 124px; height: 420px; }
}

/* ==========================================================================
   2026 Executive Luxury Color Overrides (Dynamic Multi-Theme System)
   ========================================================================== */

/* Primary Buttons with Dynamic Theme Gradient & Glow */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px 0 var(--primary-glow) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--primary-gradient) !important;
    filter: brightness(0.92);
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 var(--primary-glow) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary-light) !important;
    background-color: transparent !important;
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px var(--primary-glow) !important;
    transform: translateY(-1px) !important;
}

/* Checked & Active states for Button Radio/Check Groups (Existing Account / New Account toggles) */
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
    background: var(--primary-gradient) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--primary-glow) !important;
}

.btn-check:focus + .btn-outline-primary,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem var(--primary-glow) !important;
}

/* Form Input Focus States */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 0.25rem var(--primary-glow) !important;
}

/* Installment Hero Banner */
.installment-hero-banner {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 10px 25px -5px var(--primary-glow) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.installment-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    pointer-events: none;
}

/* Vibrant Warning Gold Button */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
}

/* Vibrant Success Emerald Button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}

/* Primary Text & Badges */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
}

.bg-primary-subtle {
    background-color: var(--primary-glow) !important;
    color: var(--primary) !important;
}

/* Scheme Specific Distinct Vibrant Pills */
.scheme-tab-pill {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
}

.scheme-tab-pill:hover {
    transform: translateY(-1px);
}

.scheme-pill-daily.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

.scheme-pill-weekly.active {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

.scheme-pill-monthly.active {
    background: linear-gradient(135deg, #0d9488 0%, #10b981 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35) !important;
}

.scheme-pill-interest.active {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35) !important;
}

.scheme-pill-fd.active {
    background: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(126, 34, 206, 0.35) !important;
}

.scheme-pill-all.active {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.4) !important;
}

/* Dynamic Multi-Color Borrower Avatars */
.avatar-gradient-1 { background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; color: #fff !important; }
.avatar-gradient-2 { background: linear-gradient(135deg, #d97706, #f59e0b) !important; color: #fff !important; }
.avatar-gradient-3 { background: linear-gradient(135deg, #059669, #10b981) !important; color: #fff !important; }
.avatar-gradient-4 { background: linear-gradient(135deg, #e11d48, #f43f5e) !important; color: #fff !important; }
.avatar-gradient-5 { background: linear-gradient(135deg, #7e22ce, #a855f7) !important; color: #fff !important; }
.avatar-gradient-6 { background: linear-gradient(135deg, #0891b2, #06b6d4) !important; color: #fff !important; }

