:root {
            --sidebar-width: 270px;
            --page-bg: #f4f7fb;
            --primary-dark: #071d49;
            --primary-blue: #00aEEF;
            --text-muted-custom: #6b7280;
        }

        body {
            min-height: 100vh;
            background: var(--page-bg);
            color: #1f2937;
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        .sidebar {
            position: fixed;
            inset: 0 auto 0 0;
            width: var(--sidebar-width);
            padding: 24px 18px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            background:
                radial-gradient(circle at top right, rgba(0, 174, 239, 0.25), transparent 35%),
                linear-gradient(180deg, #071d49 0%, #0b2c63 100%);
            color: white;
            z-index: 1030;
        }

        .brand-icon {
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.14);
            font-size: 1.35rem;
        }

        .sidebar .nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 6px;
            padding: 12px 14px;
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.72);
            transition: 0.2s ease;
        }

        .sidebar .nav-link:hover,
        .sidebar .nav-link.active {
            color: white;
            background: rgba(255, 255, 255, 0.13);
        }

        .account-mini-card {
            margin-top: 30px;
            padding: 18px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.09);
            backdrop-filter: blur(8px);
        }

        .sidebar-accounts {
            margin-top: auto;
            padding-top: 8px;
        }

        .account-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            text-decoration: none;
            transition: background .15s ease, border-color .15s ease;
        }

        .account-link:hover,
        .account-link.active {
            background: rgba(255, 255, 255, 0.14);
            border-color: rgba(255, 255, 255, 0.28);
            color: #fff;
        }

        .bank-logo-sm {
            width: 36px;
            height: 36px;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .main-content {
            margin-left: var(--sidebar-width);
            padding: 28px;
        }

        .topbar {
            margin-bottom: 24px;
        }

        .dashboard-card {
            height: 100%;
            border: 0;
            border-radius: 20px;
            background: white;
            box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
        }

        .metric-card {
            position: relative;
            overflow: hidden;
        }

        .metric-card::after {
            content: "";
            position: absolute;
            top: -35px;
            right: -35px;
            width: 110px;
            height: 110px;
            border-radius: 50%;
            background: rgba(13, 110, 253, 0.07);
        }

        .metric-icon {
            width: 50px;
            height: 50px;
            display: grid;
            place-items: center;
            border-radius: 15px;
            font-size: 1.25rem;
        }

        .metric-value {
            font-size: 1.7rem;
            font-weight: 750;
            line-height: 1.1;
        }

        .bank-account-card {
            position: relative;
            overflow: hidden;
            min-height: 210px;
            color: white;
            background:
                radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.22), transparent 23%),
                linear-gradient(135deg, #071d49 0%, #004b87 58%, #00aEEF 140%);
        }

        .bank-account-card::before,
        .bank-account-card::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.07);
        }

        .bank-account-card::before {
            width: 180px;
            height: 180px;
            right: -55px;
            bottom: -90px;
        }

        .bank-account-card::after {
            width: 90px;
            height: 90px;
            right: 65px;
            bottom: -45px;
        }

        .bank-logo {
            width: 52px;
            height: 52px;
            display: grid;
            place-items: center;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.16);
            font-size: 1.5rem;
        }

        .expense-category-icon {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 13px;
            flex-shrink: 0;
        }

        .expense-row {
            padding: 14px 0;
            border-bottom: 1px solid #edf0f5;
        }

        .expense-row:last-child {
            border-bottom: 0;
        }

        .progress {
            height: 7px;
            border-radius: 50px;
            background: #edf1f7;
        }

        .progress-bar {
            border-radius: 50px;
        }

        .table-modern {
            margin-bottom: 0;
        }

        .table-modern thead th {
            padding: 16px;
            border-bottom: 1px solid #e8edf3;
            color: #6b7280;
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            white-space: nowrap;
        }

        .table-modern tbody td {
            padding: 16px;
            vertical-align: middle;
            border-color: #eef2f7;
        }

        .merchant-avatar {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: #edf5ff;
            color: #0d6efd;
            font-weight: 700;
        }

        .status-badge {
            padding: 7px 10px;
            border-radius: 50px;
            font-size: 0.76rem;
            font-weight: 700;
        }

        .chart-container {
            position: relative;
            min-height: 300px;
        }

        .section-title {
            font-weight: 750;
            letter-spacing: -0.02em;
        }

        .muted-text {
            color: var(--text-muted-custom);
        }

        .mobile-header {
            display: none;
        }

        @media (max-width: 991.98px) {
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.25s ease;
            }

            .sidebar.show {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding: 18px;
            }

            .mobile-header {
                display: flex;
            }
        }

        @media (max-width: 575.98px) {
            .metric-value {
                font-size: 1.45rem;
            }

            .main-content {
                padding: 14px;
            }

            .dashboard-card {
                border-radius: 16px;
            }
        }
