
        /* ── Dashboard wrapper ── */
        .dashboard-container {
            background: white;
            border-radius: 20px;
            margin: 24px 0;
            overflow: hidden;
        }

        /* ── Header ── */
        .dashboard-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px 24px;
        }
        .dashboard-header h2 { margin: 0; font-weight: 700; font-size: 1.35rem; }
        .dashboard-header p  { margin: 4px 0 0; font-size: .82rem; opacity: .8; }

        /* ── Compact stat cards ── */
        .stat-card {
            border: none;
            border-radius: 12px;
            transition: transform .25s ease, box-shadow .25s ease;
        }
        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
        }
        .stat-card .card-body {
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .stat-icon {
            width: 40px; height: 40px; min-width: 40px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px;
        }
        .stat-text { line-height: 1; }
        .stat-label {
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .5px;
            margin-bottom: 4px;
        }
        .stat-value {
            font-size: 22px;
            font-weight: 700;
            line-height: 1;
        }
        .stat-sub {
            font-size: 10px;
            color: var(--text-muted);
            margin-top: 3px;
        }

        /* ── Search ── */
        .search-box {
            border-radius: 10px;
            border: 2px solid var(--border-color);
            padding: 10px 16px;
            font-size: 14px;
            transition: border-color .2s, box-shadow .2s;
        }
        .search-box:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        /* ── Table ── */
        .table-container {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 1px 6px rgba(0,0,0,.07);
        }
        .table thead { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
        .table thead th {
            border: none; padding: 14px 12px;
            font-weight: 600; text-transform: uppercase;
            font-size: 12px; letter-spacing: .5px;
        }
        .table tbody tr { transition: background .15s; }
        .table tbody tr:hover { background: #f9fafb; }
        .table tbody td { padding: 14px 12px; vertical-align: middle; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
        .badge { padding: 5px 10px; font-weight: 600; border-radius: 6px; font-size: 11px; }

        /* ── Pagination ── */
        .pagination-container {
            display: flex; justify-content: space-between; align-items: center;
            padding: 16px 20px; background: #f9fafb;
            border-top: 1px solid var(--border-color);
            flex-wrap: wrap; gap: 10px;
            font-size: 13px;
        }
        .pagination-btn {
            border: 1px solid #d1d5db; background: white;
            padding: 6px 14px; border-radius: 8px;
            cursor: pointer; transition: all .2s; font-size: 13px;
        }
        .pagination-btn:hover:not(:disabled) { background: var(--primary-color); color: white; border-color: var(--primary-color); }
        .pagination-btn:disabled { opacity: .45; cursor: not-allowed; }

        /* ── Modals ── */
        .modal-content { border-radius: 14px; border: none; }
        .modal-header {
            background: linear-gradient(135deg, #667eea 0%, black 100%);
            color: white; border-radius: 14px 14px 0 0; padding: 16px 20px;
        }
        .modal-header .btn-close { filter: brightness(0) invert(1); }
        .form-control, .form-select {
            border-radius: 8px; border: 2px solid var(--border-color);
            padding: 9px 13px; font-size: 14px;
        }
        .form-control:focus, .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--primary-light);
        }
        .alert-wallet {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 2px solid #f59e0b; border-radius: 10px; padding: 14px;
        }
        .insufficient-funds {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            border: 2px solid #ef4444; border-radius: 10px;
        }
        .no-results { text-align: center; padding: 50px 20px; color: #9ca3af; }
        .no-results i { font-size: 52px; margin-bottom: 16px; display: block; }

        /* ── Toast notification ── */
        #toast-container {
            position: fixed; top: 20px; right: 20px; z-index: 9999;
            display: flex; flex-direction: column; gap: 10px;
        }
        .toast-msg {
            min-width: 280px; padding: 14px 18px;
            border-radius: 10px; color: white; font-size: 14px; font-weight: 500;
            display: flex; align-items: center; gap: 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,.15);
            animation: slideIn .3s ease;
        }
        .toast-msg.success { background: #10b981; }
        .toast-msg.error   { background: #ef4444; }
        @keyframes slideIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
        @keyframes fadeOut { to   { opacity: 0; transform: translateX(60px); } }

        /* ── Spinner overlay ── */
        .btn-loading { position: relative; pointer-events: none; opacity: .75; }
        .btn-loading::after {
            content: '';
            position: absolute; right: 12px; top: 50%; margin-top: -8px;
            width: 16px; height: 16px; border-radius: 50%;
            border: 2px solid rgba(255,255,255,.4);
            border-top-color: white;
            animation: spin .6s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ── Responsive tweaks ── */
        @media (max-width: 576px) {
            .stat-value { font-size: 18px; }
            .stat-icon  { width: 34px; height: 34px; font-size: 15px; }
            .dashboard-header h2 { font-size: 1.1rem; }
        }