/* ============================================
   BICKAPAY - PREMIUM DARK FUTURISTIC THEME
   "Pay Smart, Live Limitless"
   Deep Violet · Magenta · Electric Purple
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --sidebar-width: 270px;

    /* BickaPay Brand Palette */
    --primary-dark: #3b0764;
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --accent: #d946ef;
    --accent-light: #ec4899;

    /* Brand Tints (dark-appropriate) */
    --primary-50: rgba(109, 40, 217, 0.08);
    --primary-100: rgba(109, 40, 217, 0.15);
    --primary-200: rgba(109, 40, 217, 0.25);
    --primary-400: #a78bfa;
    --accent-50: rgba(217, 70, 239, 0.08);

    /* Semantic Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --success-text: #6ee7b7;
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --danger-text: #fca5a5;
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --warning-text: #fcd34d;
    --info: #0ea5e9;
    --info-light: rgba(14, 165, 233, 0.15);
    --info-text: #7dd3fc;

    /* Dark Surfaces & Background */
    --bg-base: #13102a;
    --bg-elevated: #1a1333;
    --surface: rgba(25, 18, 50, 0.75);
    --surface-2: rgba(35, 25, 65, 0.6);
    --surface-solid: #1a1333;
    --surface-hover: rgba(109, 40, 217, 0.08);

    /* Borders */
    --border: rgba(139, 92, 246, 0.12);
    --border-light: rgba(139, 92, 246, 0.06);
    --border-hover: rgba(139, 92, 246, 0.3);
    --border-glow: rgba(217, 70, 239, 0.4);

    /* Typography */
    --text-primary: #f0ecf9;
    --text-secondary: #b4aed0;
    --text-muted: #6b5f8a;

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
    --brand-gradient-hover: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-light));
    --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-light));
    --bg-gradient: linear-gradient(135deg, #13102a 0%, #1a1333 40%, #1f0f3d 100%);
    --card-gradient: linear-gradient(145deg, rgba(25, 18, 50, 0.8), rgba(35, 25, 65, 0.5));
    --surface-gradient: linear-gradient(135deg, rgba(109, 40, 217, 0.05), rgba(217, 70, 239, 0.03));

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-brand: 0 4px 20px rgba(109, 40, 217, 0.3);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
    --shadow-glow-accent: 0 0 30px rgba(217, 70, 239, 0.2);
    --glow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.25); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.4); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes countUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.1); }
    50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.2); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(16, 12, 35, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: var(--text-primary);
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.2) transparent;
}

.sidebar .brand {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-primary);
    position: relative;
}
.sidebar .brand img,
.auth-brand img {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sidebar .brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(217, 70, 239, 0.2), transparent);
}
.sidebar .brand-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.sidebar .nav-section {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
}

.sidebar .nav-link {
    color: var(--text-secondary);
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition-fast);
    margin: 3px 12px;
    border-radius: 10px;
    position: relative;
    text-decoration: none;
    border: 1px solid transparent;
}
.sidebar .nav-link:hover {
    color: var(--text-primary);
    background: rgba(109, 40, 217, 0.1);
    border-color: rgba(139, 92, 246, 0.1);
}
.sidebar .nav-link.active {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-brand), 0 0 20px rgba(109, 40, 217, 0.2);
    border-color: transparent;
}
.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    color: var(--primary-light);
}
.sidebar .nav-link:hover i {
    color: var(--accent);
    transform: scale(1.1);
}
.sidebar .nav-link.active i {
    color: #fff;
}

.sidebar .badge {
    font-size: 0.65rem;
    padding: 0.3em 0.6em;
    border-radius: 8px;
    background: var(--accent) !important;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(217, 70, 239, 0.4);
}

/* ---------- Sidebar Overlay ---------- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}
.sidebar-overlay.show {
    display: block;
}

/* ---------- Main Content ---------- */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 1.5rem 2rem;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
    position: relative;
}

/* ---------- Topbar ---------- */
.topbar {
    background: rgba(16, 12, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -1.5rem -2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.topbar h5 {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
}
.topbar .user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(109, 40, 217, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.topbar .user-badge:hover {
    background: rgba(109, 40, 217, 0.2);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.topbar .user-badge i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* ---------- Stat Cards ---------- */
.stat-card {
    background: var(--card-gradient);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: var(--transition);
}
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.stat-card > div {
    position: relative;
    z-index: 1;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: var(--border-hover);
}
.stat-card:hover::before {
    opacity: 1;
}
.stat-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    background: rgba(109, 40, 217, 0.12) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(139, 92, 246, 0.15);
}
.stat-card:hover .icon {
    transform: scale(1.1);
    background: rgba(109, 40, 217, 0.2) !important;
    box-shadow: 0 0 16px rgba(109, 40, 217, 0.2);
}
.stat-card .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    line-height: 1.2;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    animation: countUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card small {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Stagger animations */
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card .value[style*="color:var(--success)"],
.stat-card small[style*="color:var(--success)"] {
    color: var(--success-text) !important;
}
.stat-card .value[style*="color:var(--danger)"],
.stat-card small[style*="color:var(--danger)"] {
    color: var(--danger-text) !important;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease backwards;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(139, 92, 246, 0.18);
}
.card-header {
    background: rgba(20, 15, 42, 0.6);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}
.card-header h6 {
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.05rem;
}
.card-body {
    padding: 1.5rem;
    color: var(--text-secondary);
}

/* ---------- Tables ---------- */
.table {
    margin-bottom: 0;
    color: var(--text-secondary);
}
.table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border) !important;
    padding: 1rem 1.25rem;
    background: rgba(20, 15, 42, 0.4);
}
.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
    color: var(--text-secondary);
    font-weight: 500;
}
.table tbody tr {
    transition: var(--transition-fast);
}
.table tbody tr:hover td {
    background: rgba(109, 40, 217, 0.06);
}
.table a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}
.table a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ---------- Badges ---------- */
.badge {
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.4em 0.75em;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge.bg-success {
    background: var(--success-light) !important;
    color: var(--success-text) !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge.bg-danger {
    background: var(--danger-light) !important;
    color: var(--danger-text) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge.bg-warning {
    background: var(--warning-light) !important;
    color: var(--warning-text) !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.badge.bg-info {
    background: var(--info-light) !important;
    color: var(--info-text) !important;
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.badge.bg-primary {
    background: rgba(109, 40, 217, 0.15) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(109, 40, 217, 0.25);
}
.badge.bg-secondary {
    background: rgba(107, 95, 138, 0.2) !important;
    color: var(--text-secondary) !important;
    border: 1px solid rgba(107, 95, 138, 0.2);
}
.badge.bg-dark {
    background: rgba(109, 40, 217, 0.2) !important;
    color: var(--primary-light) !important;
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    transition: var(--transition);
    letter-spacing: 0.3px;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--brand-gradient);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: var(--shadow-brand);
    border: none;
}
.btn-primary:hover {
    background: var(--brand-gradient-hover);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4), 0 0 20px rgba(217, 70, 239, 0.15);
    color: #fff;
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-outline-primary {
    color: var(--primary-light);
    border: 1.5px solid rgba(109, 40, 217, 0.4);
    background: rgba(109, 40, 217, 0.08);
}
.btn-outline-primary:hover {
    background: rgba(109, 40, 217, 0.15);
    color: var(--text-primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.btn-outline-secondary {
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    background: transparent;
}
.btn-outline-secondary:hover {
    background: rgba(109, 40, 217, 0.08);
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.btn-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-text);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}
.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}
.btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-text);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.btn-warning:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #fff;
}
.btn-outline-danger {
    color: var(--danger-text);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    background: transparent;
}
.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger-text);
    border-color: var(--danger);
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    background: rgba(20, 15, 42, 0.6);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15), 0 0 16px rgba(109, 40, 217, 0.1);
    background: rgba(25, 18, 50, 0.8);
    color: var(--text-primary);
}
.form-control::placeholder {
    color: var(--text-muted);
}
.form-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}
.input-group-text {
    background: rgba(20, 15, 42, 0.8);
    border: 1.5px solid var(--border);
    border-radius: 10px 0 0 10px;
    color: var(--text-muted);
    font-weight: 600;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
    border-color: var(--primary-light);
}
.form-check-input {
    background-color: rgba(20, 15, 42, 0.8);
    border-color: var(--border);
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    animation: fadeInDown 0.4s ease;
    backdrop-filter: blur(8px);
}
.alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success-text);
    border-left: 4px solid var(--success);
}
.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger-text);
    border-left: 4px solid var(--danger);
}
.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning-text);
    border-left: 4px solid var(--warning);
}
.alert-info {
    background: rgba(14, 165, 233, 0.12);
    color: var(--info-text);
    border-left: 4px solid var(--info);
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---------- Modals ---------- */
.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(20, 15, 42, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
    color: var(--text-primary);
}
.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
}
.modal-header .modal-title {
    font-weight: 800;
    color: var(--text-primary);
}
.modal-body {
    padding: 2rem;
    color: var(--text-secondary);
}
.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    background: rgba(16, 12, 35, 0.5);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.modal-backdrop.show {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* ---------- Tabs / Nav ---------- */
.nav-tabs {
    border-bottom: 1px solid var(--border);
}
.nav-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    background: transparent;
}
.nav-tabs .nav-link:hover {
    color: var(--primary-light);
    border-bottom-color: rgba(109, 40, 217, 0.3);
}
.nav-tabs .nav-link.active {
    color: var(--text-primary);
    background: transparent;
    border-bottom-color: var(--accent);
}

/* ---------- Pagination ---------- */
.pagination .page-link {
    background: rgba(20, 15, 42, 0.6);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition-fast);
    border-radius: 8px !important;
    margin: 0 2px;
}
.pagination .page-link:hover {
    background: rgba(109, 40, 217, 0.15);
    border-color: var(--border-hover);
    color: var(--text-primary);
}
.pagination .page-item.active .page-link {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.pagination .page-item.disabled .page-link {
    background: rgba(20, 15, 42, 0.3);
    color: var(--text-muted);
    border-color: var(--border-light);
}

/* ---------- Login Pages ---------- */
.login-wrapper {
    background: linear-gradient(135deg, #0d0820 0%, #13102a 30%, #1a1040 60%, #1f0d45 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, transparent 70%);
    top: -25vh;
    left: -25vw;
    border-radius: 50%;
    z-index: 0;
    animation: glowPulse 8s ease-in-out infinite;
}
.login-wrapper::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.08) 0%, transparent 70%);
    bottom: -15vh;
    right: -15vw;
    border-radius: 50%;
    z-index: 0;
    animation: glowPulse 8s ease-in-out infinite 4s;
}

/* Geometric origami-bird-inspired patterns */
.login-geo-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.login-geo-pattern::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(217, 70, 239, 0.04));
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: float 12s ease-in-out infinite;
}
.login-geo-pattern::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.05), rgba(109, 40, 217, 0.03));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: float 10s ease-in-out infinite 3s;
}

.login-card {
    max-width: 480px;
    width: 100%;
    animation: fadeInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
}
.login-brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.login-brand .brand-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: var(--shadow-brand), 0 0 30px rgba(109, 40, 217, 0.3);
}
.login-brand .tagline {
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}
.login-card .card {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(20, 15, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(109, 40, 217, 0.1);
    overflow: hidden;
}
.login-card .card-body {
    padding: 3rem 2.5rem;
}
.login-card .form-control {
    padding: 0.85rem 1.25rem;
    background: rgba(15, 10, 32, 0.6);
}
.login-card .btn-primary {
    padding: 0.85rem;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    width: 100%;
}

/* ---------- Gateway Balance Cards ---------- */
.gateway-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.gateway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}
.gateway-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: var(--border-hover);
}

/* ---------- Empty States ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3.5rem;
    color: rgba(139, 92, 246, 0.25);
    margin-bottom: 1.5rem;
    display: block;
}
.empty-state h5 {
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ---------- List Group (Settings) ---------- */
.list-group-item {
    background: rgba(20, 15, 42, 0.4);
    border-color: var(--border-light);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.list-group-item:hover {
    background: rgba(109, 40, 217, 0.08);
    color: var(--text-primary);
    border-color: var(--border);
}
.list-group-item.active {
    background: rgba(109, 40, 217, 0.12) !important;
    color: var(--primary-light) !important;
    border-color: rgba(109, 40, 217, 0.25) !important;
    font-weight: 600;
}
.list-group-flush {
    border-color: var(--border);
}
.list-group-flush .list-group-item {
    border-color: var(--border-light);
}

/* ---------- Form Switch ---------- */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

/* ---------- Code / Inline Code ---------- */
code {
    background: rgba(109, 40, 217, 0.12);
    color: var(--primary-light);
    padding: 0.2em 0.5em;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid rgba(109, 40, 217, 0.15);
}

/* ---------- Utility ---------- */
.text-purple { color: var(--primary-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-text) !important; }
.text-danger { color: var(--danger-text) !important; }
.text-warning { color: var(--warning-text) !important; }
.text-info { color: var(--info-text) !important; }
.bg-purple-subtle {
    background: rgba(109, 40, 217, 0.1) !important;
    border: 1px solid rgba(109, 40, 217, 0.15);
}
.border-purple { border-color: rgba(109, 40, 217, 0.25) !important; }
.bg-gradient-purple {
    background: var(--brand-gradient) !important;
    color: white !important;
}

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--shadow-glow); }

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glowing border utility */
.glow-border {
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.08);
}

/* Glass surface */
.glass {
    background: rgba(25, 18, 50, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}

/* ---------- Stagger children animations ---------- */
.stagger > * {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    .topbar {
        margin: -1rem -1rem 1.5rem;
        padding: 1rem;
    }
    .stat-card .value {
        font-size: 1.4rem;
    }
    .login-card .card-body {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 1.25rem;
    }
    .stat-card .icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    .stat-card .value {
        font-size: 1.3rem;
    }
}
