@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-deep: #060813;
    --bg-card: #0d1127;
    --bg-accent: #161c3d;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.25);
    --success: #10b981;
    --danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --border: #1e295d;
    --sidebar-width: 280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { background-color: var(--bg-deep); color: var(--text-main); min-height: 100vh; overflow-x: hidden; }

.app-container { display: flex; min-height: 100vh; }

.mobile-header { display: none; width: 100%; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; position: fixed; top: 0; left: 0; z-index: 1000; justify-content: space-between; align-items: center; }
.menu-toggle { background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

.sidebar { width: var(--sidebar-width); background: var(--bg-card); border-right: 1px solid var(--border); padding: 2rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; position: fixed; top: 0; bottom: 0; left: 0; z-index: 999; transition: var(--transition); }
.main-content { flex: 1; padding: 2.5rem; margin-left: var(--sidebar-width); overflow-y: auto; transition: var(--transition); }

.logo-box { display: flex; align-items: center; gap: 14px; margin-bottom: 2.5rem; }
.logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), #1d4ed8); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; box-shadow: 0 8px 20px var(--primary-glow); }
.logo-text { font-weight: 800; font-size: 18px; letter-spacing: -0.5px; line-height: 1.1; }
.logo-text span { font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 2px; }

.nav-menu { display: flex; flex-direction: column; gap: 6px; list-style: none; }
.nav-link { display: flex; align-items: center; gap: 14px; color: var(--text-muted); padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; cursor: pointer; transition: var(--transition); border: 1px solid transparent; }
.nav-link:hover, .nav-link.active { background: var(--bg-accent); color: var(--text-main); }
.nav-link.active { border-color: var(--border); border-left: 4px solid var(--primary); color: var(--primary); }

.view-section { display: none; animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.view-section.active-view { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.dashboard-grid { display: grid; grid-template-columns: 1.7fr 1.3fr; gap: 2rem; }
.card-column { display: flex; flex-direction: column; gap: 2rem; }

.glass-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.wallet-card { background: linear-gradient(135deg, #090d22 0%, #111736 100%); }
.wallet-balance { font-size: 32px; font-weight: 800; color: var(--text-main); margin: 0.5rem 0 1.5rem 0; }

h2 { font-size: 22px; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: -0.5px; }
.form-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 16px; color: var(--text-muted); font-size: 16px; }

input, select, textarea { width: 100%; background: var(--bg-accent) !important; border: 1px solid var(--border) !important; color: var(--text-main) !important; padding: 14px 16px 14px 44px !important; border-radius: 12px !important; font-size: 14px; font-weight: 500; outline: none; transition: var(--transition); }
textarea { padding: 14px 16px !important; resize: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px var(--primary-glow) !important; }

.btn-submit { width: 100%; background: linear-gradient(90deg, var(--primary), #1d4ed8); color: #fff; border: none; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--primary-glow); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.tab-row { display: flex; gap: 6px; background: var(--bg-accent); padding: 6px; border-radius: 12px; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.service-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 8px; border: none; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.service-tab.active-tab { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); }

.network-indicator-badge { position: absolute; right: 16px; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; opacity: 0; transform: scale(0.9); transition: var(--transition); }
.network-indicator-badge.detected { opacity: 1; transform: scale(1); }
.network-indicator-badge.MTN { background: #fef08a; color: #713f12; }
.network-indicator-badge.AIRTEL { background: #fee2e2; color: #991b1b; }
.network-indicator-badge.GLO { background: #dcfce7; color: #166534; }
/* .network-indicator-badge.9MOBILE { background: #fae8ff; color: #86198f; } */

#toast-box { position: fixed; bottom: 24px; right: 24px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--primary); padding: 14px 20px; border-radius: 10px; display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); animation: slideIn 0.3s ease-out forwards; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1024px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 991px) {
    .mobile-header { display: flex; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.sidebar-open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 6rem 1.5rem 2rem 1.5rem; }
}

/* --- NEW ADDITIONS FOR UPGRADED FEATURES --- */
.virtual-acc-box { margin-top: 20px; background: rgba(0,0,0,0.25); padding: 15px; border-radius: 10px; border: 1px dashed var(--primary); }
.virtual-acc-box p { font-size: 11px; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.virtual-acc-box .bank-name { font-size: 13px; font-weight: bold; color: var(--text-main); }
.virtual-acc-box .acc-num { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: 1.5px; margin: 4px 0; }
.virtual-acc-box .acc-name { font-size: 12px; color: var(--text-muted); }

.history-list { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; max-height: 350px; overflow-y: auto; padding-right: 5px; }
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: var(--bg-accent); border-radius: 10px; border: 1px solid var(--border); }
.history-item.empty { text-align: center; justify-content: center; color: var(--text-muted); font-size: 13px; }
.history-info h4 { font-size: 13px; margin-bottom: 4px; color: var(--text-main); }
.history-info p { font-size: 11px; color: var(--text-muted); }
.history-amount { font-weight: 800; font-size: 15px; }
.history-amount.debit { color: var(--danger); }
.history-amount.credit { color: var(--success); }