@import url("https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Brand Colors (Gold / Amber theme from reference) */
    --primary-color: #e5a93c;
    --primary-light: #f5b041;
    --primary-dark: #c68a26;
    --primary-glow: rgba(229, 169, 60, 0.15);
    
    /* Dark Surface Palette */
    --bg-color: #0b0d12;
    --sidebar-bg: #12141a;
    --card-bg: #161922;
    --card-bg-subtle: #191c26;
    --secondary-color: #1a1d26;
    --input-bg: #111319;
    --table-head-bg: #13151c;
    --table-hover-bg: #1a1e29;
    
    /* Text Colors */
    --text-color: #f3f4f6;
    --text-light: #9ca3af;
    --text-muted: #6b7280;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    
    /* Status Colors */
    --status-active: #10b981;
    --status-approved: #3b82f6;
    --status-pending: #a855f7;
    --status-rejected: #ef4444;
    --status-waiting: #ec4899;
    --status-suspended: #f87171;
    --status-warning: #f59e0b;

    --font-family: "Hanken Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

button, input, select, textarea {
    font-family: inherit;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-color);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 18px 20px 14px 20px;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-logo {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.sidebar-menu {
    list-style: none;
    padding: 12px 10px;
    flex-grow: 1;
    overflow-y: auto;
}

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

.sidebar-menu li {
    margin-bottom: 3px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.88rem;
    font-weight: 500;
}

/* All icons in sidebar are warm gold */
.sidebar-menu i {
    font-size: 1.15rem;
    margin-right: 10px;
    color: var(--primary-color);
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    opacity: 0.85;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f3f4f6;
    transform: translateX(2px);
}

.sidebar-menu a:hover i {
    color: var(--primary-light);
    opacity: 1;
}

/* Active Menu Item */
.sidebar-menu a.active {
    background: rgba(229, 169, 60, 0.12);
    color: #f3ba2f;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
}

.sidebar-menu a.active i {
    color: var(--primary-color);
    opacity: 1;
}

/* Sidebar Rates Widget (Desktop - Above Personal Info) */
.sidebar-rates-wrapper {
    padding: 6px 12px 4px 12px;
    border-top: none;
    background: var(--sidebar-bg);
}

.sidebar-rate-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.sidebar-rate-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.sidebar-rate-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sidebar-rate-title i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.sidebar-rate-settings-btn {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s;
}

.sidebar-rate-settings-btn:hover {
    color: var(--primary-color);
}

.sidebar-rate-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.sidebar-rate-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-weight: 500;
}

.rate-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.rate-dot.dot-cost {
    background: #ef4444;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

.rate-dot.dot-rev {
    background: #10b981;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.sidebar-rate-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rate-num.cost {
    color: #f87171;
    font-weight: 600;
    font-size: 0.78rem;
}

.rate-num.rev {
    color: #34d399;
    font-weight: 600;
    font-size: 0.78rem;
}

.rate-tag-auto {
    font-size: 0.65rem;
    color: #64748b;
    font-style: italic;
}

/* Sidebar Footer & User Profile Widget */
.sidebar-footer {
    padding: 4px 12px 12px 12px;
    border-top: none;
    background: var(--sidebar-bg);
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.user-profile-widget:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e222e;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(229, 169, 60, 0.3);
}

.user-details {
    flex-grow: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
    line-height: 1.2;
}

.user-action-btn {
    color: var(--text-light);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.user-action-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: calc(100% - 250px);
    background-color: var(--bg-color);
}

.topbar {
    background-color: var(--sidebar-bg);
    height: 56px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    flex-shrink: 0;
}

.greeting-text {
    font-size: 0.88rem;
    color: var(--text-light);
}
.greeting-text strong {
    color: #f3f4f6;
}

.finance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.finance-badge.debt {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.finance-badge.income {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.finance-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.content-area {
    padding: 28px 32px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stat Box & Row */
.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    background: var(--card-bg);
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 169, 60, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Status Cards Grid (Dashboard) */
.status-stat-card {
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--card-bg-subtle);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s;
}

.status-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.status-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.status-stat-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.88rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #0b0d12;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: 0 2px 12px rgba(229, 169, 60, 0.35);
    color: #0b0d12;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #e5e7eb;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #212530;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.btn-danger {
    background-color: var(--status-rejected);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    background-color: var(--table-head-bg);
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

th.sortable {
    cursor: pointer;
    transition: color 0.2s;
}

th.sortable:hover {
    color: var(--primary-color);
}

tr:hover td {
    background-color: var(--table-hover-bg);
}

/* Badges / Status */
.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}
.badge-active { background-color: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-approved { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-pending { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-rejected { background-color: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-waiting { background-color: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.badge-suspended { background-color: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-warning { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.88rem;
    color: #e5e7eb;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    background-color: var(--input-bg);
    color: #f3f4f6;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(229, 169, 60, 0.2);
}

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    background: var(--card-bg);
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filters-bar select {
    padding: 7px 12px;
    border-radius: 6px;
    background-color: var(--input-bg);
    color: #f3f4f6;
    border: 1px solid var(--border-color);
    font-size: 0.88rem;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert-warning {
    background: rgba(229, 169, 60, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(229, 169, 60, 0.25);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

/* Mobile Bottom Navigation & Bottom Sheet (Hidden on Desktop) */
.mobile-bottom-nav,
.mobile-sheet-backdrop,
.mobile-sheet {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        width: 100% !important;
    }
    
    .topbar {
        padding: 0 14px !important;
        height: 52px !important;
        background-color: var(--sidebar-bg) !important;
        border-bottom: 1px solid var(--border-color) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px;
    }
    
    .mobile-logo {
        display: flex !important;
        align-items: center;
        text-decoration: none;
        flex-shrink: 0;
        margin-right: 8px !important;
    }

    .mobile-logo img {
        height: 24px !important;
        display: block;
    }
    
    .greeting-text {
        display: none !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .user-info {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .user-info .finance-badge {
        font-size: 0.74rem !important;
        padding: 4px 9px !important;
        gap: 5px !important;
        white-space: nowrap;
        border-radius: 16px !important;
        max-width: 100%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    .content-area {
        padding: 16px 14px 85px 14px !important;
    }

    /* Fixed Bottom Nav Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #0f1219;
        border-top: 1px solid #1e2636;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px calc(env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none;
        padding: 6px 2px;
        gap: 3px;
        background: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        transition: color 0.15s ease, transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item i {
        font-size: 1.35rem;
        line-height: 1;
    }

    .mobile-nav-item span {
        font-size: 0.65rem;
        font-weight: 500;
        white-space: nowrap;
        line-height: 1.1;
    }

    .mobile-nav-item:active {
        transform: scale(0.95);
    }

    .mobile-nav-item.active {
        color: #eab308 !important;
    }

    .mobile-nav-item.active span {
        font-weight: 700;
    }

    /* Bottom Sheet Backdrop */
    .mobile-sheet-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .mobile-sheet-backdrop.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    /* Bottom Sheet Container */
    .mobile-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        background: #121621;
        border-top: 1px solid #232d3e;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        z-index: 1101;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.65);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mobile-sheet.active {
        display: flex;
        transform: translateY(0);
    }

    .mobile-sheet-drag-handle {
        width: 38px;
        height: 4px;
        background: #475569;
        border-radius: 2px;
        margin: 8px auto 6px;
        flex-shrink: 0;
    }

    .mobile-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 18px 12px;
        border-bottom: 1px solid #1f2738;
        flex-shrink: 0;
    }

    .mobile-sheet-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 1.05rem;
        color: #f8fafc;
    }

    .mobile-sheet-title i {
        color: #eab308;
        font-size: 1.3rem;
    }

    .mobile-sheet-close {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 4px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: color 0.15s;
    }

    .mobile-sheet-close:hover {
        color: #f8fafc;
    }

    .mobile-sheet-body {
        padding: 16px 16px 36px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
    }

    /* Mobile User Profile Card */
    .mobile-user-card {
        background: #181f2b;
        border: 1px solid #253142;
        border-radius: 10px;
        padding: 14px;
        margin-bottom: 18px;
    }

    .mobile-user-row {
        display: flex;
        align-items: center;
    }

    .mobile-user-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 50%;
        background: #232d3f;
        border: 1px solid #334155;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #cbd5e1;
        font-size: 1.4rem;
        position: relative;
    }

    .user-status-dot {
        position: absolute;
        bottom: 1px;
        right: 1px;
        width: 10px;
        height: 10px;
        background: #10b981;
        border: 2px solid #181f2b;
        border-radius: 50%;
    }

    .mobile-user-info {
        margin-left: 12px;
        flex: 1;
        min-width: 0;
    }

    .mobile-user-name {
        color: #f8fafc;
        font-weight: 700;
        font-size: 0.98rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-user-username {
        color: #94a3b8;
        font-size: 0.82rem;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-user-badge {
        background: #292212;
        color: #eab308;
        border: 1px solid #55441a;
        border-radius: 4px;
        padding: 3px 8px;
        font-size: 0.72rem;
        font-weight: 600;
        white-space: nowrap;
        margin-left: 8px;
    }

    .mobile-user-actions {
        display: flex;
        gap: 10px;
        margin-top: 14px;
    }

    .mobile-btn-profile {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid #c89b38;
        color: #eab308;
        background: transparent;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.15s;
    }

    .mobile-btn-profile:hover {
        background: rgba(234, 179, 8, 0.1);
    }

    .mobile-btn-logout {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid #dc2626;
        color: #ef4444;
        background: transparent;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 0.82rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.15s;
    }

    .mobile-btn-logout:hover {
        background: rgba(239, 68, 68, 0.1);
    }

    /* Mobile Rate Card (Below Personal Info) */
    .mobile-rate-card {
        background: #181f2b;
        border: 1px solid #253142;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 18px;
    }

    .mobile-rate-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .mobile-rate-title {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 0.88rem;
        font-weight: 700;
        color: #f8fafc;
    }

    .mobile-rate-title i {
        color: #eab308;
        font-size: 1.15rem;
    }

    .mobile-rate-settings-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: 600;
        text-decoration: none;
        padding: 3px 8px;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.15s;
    }

    .mobile-rate-settings-btn:hover {
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.08);
    }

    .mobile-rate-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mobile-rate-box {
        border-radius: 8px;
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-rate-box.rate-cost {
        background: rgba(239, 68, 68, 0.08);
        border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .mobile-rate-box.rate-rev {
        background: rgba(16, 185, 129, 0.08);
        border: 1px solid rgba(16, 185, 129, 0.2);
    }

    .mobile-rate-box-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-rate-box-label {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .rate-cost .mobile-rate-box-label {
        color: #f87171;
    }

    .rate-rev .mobile-rate-box-label {
        color: #34d399;
    }

    .mobile-rate-box-val {
        font-size: 0.92rem;
        font-weight: 700;
    }

    .rate-cost .mobile-rate-box-val {
        color: #fca5a5;
    }

    .rate-rev .mobile-rate-box-val {
        color: #6ee7b7;
    }

    .mobile-rate-box .rate-auto-tag {
        font-size: 0.68rem;
        color: #94a3b8;
        font-weight: normal;
        font-style: italic;
    }

    /* Menu Sections */
    .sheet-group-label {
        font-size: 0.75rem;
        font-weight: 700;
        color: #64748b;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin: 0 0 8px 4px;
    }

    .sheet-menu-list {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .sheet-nav-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #181f2b;
        border: 1px solid #232d3d;
        border-radius: 8px;
        padding: 12px 14px;
        text-decoration: none;
        color: #e2e8f0;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .sheet-nav-item:hover,
    .sheet-nav-item.active {
        background: #222c3e;
        border-color: #38465c;
        color: #ffffff;
    }

    .sheet-nav-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sheet-nav-left i {
        font-size: 1.2rem;
        color: #c89b38;
        width: 22px;
        text-align: center;
    }

    .sheet-nav-left span {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .sheet-nav-arrow {
        color: #64748b;
        font-size: 1.25rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 15px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 15px !important;
    }
    
    #filterProjectsModal > div {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 15px !important;
    }
    
    form > div[style*="grid-template-columns"],
    #filterProjectsModal form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .finance-grid {
        grid-template-columns: 1fr !important;
    }
    
    .change-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 5px;
        padding-bottom: 10px;
        border-bottom: 1px dashed var(--border-color);
    }
    
    .change-row button {
        width: 100%;
        margin-top: 5px;
    }
}
