


/* ==========================================================================
   KENZEN AI - Ultra-Modern Fintech Design System v5
   Executive Light Theme • Fixed Viewport Layout • Floating Glass Nav
   ========================================================================== */

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

:root {
    --bg-main: #f4f6fc;
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-input: #f1f5f9;
    
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-subtle: rgba(226, 232, 240, 0.7);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 10px 25px rgba(16, 185, 129, 0.35);
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #cbd5e1;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Smartphone Container Frame */
.phone-frame {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    max-height: 932px;
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
    .phone-frame {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (min-width: 481px) {
    .phone-frame {
        border-radius: 40px;
        margin: 16px 0;
        border: 8px solid #1e293b;
    }
}

/* App Header */
.app-header {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
    background: rgba(244, 246, 252, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-img {
    height: 34px;
    width: 34px;
    object-fit: contain;
    border-radius: 10px;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

/* Tab Views - Scroll Internally */
.tab-view {
    display: none;
    flex: 1;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 100px 16px;
}

.tab-view.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

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

/* Auth View */
#authView.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 32px 24px;
    text-align: center;
    overflow-y: auto;
}

#registerView.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.auth-logo {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.4;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-field {
    width: 100%;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-size: 0.92rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Buttons */
.btn-primary {
    width: 100%;
    height: 52px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    width: 100%;
    height: 50px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--text-light);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 8px;
    margin-top: 10px;
}

/* Dashboard Greeting */
.dash-greeting {
    margin-bottom: 16px;
}

.dash-greeting h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dash-greeting p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kpi-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.kpi-card.vat .kpi-icon-box { background: #e0f2fe; color: #0284c7; }
.kpi-card.budget .kpi-icon-box { background: #fef3c7; color: #d97706; }
.kpi-card.count .kpi-icon-box { background: #f3e8ff; color: #9333ea; }

.kpi-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.kpi-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}

.kpi-sub {
    font-size: 0.68rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Performance Visual Chart Card */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-md);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.chart-bars-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 135px;
    padding: 14px 4px 6px 4px;
    border-bottom: 1px solid var(--border-color);
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.bar-amount-tag {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.bar-pill {
    width: 20px;
    min-height: 12px;
    background: linear-gradient(180deg, #34d399 0%, #a7f3d0 100%);
    border-radius: 8px 8px 4px 4px;
    transition: height 0.5s ease;
}

.bar-pill.active {
    background: linear-gradient(180deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.chart-month {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Budget Progress Card */
.budget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-md);
}

.budget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.budget-title {
    font-size: 0.88rem;
    font-weight: 700;
}

.budget-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.budget-badge.warning { background: #fef3c7; color: #d97706; }
.budget-badge.danger { background: #ffe4e6; color: #e11d48; }

.budget-bar-track {
    width: 100%;
    height: 10px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.budget-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.budget-progress-fill.warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.budget-progress-fill.danger { background: linear-gradient(90deg, #f43f5e, #fb7185); }

.budget-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.see-all-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Receipt Cards */
.receipt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.receipt-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.receipt-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.receipt-info {
    flex: 1;
    min-width: 0;
}

.receipt-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.receipt-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.receipt-amount-block {
    text-align: right;
    flex-shrink: 0;
}

.receipt-amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.badge-validated { background: #dcfce7; color: #15803d; }
.badge-manual { background: #fef3c7; color: #b45309; }

/* Vault Search & Chips */
.search-bar {
    position: relative;
    margin-bottom: 14px;
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    height: 46px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding-left: 40px;
    padding-right: 14px;
    font-size: 0.88rem;
    outline: none;
    box-shadow: var(--shadow-sm);
}

.search-input:focus { border-color: var(--primary); }

.chip-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.chip-bar::-webkit-scrollbar { display: none; }

.chip-btn {
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.chip-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Reports Section */
.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.report-summary-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.report-period-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.report-total-big {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.report-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    color: var(--text-muted);
}

.report-detail-val {
    font-weight: 700;
    color: var(--text-main);
}

.export-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-btn {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.export-btn.pdf { background: var(--primary-gradient); color: #ffffff; box-shadow: var(--shadow-glow); }
.export-btn.csv { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); }
.export-btn.whatsapp { background: #25d366; color: #ffffff; box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); }

/* Settings */
.setting-group {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child { border-bottom: none; }

.setting-text h4 { font-size: 0.9rem; font-weight: 700; }
.setting-text p { font-size: 0.76rem; color: var(--text-muted); }

.setting-input {
    width: 90px;
    height: 38px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 10px;
    text-align: right;
    font-weight: 700;
    font-size: 0.88rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }

/* Floating Sleek Bottom Navigation Bar - Absolute Pinned */
.bottom-nav {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
    width: auto;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 100;
}

body.in-auth .bottom-nav {
    display: none !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-light);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-item i {
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.nav-item.active { color: var(--primary-dark); }
.nav-item.active i { transform: translateY(-2px); color: var(--primary); }

/* Central Action (+) Button */
.central-add-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    cursor: pointer;
    margin-top: -24px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid #ffffff;
}

.central-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

/* Bottom Sheet Modals */



/* ==========================================================================
   UNIVERSAL RESPONSIVE BREAKPOINTS (ALL PHONES & TABLETS)
   ========================================================================== */

/* Small Phones (iPhone SE, Galaxy A series <= 360px) */
@media (max-width: 360px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .kpi-value {
        font-size: 1.15rem;
    }
    .header-title {
        font-size: 1.1rem;
    }
    .bottom-sheet {
        padding: 16px 12px 32px 12px;
    }
}

/* All Smartphones (iPhone 12/13/14/15/16 Pro, Galaxy S21/S22/S23/S24, Pixel) */
@media (max-width: 480px) {
    body {
        background-color: var(--bg-main);
    }
    .phone-frame {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin: 0;
    }
    .bottom-nav {
        position: fixed;
        bottom: 14px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        margin: 0 auto;
        z-index: 100;
    }
}

/* Tablets (iPad Mini, iPad Air, iPad Pro, Galaxy Tab 481px - 1024px) */
@media (min-width: 481px) and (max-width: 1024px) {
    body {
        background-color: #cbd5e1;
        padding: 20px 0;
    }
    .phone-frame {
        width: 100%;
        max-width: 460px;
        height: 90vh;
        max-height: 900px;
        border-radius: 36px;
        border: 8px solid #1e293b;
        box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    }
    .bottom-nav {
        position: absolute;
        bottom: 14px;
        left: 16px;
        right: 16px;
        width: auto;
    }
}

@media (min-width: 1025px) {
    body {
        background-color: #cbd5e1;
        padding: 20px 0;
    }
    .phone-frame {
        width: 100%;
        max-width: 520px;
        height: 90vh;
        max-height: 900px;
        border-radius: 36px;
        border: 8px solid #1e293b;
        box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    }
    .bottom-nav {
        position: absolute;
        bottom: 14px;
        left: 16px;
        right: 16px;
        width: auto;
    }
}


body.modal-open {
    overflow: hidden !important;
}

/* ===== DEFINITIVE MOBILE MODAL RULES ===== */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.bottom-sheet-overlay.active {
    display: flex !important;
    animation: fadeInOverlay 0.25s ease-out;
}

.bottom-sheet {
    position: relative;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 32px 32px 0 0;
    padding: 24px 20px 48px 20px;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.3);
    z-index: 300;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0;
    animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-handle {
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 10px;
    margin: 0 auto 20px auto;
}

.sheet-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    text-align: center;
}

/* Tablet: center the sheet */
@media (min-width: 500px) {
    .bottom-sheet {
        min-width: 460px;
        max-width: 480px;
        margin: 0 auto;
        border-radius: 32px;
        bottom: 16px;
    }
}

/* iOS input zoom prevention */
input, select, textarea {
    font-size: 16px !important;
}


/* ===== 2026 NEXT-GEN GLASSMORPHISM MOBILE MODALS ===== */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}





/* Duplicate .bottom-sheet and titles removed */

/* Next-Gen Choice Cards */
.option-card-nextgen {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.option-card-nextgen:active {
    transform: scale(0.98);
}

.option-card-nextgen.scan {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1.5px solid #6ee7b7;
}

.option-card-nextgen.manual {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px solid #fde68a;
}

.option-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.option-icon-box.scan {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.option-icon-box.manual {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}


/* ===== STYLISH EMPTY STATE CONTAINER ===== */
.empty-state {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
    text-align: center !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1.5px dashed #cbd5e1 !important;
    color: #64748b !important;
    margin: 20px 0 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03) !important;
}

.empty-state i {
    font-size: 2.4rem !important;
    color: #94a3b8 !important;
    margin-bottom: 12px !important;
}

.empty-state p {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    color: #475569 !important;
}


/* ===== DEFINITIVE BODY-LEVEL MOBILE MODALS ===== */




/* Duplicate .bottom-sheet removed */


/* ===== SCREENSHOT FIXES FOR MOBILE SAFARI & CHROME ===== */
html, body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #0f172a !important;
}





/* Duplicate .bottom-sheet removed */

.form-textarea {
    width: 100% !important;
    min-height: 70px !important;
    padding: 12px !important;
    border-radius: 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}


/* ===== 2026 STUNNING EXECUTIVE FINTECH DESIGN SYSTEM ===== */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #ecfdf5;
    --secondary: #64748b;
    --accent-amber: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-rose: #f43f5e;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f4f6fc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased !important;
}

/* Header Luxury Styling */
.app-header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    height: 60px !important;
    padding: 0 18px !important;
}

.header-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.5px !important;
    background: linear-gradient(135deg, #0f172a, #10b981) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* KPI Cards Refinement */
.kpi-card {
    background: var(--card-bg) !important;
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
    padding: 16px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.kpi-value {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.45rem !important;
    letter-spacing: -0.5px !important;
    color: var(--text-dark) !important;
}

/* Form Inputs Tactile Polish */
.input-field, .form-select, .form-textarea {
    width: 100% !important;
    font-size: 16px !important;
    border-radius: 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 12px 14px !important;
    color: var(--text-dark) !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.input-field:focus, .form-select:focus, .form-textarea:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12) !important;
}

/* Primary Button Gloss */
.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-radius: 16px !important;
    height: 48px !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3) !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-primary:active {
    transform: scale(0.98) !important;
}

.btn-secondary {
    background: #f8fafc !important;
    color: #475569 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border-radius: 16px !important;
    height: 48px !important;
    border: 1.5px solid #cbd5e1 !important;
    cursor: pointer !important;
}

/* Floating Navigation Capsule */
.bottom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15) !important;
}

.central-add-btn {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45) !important;
}


/* ===== 100% BULLETPROOF RECEIPT CARD TOUCH EVENTS ===== */
.receipt-card {
    cursor: pointer !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.15) !important;
}

.receipt-card .receipt-icon-wrapper,
.receipt-card .receipt-info,
.receipt-card .receipt-amount-block {
    pointer-events: none;
}

#receiptDetailModal {
    z-index: 300;
}

#receiptDetailModal .bottom-sheet {
    z-index: 301;
}


/* ===== 100% BULLETPROOF IOS SAFARI ANTI-ZOOM RULE ===== */
input, select, textarea, .input-field, .form-select, .form-textarea {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100% !important;
}


/* ===== 2026 EXECUTIVE MOBILE UX DELIGHT & CATEGORY BADGES ===== */
@keyframes laserPulse {
    0%, 100% { opacity: 0.4; transform: translateY(-50%); }
    50% { opacity: 1; transform: translateY(50%); }
}

.laser-beam {
    animation: laserPulse 2s ease-in-out infinite !important;
}

.budget-progress-fill {
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Category Color Badges */
.badge-cat-restaurant { background: #dcfce7 !important; color: #15803d !important; border: 1px solid #bbf7d0 !important; }
.badge-cat-hotel { background: #dbeafe !important; color: #1e40af !important; border: 1px solid #bfdbfe !important; }
.badge-cat-transport { background: #f3e8ff !important; color: #6b21a8 !important; border: 1px solid #e9d5ff !important; }
.badge-cat-carburant { background: #fef3c7 !important; color: #92400e !important; border: 1px solid #fde68a !important; }
.badge-cat-fournitures { background: #ffe4e6 !important; color: #9f1239 !important; border: 1px solid #fecdd3 !important; }
.badge-cat-autre { background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #e2e8f0 !important; }

/* Micro-Interactions */
.receipt-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
}

.chip-btn.active {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px) !important;
}


/* ===== 100% BULLETPROOF BOTTOM NAV TOUCH EVENTS ===== */
.bottom-nav {
    position: fixed !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 440px !important;
    height: 64px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 100 !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

.nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.nav-item.active {
    color: #10b981 !important;
    font-weight: 700 !important;
}

.nav-item * {
    pointer-events: none !important;
}

.central-add-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45) !important;
    cursor: pointer !important;
    margin: 0 6px !important;
    flex-shrink: 0 !important;
    touch-action: manipulation !important;
}

.central-add-btn * {
    pointer-events: none !important;
}


/* ===== BULLETPROOF BUTTON TOUCH & POINTER RULES ===== */
.btn-primary, .btn-secondary, .btn-link, #loginBtn, #registerBtn, #guestDemoBtn, #authAdminSecretBtn {
    cursor: pointer !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.btn-primary *, .btn-secondary *, .btn-link * {
    pointer-events: none !important;
}


/* ===== EXECUTIVE ADMIN PORTAL STYLING ===== */
#adminUserTableBody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

#adminUserTableBody tr:hover {
    background: #f8fafc !important;
}

#adminUserTableBody td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* ===== RECEIPT CARD TOUCH & CLICK RULES ===== */
.receipt-card {
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.receipt-card .receipt-icon-wrapper,
.receipt-card .receipt-info,
.receipt-card .receipt-amount-block {
    pointer-events: none;
}

/* ===== REAL MOBILE DEVICE FULLSCREEN ===== */
@media screen and (max-width: 768px) {
    body {
        padding: 0 !important;
        margin: 0 !important;
        background: #f8fafc !important;
    }

    .phone-frame {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding-bottom: 80px !important;
    }

    .bottom-nav {
        width: 94% !important;
        bottom: 12px !important;
        border-radius: 24px !important;
    }
}

/* ===== MISSING CSS CLASSES ===== */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 4px;
}

#adminView {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #ffffff;
}

.admin-table th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 800;
    color: #334155;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: 0.02em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 14px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tr:hover {
    background: #f8fafc;
}

.admin-user-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
    #adminView .kpi-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
    }
    #adminUserCardsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (min-width: 1024px) {
    #adminUserCardsGrid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
}

.scanner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    min-height: 160px;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content-padding {
    padding: 16px;
}

.detail-merchant-big {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.detail-date-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 2px;
}

.detail-amount-hero {
    font-size: 1.8rem;
    font-weight: 800;
    color: #10b981;
    text-align: center;
    margin: 16px 0;
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

.option-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.option-text p {
    font-size: 0.78rem;
    color: #64748b;
}

.camera-reticle {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 20px auto;
}

.reticle-tl, .reticle-tr, .reticle-bl, .reticle-br {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #10b981;
}
.reticle-tl { top: 0; left: 0; border-top: 3px solid; border-left: 3px solid; }
.reticle-tr { top: 0; right: 0; border-top: 3px solid; border-right: 3px solid; }
.reticle-bl { bottom: 0; left: 0; border-bottom: 3px solid; border-left: 3px solid; }
.reticle-br { bottom: 0; right: 0; border-bottom: 3px solid; border-right: 3px solid; }

.scanner-guide-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
}

/* ===== MODAL HEADER & CLOSE BUTTON ===== */
.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    padding: 4px;
}

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

button * { pointer-events: none !important; }

/* ===== HIGHEST PRIORITY Z-INDEX STACKING FOR OVERLAYS ===== */
#receiptDetailModal {
    z-index: 999999 !important;
}

#actionConfirmModal {
    z-index: 1000000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

#actionConfirmModal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#actionConfirmModal .bottom-sheet {
    z-index: 1000001 !important;
    position: relative !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4) !important;
}

#financialImpactHUD {
    z-index: 1000000 !important;
}

.toast-container {
    z-index: 10000000 !important;
}

/* VIP Executive Digital Ticket Card Styling */
.digital-ticket-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.digital-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5) !important;
}

/* Pulsing Green Status Indicator */
.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    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);
    }
}

/* Glassmorphism Ultra-Thin Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.6);
}

/* Enhanced KPI Card Glow & Transitions */
.kpi-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.kpi-card:hover {
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08), 0 0 15px rgba(16, 185, 129, 0.15) !important;
}

/* Enhanced Receipt Card Hover */
.receipt-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.receipt-card:hover {
    transform: translateX(4px) !important;
    border-left: 4px solid #10b981 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

/* Smooth Interactive Buttons */
.btn-primary {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-primary:active {
    transform: scale(0.97) !important;
}
.btn-secondary:active {
    transform: scale(0.97) !important;
}


/* FULL-BLEED MOBILE SCROLLING & OVERFLOW FIX FOR LANDING & AUTH */
body.in-auth,
body.in-auth html {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    background-color: #0f172a !important;
}

body.in-auth .phone-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.in-auth #landingView,
body.in-auth #authView {
    overflow-y: visible !important;
    height: auto !important;
    min-height: 100vh !important;
    padding-bottom: 120px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .phone-frame {
        max-width: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}


/* =========================================================================
   ULTIMATE MOBILE FULL SCROLL & UNRESTRICTED OVERFLOW FOR LANDING SITE
   ========================================================================= */
body.in-auth,
html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
}

body.in-auth .phone-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.in-auth #landingView,
body.in-auth #authView {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 100vh !important;
    padding-bottom: 140px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    body.in-auth {
        background-color: #0f172a !important;
    }
    .phone-frame {
        max-width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

/* OCR Progress Bar */
#ocrProgressContainer {
    padding: 0 4px;
}
#ocrProgressBar {
    transition: width 0.3s ease;
}


/* ==========================================================================
   PUBLIC NAVBAR & DESKTOP PRESENTATION DESIGN SYSTEM (V2026)
   ========================================================================== */
.public-navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.public-navbar-container {
    width: 100%;
    max-width: 1240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.public-navbar-brand img {
    height: 38px;
    width: 38px;
    border-radius: 12px;
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.public-navbar-brand .brand-title {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.public-navbar-links {
    display: none;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 4px;
}

.public-nav-link:hover {
    color: #34d399;
    transform: translateY(-1px);
}

.public-navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 960px) {
    .public-navbar-links {
        display: flex;
    }
    .public-mobile-hamburger {
        display: none !important;
    }
    .public-desktop-cta {
        display: inline-flex !important;
    }
}

@media (max-width: 959px) {
    .public-navbar-links {
        display: none !important;
    }
    .public-desktop-cta {
        display: none !important;
    }
    .public-mobile-hamburger {
        display: inline-flex !important;
    }
}

/* ==========================================================================
   DESKTOP RESPONSIVE LAYOUT FOR LANDING PAGE
   ========================================================================== */
.landing-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px 80px 16px;
    box-sizing: border-box;
}

.landing-hero-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border-radius: 32px;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.5);
    padding: 36px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.landing-hero-mockup {
    display: none;
    position: relative;
    justify-content: center;
    align-items: center;
}

@media (min-width: 960px) {
    .landing-hero-card {
        padding: 56px 48px;
    }
    .landing-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 48px;
    }
    .landing-hero-content {
        text-align: left !important;
    }
    .landing-hero-title {
        font-size: 2.75rem !important;
        line-height: 1.15 !important;
    }
    .landing-hero-sub {
        font-size: 1.08rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .landing-hero-pills {
        justify-content: flex-start !important;
    }
    .landing-hero-buttons {
        flex-direction: row !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .landing-hero-mockup {
        display: flex;
    }
}

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

@media (min-width: 768px) {
    .landing-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.landing-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 600px) {
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .landing-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.landing-faq-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

@media (min-width: 960px) {
    .landing-faq-contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}

/* ==========================================================================
   APP VS PUBLIC BODY WORKSPACE STYLING
   ========================================================================== */
body.in-auth {
    background-color: #0f172a !important;
    display: block !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.in-auth .phone-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.in-auth #landingView,
body.in-auth #authView,
body.in-auth #registerView {
    overflow: visible !important;
    height: auto !important;
    min-height: calc(100vh - 72px) !important;
    width: 100% !important;
    padding-bottom: 60px !important;
    box-sizing: border-box !important;
}

/* Logged-In App Mode: Clean Centered Executive Container on Desktop */
@media (min-width: 769px) {
    body:not(.in-auth) {
        background-color: #0f172a !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 100vh !important;
        padding: 16px 0 !important;
    }
    body:not(.in-auth) .phone-frame {
        width: 100% !important;
        max-width: 440px !important;
        height: 92vh !important;
        max-height: 900px !important;
        background-color: var(--bg-main) !important;
        border-radius: 36px !important;
        box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5) !important;
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
        overflow: hidden !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
    }
}


/* ==========================================================================
   NEXT-GEN FINTECH LANDING 2026 DESIGN SYSTEM
   ========================================================================== */

@keyframes float3D {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 50px rgba(16, 185, 129, 0.45); }
    100% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.2); }
}

.hero-3d-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    animation: float3D 6s ease-in-out infinite;
}

.hero-3d-visual-img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: block;
    transition: transform 0.3s ease;
}

.hero-3d-visual-img:hover {
    transform: scale(1.02);
}

/* Logos & Compatibility Strip */
.compatibility-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-bottom: 40px;
}

.compat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.compat-badge:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
    transform: translateY(-2px);
}

/* Interactive ROI Calculator */
.roi-calculator-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    border-radius: 30px;
    padding: 36px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin-bottom: 48px;
}

.roi-slider-container {
    margin: 24px 0;
}

.roi-range-input {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #334155;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    accent-color: #10b981;
}

.roi-metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .roi-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.roi-metric-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 18px 14px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.roi-metric-box:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.4);
}

.roi-metric-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: #34d399;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.roi-metric-lbl {
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bento Grid Architecture */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .bento-card-span-2 {
        grid-column: span 2;
    }
    .bento-card-span-3 {
        grid-column: span 3;
    }
}

.bento-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 28px 24px;
    color: #ffffff;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.bento-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 48px;
}

@media (min-width: 800px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   BULLETPROOF MOBILE HAMBURGER DRAWER SYSTEM
   ========================================================================== */
#mobileDrawerOverlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

#mobileDrawerOverlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#mobileDrawerContent {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100% !important;
    background: #0f172a !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 24px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6) !important;
    box-sizing: border-box !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1000000 !important;
}

#mobileDrawerOverlay.active #mobileDrawerContent {
    transform: translateX(0) !important;
}

/* =========================================================================
   B2B MULTI-TENANT ENTERPRISE STYLES
   ========================================================================= */

/* Master Admin & Company Admin Views */
#masterAdminView,
#companyAdminView {
    padding-bottom: 80px;
}

#masterAdminView table,
#companyAdminView table {
    width: 100%;
    border-collapse: collapse;
}

#masterAdminView th,
#companyAdminView th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Responsive table scroll on mobile */
@media (max-width: 640px) {
    #masterAdminView table,
    #companyAdminView table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* Scope badges */
.scope-badge-pro {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.scope-badge-perso {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

/* Submit to manager button */
.btn-submit-manager {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-submit-manager:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-submit-manager:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: default;
    box-shadow: none;
    transform: none;
}

/* Submitted status badge */
.submitted-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

/* Notification badge (red dot) */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: notifPulse 2s ease-in-out infinite;
}

@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Company admin cards hover */
#companyEmployeesTableBody tr:hover {
    background: #f8fafc;
}

/* Employee detail modal scrollable */
#employeeDetailReceipts {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Scope radio buttons styling */
#receiptScopeContainer label {
    transition: all 0.2s ease;
}

#receiptScopeContainer label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#receiptScopeContainer input[type="radio"]:checked + span {
    font-weight: 900;
}

/* ==========================================================================
   ADMIN EXECUTIVE DASHBOARD: PC & MOBILE RESPONSIVE ENGINE
   ========================================================================== */

/* Desktop & PC Admin Mode (min-width: 769px) */
@media (min-width: 769px) {
    body.in-admin-view {
        background-color: #0b1329 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 100vh !important;
        height: auto !important;
        overflow-y: auto !important;
        padding: 24px 0 !important;
    }

    body.in-admin-view .phone-frame {
        width: 95% !important;
        max-width: 1200px !important;
        height: auto !important;
        min-height: 88vh !important;
        max-height: none !important;
        border-radius: 28px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6) !important;
        background-color: var(--bg-main) !important;
        overflow: visible !important;
        position: relative !important;
    }

    body.in-admin-view .app-header {
        height: 72px !important;
        padding: 0 36px !important;
        border-radius: 28px 28px 0 0 !important;
    }

    body.in-admin-view .tab-view {
        padding: 28px 36px 60px 36px !important;
        overflow: visible !important;
        max-height: none !important;
    }

    body.in-admin-view .bottom-nav {
        display: none !important;
    }

    /* KPI Grid on PC */
    .admin-kpi-grid.master-kpis {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
        margin-bottom: 24px !important;
    }

    .admin-kpi-grid.company-kpis {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px !important;
        margin-bottom: 24px !important;
    }

    .admin-kpi-card {
        padding: 20px 24px !important;
        border-radius: 20px !important;
    }

    .admin-kpi-value {
        font-size: 2rem !important;
    }

    /* Search bar on PC */
    .admin-search-bar-flex {
        display: flex !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
        align-items: center !important;
    }

    .admin-search-input {
        flex: 1 !important;
        height: 48px !important;
        font-size: 0.95rem !important;
    }

    .admin-action-btn {
        height: 48px !important;
        padding: 0 24px !important;
        font-size: 0.92rem !important;
    }

    /* Hide mobile hint on PC */
    .mobile-table-hint {
        display: none !important;
    }
}

/* Mobile & Tablet Admin Mode (max-width: 768px) */
@media (max-width: 768px) {
    body.in-admin-view .phone-frame {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    body.in-admin-view .tab-view {
        padding: 16px 14px 40px 14px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.in-admin-view .bottom-nav {
        display: none !important;
    }


    .admin-kpi-grid.master-kpis {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .admin-kpi-grid.company-kpis {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }


    .admin-kpi-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
    }

    .admin-kpi-value {
        font-size: 1.35rem !important;
    }

    .admin-search-bar-flex {
        display: flex !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }

    .admin-search-input {
        flex: 1 !important;
        height: 42px !important;
        font-size: 0.85rem !important;
    }

    .admin-action-btn {
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 0.82rem !important;
    }

    .mobile-table-hint {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 0.74rem !important;
        color: #64748b !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }
}

/* Universal Admin Components */
.admin-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.admin-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.admin-kpi-label {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-kpi-value {
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
}

.admin-data-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 800;
    color: #475569;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-data-table td {
    padding: 14px 16px;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-data-table tbody tr {
    transition: background 0.15s ease;
}

.admin-data-table tbody tr:hover {
    background: #f8fafc;
}

/* ==========================================================================
   UNIVERSAL FLOATING MODAL OVERLAY SYSTEM (EXECUTIVE HIGH-Z-INDEX)
   ========================================================================== */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 26px 24px !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-sizing: border-box !important;
    animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

/* ==========================================================================
   EXECUTIVE ADMIN NAVIGATION & SUB-VIEW SYSTEM
   ========================================================================== */
.admin-nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.admin-nav-tab {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.admin-nav-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-nav-tab.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.admin-tab-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.admin-sub-view {
    display: none;
    animation: fadeInAdminSub 0.2s ease-out;
}

.admin-sub-view.active {
    display: block !important;
}

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

/* High-Fidelity Print Engine for PDF & Reports */
@media print {
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}



