/* ==========================================================================
   EAF CONNECT - MASTER UI/UX REVAMP (PHASE 1)
   Unified Multi-Platform Design System: Desktop Web + Mobile Handset
   Benchmark Standard: KVV & BNI Connect Global
   ========================================================================== */

:root {
    --eaf-primary: #101B35;
    --eaf-primary-dark: #0B1325;
    --eaf-primary-light: #172B50;
    --eaf-accent-blue: #172B50;
    --eaf-blue-gradient: linear-gradient(135deg, #101B35 0%, #172B50 100%);
    --eaf-accent-gold: #C6A667;
    --eaf-gold-light: #E4D4AE;
    --eaf-gold-glow: rgba(198, 166, 103, 0.25);
    
    --eaf-emerald: #0D9488;
    --eaf-emerald-bg: #F0FDFA;
    --eaf-indigo: #172B50;
    --eaf-indigo-bg: #F4F6F9;
    --eaf-purple: #7C3AED;
    --eaf-purple-bg: #F5F3FF;
    --eaf-rose: #E11D48;
    --eaf-rose-bg: #FFF1F2;
    --eaf-amber: #C6A667;
    --eaf-amber-bg: #F7F3E9;
    --eaf-teal: #0D9488;
    --eaf-teal-bg: #F0FDFA;

    --eaf-bg-main: #FAF9F6;
    --eaf-surface: #FFFFFF;
    --eaf-surface-subtle: #FAF9F6;
    --eaf-border: #E2E8F0;
    --eaf-border-subtle: #F1F5F9;
    
    --eaf-text-main: #101B35;
    --eaf-text-muted: #64748B;
    --eaf-text-light: #94A3B8;

    --eaf-font-main: 'Plus Jakarta Sans', 'Outfit', 'Manrope', system-ui, -apple-system, sans-serif;
    
    --eaf-radius-sm: 8px;
    --eaf-radius-md: 14px;
    --eaf-radius-lg: 16px;
    --eaf-radius-xl: 20px;
    
    --eaf-shadow-sm: 0 1px 3px rgba(16, 27, 53, 0.05);
    --eaf-shadow-md: 0 4px 16px rgba(16, 27, 53, 0.08);
    --eaf-shadow-lg: 0 12px 32px rgba(16, 27, 53, 0.12);
    --eaf-shadow-gold: 0 8px 20px rgba(198, 166, 103, 0.25);
}

/* Base typography enhancements */
body {
    font-family: var(--eaf-font-main);
    background-color: var(--eaf-bg-main) !important;
    color: var(--eaf-text-main);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. HERO MEMBER PROFILE CARD (KVV BENCHMARK)
   ========================================================================== */
.eaf-member-hero-card {
    background: linear-gradient(135deg, #101B35 0%, #172B50 65%, #0B1325 100%);
    border-radius: var(--eaf-radius-xl);
    padding: 24px 28px;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(16, 27, 53, 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(198, 166, 103, 0.35);
}

.eaf-member-hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(198, 166, 103, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.eaf-member-hero-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(23, 43, 80, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.eaf-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.eaf-member-meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.eaf-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.eaf-avatar-img {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    object-fit: cover;
    object-position: top center;
    border: 3px solid #C6A667;
    box-shadow: 0 4px 18px rgba(198, 166, 103, 0.28);
}

.eaf-badge-crown {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: linear-gradient(135deg, #C6A667, #A88849);
    color: #101B35;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #101B35;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.eaf-member-details h3 {
    font-family: var(--eaf-font-display);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eaf-membership-pill {
    background: rgba(198, 166, 103, 0.18);
    border: 1px solid rgba(198, 166, 103, 0.5);
    color: #E4D4AE;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.eaf-member-subtitle {
    font-size: 13px;
    color: #CBD5E1;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eaf-member-chapter-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #FFFFFF;
}

.eaf-member-biz-title {
    font-size: 13px;
    color: #94A3B8;
}

/* Profile Strength Pill in Hero */
.eaf-hero-strength-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--eaf-radius-md);
    padding: 12px 18px;
    min-width: 240px;
}

.eaf-strength-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #E2E8F0;
}

.eaf-strength-top a {
    color: #FBBF24;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: color 0.2s;
}

.eaf-strength-top a:hover {
    color: #FDE68A;
    text-decoration: underline;
}

.eaf-strength-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    overflow: hidden;
}

.eaf-strength-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #10B981);
    border-radius: 50px;
    transition: width 1s ease-in-out;
}

/* ==========================================================================
   2. HERO QUICK ACTION SLIPS (4 PROMINENT CARDS - KVV BENCHMARK)
   ========================================================================== */
.eaf-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.eaf-action-card {
    background: var(--eaf-surface);
    border-radius: var(--eaf-radius-lg);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    border: 1px solid var(--eaf-border-subtle);
    box-shadow: var(--eaf-shadow-sm);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.eaf-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.25s ease;
}

.eaf-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eaf-shadow-md);
    border-color: rgba(15, 59, 104, 0.15);
}

.eaf-action-card:hover::before {
    width: 6px;
}

.eaf-action-card:active {
    transform: scale(0.98);
}

/* Color Themes for Action Cards */
.eaf-action-referral::before { background: #2563EB; }
.eaf-action-referral .eaf-action-icon {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.eaf-action-received::before { background: #059669; }
.eaf-action-received .eaf-action-icon {
    background: linear-gradient(135deg, #10B981, #047857);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(5, 150, 105, 0.3);
}

.eaf-action-f2f::before { background: #7C3AED; }
.eaf-action-f2f .eaf-action-icon {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}

.eaf-action-tyfcb::before { background: #D97706; }
.eaf-action-tyfcb .eaf-action-icon {
    background: linear-gradient(135deg, #F59E0B, #B45309);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.3);
}

.eaf-action-visitor::before { background: #0D9488; }
.eaf-action-visitor .eaf-action-icon {
    background: linear-gradient(135deg, #14B8A6, #0F766E);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(13, 148, 136, 0.3);
}

.eaf-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.eaf-action-card:hover .eaf-action-icon {
    transform: scale(1.08) rotate(3deg);
}

.eaf-action-content {
    flex-grow: 1;
}

.eaf-action-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--eaf-text-main);
    margin-bottom: 2px;
    line-height: 1.25;
}

.eaf-action-desc {
    font-size: 11px;
    color: var(--eaf-text-muted);
    line-height: 1.3;
}

.eaf-action-arrow {
    color: var(--eaf-text-light);
    font-size: 13px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.eaf-action-card:hover .eaf-action-arrow {
    transform: translateX(3px);
    color: var(--eaf-primary);
}

/* ==========================================================================
   3. THIS WEEK'S PROGRESS (2x2 GRID - KVV BENCHMARK)
   ========================================================================== */
.eaf-progress-widget {
    background: var(--eaf-surface);
    border-radius: var(--eaf-radius-xl);
    padding: 22px;
    border: 1px solid var(--eaf-border-subtle);
    box-shadow: var(--eaf-shadow-sm);
    margin-bottom: 24px;
}

.eaf-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--eaf-border-subtle);
}

.eaf-progress-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eaf-progress-title-wrap i {
    color: var(--eaf-accent-gold);
    font-size: 18px;
}

.eaf-progress-title-wrap h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--eaf-primary);
}

.eaf-pill-tabs {
    display: inline-flex;
    background: var(--eaf-slate-100);
    padding: 3px;
    border-radius: 50px;
}

.eaf-pill-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--eaf-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.eaf-pill-btn.active {
    background: var(--eaf-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 59, 104, 0.25);
}

.eaf-progress-2x2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.eaf-stat-cell {
    background: var(--eaf-surface-subtle);
    border: 1px solid var(--eaf-border);
    border-radius: var(--eaf-radius-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.eaf-stat-cell:hover {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 59, 104, 0.06);
    border-color: #CBD5E1;
}

.eaf-stat-cell-data {
    display: flex;
    flex-direction: column;
}

.eaf-stat-cell-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--eaf-text-main);
    line-height: 1.2;
}

.eaf-stat-cell-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--eaf-text-muted);
    margin-top: 4px;
}

.eaf-stat-arrow-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.arrow-given {
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

.arrow-received {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

/* ==========================================================================
   4. BNI CONNECT SPLINE GROWTH CHART
   ========================================================================== */
.eaf-growth-card {
    background: var(--eaf-surface);
    border-radius: var(--eaf-radius-xl);
    padding: 22px;
    border: 1px solid var(--eaf-border-subtle);
    box-shadow: var(--eaf-shadow-sm);
    margin-bottom: 24px;
}

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

.eaf-growth-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--eaf-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Range Filter Pills */
.eaf-time-filter-wrap {
    display: flex;
    gap: 6px;
}

.eaf-time-chip {
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--eaf-text-muted);
    background: var(--eaf-slate-100);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.eaf-time-chip:hover {
    background: var(--eaf-border);
    color: var(--eaf-primary);
}

.eaf-time-chip.active {
    background: var(--eaf-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 59, 104, 0.2);
}

/* Chart Canvas Wrapper */
.eaf-chart-container {
    position: relative;
    width: 100%;
    min-height: 220px;
}

/* Spline Growth Linked Metric Selector Cards */
.eaf-growth-metrics-row {
    margin-top: 4px;
}

.eaf-chart-metric-tile {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.eaf-chart-metric-tile:hover {
    background: #ffffff;
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 59, 104, 0.06);
}

.eaf-chart-metric-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.eaf-chart-metric-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.eaf-chart-metric-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
}

.eaf-chart-metric-value {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

/* ==========================================================================
   5. NEXT MEETING CARD (KVV BENCHMARK)
   ========================================================================== */
.eaf-meeting-card {
    background: var(--eaf-surface);
    border-radius: var(--eaf-radius-xl);
    padding: 22px;
    border: 1px solid var(--eaf-border-subtle);
    box-shadow: var(--eaf-shadow-sm);
    margin-bottom: 24px;
}

.eaf-meeting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--eaf-surface-subtle);
    border: 1px solid var(--eaf-border);
    border-radius: var(--eaf-radius-md);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.eaf-meeting-item:last-child {
    margin-bottom: 0;
}

.eaf-meeting-item:hover {
    background: #ffffff;
    box-shadow: var(--eaf-shadow-sm);
    border-color: #CBD5E1;
}

.eaf-calendar-badge {
    background: linear-gradient(135deg, #0F3B68, #0A2540);
    color: #ffffff;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    min-width: 58px;
    flex-shrink: 0;
}

.eaf-cal-month {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #F59E0B;
    letter-spacing: 0.5px;
}

.eaf-cal-day {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.eaf-meeting-info {
    flex-grow: 1;
}

.eaf-meeting-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--eaf-text-main);
    margin-bottom: 3px;
}

.eaf-meeting-sub {
    font-size: 12px;
    color: var(--eaf-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eaf-meeting-sub span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   6. MOBILE BOTTOM NAVIGATION BAR (FIXED THUMB ZONE)
   ========================================================================== */
.eaf-bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(16, 27, 53, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid rgba(198, 166, 103, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    padding: 0 10px;
}

.eaf-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

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

.eaf-nav-tab:hover,
.eaf-nav-tab.active {
    color: #C6A667;
}

.eaf-nav-tab.active i {
    transform: translateY(-2px);
    color: #F59E0B;
}

/* Hero Center Action Button (+) */
.eaf-nav-center-btn {
    position: relative;
    top: -14px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
    border: 3px solid #0F3B68;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.eaf-nav-center-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.55);
    color: #ffffff;
}

.eaf-nav-center-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   7. QUICK SLIPS MOBILE BOTTOM SHEET MODAL
   ========================================================================== */
.eaf-bottom-sheet-modal .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.eaf-bottom-sheet-modal.show .modal-dialog {
    transform: translateY(0);
}

.eaf-bottom-sheet-content {
    border-radius: 24px 24px 0 0;
    border: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    padding-bottom: 24px;
}

.eaf-sheet-handle {
    width: 44px;
    height: 5px;
    background: #CBD5E1;
    border-radius: 10px;
    margin: 12px auto 8px;
}

.eaf-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px 20px;
}

.eaf-sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 12px;
    background: var(--eaf-surface-subtle);
    border: 1px solid var(--eaf-border);
    border-radius: var(--eaf-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.eaf-sheet-item:hover,
.eaf-sheet-item:active {
    background: #ffffff;
    border-color: var(--eaf-primary);
    transform: translateY(-2px);
    box-shadow: var(--eaf-shadow-sm);
}

.eaf-sheet-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.eaf-sheet-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--eaf-text-main);
    line-height: 1.2;
}

.eaf-sheet-sub {
    font-size: 11px;
    color: var(--eaf-text-muted);
    margin-top: 3px;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (DESKTOP vs TABLET vs MOBILE)
   ========================================================================== */
@media (min-width: 992px) {
    /* Hide Mobile Bottom Nav on Desktop */
    .eaf-bottom-nav-bar {
        display: none !important;
    }
}

@media (max-width: 991px) {
    /* Mobile Phone Top Header Refinement (Clean like reference app) */
    #page-topbar {
        left: 0 !important;
        height: 64px !important;
        background: #FFFFFF !important;
        box-shadow: 0 2px 10px rgba(15, 59, 104, 0.06) !important;
    }

    .navbar-header {
        padding: 0 16px !important;
        height: 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .navbar-brand-box {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        padding: 0 !important;
        height: 64px !important;
        background: transparent !important;
    }

    .eaf-brand-link {
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }

    .eaf-brand-logo-img {
        height: 44px !important;
        width: auto !important;
        max-width: 140px !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* Mobile Menu Toggle Button (Left side) */
    #page-topbar #vertical-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        background: #F8FAFC !important;
        color: #1E293B !important;
        border: 1px solid #E2E8F0 !important;
        font-size: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }

    #page-topbar #vertical-menu-btn:hover,
    #page-topbar #vertical-menu-btn:active {
        background: #EFF6FF !important;
        color: #0F3B68 !important;
        border-color: #BFDBFE !important;
    }

    /* Add padding so content is never covered by topbar and bottom nav */
    .page-content {
        padding-top: 74px !important;
        padding-bottom: 85px !important;
    }

    .eaf-quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .eaf-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .eaf-hero-strength-box {
        width: 100%;
    }
}

@media (min-width: 992px) {
    #page-topbar #vertical-menu-btn-mobile {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .eaf-member-hero-card {
        padding: 20px 16px;
        border-radius: var(--eaf-radius-lg);
    }

    .eaf-avatar-img {
        width: 64px;
        height: 64px;
    }

    .eaf-member-details h3 {
        font-size: 18px;
    }

    .eaf-quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .eaf-action-card {
        padding: 14px 12px;
        gap: 10px;
    }

    .eaf-action-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .eaf-action-title {
        font-size: 13px;
    }

    .eaf-action-desc {
        display: none;
    }

    .eaf-progress-2x2-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .eaf-stat-cell {
        padding: 12px 14px;
    }

    .eaf-stat-cell-val {
        font-size: 16px;
    }

    .eaf-meeting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .eaf-calendar-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 10px;
        width: auto;
    }

    .eaf-cal-month {
        font-size: 11px;
    }

    .eaf-cal-day {
        font-size: 14px;
    }

    /* Spline Growth Card Mobile Alignment */
    .eaf-growth-card {
        padding: 16px 12px;
    }

    .eaf-growth-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .eaf-growth-header h5 {
        font-size: 14px;
        line-height: 1.35;
    }

    .eaf-time-filter-wrap {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .eaf-chart-metric-tile {
        padding: 10px 10px;
        border-radius: 12px;
    }

    .eaf-chart-metric-header {
        gap: 4px;
        margin-bottom: 6px;
        min-height: 28px;
    }

    .eaf-chart-metric-title {
        font-size: 9.5px;
        letter-spacing: 0.2px;
        line-height: 1.25;
        flex: 1;
    }

    .eaf-chart-metric-badge {
        font-size: 8.5px !important;
        padding: 2px 5px !important;
    }

    .eaf-chart-metric-value {
        font-size: 14.5px;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Chapter Performance Card Mobile Alignment */
    .chapter-performance {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .chapter-performance-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 14px;
    }

    .chapter-heading {
        gap: 10px;
    }

    .chapter-heading-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .chapter-heading h4 {
        font-size: 15px;
        line-height: 1.3;
    }

    .chapter-heading span {
        font-size: 11px;
    }

    .chapter-performance-header .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }
}

/* ==========================================================================
   10. KVV & BNI GLOBAL MASTER OVERRIDES ACROSS ALL MODULES
   ========================================================================== */

/* Modern Typography Defaults */
body, h1, h2, h3, h4, h5, h6, .page-title, .user-name-text {
    font-family: var(--eaf-font-sans) !important;
}

/* Primary Button Styling */
.btn-primary {
    background-color: var(--eaf-primary) !important;
    border-color: var(--eaf-primary) !important;
    border-radius: var(--eaf-radius-md) !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(15, 59, 104, 0.2) !important;
    transition: all 0.25s ease !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--eaf-primary-hover) !important;
    border-color: var(--eaf-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 59, 104, 0.3) !important;
}

/* Profile Banner Overhaul (KVV Gold Member Standard) */
.profile-banner {
    background: linear-gradient(135deg, #0F3B68 0%, #1E293B 100%) !important;
    border: 1px solid rgba(217, 119, 6, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(15, 59, 104, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.profile-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.15), transparent 70%);
    pointer-events: none;
}

.profile-img {
    border: 3px solid #D97706 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.camera-icon {
    background: #D97706 !important;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
}

/* MITB Module Modernization */
.mitb-box {
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    background: #FFFFFF !important;
    overflow: hidden;
}

.mitb-box-header.given {
    background: linear-gradient(135deg, rgba(15, 59, 104, 0.06), rgba(15, 59, 104, 0.01)) !important;
    color: #0F3B68 !important;
    border-bottom: 2px solid #D97706 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.mitb-box-header.received {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.01)) !important;
    color: #10B981 !important;
    border-bottom: 2px solid #10B981 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.print-btn {
    border: 1px solid #0F3B68 !important;
    color: #0F3B68 !important;
    background: #FFFFFF !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
}

.print-btn:hover {
    background: #0F3B68 !important;
    color: #FFFFFF !important;
}

.mitb-columns {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    font-size: 12px !important;
    color: #64748B !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.mitb-row {
    border-bottom: 1px solid #F1F5F9 !important;
    transition: background 0.2s ease !important;
}

.mitb-row:hover {
    background: #F8FAFC !important;
}

.mitb-row .amount {
    color: #10B981 !important;
    font-weight: 700 !important;
}

/* F2F & General Modern Tables */
.modern-table-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #E2E8F0 !important;
    overflow-x: auto !important;
}

.modern-table thead {
    background: linear-gradient(135deg, #0F3B68, #1E293B) !important;
    color: #FFFFFF !important;
}

.modern-table th {
    padding: 12px 14px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    border: none !important;
}

.modern-table td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    font-size: 13px !important;
    vertical-align: middle !important;
}

.modern-table tbody tr:hover {
    background: #F8FAFC !important;
}

/* Filter Bars & Cards */
.filter-card, .filter-bar {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(15, 59, 104, 0.04) !important;
}

.filter-label {
    color: #0F3B68 !important;
    font-weight: 700 !important;
}

/* Member Directory Cards (My Chapter & Chapters) */
.member-card {
    background: #FFFFFF !important;
    border-radius: 18px !important;
    border-top: 4px solid #0F3B68 !important;
    border-left: 1px solid #E2E8F0 !important;
    border-right: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.member-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 28px rgba(15, 59, 104, 0.12) !important;
    border-top-color: #D97706 !important;
}

.member-avatar {
    border: 3px solid #D97706 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2) !important;
}

.member-name {
    color: #0F3B68 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.chapter-badge {
    background: rgba(217, 119, 6, 0.12) !important;
    color: #B45309 !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    font-size: 11px !important;
}

/* ==========================================================================
   11. EXECUTIVE KVV & BNI LUXURY SIDEBAR & TOPBAR OVERHAUL
   ========================================================================== */

/* Main Layout & Canvas */
body {
    background-color: #F8FAFC !important;
    color: #1E293B !important;
}

.main-content {
    background-color: #F8FAFC !important;
}

.page-content {
    background-color: #F8FAFC !important;
}

/* Master Executive Sidebar (KVV Theme: Pure White & Saffron-Orange Accents) */
body[data-sidebar=colored] .vertical-menu,
.vertical-menu {
    background: #FFFFFF !important;
    border-right: 1px solid #EDF2F7 !important;
    box-shadow: 2px 0 16px rgba(15, 23, 42, 0.04) !important;
}

body[data-sidebar=colored] .navbar-brand-box,
.vertical-menu .navbar-brand-box {
    background: #FFFFFF !important;
    border-bottom: 1px solid #F8FAFC !important;
    padding: 18px 20px !important;
    text-align: left !important;
}

.kvv-sidebar-brand {
    font-size: 16px;
    font-weight: 800;
    color: #EA580C;
    letter-spacing: -0.2px;
    text-decoration: none;
    line-height: 1.25;
    display: block;
}

/* Sidebar Section Headers */
#sidebar-menu .menu-title {
    color: #94A3B8 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    padding: 14px 20px 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    opacity: 0.8 !important;
}

/* Sidebar Menu Links */
#sidebar-menu ul li a {
    color: #334155 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-radius: 12px !important;
    margin: 3px 12px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    letter-spacing: 0.1px !important;
}

/* Sidebar Icons */
#sidebar-menu ul li a i {
    font-size: 17px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

/* Hover State */
#sidebar-menu ul li a:hover {
    color: #101B35 !important;
    background: rgba(198, 166, 103, 0.1) !important;
    border-color: rgba(198, 166, 103, 0.25) !important;
    transform: none !important;
    box-shadow: none !important;
}

#sidebar-menu ul li a:hover i {
    color: #C6A667 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Active State (EAF Midnight Navy & Champagne Gold) */
#sidebar-menu ul li.mm-active > a,
#sidebar-menu ul li a.active {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #101B35 0%, #172B50 100%) !important;
    border-left: 3.5px solid #C6A667 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(16, 27, 53, 0.35) !important;
}

#sidebar-menu ul li.mm-active > a i,
#sidebar-menu ul li a.active i {
    color: #C6A667 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Logout Menu Item */
#sidebar-menu ul li a.logout-menu,
#sidebar-menu ul li a.logout-menu span {
    color: #DC2626 !important;
}

#sidebar-menu ul li a.logout-menu i {
    color: #DC2626 !important;
}

#sidebar-menu ul li a.logout-menu:hover {
    background: #FEF2F2 !important;
    border-color: #FEE2E2 !important;
    color: #B91C1C !important;
}

/* Top Navbar (Pure White & Clean) */
body[data-topbar=colored] #page-topbar,
#page-topbar {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid #EDF2F7 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
    height: 70px !important;
}

.navbar-header {
    padding: 0 16px !important;
    background: #FFFFFF !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 767px) {
    .navbar-header {
        padding: 0 12px !important;
        height: 64px !important;
    }
}

/* KVV Topbar Member Info Block */
.kvv-header-user-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kvv-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover !important;
    object-position: center top !important;
    border: 1.5px solid #C6A667;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.kvv-header-avatar:hover {
    transform: scale(1.05);
}

.kvv-header-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    border: 2px solid #FFFFFF;
}

.avatar, .member-cell img, .header-profile-user, .avatar-xs img {
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 50% !important;
}

.kvv-header-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.kvv-header-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.kvv-name-link {
    color: #0F172A !important;
    text-decoration: none !important;
    font-weight: 700;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

@media (max-width: 576px) {
    .kvv-name-link {
        max-width: 120px;
        font-size: 13px;
    }
}

.kvv-header-chapter-pill {
    background: rgba(15, 59, 104, 0.08);
    color: #0F3B68;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid rgba(15, 59, 104, 0.12);
}

.kvv-header-sub {
    font-size: 11.5px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.kvv-sub-biz {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.kvv-header-sub-mobile {
    font-size: 11px;
    color: #64748B;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.kvv-role-badge {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    color: #92400E;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 9999px;
    line-height: 1.4;
    white-space: nowrap;
}

/* Header Action Buttons (Notification & Settings) */
.kvv-header-icon-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

.kvv-header-icon-btn:hover,
.kvv-header-icon-btn:active {
    background: #EFF6FF !important;
    color: #0F3B68 !important;
    border-color: #BFDBFE !important;
}

.kvv-noti-badge {
    top: 4px !important;
    right: 4px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border: 1.5px solid #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35) !important;
}

/* ==========================================================================
   TOPBAR EXECUTIVE SEARCH BAR (KVV & BNI Benchmark)
   ========================================================================== */
.eaf-search-wrapper {
    margin-right: 14px;
    padding: 14px 0;
    display: flex;
    align-items: center;
}

.eaf-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 240px;
    background: #F1F5F9;
    border: 1.5px solid #E2E8F0;
    border-radius: 50px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.eaf-search-box:focus-within {
    background: #FFFFFF;
    border-color: #0F3B68;
    box-shadow: 0 0 0 3.5px rgba(15, 59, 104, 0.12), 0 4px 14px rgba(15, 59, 104, 0.08);
    width: 290px;
}

.eaf-search-box .eaf-search-input {
    width: 100% !important;
    height: 38px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding-left: 18px !important;
    padding-right: 44px !important;
    box-shadow: none !important;
    border-radius: 50px !important;
}

.eaf-search-box .eaf-search-input::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}

.eaf-search-box .eaf-search-btn {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0F3B68 0%, #1E4E79 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    box-shadow: 0 2px 6px rgba(15, 59, 104, 0.25) !important;
    padding: 0 !important;
    font-size: 14px !important;
}

.eaf-search-box .eaf-search-btn:hover {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%) !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35) !important;
    color: #FFFFFF !important;
}

.eaf-search-box .eaf-search-btn:active {
    transform: translateY(-50%) scale(0.96) !important;
}

/* Legacy .app-search safety fallback */
.app-search .form-control {
    padding-left: 40px !important;
    padding-right: 20px !important;
    height: 38px !important;
    border-radius: 50px !important;
    background-color: #F1F5F9 !important;
    border: 1.5px solid #E2E8F0 !important;
}

.app-search span {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    line-height: 1 !important;
    font-size: 15px !important;
    color: #94A3B8 !important;
    pointer-events: none !important;
}

/* Modern Card Defaults Across All Views */
.card {
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(15, 59, 104, 0.05) !important;
    background: #FFFFFF !important;
    transition: all 0.25s ease !important;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(15, 59, 104, 0.08) !important;
}

.card-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #F1F5F9 !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
    color: #0F3B68 !important;
}

/* Form Controls & Inputs */
.form-control, .form-select {
    border-radius: 10px !important;
    border: 1px solid #CBD5E1 !important;
    font-size: 13.5px !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: #0F3B68 !important;
    box-shadow: 0 0 0 3px rgba(15, 59, 104, 0.15) !important;
}

/* ==========================================================================
   KVV & BNI CHAPTER CARDS & ROSTERS
   ========================================================================== */
.chapter-card-pro {
    background: linear-gradient(145deg, #091E36 0%, #0F3B68 60%, #152E4D 100%) !important;
    border-radius: 16px !important;
    padding: 22px !important;
    box-shadow: 0 8px 24px rgba(15, 59, 104, 0.15) !important;
    border-top: 4px solid #D97706 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: #FFFFFF !important;
}

.chapter-card-pro:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(15, 59, 104, 0.28) !important;
}

.chapter-top h4 {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
}

.location-badge {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #FDE68A !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    font-weight: 600 !important;
}

.section-label {
    color: #F59E0B !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

.stat {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    backdrop-filter: blur(4px) !important;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #D97706 !important;
}

.stat span {
    color: #CBD5E1 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
}

.stat.large h3,
.stat.small h5 {
    color: #FDE68A !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
}

.dashboard-btn {
    background: linear-gradient(135deg, #D97706, #F59E0B) !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
    transition: all 0.25s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
}

.dashboard-btn:hover {
    background: linear-gradient(135deg, #F59E0B, #FBBF24) !important;
    color: #0F172A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45) !important;
}

/* ==========================================================================
   MEMBER ROSTER CARDS & ACTIVITY METRICS
   ========================================================================== */
.member-card {
    border: 1px solid #E2E8F0 !important;
    border-top: 4px solid #0F3B68 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(15, 59, 104, 0.06) !important;
    transition: all 0.25s ease !important;
}

.member-card:hover {
    transform: translateY(-5px) !important;
    border-top-color: #D97706 !important;
    box-shadow: 0 12px 28px rgba(15, 59, 104, 0.12) !important;
}

.member-avatar {
    border: 3px solid #F59E0B !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2) !important;
}

.activity-card {
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(15, 59, 104, 0.05) !important;
}

.activity-item {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    transition: all 0.2s ease !important;
}

.activity-item:hover {
    background: #FFFFFF !important;
    border-color: #D97706 !important;
    box-shadow: 0 4px 14px rgba(15, 59, 104, 0.08) !important;
}

.activity-number {
    font-family: 'Outfit', sans-serif !important;
    color: #0F3B68 !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   PERFECT 1-LINE LUXURY REFERRAL CARD (KVV & BNI Benchmark)
   ========================================================================== */
.referral-wrapper {
    overflow-x: auto !important;
    padding-bottom: 8px !important;
}

.referral-card-row {
    width: 100% !important;
}

.referral-card-row .referral-card,
.referral-wrapper .referral-card,
.crm-list-area .referral-card,
.referral-item > .referral-card {
    display: grid !important;
    grid-template-columns: 230px 32px 210px 250px 120px 155px 95px !important;
    align-items: center !important;
    gap: 12px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    box-shadow: 0 2px 8px rgba(15, 59, 104, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 100% !important;
    min-width: 1100px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.referral-card:hover {
    transform: translateY(-2px) !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 8px 24px rgba(15, 59, 104, 0.08) !important;
    background: #FAFBFD !important;
}

/* Col 1: From Member */
.ref-col.ref-from {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 220px !important;
    min-width: 200px !important;
    max-width: 230px !important;
    flex-shrink: 0 !important;
}

/* Col 2: Directional Flow Arrow */
.ref-col.ref-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    flex-shrink: 0 !important;
}

.arrow-badge {
    width: 28px !important;
    height: 28px !important;
    background: rgba(15, 59, 104, 0.06) !important;
    color: #0F3B68 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    transition: all 0.2s !important;
}

.referral-card:hover .arrow-badge {
    background: #0F3B68 !important;
    color: #FDE68A !important;
    transform: scale(1.08) !important;
}

/* Col 3: To Member */
.ref-col.ref-to {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 200px !important;
    min-width: 180px !important;
    max-width: 210px !important;
    flex-shrink: 0 !important;
}

/* Avatars */
.ref-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: top center !important;
    background: #F1F5F9 !important;
    flex-shrink: 0 !important;
}

.border-navy {
    border: 2px solid #0F3B68 !important;
}

.border-gold {
    border: 2px solid #D97706 !important;
}

.member-meta {
    overflow: hidden !important;
    line-height: 1.3 !important;
}

.ref-name {
    font-weight: 700 !important;
    font-size: 13.5px !important;
    color: #0F172A !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ref-sub {
    font-size: 11.5px !important;
    color: #64748B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Col 4: Business & Contact */
.ref-col.ref-business {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 220px !important;
    min-width: 190px !important;
    max-width: 240px !important;
    flex-shrink: 0 !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
}

.biz-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #94A3B8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    margin-right: 4px !important;
}

.biz-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.biz-title strong {
    font-size: 13px !important;
    color: #0F3B68 !important;
    font-weight: 700 !important;
}

.biz-contact {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.contact-link {
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.contact-link:hover {
    color: #0F3B68 !important;
    text-decoration: underline !important;
}

/* Col 5: Status Badge */
.ref-col.ref-status {
    width: 130px !important;
    min-width: 120px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ref-status-pill {
    display: inline-block !important;
    padding: 5px 14px !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    user-select: none !important;
}

.ref-status-pill:hover {
    transform: translateY(-1px) !important;
    filter: brightness(0.96) !important;
}

/* Status Colors */
.ref-status-cancelled {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #DC2626 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.ref-status-completed {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

.ref-status-pending {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #D97706 !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

.ref-status-contacted {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0284C7 !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
}

.ref-status-new {
    background: rgba(15, 59, 104, 0.1) !important;
    color: #0F3B68 !important;
    border-color: rgba(15, 59, 104, 0.2) !important;
}

.ref-status-notconverted {
    background: rgba(100, 116, 139, 0.12) !important;
    color: #475569 !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
}

.ref-status-default {
    background: #F1F5F9 !important;
    color: #64748B !important;
    border-color: #E2E8F0 !important;
}

/* Col 6: Date & Time */
.ref-col.ref-date {
    width: 160px !important;
    min-width: 150px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    font-size: 11.5px !important;
    color: #64748B !important;
    font-weight: 500 !important;
}

/* Col 7: Actions */
.ref-col.ref-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 110px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.ref-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: none !important;
}

.ref-btn-view {
    background: #0F3B68 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(15, 59, 104, 0.2) !important;
}

.ref-btn-view:hover {
    background: #D97706 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
}

.ref-btn-call {
    background: rgba(15, 59, 104, 0.08) !important;
    color: #0F3B68 !important;
    border: 1px solid rgba(15, 59, 104, 0.15) !important;
}

.ref-btn-call:hover {
    background: #0F3B68 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
}

.ref-btn-wa {
    background: #25D366 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25) !important;
}

.ref-btn-wa:hover {
    background: #1EBE5D !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
}

/* Small screen scroll support */
@media (max-width: 1199px) {
    .referral-card {
        min-width: 1040px !important;
    }
}

/* ==========================================================================
   14. CHAPTER CAMPAIGNS & ADS BANNER (FULL IMAGE, UN-CROPPED LUXURY BILLBOARD)
   ========================================================================== */
.ads-campaign-wrapper {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #E2E8F0 !important;
    padding: 18px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

.ads-banner {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    background: #0B192C !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.ads-banner img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    transition: transform 0.4s ease !important;
}

.ads-carousel:hover .ads-banner img {
    transform: scale(1.006) !important;
}

.ads-banner-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 25, 44, 0.88) 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 16px 22px !important;
    color: #ffffff !important;
    pointer-events: none !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

.ads-banner-overlay h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7) !important;
}

.ads-banner-overlay p {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
    color: #E2E8F0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* ==========================================================================
   KVV MASTER DASHBOARD HERO & CORE PERFORMANCE WIDGETS
   ========================================================================== */

/* 1. KVV Banner Carousel (Top of Dashboard - Mobile & Desktop) */
.kvv-banner-wrapper {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.kvv-carousel-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border: 1px solid #E2E8F0;
    width: 100%;
}

.kvv-banner-card {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    background: #FFFFFF !important;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: block !important;
    line-height: 0;
}

.kvv-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: unset !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 16px !important;
    margin: 0 !important;
    transition: none !important;
}

@media (min-width: 992px) {
    .kvv-banner-card {
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        display: block !important;
    }
    .kvv-banner-img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: unset !important;
        object-fit: contain !important;
        display: block !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 991px) {
    .kvv-banner-card {
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        display: block !important;
    }
    .kvv-banner-img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: unset !important;
        object-fit: contain !important;
        display: block !important;
        border-radius: 14px !important;
    }
}

.kvv-banner-blur-bg {
    display: none !important;
}

.kvv-carousel-container:hover .kvv-banner-img {
    transform: none !important;
}

/* Floating Glassmorphism Arrow Buttons Inside Banner */
.kvv-carousel-arrow-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(15, 27, 53, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 5 !important;
    padding: 0 !important;
    opacity: 0.9 !important;
}

.kvv-carousel-arrow-btn:hover {
    background: #0F3B68 !important;
    border-color: #C6A667 !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1) !important;
    color: #FFFFFF !important;
}

.kvv-carousel-arrow-btn.carousel-control-prev {
    left: 12px !important;
}

.kvv-carousel-arrow-btn.carousel-control-next {
    right: 12px !important;
}

/* Carousel Indicators */
.kvv-carousel-indicators {
    margin-bottom: 8px !important;
    z-index: 6 !important;
}

.kvv-carousel-indicators button {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
}

.kvv-carousel-indicators button.active {
    width: 24px !important;
    border-radius: 10px !important;
    background-color: #F59E0B !important;
}

/* ==========================================================================
   2. HERO QUICK ACTION SLIPS (PREMIUM CARDS)
   ========================================================================== */
.kvv-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

@media (max-width: 991px) {
    .kvv-quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 18px;
    }
}

.kvv-action-slip-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none !important;
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    min-height: 108px;
}

.kvv-action-slip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(15, 59, 104, 0.1);
    background: #FFFFFF;
}

.kvv-action-slip-card:active {
    transform: scale(0.97);
}

/* Specific Accent Hover Borders */
.action-give:hover { border-color: #2563EB; }
.action-receive:hover { border-color: #059669; }
.action-f2f:hover { border-color: #7C3AED; }
.action-mitb:hover { border-color: #D97706; }

/* Top Row: Icon + Arrow */
.kvv-slip-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
}

/* Icon Wrap */
.kvv-slip-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.kvv-action-slip-card:hover .kvv-slip-icon-wrap {
    transform: scale(1.08) rotate(2deg);
}

.icon-give {
    background: rgba(37, 99, 235, 0.12);
    color: #2563EB;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.icon-receive {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.25);
}

.icon-f2f {
    background: rgba(124, 58, 237, 0.12);
    color: #7C3AED;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.icon-mitb {
    background: rgba(217, 119, 6, 0.12);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

/* Text Body */
.kvv-slip-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    line-height: 1.25;
}

.kvv-action-slip-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    white-space: normal !important;
    line-height: 1.3;
    overflow: visible;
}

.kvv-action-slip-sub {
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
    margin-top: 2px;
    white-space: normal !important;
    line-height: 1.2;
    overflow: visible;
}

/* Arrow Badge */
.kvv-action-slip-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.kvv-action-slip-card:hover .kvv-action-slip-arrow {
    background: #0F3B68;
    color: #FFFFFF;
    border-color: #0F3B68;
    transform: translateX(3px);
}

@media (max-width: 576px) {
    .kvv-action-slip-card {
        padding: 11px 11px;
        border-radius: 14px;
        min-height: 98px;
    }
    .kvv-slip-top-row {
        margin-bottom: 6px;
    }
    .kvv-slip-icon-wrap {
        width: 34px;
        height: 34px;
        font-size: 17px;
        border-radius: 9px;
    }
    .kvv-action-slip-title {
        font-size: 12.5px;
    }
    .kvv-action-slip-sub {
        font-size: 10px;
    }
    .kvv-action-slip-arrow {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

/* ==========================================================================
   3. CORE PERFORMANCE SECTION (PROGRESS & NEXT MEETING)
   ========================================================================== */
.kvv-widget-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 20px 22px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.kvv-widget-box:hover {
    box-shadow: 0 6px 18px rgba(15, 59, 104, 0.06);
}

.kvv-widget-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F3B68;
}

/* 2x2 Metric Grid */
.kvv-progress-2x2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.kvv-progress-cell {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 94px;
    transition: all 0.2s ease;
}

.kvv-progress-cell:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    box-shadow: 0 4px 14px rgba(15, 59, 104, 0.06);
}

.cell-inbound:hover { border-color: #10B981; }
.cell-outbound:hover { border-color: #3B82F6; }

.kvv-progress-cell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kvv-progress-number {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
}

.kvv-currency {
    font-size: 17px;
    font-weight: 700;
    color: #0F3B68;
    margin-right: 2px;
}

.kvv-arrow-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.kvv-arrow-box.arrow-inbound {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #059669;
}

.kvv-arrow-box.arrow-outbound {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #2563EB;
}

.kvv-progress-caption {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    margin-top: 6px;
}

@media (max-width: 576px) {
    .kvv-widget-box {
        padding: 16px 14px;
        border-radius: 16px;
    }
    .kvv-progress-cell {
        padding: 10px 12px;
        min-height: 84px;
    }
    .kvv-progress-number {
        font-size: 18px;
    }
    .kvv-progress-caption {
        font-size: 11px;
    }
}

/* Next Meeting Widget */
.kvv-next-meeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #EFF6FF;
    color: #0F3B68;
    border: 1px solid #BFDBFE;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
}

.kvv-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563EB;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulse-dot 1.8s infinite;
}

.kvv-meeting-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kvv-meeting-row-inline {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.kvv-meeting-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1E293B;
}

.kvv-meeting-point i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(15, 59, 104, 0.08);
    color: #0F3B68;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

/* Chapter KPI Grid Mobile Fixes */
@media (max-width: 576px) {
    .chapter-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .chapter-kpi-card:last-child {
        grid-column: span 2;
    }
}

/* ==========================================================================
   4. MOBILE BOTTOM NAVIGATION DOCK & SAFE AREA
   ========================================================================== */
.eaf-bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(198, 166, 103, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.eaf-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px 0;
}

.eaf-nav-tab i {
    font-size: 19px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.eaf-nav-tab:hover,
.eaf-nav-tab.active {
    color: #C6A667;
}

.eaf-nav-tab.active i {
    transform: translateY(-2px);
    color: #F59E0B;
}

.eaf-nav-tab.active span {
    color: #FFFFFF;
    font-weight: 700;
}

/* Hero Center Action Button (+) */
.eaf-nav-center-btn {
    position: relative;
    top: -14px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
    border: 3.5px solid #0F172A;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.eaf-nav-center-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.7);
    color: #ffffff;
}

.eaf-nav-center-btn:active {
    transform: scale(0.94);
}

/* Safe area padding on mobile content */
@media (max-width: 991px) {
    .page-content {
        padding-top: 76px !important;
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 15px)) !important;
    }
}

@media (min-width: 992px) {
    .ref-mobile-card {
        display: none !important;
    }
    .ref-header-row {
        display: grid !important;
        grid-template-columns: 220px 36px 200px 1fr 120px 160px 110px !important;
        align-items: center !important;
        gap: 12px !important;
        background: #F8FAFC !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 10px !important;
        padding: 10px 16px !important;
        width: 100% !important;
        min-width: 1050px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #64748B !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
        white-space: nowrap !important;
    }
    .referral-card,
    .ref-card-row,
    .ref-grid-row {
        display: grid !important;
        grid-template-columns: 220px 36px 200px 1fr 120px 160px 110px !important;
        align-items: center !important;
        gap: 12px !important;
        background: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 12px !important;
        padding: 0 16px !important;
        box-shadow: 0 2px 8px rgba(15, 59, 104, 0.04) !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        width: 100% !important;
        min-width: 1050px !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .referral-card:hover {
        transform: translateY(-2px) !important;
        border-color: #CBD5E1 !important;
        box-shadow: 0 8px 24px rgba(15, 59, 104, 0.08) !important;
        background: #FAFBFD !important;
    }
}

@media (max-width: 991px) {
    .referral-card,
    .ref-card-row,
    .ref-grid-row,
    .ref-header-row {
        display: none !important;
    }
    .referral-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        padding-bottom: 0 !important;
    }
    /* Mobile Sidebar Drawer Elevation & Smooth Touch */
    .vertical-menu {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 285px !important;
        max-width: 82vw !important;
        z-index: 1060 !important;
        background: #FFFFFF !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2) !important;
        pointer-events: auto !important;
    }
    body.sidebar-enable .vertical-menu {
        display: block !important;
        pointer-events: auto !important;
    }
    body.sidebar-enable .eaf-bottom-nav-bar {
        pointer-events: none !important;
        opacity: 0.35 !important;
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1055;
    }
    body.sidebar-enable .sidebar-backdrop {
        display: block !important;
    }
    .vertical-menu * {
        pointer-events: auto !important;
    }
    #sidebar-menu ul li a {
        position: relative !important;
        z-index: 1065 !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }
}

/* ==========================================================================
   REF MOBILE CARD UI (Zero Horizontal Scroll + Instant Actions)
   ========================================================================== */
.ref-mobile-card {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 14px 14px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
    gap: 12px !important;
}

.ref-mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.ref-mob-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}

.ref-mob-status-pill:hover {
    transform: scale(1.04);
}

.ref-mob-date {
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.ref-mob-flow-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 12px;
    gap: 8px;
}

.ref-mob-member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.ref-mob-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
}

.ref-mob-avatar.from-avatar {
    border: 2px solid #0F3B68;
}

.ref-mob-avatar.to-avatar {
    border: 2px solid #D97706;
}

.ref-mob-member-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.ref-mob-tag {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ref-mob-tag.tag-from {
    color: #0F3B68;
}

.ref-mob-tag.tag-to {
    color: #D97706;
}

.ref-mob-member-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ref-mob-member-sub {
    font-size: 10.5px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ref-mob-flow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F3B68;
    font-size: 12px;
    flex-shrink: 0;
}

.ref-mob-business-box {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 9px 12px;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #0F3B68;
}

.ref-mob-business-label {
    font-size: 9px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ref-mob-business-desc {
    font-size: 12.5px;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.35;
    word-break: break-word;
}

.ref-mob-action-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #E2E8F0;
}

.ref-mob-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 4px;
}

.ref-mob-btn i {
    font-size: 16px;
}

.ref-mob-btn.btn-call {
    background: rgba(2, 132, 199, 0.1);
    color: #0284C7;
    border: 1px solid rgba(2, 132, 199, 0.25);
}

.ref-mob-btn.btn-call:hover,
.ref-mob-btn.btn-call:active {
    background: #0284C7;
    color: #FFFFFF;
}

.ref-mob-btn.btn-wa {
    background: rgba(37, 211, 102, 0.12);
    color: #16A34A;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.ref-mob-btn.btn-wa:hover,
.ref-mob-btn.btn-wa:active {
    background: #25D366;
    color: #FFFFFF;
}

.ref-mob-btn.btn-details {
    background: rgba(15, 59, 104, 0.1);
    color: #0F3B68;
    border: 1px solid rgba(15, 59, 104, 0.25);
}

.ref-mob-btn.btn-details:hover,
.ref-mob-btn.btn-details:active {
    background: #0F3B68;
    color: #FFFFFF;
}

.ref-mob-btn.btn-status {
    background: rgba(217, 119, 6, 0.1);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.ref-mob-btn.btn-status:hover,
.ref-mob-btn.btn-status:active {
    background: #D97706;
    color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE TABLE WRAPPERS (MITB, F2F, Attendance, Visitors)
   ========================================================================== */
.modern-table-wrapper,
.table-responsive,
.mitb-table-card .table-responsive,
.crm-list-area {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 14px;
}

@media (max-width: 991px) {
    .crm-list-area {
        overflow-x: visible !important;
    }
}




