/* =========================================
   FINANCIAL PARITY - MAIN STYLESHEET
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0369a1;
    --primary-dark: #024f82;
    --primary-light: #dbeafe;
    --secondary: #0284c7;
    --accent: #0ea5e9;
    --gradient: linear-gradient(135deg, #024f82 0%, #0369a1 50%, #0284c7 100%);
    --gradient-card: linear-gradient(145deg, #023e6e 0%, #0369a1 55%, #0284c7 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;

    --bg: #f0f9ff;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 4px 24px rgba(14, 165, 233, 0.08);
    --shadow-md: 0 8px 32px rgba(14, 165, 233, 0.12);
    --shadow-lg: 0 16px 48px rgba(14, 165, 233, 0.16);

    --sidebar-width: 260px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== PAGE LOADER ========== */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--gradient-card);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-img {
    width: 200px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 36px;
    animation: logoPulse 1.5s ease-in-out infinite;
    object-fit: contain;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: logoPulse 1.5s ease-in-out infinite;
}

.loader-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 100px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    background: white;
    border-radius: 100px;
    animation: loaderFill 1.8s ease-in-out forwards;
}

.loader-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    animation: dotBounce 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes loaderFill {
    0% { width: 0; }
    30% { width: 40%; }
    60% { width: 70%; }
    85% { width: 92%; }
    100% { width: 100%; }
}
@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); background: rgba(255,255,255,0.4); }
    40% { transform: translateY(-10px); background: white; }
}

/* ========== AUTH PAGES ========== */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-left {
    background: var(--gradient-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -100px; left: -100px;
}
.auth-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -80px; right: -60px;
}

.auth-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.auth-hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 24px 0 12px;
    position: relative;
    z-index: 1;
}

.auth-hero-subtitle {
    color: rgba(255,255,255,0.8);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.auth-features {
    list-style: none;
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    background: rgba(255,255,255,0.08);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

.auth-features li i {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    min-width: 20px;
}

.auth-right {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.input-wrapper .eye-toggle {
    left: auto;
    right: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.input-wrapper .eye-toggle:hover { color: var(--primary); }

.form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.form-control::placeholder { color: var(--text-light); }

.form-control.no-icon { padding-left: 14px; }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}

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

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.sidebar-logo-img {
    height: 42px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.sidebar-brand-icon {
    width: 36px; height: 36px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-icon i { color: white; font-size: 1rem; }

.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.user-avatar.large {
    width: 56px; height: 56px;
    font-size: 1.1rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.user-id {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.kyc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: all 0.2s;
}

.kyc-badge.verified {
    background: #f0fdf4;
    color: var(--success);
    border-color: #bbf7d0;
}

.kyc-badge i { font-size: 0.75rem; }

.sidebar-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sidebar-actions .btn {
    flex: 1;
    padding: 7px 12px;
    font-size: 0.78rem;
}

.sidebar-nav {
    padding: 12px 12px;
    flex: 1;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    padding: 8px 8px 4px;
    margin-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 2px;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.nav-item:hover i { color: var(--primary); }

.nav-item.active {
    background: var(--gradient);
    color: white;
}

.nav-item.active i { color: white; }

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.sidebar-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 500;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex: 1;
}

.topbar-date i { color: var(--primary); }

/* Topbar center: logo + date */
.topbar-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.topbar-logo-link {
    display: none;
    align-items: center;
}

.topbar-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .topbar-logo-link {
        display: flex;
    }
    .topbar-date {
        display: none;
    }
    .topbar-center {
        justify-content: center;
        flex: 1;
    }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.topbar-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.topbar-bell {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    position: relative;
}

.topbar-bell:hover { background: var(--primary-light); color: var(--primary); }

.topbar-bell .badge {
    position: absolute;
    top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 1.5px solid white;
}

.topbar-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.82rem;
    cursor: pointer;
    position: relative;
}

.topbar-menu-btn {
    display: none;
    width: 38px; height: 38px;
    border: none;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    z-index: 200;
    display: none;
}

.dropdown-menu.show { display: block; animation: dropIn 0.15s ease; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 8px 12px 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
}

.dropdown-header .name { font-weight: 600; font-size: 0.9rem; }
.dropdown-header .id { font-size: 0.75rem; color: var(--text-muted); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.dropdown-item:hover { background: var(--bg); color: var(--text); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: #fef2f2; }

/* ========== PAGE CONTENT ========== */
.page-content {
    padding: 28px;
    flex: 1;
}

.page-header {
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 0.6rem; }

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-icon.blue { background: #e0f2fe; color: var(--primary); }
.stat-icon.green { background: #f0fdf4; color: var(--success); }
.stat-icon.red { background: #fef2f2; color: var(--danger); }
.stat-icon.purple { background: #f5f3ff; color: var(--purple); }
.stat-icon.yellow { background: #fffbeb; color: var(--warning); }

.stat-info { flex: 1; min-width: 0; }

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}

/* ========== BALANCE CARD ========== */
.balance-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: white;
    position: relative;
    overflow: hidden;
    grid-column: span 2;
}

.balance-card::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -60px; right: -40px;
}

.balance-card::after {
    content: '';
    position: absolute;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    bottom: -50px; right: 60px;
}

.balance-card-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 6px;
}

.balance-greeting { font-size: 0.88rem; opacity: 0.8; }
.balance-name { font-size: 1.1rem; font-weight: 600; }
.balance-time { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-date { font-size: 0.78rem; opacity: 0.7; }

.balance-label {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.balance-amount {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.balance-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.balance-account {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-account-label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.balance-account-num {
    font-size: 0.95rem;
    font-weight: 600;
}

.account-status-badge {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.account-status-badge.active {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.balance-btns {
    display: flex;
    gap: 8px;
}

.balance-btn {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.balance-btn:hover { background: rgba(255,255,255,0.25); }

/* ========== QUICK ACTIONS ========== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-action:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.quick-action:hover .quick-action-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.quick-action span {
    font-size: 0.82rem;
    font-weight: 500;
}

/* ========== CARDS ========== */
.card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i { color: var(--primary); }

.card-link {
    font-size: 0.82rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover { color: var(--primary-dark); }

.card-body { padding: 20px; }

/* ========== TRANSACTIONS TABLE ========== */
.table-responsive { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    color: var(--text);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfe; }

.amount-credit { color: var(--success); font-weight: 600; }
.amount-debit { color: var(--danger); font-weight: 600; }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-processed { background: #f0fdf4; color: #16a34a; }
.status-pending { background: #fffbeb; color: #d97706; }
.status-failed { background: #fef2f2; color: #dc2626; }
.status-cancelled { background: #f8fafc; color: var(--text-muted); }

.type-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; }
.type-credit { background: #f0fdf4; color: var(--success); }
.type-debit { background: #fef2f2; color: var(--danger); }

.tx-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.tx-icon.credit { background: #f0fdf4; color: var(--success); }
.tx-icon.debit { background: #fef2f2; color: var(--danger); }

/* ========== VIRTUAL CARD ========== */
.virtual-card-display {
    width: 100%;
    max-width: 380px;
    height: 220px;
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
}

.virtual-card-display::before {
    content: '';
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -60px; right: -40px;
}

.vc-chip {
    width: 40px; height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.vc-number {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}

.vc-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.vc-label { font-size: 0.65rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }
.vc-value { font-size: 0.9rem; font-weight: 600; margin-top: 2px; }

/* ========== TRANSFER FORMS ========== */
.transfer-card {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.transfer-header {
    background: var(--gradient-card);
    padding: 28px 32px;
    color: white;
    text-align: center;
}

.transfer-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
}

.transfer-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.transfer-header p { font-size: 0.85rem; opacity: 0.8; }

.transfer-body { padding: 32px; }

.available-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.available-balance .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.available-balance .value {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}

.amount-input-group {
    position: relative;
    margin-bottom: 8px;
}

.amount-currency {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.amount-input {
    width: 100%;
    padding: 18px 18px 18px 42px;
    font-size: 1.6rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    transition: all 0.2s;
}

.amount-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.amount-shortcuts {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.amount-shortcut {
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.amount-shortcut:hover, .amount-shortcut.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.form-section-number {
    width: 24px; height: 24px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.form-section-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 16px;
    border: 1px solid #bbf7d0;
}

.transfer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

/* ========== PIN SCREEN ========== */
.pin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.pin-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: var(--shadow-lg);
}

.pin-header {
    background: var(--gradient-card);
    padding: 28px;
    text-align: center;
    color: white;
}

.pin-header i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.pin-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.pin-header p { font-size: 0.85rem; opacity: 0.8; }

.pin-body {
    padding: 32px;
    text-align: center;
}

.pin-user { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.pin-user-name { font-weight: 600; font-size: 1rem; }
.pin-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

.pin-input {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.pin-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); }

/* ========== INTERNATIONAL TRANSFER METHODS ========== */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.method-card {
    padding: 18px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.method-card:hover { border-color: var(--primary); background: var(--primary-light); }

.method-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.method-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 10px;
    background: var(--bg);
}

.method-card.selected .method-icon { background: white; }

.method-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.method-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ========== SETTINGS ========== */
.settings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.settings-sidebar {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.settings-profile {
    background: var(--gradient-card);
    padding: 28px 20px;
    text-align: center;
    color: white;
}

.settings-nav { padding: 8px; }

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.settings-nav-item:hover { background: var(--bg); color: var(--text); }
.settings-nav-item.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.settings-nav-item i { width: 20px; text-align: center; }

.settings-content { background: white; border-radius: var(--radius); border: 1px solid var(--border); }

.settings-content-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.settings-content-body { padding: 28px 24px; }

.profile-field {
    margin-bottom: 18px;
}

.profile-field-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.profile-field-value {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
}

.profile-field-value i { color: var(--text-muted); font-size: 0.9rem; }

.copy-btn {
    margin-left: auto;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

/* ========== REGISTRATION ========== */
.register-steps {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    position: relative;
}

.register-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 auto 6px;
    transition: all 0.3s;
    color: var(--text-muted);
}

.step.active .step-circle {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.step.done .step-circle {
    background: var(--success);
    border-color: transparent;
    color: white;
}

.step-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active .step-label { color: var(--primary-dark); font-weight: 600; }

.register-progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 100px;
    margin-bottom: 28px;
    overflow: hidden;
}

.register-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 100px;
    transition: width 0.4s ease;
}

/* ========== LOAN TYPES ========== */
.loan-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.loan-type-card {
    padding: 16px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.loan-type-card:hover, .loan-type-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.loan-type-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.loan-type-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.loan-type-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ========== ALERTS ========== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.alert i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--border);
    display: block;
    margin-bottom: 12px;
}

.empty-state h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; color: var(--text-muted); max-width: 300px; margin: 0 auto 16px; }

/* ========== RIGHT PANEL ========== */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-stats-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
}

.account-stats-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.stat-item:last-child { border-bottom: none; }

.stat-item-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.stat-item-value { font-size: 1rem; font-weight: 700; color: var(--text); }
.stat-item-label { font-size: 0.75rem; color: var(--text-muted); }

.quick-transfer-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.quick-transfer-card .card-header { padding: 16px 18px; }
.quick-transfer-card .card-title { font-size: 0.92rem; }

.quick-transfer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.quick-transfer-item:last-child { border-bottom: none; }
.quick-transfer-item:hover { background: var(--bg); }

.quick-transfer-info h5 { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.quick-transfer-info p { font-size: 0.75rem; color: var(--success); }

.quick-transfer-icon {
    width: 38px; height: 38px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

/* ========== MOBILE MENU OVERLAY ========== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    backdrop-filter: blur(2px);
}

/* ========== BANKING MENU MODAL ========== */
.banking-menu-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    display: none;
}

.banking-menu-modal.show { display: flex; }

.banking-menu-card {
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px 32px;
    width: 100%;
    max-width: 460px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.banking-menu-close {
    float: right;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.banking-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.bm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-muted);
}

.bm-item:hover { background: var(--bg); color: var(--text); }

.bm-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.bm-icon.blue { background: #dbeafe; color: #2563eb; }
.bm-icon.teal { background: #ccfbf1; color: #0d9488; }
.bm-icon.green { background: #dcfce7; color: var(--success); }
.bm-icon.cyan { background: #cffafe; color: var(--secondary); }
.bm-icon.purple { background: #f5f3ff; color: var(--purple); }
.bm-icon.orange { background: #fff7ed; color: #ea580c; }
.bm-icon.yellow { background: #fefce8; color: var(--warning); }
.bm-icon.pink { background: #fdf2f8; color: #db2777; }
.bm-icon.red { background: #fef2f2; color: var(--danger); }

.bm-item span { font-size: 0.78rem; font-weight: 500; text-align: center; }

/* ========== BOTTOM NAV (MOBILE) ========== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 95;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: all 0.2s;
    min-width: 60px;
}

.bn-item i { font-size: 1.2rem; }
.bn-item.active { color: var(--primary); }

.bn-center {
    width: 52px; height: 52px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-top: -20px;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.bn-center:hover { transform: scale(1.08); }

/* ========== BSB PAGE ========== */
.bsb-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.bsb-result {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    margin-top: 16px;
}

.bsb-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.bsb-bank-icon {
    width: 48px; height: 48px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.bsb-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bsb-field { padding: 12px 14px; background: white; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.bsb-field-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-bottom: 3px; }
.bsb-field-value { font-size: 0.88rem; font-weight: 600; color: var(--text); }

/* ========== SEARCH / FILTER ========== */
.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    padding: 10px 14px 10px 38px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-body);
    width: 100%;
    transition: all 0.2s;
    background: var(--bg);
}

.search-input:focus { border-color: var(--primary); background: white; }

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 3px solid var(--primary);
    min-width: 280px;
    animation: toastIn 0.3s ease;
    cursor: pointer;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== FOOTER ========== */
.dashboard-footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    :root { --sidebar-width: 240px; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .mobile-overlay.show { display: block; }

    .main-content { margin-left: 0; }

    .topbar-menu-btn { display: flex; }

    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { padding: 40px 24px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }

    .page-content { padding: 20px 16px; }
    .topbar { padding: 12px 16px; }

    .bottom-nav { display: block; }
    .main-content { padding-bottom: 70px; }

    .dashboard-footer { display: none; }

    .balance-card { grid-column: span 1; }

    .settings-layout { grid-template-columns: 1fr; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
    .loan-types-grid { grid-template-columns: repeat(2, 1fr); }
    .transfer-actions { grid-template-columns: 1fr; }
    .bsb-detail { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .auth-right { padding: 32px 20px; }
    .balance-amount { font-size: 1.8rem; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
    .loan-types-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== CHECKBOX ========== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    margin: 0;
}

/* ========== LINK ========== */
.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ========== ACCOUNT STATUS ========== */
.status-inactive { color: var(--danger); }
.status-active { color: var(--success); }
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}
.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--danger); }

/* ========== DIVIDER ========== */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 16px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .right-panel { order: -1; }
}


/* ==============================================
   FINANCIAL PARITY
   ENHANCED MOBILE RESPONSIVENESS
   ============================================== */

/* --- Touch targets & base mobile defaults --- */
@media (max-width: 768px) {
    html { font-size: 15px; }

    body { overflow-x: hidden; }

    /* Topbar */
    .topbar {
        padding: 10px 14px;
        position: sticky;
        top: 0;
        z-index: 900;
        background: #fff;
        box-shadow: 0 2px 8px rgba(3,105,161,0.12);
    }
    .topbar-balance { font-size: 1rem; }
    .topbar-user-name { display: none; }

    /* Sidebar */
    .sidebar {
        width: 280px !important;
        z-index: 1000;
        box-shadow: 4px 0 24px rgba(3,105,161,0.18);
    }
    .sidebar-logo { font-size: 1.4rem; padding: 18px 16px; }
    .nav-link { padding: 13px 16px; font-size: 0.92rem; }
    .nav-link svg, .nav-link i { width: 20px; height: 20px; font-size: 1.1rem; }

    /* Main content */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        min-width: 0;
    }
    .page-content { padding: 16px 12px 80px; }

    /* Cards & Stats */
    .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .stat-card { padding: 14px 12px; }
    .stat-icon { width: 40px; height: 40px; font-size: 1rem; }
    .stat-value { font-size: 1.2rem; }

    /* Balance card */
    .balance-card {
        border-radius: 16px;
        padding: 20px 18px;
    }
    .balance-amount { font-size: 2rem !important; }
    .balance-label { font-size: 0.78rem; }

    /* Quick actions */
    .quick-actions { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
    .action-btn { padding: 12px 8px; font-size: 0.78rem; }
    .action-icon { width: 44px; height: 44px; font-size: 1.1rem; }

    /* Transactions list */
    .tx-item { padding: 12px 10px; }
    .tx-icon { width: 38px; height: 38px; font-size: 0.9rem; min-width: 38px; }
    .tx-name { font-size: 0.88rem; }
    .tx-meta { font-size: 0.72rem; }
    .tx-amount { font-size: 0.92rem; }

    /* Forms */
    .form-control, .form-select {
        height: 46px;
        font-size: 0.92rem;
        padding: 10px 14px;
    }
    .form-label { font-size: 0.82rem; margin-bottom: 5px; }
    .btn { height: 46px; font-size: 0.92rem; border-radius: 10px; }
    .btn-lg { height: 50px; font-size: 0.95rem; }

    /* Page headers */
    .page-title { font-size: 1.3rem; }
    .page-subtitle { font-size: 0.82rem; }

    /* Cards */
    .card { border-radius: 14px; padding: 16px 14px; }
    .card-header { padding: 14px 14px 0; }
    .card-body { padding: 14px; }
    .card-title { font-size: 0.95rem; }

    /* Tables: horizontal scroll */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 560px; }
    th, td { padding: 10px 10px; font-size: 0.82rem; white-space: nowrap; }

    /* Modals */
    .modal-content { margin: 12px; border-radius: 16px; }
    .modal-header, .modal-body, .modal-footer { padding: 16px; }

    /* Transfer forms */
    .transfer-card { padding: 18px 14px; }
    .method-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .method-option { padding: 14px 10px; font-size: 0.82rem; }

    /* Loan types */
    .loan-types-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }

    /* Settings */
    .settings-layout { grid-template-columns: 1fr !important; }
    .settings-nav { display: flex; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 8px; }
    .settings-nav-item { white-space: nowrap; padding: 8px 14px; font-size: 0.82rem; }

    /* Support */
    .support-layout { grid-template-columns: 1fr !important; }

    /* KYC */
    .kyc-steps { flex-direction: column; gap: 8px; }

    /* Bottom nav */
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 16px rgba(3,105,161,0.10);
        z-index: 950;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
    }
    .bottom-nav-item { font-size: 0.65rem; gap: 3px; }
    .bottom-nav-icon { font-size: 1.15rem; }

    /* Auth pages */
    .auth-wrapper { grid-template-columns: 1fr !important; }
    .auth-left { display: none !important; }
    .auth-right {
        padding: 28px 20px !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .auth-box { max-width: 100% !important; width: 100%; }
    .auth-logo { font-size: 2rem; margin-bottom: 6px; }
    .auth-form-title { font-size: 1.3rem; }
}

/* --- Small phones (≤ 400px) --- */
@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr !important; }
    .quick-actions { grid-template-columns: repeat(2, 1fr) !important; }
    .balance-amount { font-size: 1.7rem !important; }
    .page-content { padding: 12px 10px 76px; }
    .btn-group { flex-direction: column; gap: 8px; }
    .action-icon { width: 40px; height: 40px; }
    .method-grid { grid-template-columns: 1fr !important; }
}

/* --- Landscape phones --- */
@media (max-height: 500px) and (max-width: 900px) {
    .sidebar { padding-top: 10px; }
    .page-content { padding-top: 10px; }
    .balance-card { padding: 14px; }
}

/* --- Tablet (769px – 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    :root { --sidebar-width: 220px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .page-content { padding: 20px 18px; }
}



/* ==============================================
   FPCU — TOPBAR REDESIGN (matches screenshot)
   ============================================== */

/* Topbar: always show menu button, lay out like screenshot */
.topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(3,105,161,0.08);
    min-height: 64px;
}

/* Hamburger — always visible */
.topbar-menu-btn {
    display: flex !important;
    width: 40px; height: 40px;
    border: none;
    background: var(--bg);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Date block — center, small, multiline */
.topbar-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    flex: 1;
    text-align: left;
}
.topbar-date i { color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }
.topbar-date span { display: block; }

/* Balance pill */
.topbar-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient);
    color: white !important;
    padding: 7px 13px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.topbar-balance * { color: white !important; }
.topbar-balance i { font-size: 0.85rem; }

/* Bell */
.topbar-bell {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

/* Avatar */
.topbar-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.78rem;
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ==============================================
   FPCU — BUTTON FIX (white text on all buttons)
   ============================================== */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary {
    color: white !important;
    background: var(--gradient) !important;
}

.btn-success, .btn-danger, .btn-warning {
    color: white !important;
}

/* Outline button fix */
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted) !important;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* ==============================================
   FPCU — GLOBAL FORM MOBILE FIX
   Applies to ALL pages with forms/inputs
   ============================================== */

/* Base input styles — full width, good height */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px !important; /* prevents iOS zoom */
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
    line-height: 1.4;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3,105,161,0.1);
    background: white;
}

/* Input wrapper icons */
.input-wrapper {
    position: relative;
}
.input-wrapper > i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}
.input-wrapper input {
    padding-left: 40px !important;
}
.eye-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Form labels */
.form-label,
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

/* Form groups */
.form-group {
    margin-bottom: 18px;
}

/* Form rows — single column on mobile */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Textarea */
textarea.form-control,
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Select arrow */
select.form-control,
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Auth form container */
.auth-form-container {
    width: 100%;
    max-width: 420px;
}
.auth-right {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
    min-height: 100vh;
}

/* Register steps */
.register-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Transfer / page forms */
.transfer-card,
.card,
.form-section {
    padding: 20px 16px;
    border-radius: 14px;
}

/* Bottom nav fix */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 950;
    box-shadow: 0 -4px 16px rgba(3,105,161,0.08);
    padding: 0 4px;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    transition: all 0.2s;
    flex: 1;
}
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--primary); }
.bottom-nav-item .bn-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}
.bottom-nav-item.center-btn .bn-icon {
    background: var(--gradient);
    color: white;
    width: 46px; height: 46px;
    box-shadow: 0 4px 14px rgba(3,105,161,0.35);
    margin-top: -12px;
    border: 3px solid white;
}
.bottom-nav-item.active .bn-icon { background: var(--primary-light); }

/* ==============================================
   FPCU — FULL MOBILE MEDIA QUERIES
   ============================================== */
@media (max-width: 768px) {
    /* Main content no left margin */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Page padding with bottom nav space */
    .page-content {
        padding: 14px 12px 80px !important;
    }

    /* Topbar compact */
    .topbar {
        padding: 8px 12px;
        min-height: 58px;
    }
    .topbar-balance {
        font-size: 0.78rem;
        padding: 6px 11px;
    }
    .topbar-balance i { display: none; }

    /* Sidebar slides in from left */
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0; bottom: 0;
        z-index: 1000;
        width: 280px !important;
        overflow-y: auto;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    /* Auth pages */
    .auth-wrapper {
        grid-template-columns: 1fr !important;
        min-height: 100vh;
    }
    .auth-left { display: none !important; }
    .auth-right {
        padding: 28px 18px 40px !important;
        align-items: flex-start;
    }
    .auth-form-container {
        max-width: 100% !important;
        width: 100%;
    }

    /* Form rows go single column */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    /* Inputs bigger tap targets */
    .form-control,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="date"],
    select {
        min-height: 50px;
        font-size: 16px !important;
    }

    /* Buttons full width in forms */
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Cards */
    .card { border-radius: 12px; }
    .card-header { padding: 14px 14px 0; }
    .card-body { padding: 14px; }

    /* Stats grid */
    .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .stat-card { padding: 14px 12px; }

    /* Tables scroll horizontally */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 540px; }
    th, td { padding: 10px 10px; font-size: 0.8rem; white-space: nowrap; }

    /* Transfer/international form */
    .method-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .transfer-actions { flex-direction: column !important; gap: 10px; }
    .transfer-actions .btn { width: 100% !important; }

    /* Loan types */
    .loan-types-grid { grid-template-columns: 1fr 1fr !important; }

    /* Settings */
    .settings-layout { grid-template-columns: 1fr !important; }
    .settings-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .settings-nav-item { white-space: nowrap; padding: 8px 14px; }

    /* Balance card */
    .balance-card { grid-column: span 1 !important; }
    .balance-amount { font-size: 1.8rem !important; }

    /* Modals */
    .modal-content {
        margin: 10px;
        border-radius: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-header, .modal-body, .modal-footer { padding: 14px; }

    /* KYC */
    .kyc-steps { flex-direction: column; gap: 8px; }

    /* Grid 2/3 go single col */
    .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
    .main-grid { grid-template-columns: 1fr !important; }
    .bsb-detail { grid-template-columns: 1fr !important; }

    /* Support */
    .support-layout { grid-template-columns: 1fr !important; }

    /* Page title */
    .page-header { margin-bottom: 16px; }
    .page-title { font-size: 1.25rem; }
    .page-subtitle { font-size: 0.8rem; }

    /* Dashboard footer hide on mobile */
    .dashboard-footer { display: none; }

    /* Show bottom nav */
    .bottom-nav { display: flex; }
    .main-content { padding-bottom: 70px; }

    /* Quick actions grid */
    .quick-actions { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
    .action-btn { padding: 12px 6px; }
    .action-icon { width: 42px; height: 42px; font-size: 1rem; }
    .action-label { font-size: 0.72rem; }

    /* Register step buttons */
    .register-step-actions {
        display: flex;
        gap: 10px;
    }
    .register-step-actions .btn {
        flex: 1;
    }
}

@media (max-width: 400px) {
    .topbar-date { display: none; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .quick-actions { grid-template-columns: repeat(2, 1fr) !important; }
    .method-grid { grid-template-columns: 1fr !important; }
    .loan-types-grid { grid-template-columns: 1fr !important; }
    .page-content { padding: 12px 10px 78px !important; }
    .balance-amount { font-size: 1.5rem !important; }
    .topbar-balance { font-size: 0.72rem; padding: 5px 10px; }
}



/* ==============================================
   FPCU — COMPREHENSIVE MOBILE FIXES v3
   ============================================== */

/* -----------------------------------------------
   1. INPUT WRAPPER FIX: icon + placeholder spacing
      The icon sits at left:14px and is ~16px wide,
      so we need padding-left ≥ 42px on every input
      inside an .input-wrapper
   ----------------------------------------------- */
.input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Icon absolutely positioned on the left */
.input-wrapper > i:first-child,
.input-wrapper > i.fa,
.input-wrapper > i.fas,
.input-wrapper > i.far,
.input-wrapper > i.fab {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
    width: 16px;
    text-align: center;
}

/* All inputs/selects inside input-wrapper MUST have left padding */
.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    padding-left: 42px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Eye-toggle stays on the right */
.input-wrapper .eye-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    left: auto !important;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 2;
    pointer-events: all;
}

/* For inputs with eye-toggle, add right padding so text doesn't run under icon */
.input-wrapper input[type="password"] {
    padding-right: 42px !important;
}

/* Date inputs: also ensure no overlap */
.input-wrapper input[type="date"] {
    padding-left: 42px !important;
    padding-right: 12px !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Select inside input-wrapper */
.input-wrapper select {
    padding-left: 42px !important;
    padding-right: 36px !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* General form-control without icon wrapper */
.form-control {
    padding: 12px 14px;
    font-size: 16px !important; /* prevents iOS zoom */
    -webkit-appearance: none;
    appearance: none;
}

/* form-control inside input-wrapper (icon present) */
.input-wrapper .form-control {
    padding-left: 42px !important;
}

/* -----------------------------------------------
   2. TOPBAR REDESIGN: Logo + bell + dropdown
      Remove balance & date, show brand logo instead
   ----------------------------------------------- */

/* The topbar-brand area replaces topbar-date */
.topbar-brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.topbar-brand-logo {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.topbar-brand-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.topbar-brand-sub {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Topbar: hide balance and date on mobile, show logo */
@media (max-width: 768px) {
    .topbar-balance { display: none !important; }
    .topbar-date    { display: none !important; }

    .topbar {
        padding: 10px 14px;
        min-height: 58px;
        gap: 10px;
    }

    .topbar-menu-btn {
        display: flex !important;
        order: 0;
    }

    .topbar-brand-area {
        display: flex !important;
        order: 1;
        flex: 1;
    }

    .topbar-right {
        order: 2;
        gap: 8px;
    }

    .topbar-bell {
        width: 36px;
        height: 36px;
    }
    .topbar-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.78rem;
    }
}

/* On desktop, keep existing look (hide brand area, show date+balance) */
@media (min-width: 769px) {
    .topbar-brand-area { display: none; }
    .topbar-date       { display: flex; }
    .topbar-balance    { display: flex; }
}

/* -----------------------------------------------
   3. INDEX.PHP NAV: Fix "Open Account" button
      On mobile nav, the mob-open btn needs
      proper background + text color
   ----------------------------------------------- */
.mob-open {
    background: white !important;
    color: var(--primary-dark) !important;
    border: none !important;
    font-weight: 700 !important;
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.mob-login {
    border: 1.5px solid rgba(255,255,255,0.6) !important;
    color: white !important;
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Also fix the desktop "Open Account" nav button in case of any conflicts */
.btn-nav-open {
    background: var(--gradient) !important;
    color: white !important;
    border: none;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-nav-open:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(3,105,161,0.4);
    color: white !important;
}

/* -----------------------------------------------
   4. FORM ROW: single column on mobile
   ----------------------------------------------- */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Ensure all inputs/selects prevent iOS zoom (needs 16px) */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Auth form should fill width comfortably */
    .auth-form-container {
        max-width: 100% !important;
        width: 100%;
        padding: 0;
    }

    /* Register steps: compress for mobile */
    .register-steps {
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }
    .step-label {
        font-size: 0.62rem;
        white-space: nowrap;
    }

    /* Bottom nav safe area */
    .bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* -----------------------------------------------
   5. TRANSFER PAGES: beneficiary form fixes
      Ensure all icons don't overlap placeholders
   ----------------------------------------------- */
.transfer-body .input-wrapper input,
.transfer-body .input-wrapper select {
    padding-left: 42px !important;
}

/* -----------------------------------------------
   6. GENERAL AUTH PAGE FIXES
   ----------------------------------------------- */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

@media (max-width: 768px) {
    .auth-right {
        padding: 32px 18px 48px !important;
        align-items: flex-start;
        padding-top: 48px !important;
    }
}

/* -----------------------------------------------
   7. DASHBOARD: Topbar on desktop also uses logo
      when sidebar is collapsed (always show brand)
   ----------------------------------------------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

