/* assets/css/main.css */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #6c757d;
    --bg-color: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Page Loader styling */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(13, 110, 253, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Landing Page Styles */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #212529;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Services section */
.services {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services h2 {
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-color);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin: 15px 0;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #212529;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

/* Auth Pages Styling */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../images/auth-bg.jpg') center/cover no-repeat;
    background-color: #0d6efd; /* Fallback */
    padding: 20px;
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* Dark overlay */
}

/* Glassmorphism Effect */
.auth-card {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent */
    backdrop-filter: blur(15px); /* Blur effect */
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
    color: #fff;
}

.auth-card h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-size: 1rem;
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.auth-links a {
    color: #fff;
    text-decoration: underline;
}

.auth-links a:hover {
    color: #e0e0e0;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #212529;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    transition: var(--transition);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #343a40;
    margin-bottom: 20px;
    text-decoration: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: var(--primary-color);
    color: #fff;
}

.main-content {
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.header-top {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top .user-info {
    font-weight: 500;
}

.dashboard-content {
    padding: 30px;
    flex: 1;
}

.wallet-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004ecc 100%);
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.wallet-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.wallet-card .balance {
    font-size: 2.5rem;
    font-weight: bold;
}

.service-grid-dash {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on all devices */
    gap: 20px;
}

.service-item-dash {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-item-dash:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--primary-color);
}

/* Form container in dashboard */
.dash-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    max-width: 600px;
}

.dash-form-container select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background-color: #fff;
}

/* Admin Specific Overrides */
.admin-sidebar {
    background-color: #1a1e21; /* Slightly darker for admin */
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.data-table tr:hover {
    background-color: #f1f3f5;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.status-success { background-color: #d1e7dd; color: #0f5132; }
.status-pending { background-color: #fff3cd; color: #85400f; }
.status-failed { background-color: #f8d7da; color: #842029; }

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}
.stat-card h4 { color: var(--light-text); font-size: 0.9rem; margin-bottom: 5px; }
.stat-card .num { font-size: 1.8rem; font-weight: bold; color: var(--text-color); }

/* Responsive Navbar */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 15px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        margin: 0;
    }
    /* Hide sidebar by default on mobile for Dashboard */
    .sidebar {
        position: fixed;
        left: -250px;
        height: 100%;
        z-index: 1000;
    }
    .sidebar.active {
        left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    /* Mobile dashboard toggle button */
    .dash-menu-toggle {
        display: inline-block !important; margin-right: 15px; font-size: 1.5rem; cursor: pointer; color: var(--primary-color);
    }
}
.dash-menu-toggle { display: none; }

/* Logo in Spinner */
#page-loader::after {
    content: '';
    position: absolute;
    width: 35px; height: 35px;
    background: url('../images/logo.png') center/contain no-repeat;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}
.spinner {
    width: 60px !important;
    height: 60px !important;
}

/* --- Mobile Dashboard Additions --- */
.mobile-dashboard-wrapper {
    padding: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Blue Balance Card */
.balance-card {
    background: linear-gradient(135deg, #1fa2ff 0%, #12d8fa 100%, #1fa2ff);
    color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    margin-bottom: 20px;
}
.balance-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}
.balance-amount {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 25px;
}

/* Action Buttons inside Card */
.action-buttons {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.15);
    padding: 15px 10px;
    border-radius: 12px;
}
.action-btn a {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}
.icon-circle {
    width: 40px; height: 40px;
    background-color: #fff;
    color: #1fa2ff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 8px; font-weight: bold;
}

/* Essential Services Header */
.services-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; padding: 0 5px;
}
.services-header h3 { font-size: 1.2rem; color: #333; }
.services-header a { text-decoration: none; color: #1fa2ff; font-weight: bold; font-size: 0.9rem; }

/* Mobile Grid (3 per row usually, or 2 per row) */
.mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
@media (max-width: 400px) {
    .mobile-grid { grid-template-columns: repeat(2, 1fr); }
}
.service-card-sm {
    background: #fff; border-radius: 12px; padding: 15px 5px;
    text-align: center; color: #333; text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: block;
}
.service-card-sm .icon {
    font-size: 1.8rem; margin-bottom: 8px;
}
/* Icon Colors */
.blue-icon { color: #1fa2ff; }
.green-icon { color: #28a745; }
.orange-icon { color: #ff9800; }
.purple-icon { color: #6f42c1; }

/* Bottom Navigation */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex; justify-content: space-around; align-items: center;
    padding: 10px 0; z-index: 999;
}
.bottom-nav .nav-item {
    text-decoration: none; color: #aaa; text-align: center;
    font-size: 0.75rem; flex: 1; position: relative;
}
.bottom-nav .nav-item.active { color: #1fa2ff; }
.bottom-nav .nav-icon { display: block; font-size: 1.4rem; margin-bottom: 3px; }

/* Support FAB in Center */
.support-fab { transform: translateY(-20px); }
.fab-circle {
    width: 55px; height: 55px; background: #fff;
    border-radius: 50%; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; border: 4px solid #f4f7f6; /* matches body bg */
}

@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .mobile-dashboard-wrapper { padding-bottom: 20px; }
}

/* NEW DASHBOARD STYLES */
.dashboard-body {
    background-color: #f4f6fa;
    margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.new-layout .main-content.has-top-header { padding-top: 60px; }

/* Top Header specific to Dashboard */
.top-nav-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: #f4f6fa; display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; z-index: 1001; box-sizing: border-box;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; align-items: center; gap: 15px; }
.header-icon { font-size: 1.2rem; cursor: pointer; }
.header-avatar { width: 32px; height: 32px; background: #e0e7ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #4b4b4b; }
.header-logo img { vertical-align: middle; }

/* Adjust old sidebar toggle if needed */
.header-top { display: none !important; }

/* Purple Wallet Card */
.purple-wallet-card {
    background: linear-gradient(135deg, #483ed5 0%, #3e32b4 100%);
    border-radius: 20px; padding: 25px 20px; color: #fff;
    margin-bottom: 25px; box-shadow: 0 10px 25px rgba(72,62,213,0.25);
    position: relative; overflow: hidden;
}
.wallet-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.welcome-text p { font-size: 0.85rem; opacity: 0.9; margin: 0 0 2px 0; }
.welcome-text h2 { margin: 0 0 8px 0; font-size: 1.5rem; font-weight: 700; }
.subscriber-pill { background: #fff; color: #483ed5; font-size: 0.75rem; padding: 3px 12px; border-radius: 20px; font-weight: bold; }
.notification-bell { background: rgba(255,255,255,0.1); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.wallet-balances { display: flex; align-items: center; margin-bottom: 20px; }
.wallet-balances .balance-item { flex: 1; }
.wallet-balances .balance-item p { font-size: 0.8rem; margin: 0 0 5px 0; opacity: 0.8; }
.wallet-balances .balance-item h3 { font-size: 1.6rem; margin: 0; font-weight: bold; }
.wallet-balances .divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); margin: 0 15px; }

.fund-btn-wide {
    display: block; width: 100%; background: #fff; color: #483ed5;
    text-align: center; padding: 12px 0; border-radius: 12px;
    font-weight: bold; text-decoration: none; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 1rem;
}

/* White Card Containers */
.white-card {
    background: #fff; border-radius: 20px; padding: 20px;
    margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.white-card h3 { font-size: 1rem; color: #111; margin: 0 0 15px 0; font-weight: bold; }

/* Grid 4 Columns */
.services-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 10px; }
.svc-item { text-align: center; text-decoration: none; color: #222; }
.svc-icon-wrapper {
    width: 50px; height: 50px; margin: 0 auto 8px auto;
    background: #f0efff; color: #483ed5;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.svc-item p { font-size: 0.75rem; margin: 0; font-weight: 500; }

.tx-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.tx-header h3 { margin: 0; }
.tx-header a { text-decoration: none; color: #483ed5; font-size: 0.85rem; font-weight: 600; }

/* Bottom App Bar */
.bottom-app-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; height: 65px;
    display: flex; justify-content: space-between; align-items: center; padding: 0 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 1000; box-sizing: border-box;
}
.app-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: #888; flex: 1; font-size: 0.7rem; gap: 4px;
}
.app-nav-item svg { stroke: #888; }
.app-nav-item:hover, .app-nav-item.active { color: #483ed5; }
.app-nav-item:hover svg, .app-nav-item.active svg { stroke: #483ed5; }

/* Desktop overrides */
@media (min-width: 768px) {
    .bottom-app-bar { display: none; }
    .top-nav-header { padding-left: 265px; width: 100%; }
    .new-sidebar { display: block; }
}
@media (max-width: 767px) {
    .sidebar { z-index: 1005; }
}


/* === CRITICAL LAYOUT FIXES === */

/* Give body top padding for fixed top nav */
body.dashboard-body {
    padding-top: 60px;
}

/* On mobile, remove dashboard-content inner padding so purple card goes edge-to-edge */
@media (max-width: 767px) {
    .dashboard-content {
        padding: 0 !important;
    }
    .mobile-dashboard-wrapper.new-ui {
        padding: 12px 12px 80px 12px;
    }
    /* Sidebar must slide over content on mobile */
    .dashboard-container {
        display: block;
    }
    .main-content {
        width: 100%;
        min-height: calc(100vh - 60px);
    }
    /* Top nav header takes full width on mobile */
    .top-nav-header {
        padding: 0 15px;
    }
}

/* Sidebar user block */
.sidebar-user {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px; border-bottom: 1px solid #343a40; margin-bottom: 10px;
}
.sidebar-avatar { font-size: 2.5rem; margin-bottom: 8px; }
.sidebar-name { color: #eee; font-weight: bold; font-size: 0.95rem; }

/* Make dash-menu-toggle always visible (override old `display:none`) */
.dash-menu-toggle {
    display: flex !important;
    cursor: pointer; align-items: center; color: #333;
}

/* Make services-grid-4 stack to 4 columns on mobile */
@media (max-width: 767px) {
    .services-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 6px;
    }
    .svc-icon-wrapper {
        width: 42px; height: 42px; border-radius: 12px;
    }
    .svc-item p { font-size: 0.7rem; }
}


/* ============================================
   COMPLETE DASHBOARD LAYOUT REBUILD
   Matches desktop screenshot (purple sidebar)
   and mobile screenshot (bottom bar)
   ============================================ */

/* Reset dashboard body */
body.dashboard-body {
    background: #f0f2f8;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Wrapper = sidebar + main-area side by side */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: 210px;
    min-width: 210px;
    background: linear-gradient(180deg, #3730c4 0%, #4338e8 60%, #5b21b6 100%);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 200;
    transition: transform 0.3s ease;
    left: 0; /* reset from old CSS */
}

/* Sidebar brand / logo */
.sidebar-brand-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 8px;
}
.sidebar-bolt { font-size: 1.3rem; }
.sidebar-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Sidebar nav links */
.sidebar-nav { display: flex; flex-direction: column; padding: 0 10px; flex: 1; }
.sn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background 0.2s, color 0.2s;
}
.sn-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sn-item.active { background: rgba(255,255,255,0.2); color: #fff; font-weight: 700; }
.sn-icon {
    width: 18px; height: 18px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}
.sn-logout { color: rgba(255, 140, 140, 0.9); margin-top: auto; margin-bottom: 15px; }
.sn-logout:hover { background: rgba(255,80,80,0.15); color: #ff8080; }

/* Sidebar overlay (mobile tap-to-close) */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
}
.sidebar-overlay.show { display: block; }

/* ---- MAIN AREA ---- */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* ---- TOP BAR ---- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 58px;
    background: #fff;
    border-bottom: 1px solid #e8eaf0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-bar-left { display: flex; align-items: center; gap: 14px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.hamburger {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; color: #555; padding: 4px;
    border-radius: 6px;
}
.hamburger:hover { background: #f0f0f0; }
.page-breadcrumb {
    font-size: 0.95rem; font-weight: 600; color: #333;
    background: #e8eef8; padding: 4px 12px; border-radius: 6px;
}
.mobile-logo { display: none; }
.tb-icon {
    background: none; border: none; font-size: 1.15rem;
    cursor: pointer; padding: 4px 6px; border-radius: 6px;
    color: #555;
}
.tb-icon:hover { background: #f0f0f0; }
.tb-avatar {
    width: 34px; height: 34px;
    background: #e8eef8; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer;
}

/* ---- PAGE CONTENT ---- */
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ---- BOTTOM APP BAR (mobile only) ---- */
.bottom-app-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: #fff;
    border-top: 1px solid #e8eaf0;
    align-items: center;
    justify-content: space-around;
    z-index: 300;
}
.bab-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; text-decoration: none;
    color: #888; font-size: 0.68rem; font-weight: 500;
    flex: 1; padding: 6px 0;
}
.bab-item svg { stroke: #888; }
.bab-item.active, .bab-item:hover { color: #3730c4; }
.bab-item.active svg, .bab-item:hover svg { stroke: #3730c4; }

/* ---- DASHBOARD CARD OVERRIDES (purple card) ---- */
.purple-wallet-card {
    background: linear-gradient(135deg, #3d35d4 0%, #4338e8 50%, #5b21b6 100%);
}
.fund-btn-wide { border-radius: 10px; font-weight: 600; }

/* Services white card */
.services-container.white-card, .recent-tx-container.white-card {
    border-radius: 16px;
}
.svc-icon-wrapper {
    background: #eeecff;
    color: #3730c4;
}

/* ============ RESPONSIVE ============ */

/* Desktop: sidebar always visible, hamburger still works as toggle */
@media (min-width: 768px) {
    .sidebar { position: sticky; transform: none !important; }
    .sidebar-overlay { display: none !important; }
    .bottom-app-bar { display: none !important; }
    .page-content { padding-bottom: 24px; }
    .mobile-logo { display: none !important; }
}

/* Mobile: hide sidebar by default, show bottom bar */
@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        top: 0; left: 0; height: 100%;
        transform: translateX(-100%);
        z-index: 400;
    }
    .sidebar.open { transform: translateX(0); }
    .bottom-app-bar { display: flex; }
    .page-content { padding: 12px 12px 80px; }
    .top-bar { padding: 0 14px; }
    .page-breadcrumb { display: none; }
    .mobile-logo { display: block; }
    .mobile-logo img { height: 24px; object-fit: contain; }
    .main-area { width: 100%; }
    .purple-wallet-card { border-radius: 16px; }
    .mobile-dashboard-wrapper.new-ui { padding: 0; }
}


/* Form alert messages */
.msg-success {
    padding: 10px 14px;
    background: rgba(40,167,69,0.12);
    color: #28a745;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 600;
}
.msg-error {
    padding: 10px 14px;
    background: rgba(220,53,69,0.12);
    color: #dc3545;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 600;
}

/* NEW DESIGN FORM STYLES (Floating Outlined Labels) */
.form-card {
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    max-width: 100%;
    margin: 0 auto;
}

.input-outline-group {
    position: relative;
    margin-bottom: 20px;
}

.input-outline-group label {
    position: absolute;
    top: -9px;
    left: 12px;
    background: #fff;
    padding: 0 4px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
}

.input-outline-group input, 
.input-outline-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    background: transparent;
    outline: none;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
}

.input-outline-group select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem top 50%;
    background-size: .65rem auto;
}

.input-outline-group input:focus, 
.input-outline-group select:focus {
    border-color: #428bca;
}

.btn-primary-block {
    width: 100%;
    padding: 16px;
    background-color: #5a9ced;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.btn-primary-block:hover {
    background-color: #428bca;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.checkbox-group label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}
.form-note {
    color: #d9534f;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
