:root {
    --brand: #082259;
    --bg: #f4f6fa;
    --surface: #ffffff;
    --border: #e5e8ef;
    --text: #1b2033;
    --muted: #6b7286;
    --sidebar-w: 248px;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 0.925rem;
}

a { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 500;
}
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--brand) 85%, #000); color: #fff; }
.btn-icon { border: 0; background: none; font-size: 1.4rem; padding: 0.25rem 0.5rem; color: var(--text); }

.form-control:focus, .form-select:focus {
    border-color: color-mix(in srgb, var(--brand) 50%, #fff);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--brand) 15%, transparent);
}
.form-label { font-weight: 500; font-size: 0.85rem; color: var(--text); }

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--brand);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.25s ease;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.25rem 1.25rem 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
}
.brand-mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,0.15);
    display: grid; place-items: center;
    font-weight: 700;
}
.sidebar-nav { padding: 0.5rem 0.75rem 1.5rem; }
.nav-section {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    padding: 1rem 0.75rem 0.4rem;
}
.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2px;
}
.nav-link-item i { font-size: 1.05rem; }
.nav-link-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link-item.active { background: rgba(255,255,255,0.16); color: #fff; }

.sidebar-backdrop { display: none; }

/* ---------- Main area ---------- */
.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    position: sticky; top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 64px;
    padding: 0 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 1.15rem; font-weight: 600; margin: 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }

.user-chip {
    display: flex; align-items: center; gap: 0.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    font-weight: 500;
    color: var(--text);
}
.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-size: 0.78rem; font-weight: 600;
}

.content { flex: 1; padding: 1.5rem; }
.dash-footer {
    padding: 1rem 1.5rem;
    color: var(--muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

.page-intro { margin-bottom: 1.5rem; }
.page-intro h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.2rem; }
.page-intro p { color: var(--muted); margin: 0; }

/* ---------- Cards / panels ---------- */
.stat-card, .panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat-card { padding: 1.1rem 1.25rem; height: 100%; }
.stat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    color: var(--brand);
    display: grid; place-items: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.stat-label { color: var(--muted); font-size: 0.8rem; }
.stat-value { font-size: 1.25rem; font-weight: 700; margin-top: 0.15rem; }

.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.panel-header h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.panel-body { padding: 1.25rem; }

.table-dash { --bs-table-bg: transparent; }
.table-dash th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 600;
    background: #fafbfd;
}
.table-dash th, .table-dash td { padding: 0.8rem 1.25rem; vertical-align: middle; border-color: var(--border); }
.table-dash tbody tr:last-child td { border-bottom: 0; }

.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

/* ---------- Auth pages ---------- */
body.auth {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--brand) 0 38%, var(--bg) 38%);
}
.auth-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 3rem 1rem;
}
.auth-brand { justify-content: center; padding: 0 0 1.5rem; }
.auth-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(15, 25, 60, 0.12);
}
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-wrap-wide { max-width: 760px; }
.req { color: #dc3545; }
.small-note { font-size: 0.8rem; color: var(--muted); }

.ref-table { table-layout: fixed; min-width: 520px; }
.ref-table thead th {
    background: var(--brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border-color: var(--brand);
}
.ref-table thead th:first-child { width: 48px; background: transparent; border-color: transparent; }
.ref-table tbody th {
    background: var(--brand);
    color: #fff;
    text-align: center;
    vertical-align: middle;
    font-size: 0.8rem;
    border-color: var(--brand);
}
.ref-table td { padding: 0; border: 1px solid var(--border); }
.ref-table td .form-control { border: 0; border-radius: 0; }
.ref-table tr.has-error td { border-color: #dc3545; }

.auth-switch { text-align: center; margin: 1.5rem 0 0; color: var(--muted); }
.auth-copy { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .main { margin-left: 0; }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed; inset: 0;
        background: rgba(10, 15, 30, 0.45);
        z-index: 1035;
    }
    .content { padding: 1rem; }
    .topbar { padding: 0 1rem; }
}

/* ============================================================
   User-facing app layout (top navbar)
   ============================================================ */
:root { --accent: #1668ff; }

body.app { background: #fff; }

.app-nav {
    background: #000;
    position: sticky; top: 0; z-index: 1030;
}
.app-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.app-logo { display: flex; align-items: center; margin-right: auto; }
.app-logo img { height: 42px; width: auto; }
.app-nav-toggle {
    display: none;
    background: none; border: 0; color: #fff; font-size: 1.6rem;
    margin-left: auto;
}
.app-nav-links {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 2rem;
}
.app-nav-links a {
    position: relative;
    color: #fff; text-decoration: none;
    font-weight: 600; font-size: 1.05rem;
    padding: 0.25rem 0;
}
.app-nav-links a:hover { color: #cdd6ff; }
.app-nav-links a.active { color: #fff; }
.app-nav-links .nav-dot {
    position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: #2ecc71;
}
.app-nav-logout a { color: #ff6b6b; }

.app-main {
    background: linear-gradient(180deg, var(--brand) 0 230px, #fff 230px);
    min-height: calc(100vh - 72px);
    padding-bottom: 2.5rem;
}
.app-container { max-width: 1280px; margin: 0 auto; padding: 1.75rem 1.5rem 0; }

/* Greeting header */
.home-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; color: #fff; margin-bottom: 1.5rem;
}
.home-greeting { font-size: 0.95rem; opacity: 0.9; }
.home-name { font-size: 1.9rem; font-weight: 700; margin: 0.1rem 0 0; }
.kyc-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
    background: rgba(255,255,255,0.1); padding: 0.35rem 0.7rem; border-radius: 999px;
}
.kyc-badge i { font-size: 1.1rem; color: #fff; }
.kyc-badge.is-unverified span { color: #ff6b6b; }
.kyc-badge.is-verified span { color: #2ecc71; }

/* Balance card */
.balance-wrap { display: flex; justify-content: center; }
.balance-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(8, 20, 60, 0.15);
    padding: 1.5rem; text-align: center;
    width: 100%; max-width: 420px;
}
.balance-banner {
    position: relative;
    background: linear-gradient(120deg, #e8eefc, #cdd9f5);
    border-radius: 10px; padding: 1.5rem 1rem; margin-bottom: 1rem;
    display: grid; place-items: center;
}
.balance-banner img { max-height: 70px; width: auto; }
.banner-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--accent); color: #fff;
    font-size: 0.65rem; font-weight: 600;
    padding: 0.3rem 0.6rem; border-radius: 999px;
}
.banner-caption { font-weight: 700; color: var(--text); margin-bottom: 1.25rem; }
.balance-label {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 1.2rem; font-weight: 700; color: #555; margin-bottom: 0.4rem;
}
.balance-eye { background: none; border: 0; color: #555; font-size: 1rem; padding: 0; line-height: 1; }
.balance-value { font-size: 1.7rem; font-weight: 700; color: var(--text); }

/* Section headers & outline boxes */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 1.75rem 0 0.75rem;
}
.section-title { color: var(--accent); font-size: 1.3rem; font-weight: 700; margin: 1.75rem 0 0.75rem; }
.section-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.section-link:hover { text-decoration: underline; }

.outline-box { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.box-cta { padding: 2.25rem 1.5rem; text-align: center; }
.box-cta p { color: var(--muted); margin-bottom: 1rem; }
.box-head { display: flex; padding: 1rem 1.25rem 0; }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; padding: 0.5rem 1.25rem; }
.btn-accent:hover, .btn-accent:focus { background: #0d55db; color: #fff; }

@media (max-width: 767.98px) {
    .app-nav-toggle { display: block; }
    .app-nav-links {
        display: none;
        position: absolute; top: 72px; left: 0; right: 0;
        background: #000; flex-direction: column; align-items: flex-start;
        gap: 0; padding: 0.5rem 1.5rem 1rem;
    }
    .app-nav-links.open { display: flex; }
    .app-nav-links li { width: 100%; }
    .app-nav-links a { display: block; padding: 0.65rem 0; width: 100%; }
    .app-nav-links .nav-dot { left: auto; right: 0; bottom: 50%; transform: translateY(50%); }
    .home-name { font-size: 1.5rem; }
}

/* ============================================================
   Market / Buy-a-plan page
   ============================================================ */
.buy-head { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem; }

.buy-card, .details-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.75rem;
}

.choose-market {
    background: #eef1f6; border: 1px solid var(--border);
    color: var(--brand); font-weight: 600; padding: 0.5rem 1rem;
}
.market-menu { border-radius: 10px; box-shadow: 0 12px 30px rgba(10,20,50,.15); border: 0; padding: 0.4rem; }
.market-menu .dropdown-item { display: flex; align-items: center; gap: 0.6rem; border-radius: 8px; padding: 0.55rem 0.75rem; color: var(--text); font-weight: 500; }
.market-menu .dropdown-item i { color: #8a94a6; }
.market-menu .dropdown-item:hover { background: #f1f4f9; }

.buy-label { display: block; color: var(--muted); font-weight: 500; margin-bottom: 0.75rem; }

.quick-amounts { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.quick-amount {
    flex: 1 1 auto; min-width: 92px;
    background: #f4f6fa; border: 1px solid var(--border); border-radius: 8px;
    padding: 0.85rem 0.5rem; font-weight: 600; color: var(--text); cursor: pointer;
    transition: all .15s ease;
}
.quick-amount:hover { border-color: var(--accent); }
.quick-amount.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.pay-method {
    display: flex; align-items: center; gap: 0.6rem;
    border: 1px solid var(--accent); border-radius: 10px;
    background: #f7f9fc; padding: 1rem 1.1rem;
}
.pay-method i { font-size: 1.4rem; color: #6b7286; }
.pay-name { font-weight: 600; }
.pay-balance { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

/* Investment details panel */
.details-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.d-label { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.15rem; }
.d-value { display: block; font-weight: 600; }
.d-value.accent { color: var(--accent); }
.details-amount { color: var(--muted); }
.details-amount strong { color: var(--text); }
.btn-confirm { background: #6b7a90; border: 0; color: #fff; font-weight: 600; padding: 0.7rem; }
.btn-confirm:hover, .btn-confirm:focus { background: var(--brand); color: #fff; }

/* ============================================================
   Equity Shares grid
   ============================================================ */
.equities-panel { background: #f7f8fb; border-radius: var(--radius); padding: 2.5rem 1.5rem; }
.equities-title { text-align: center; font-size: 2rem; font-weight: 600; color: #333; margin-bottom: 2.5rem; }
.equity-card {
    background: #fff; border: 1px solid #eef0f4; border-radius: 10px;
    padding: 1.75rem; height: 100%;
    box-shadow: 0 6px 18px rgba(15,25,60,.05);
}
.equity-name { font-size: 1.4rem; font-weight: 700; color: #1b2033; margin-bottom: 0.4rem; }
.equity-range { color: var(--muted); margin-bottom: 1.25rem; }
.equity-features { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.equity-features li { display: flex; align-items: center; gap: 0.6rem; color: #555; padding: 0.4rem 0; }
.equity-features li i { color: #111; font-size: 1.05rem; }
.equity-link { color: #1b2033; font-weight: 500; text-decoration: none; }
.equity-link:hover { color: var(--accent); text-decoration: underline; }
.equities-note { max-width: 560px; margin: 2rem auto 0; text-align: center; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 575.98px) {
    .details-grid { grid-template-columns: 1fr; }
    .quick-amount { min-width: 44%; }
}

/* ============================================================
   Account Settings (profile) page
   ============================================================ */
.settings-page .app-main { background: #f4f6fa; }

.settings-shell {
    background: var(--brand);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.5rem 1.75rem 2.25rem;
    margin: -1.75rem -1.5rem 0;
}
.settings-heading { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0.75rem 0 1.25rem; }
.settings-card { background: #fff; border-radius: var(--radius); padding: 2rem; }

.settings-tabs { border: 0; gap: 0.5rem; flex-wrap: wrap; }
.settings-tab {
    border: 0; background: transparent; border-radius: 8px;
    padding: 0.85rem 1.5rem; font-weight: 600; color: var(--muted);
    flex: 1 1 200px; text-align: center; cursor: pointer;
}
.settings-tab:hover { background: #f1f4f9; color: var(--text); }
.settings-tab.active { background: #1e7e34; color: #fff; }

.settings-card .form-label { color: var(--muted); font-weight: 500; }

@media (max-width: 767.98px) {
    .settings-shell { margin: -1rem -1.5rem 0; padding: 0.5rem 1rem 1.75rem; }
    .settings-card { padding: 1.25rem; }
    .settings-tab { flex-basis: 100%; }
}

/* ============================================================
   Admin dashboard extras
   ============================================================ */
.badge-soft { font-weight: 600; }
.badge.text-bg-light { color: var(--text) !important; border: 1px solid var(--border); }

.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.activity-list li:last-child { border-bottom: 0; }

.detail-list { display: grid; gap: 0; }
.detail-list > div {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: 0.55rem 0; border-bottom: 1px solid var(--border);
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-weight: 500; margin: 0; }
.detail-list dd { margin: 0; text-align: right; font-weight: 500; }

.content .panel + .panel { margin-top: 0; }
.stat-card a, a .stat-card { color: inherit; }

/* ============================================================
   Dark navy theme for the member app (body.app.theme-dark)
   ============================================================ */
body.app.theme-dark { background: #081a3d; color: #eaf0fb; }
.theme-dark .app-main { background: #081a3d; }
.theme-dark a { color: #74b4ff; }

/* Shared cards -> navy panels */
.theme-dark .balance-card,
.theme-dark .outline-box,
.theme-dark .buy-card,
.theme-dark .details-card,
.theme-dark .equity-card,
.theme-dark .settings-card {
    background: #0c2150;
    border: 1px solid rgba(170,195,255,0.20);
    color: #eaf0fb;
    box-shadow: none;
}
.theme-dark .balance-label,
.theme-dark .balance-value,
.theme-dark .banner-caption,
.theme-dark .details-title,
.theme-dark .settings-heading,
.theme-dark .equity-name { color: #ffffff; }
.theme-dark .balance-eye { color: #cdd9f5; }
.theme-dark .box-cta p,
.theme-dark .d-label,
.theme-dark .buy-label,
.theme-dark .small-note,
.theme-dark .text-muted { color: #9db0d6 !important; }
.theme-dark .d-value { color: #eaf0fb; }

/* Forms */
.theme-dark .form-control,
.theme-dark .form-select {
    background: #0a1f49;
    border-color: rgba(170,195,255,0.25);
    color: #eaf0fb;
}
.theme-dark .form-control::placeholder { color: #7f92ba; }
.theme-dark .form-control:focus,
.theme-dark .form-select:focus {
    background: #0a1f49; color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(22,104,255,0.25);
}
.theme-dark .form-label { color: #cdd9f5; }
.theme-dark .form-control[readonly], .theme-dark .bg-light { background: #0a1733 !important; color: #9db0d6; }

/* Tables */
.theme-dark .table-dash { color: #eaf0fb; --bs-table-bg: transparent; --bs-table-color: #eaf0fb; }
.theme-dark .table-dash th { background: rgba(255,255,255,0.04); color: #9db0d6; }
.theme-dark .table-dash th,
.theme-dark .table-dash td { border-color: rgba(170,195,255,0.14); }
.theme-dark .empty-state { color: #9db0d6; }

/* Quick amounts / pay method / dropdown (market) */
.theme-dark .quick-amount { background: #0a1f49; border-color: rgba(170,195,255,0.25); color: #eaf0fb; }
.theme-dark .quick-amount:hover { border-color: var(--accent); }
.theme-dark .pay-method { background: #0a1f49; border-color: var(--accent); }
.theme-dark .pay-method i { color: #9db0d6; }
.theme-dark .choose-market { background: #0a1f49; border-color: rgba(170,195,255,0.25); color: #cdd9f5; }
.theme-dark .settings-tab { color: #9db0d6; }
.theme-dark .settings-tab.active { color: #fff; }

/* ---------- Wallet hub ---------- */
.wallet-hero {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 0.5rem 3rem 2rem;
}
.wallet-hero-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 1.15rem; font-weight: 700;
}
.wallet-hero-eye { background: none; border: 0; color: #cdd9f5; font-size: 1rem; padding: 0; line-height: 1; }
.wallet-hero-value { font-size: 2.1rem; font-weight: 800; margin-top: 0.5rem; }
.wallet-hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: rgba(255,255,255,0.75); font-size: 1.6rem; line-height: 1;
    padding: 0.25rem 0.5rem; cursor: pointer;
}
.wallet-hero-arrow:hover { color: #fff; }
.wallet-hero-arrow.prev { left: 0; }
.wallet-hero-arrow.next { right: 0; }

.wallet-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3rem 1.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(8, 20, 60, 0.06);
}
.wallet-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1rem;
    max-width: 760px;
    margin: 0 auto;
}
.wallet-tile { text-align: center; text-decoration: none; color: var(--text); }
.theme-dark .wallet-tile { color: #ffffff; }
.wallet-tile-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #2f8fe0, #1559c0);
    display: grid; place-items: center; margin: 0 auto 0.6rem;
    color: #fff; font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(20,90,180,0.30);
    transition: transform .15s ease;
}
.wallet-tile span { font-weight: 600; }
.wallet-tile:hover .wallet-tile-icon { transform: translateY(-3px); }
.wallet-tile:hover { color: var(--accent); }

/* ---------- Wallet sub-pages ---------- */
.wallet-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(8, 20, 60, 0.06);
}
.wallet-card-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 1.25rem; }
.wallet-back { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; text-decoration: none; margin-bottom: 1rem; }
.wallet-back:hover { color: #cdd9f5; }
.pstat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.25rem; height: 100%; box-shadow: 0 10px 30px rgba(8, 20, 60, 0.06); }
.pstat-label { color: var(--muted); font-size: 0.82rem; }
.pstat-value { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-top: 0.2rem; }

/* ---------- Floating chat button ---------- */
.chat-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 1050;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #2f6bd8; color: #fff;
    border-radius: 999px; padding: 0.6rem 1.1rem;
    font-weight: 600; text-decoration: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.chat-fab:hover { background: #255ec6; color: #fff; }
.chat-fab .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; }

@media (max-width: 575.98px) {
    .wallet-tiles { grid-template-columns: repeat(2, 1fr); gap: 2rem 0.5rem; }
    .wallet-panel { padding: 2rem 0.75rem; }
    .wallet-hero { padding: 0.5rem 2.25rem 1.5rem; }
}

/* ---------- Admin login badge ---------- */
.admin-login-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    color: var(--brand);
    font-size: 0.78rem; font-weight: 700;
    padding: 0.3rem 0.7rem; border-radius: 999px;
    margin-bottom: 0.9rem;
}

/* ---------- Fund Wallet: gateway details ---------- */
.pay-details-box {
    background: #f4f7fc;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
}
.pay-details-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.pay-details-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.copy-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    border: 1px solid var(--accent); background: #fff; color: var(--accent);
    font-size: 0.78rem; font-weight: 600;
    padding: 0.2rem 0.6rem; border-radius: 6px; cursor: pointer;
    white-space: nowrap; transition: all .15s ease;
}
.copy-btn:hover { background: var(--accent); color: #fff; }
.copy-btn.is-copied { background: #198754; border-color: #198754; color: #fff; }
.pay-details-value {
    margin: 0; font-family: 'Inter', monospace; font-size: 0.92rem; font-weight: 600;
    color: var(--text); white-space: pre-wrap; word-break: break-all;
}

/* ---------- Proof of deposit upload ---------- */
.proof-drop {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    text-align: center; cursor: pointer;
    border: 2px dashed var(--border); border-radius: 12px;
    padding: 1.6rem 1rem; color: var(--muted);
    transition: border-color .15s ease, background .15s ease;
}
.proof-drop:hover { border-color: var(--accent); background: #f7faff; }
.proof-drop.is-invalid-drop { border-color: #dc3545; background: #fff5f5; }
.proof-drop i { font-size: 1.8rem; color: var(--accent); }
.proof-drop-text { font-weight: 600; color: var(--text); }
.proof-preview { margin-top: 1rem; }
.proof-preview img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.proof-file {
    display: flex; align-items: center; gap: 0.5rem;
    background: #f4f7fc; border: 1px solid var(--border); border-radius: 10px;
    padding: 0.6rem 0.85rem; font-weight: 600; color: var(--text); word-break: break-all;
}
.proof-file i { color: #c0392b; font-size: 1.2rem; }
