/* ============================================
   MOBILE — Full responsive mobile experience
   ============================================ */

/* ---- Show/Hide Mobile vs Desktop ---- */
.m-dashboard { display: none; }
.d-dashboard { display: block; }
.m-page-header { display: none; }
.m-action-buttons { display: none; }

/* ---- Mobile Dashboard Header ---- */
.m-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 16px;
}

.m-dash-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-dash-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--primary-lighter);
}

.m-dash-greeting {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.m-dash-username {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
}

.m-dash-header-right {
    display: flex;
    gap: 8px;
}

.m-header-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* ---- Balance Slider ---- */
.m-balance-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.m-balance-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 200%;
}

.m-balance-card {
    width: 50%;
    flex-shrink: 0;
    padding: 22px 20px 18px;
    border-radius: 18px;
    color: white;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.m-balance-card.fiat {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 40%, var(--primary-dark) 100%);
}

.m-balance-card.crypto {
    background: linear-gradient(135deg, #1E293B 0%, #334155 40%, #1E293B 100%);
}

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

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

.m-balance-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.m-bc-bank {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.m-bc-holder {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2px;
}

.m-bc-type {
    font-size: 0.7rem;
    opacity: 0.7;
}

.m-bc-acct {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.m-balance-card-mid {
    text-align: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.m-bc-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 6px;
}

.m-bc-amount {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.m-bc-eye {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.m-bc-sub {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 4px;
}

.m-balance-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.m-bc-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.m-bc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    display: inline-block;
}

.m-bc-updated {
    font-size: 0.7rem;
    opacity: 0.5;
}

.m-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 6px;
}

.m-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.m-slider-dot.active {
    background: var(--primary);
    width: 10px;
    height: 10px;
}

.m-slider-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ---- Mobile Quick Actions ---- */
.m-quick-actions {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    margin-bottom: 8px;
}

.m-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.m-qa-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.m-qa-icon.gold {
    background: #FBBF24;
    color: white;
    box-shadow: 0 4px 12px rgba(251,191,36,0.35);
}

.m-qa-icon.dark {
    background: #6B7280;
    color: white;
}

.m-quick-action span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- Mobile Sections ---- */
.m-section {
    margin-bottom: 20px;
}

.m-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.m-section-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.m-section-header a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* ---- Mobile Beneficiaries ---- */
.m-beneficiaries {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.m-beneficiary-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.m-ben-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.m-beneficiary-add span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.m-beneficiary-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.m-beneficiary-empty span:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Mobile Recent Activity ---- */
.m-activity-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.m-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
}

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

.m-activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.m-activity-icon.green { background: #D1FAE5; }
.m-activity-icon.red { background: #FEE2E2; }

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

.m-activity-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.m-activity-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.m-activity-amount {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.m-activity-amount.green { color: #10B981; }
.m-activity-amount.red { color: #EF4444; }

.m-activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    gap: 8px;
}

.m-activity-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.m-activity-empty strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.m-activity-empty span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Mobile Services Grid ---- */
.m-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    overflow: hidden;
}

.m-service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
    overflow: hidden;
    min-width: 0;
}

.m-service-card:active {
    transform: scale(0.98);
}

.m-service-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.m-service-info {
    margin-bottom: 6px;
    overflow: hidden;
}

.m-service-info strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-service-avail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.m-service-avail.green {
    color: var(--success);
}

.m-service-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.m-service-btn {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    color: white;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-service-btn.blue { background: #3B82F6; }
.m-service-btn.green { background: #10B981; }
.m-service-btn.purple { background: #8B5CF6; }
.m-service-btn.red { background: #EF4444; }

/* ---- Mobile Insights ---- */
.m-insight-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-light);
    margin-bottom: 14px;
}

.m-insight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.m-insight-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.m-insight-icon.warning { background: #FEF3C7; }

.m-insight-status {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

.m-insight-status.warning { color: #F59E0B; }

.m-insight-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.m-insight-value {
    font-size: 1rem;
    font-weight: 800;
}

.m-insight-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-input);
    margin-bottom: 8px;
    overflow: hidden;
}

.m-insight-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
    transition: width 0.5s ease;
}

.m-insight-limit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Monthly Stats ---- */
.m-month-stats {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-light);
}

.m-month-stats h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.m-month-row {
    display: flex;
    gap: 12px;
}

.m-month-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

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

.m-month-icon.green { background: #D1FAE5; }
.m-month-icon.red { background: #FEE2E2; }

.m-month-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.m-month-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.m-month-value.green { color: #10B981; }
.m-month-value.red { color: #EF4444; }

/* ---- Mobile Bottom Navigation Bar ---- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 22px;
    z-index: 200;
    padding: 10px 16px 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
    overflow: visible;
}

[data-theme="dark"] .mobile-bottom-nav {
    background: var(--bg-sidebar);
    border-color: var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
}

.mobile-bottom-nav-inner {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    width: 20%;
    min-width: 0;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border-radius: 10px;
    transition: all var(--transition-fast);
    background: transparent;
}

[data-theme="dark"] .mobile-nav-item-icon {
    color: var(--text-muted);
}

.mobile-nav-item.active .mobile-nav-item-icon {
    background: var(--primary-ghost);
    color: var(--primary);
}

/* Center Home button - prominent style */
.mobile-nav-item.center .mobile-nav-item-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(13,159,110,0.35);
    font-size: 1.1rem;
}

[data-theme="dark"] .mobile-nav-item.center .mobile-nav-item-icon {
    box-shadow: 0 6px 18px rgba(13,159,110,0.25);
}

.mobile-nav-item.center span:last-child {
    color: var(--primary);
    font-weight: 700;
}

/* Chat floating button (mobile-adjusted) */
.mobile-chat-btn {
    display: none;
    position: fixed;
    bottom: 85px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0EA5E9;
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14,165,233,0.4);
    z-index: 199;
}

[data-theme="dark"] .mobile-chat-btn {
    background: #0284C7;
    box-shadow: 0 4px 14px rgba(14,165,233,0.25);
}

/* ---- Mobile Sidebar (Bottom Sheet) ---- */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-overlay.visible {
    opacity: 1;
}

.mobile-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 301;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.mobile-sheet.visible {
    transform: translateY(0);
}

.mobile-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: #D1D5DB;
    margin: 12px auto 8px;
}

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

.mobile-sheet-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-sheet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.mobile-sheet-email {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.mobile-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-sheet-nav {
    padding: 12px 16px;
}

.mobile-sheet-section {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 12px 8px 6px;
}

.mobile-sheet-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.mobile-sheet-link:hover,
.mobile-sheet-link.active {
    background: var(--primary-ghost);
    color: var(--primary);
}

.mobile-sheet-link.active {
    box-shadow: var(--shadow-sm);
}

.mobile-sheet-link-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-sheet-link.active .mobile-sheet-link-icon {
    background: var(--primary-ghost);
}

.mobile-sheet-link-text {
    flex: 1;
}

.mobile-sheet-link-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile-sheet-link-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-sheet-link-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mobile-sheet-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

.mobile-sheet-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

.mobile-sheet-footer-item span:first-child {
    font-size: 1rem;
}

/* ---- Mobile PIN Keypad ---- */
.pin-keypad {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 280px;
    margin: 30px auto 0;
}

.pin-key {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.pin-key:active {
    background: var(--primary-ghost);
    border-color: var(--primary);
    transform: scale(0.95);
}

.pin-key.action {
    border: none;
    background: transparent;
}

.pin-key.action.danger {
    color: #EF4444;
    font-size: 1.2rem;
}

.pin-key.backspace {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
    font-size: 1.2rem;
}

.pin-key.backspace:active {
    background: var(--primary);
}

/* Mobile PIN dots */
.pin-dots {
    display: none;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E5E7EB;
    transition: all var(--transition-fast);
}

.pin-dot.filled {
    background: var(--primary);
    transform: scale(1.15);
}

/* Mobile PIN user avatar */
.pin-mobile-avatar {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pin-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
}

.pin-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    border: 2px solid white;
}

.pin-welcome-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.pin-passcode-label {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 12px;
}

/* ---- Mobile Dashboard Overrides ---- */
.mobile-greeting {
    display: none;
}

.mobile-balance-card {
    display: none;
}

.mobile-quick-actions {
    display: none;
}

.mobile-services-grid {
    display: none;
}

.mobile-insights {
    display: none;
}

/* ---- Mobile Header (simplified) ---- */
.mobile-header {
    display: none;
}

/* ============================================
   BANK DETAILS MODAL
   ============================================ */

.bank-details-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    transition: opacity 0.3s;
    opacity: 0;
}

.bank-details-overlay.visible {
    display: block;
    opacity: 1;
}

.bank-details-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bank-details-modal.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.bank-details-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-hover);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
}

.bank-details-close:hover {
    background: var(--border);
    color: var(--text);
}

.bank-details-header {
    text-align: center;
    padding: 28px 24px 20px;
}

.bank-details-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.bank-details-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.bank-details-header p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.bank-details-body {
    padding: 0 24px 20px;
}

.bank-details-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.bank-details-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.bank-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light, var(--border));
}

.bank-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.bank-detail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bank-detail-dot.blue {
    background: var(--primary);
}

.bank-detail-dot.amber {
    background: #f59e0b;
}

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

.bank-detail-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.bank-detail-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
}

.bank-detail-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

.bank-detail-copy {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.bank-detail-copy:hover {
    background: var(--primary-ghost);
    border-color: var(--primary);
}

.bank-details-notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    align-items: flex-start;
}

.bank-details-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}

.bank-details-notice strong {
    display: block;
    font-size: 0.8125rem;
    margin-bottom: 2px;
    color: var(--text);
}

.bank-details-notice p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.bank-details-close-btn {
    display: block;
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.bank-details-close-btn:hover {
    background: var(--bg-hover);
}

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

@media (max-width: 768px) {
    /* Lock horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Show mobile dashboard, hide desktop */
    .m-dashboard {
        display: block;
        max-width: 100%;
        overflow: hidden;
    }

    .d-dashboard {
        display: none;
    }

    /* Show mobile elements */
    .mobile-bottom-nav {
        display: block;
        width: 100%;
        max-width: 100vw;
    }

    .mobile-chat-btn {
        display: flex;
    }

    /* Hide desktop sidebar + header */
    .sidebar {
        display: none !important;
    }

    .header {
        display: none !important;
    }

    .app-layout {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    /* Reset main content margin */
    .main-content {
        margin-left: 0;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Hide desktop chat widget + footer */
    .chat-widget {
        display: none;
    }

    .app-footer {
        display: none;
    }

    /* ============================================
       MOBILE PAGE HEADER (for non-dashboard pages)
       ============================================ */

    .m-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0 12px;
        margin-bottom: 8px;
    }

    .m-page-header-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .m-back-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--bg-card);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text);
        text-decoration: none;
        transition: all 0.2s;
    }

    .m-back-btn:hover {
        background: var(--bg-hover);
    }

    .m-page-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text);
        margin: 0;
    }

    .m-page-header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Hide the desktop page-header on mobile since we have m-page-header */
    .page-header {
        display: none !important;
    }

    /* ============================================
       GLOBAL PAGE STYLES FOR MOBILE
       ============================================ */

    /* Fix page content for mobile */
    .page-content {
        padding: 16px 16px 100px;
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* ---- Page Headers ---- */
    .page-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        border-radius: var(--radius-lg);
        margin-bottom: 16px;
    }

    .page-header-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .page-header-text h2 {
        font-size: 1.1rem;
    }

    .page-header-text p {
        font-size: 0.8rem;
    }

    .page-header .btn {
        width: 100%;
        justify-content: center;
    }

    .page-header > div[style*="display:flex;gap:8px"] {
        width: 100%;
        display: flex !important;
    }

    .page-header > div[style*="display:flex;gap:8px"] .btn {
        flex: 1;
    }

    /* ---- Section Headers ---- */
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 1rem;
    }

    /* ---- Cards ---- */
    .card {
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    /* ---- Stats Row (used on Cards, Dashboard) ---- */
    .stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px 16px;
        border-radius: var(--radius-lg);
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .stat-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    /* ============================================
       TRANSACTIONS PAGE MOBILE
       ============================================ */

    /* Mobile action buttons (Filter / Export) */
    .m-action-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 16px;
    }

    .m-action-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        border-radius: var(--radius-lg);
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
    }

    .m-action-btn.outline {
        background: var(--bg-card);
        color: var(--text);
        border: 1px solid var(--border);
    }

    .m-action-btn.outline:hover {
        background: var(--bg-hover);
    }

    .m-action-btn.primary {
        background: var(--primary);
        color: white;
    }

    .m-action-btn.primary:hover {
        opacity: 0.9;
    }

    /* Transform table into card-based layout */
    .table-container {
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .table {
        font-size: 0.75rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
        gap: 6px;
    }

    .table tbody tr:last-child {
        border-bottom: none;
    }

    .table tbody td {
        display: flex;
        padding: 2px 0;
        border: none;
        font-size: 0.8125rem;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        min-width: 90px;
        color: var(--text-muted);
        font-size: 0.75rem;
    }

    .table tbody td:first-child {
        font-size: 1rem;
    }

    .pagination-bar {
        padding: 12px 16px;
        font-size: 0.75rem;
    }

    .empty-state {
        padding: 50px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Override table td styles for empty state */
    .table tbody td:has(.empty-state) {
        display: block;
    }

    .table tbody td:has(.empty-state)::before {
        display: none;
    }

    .table tbody tr:has(.empty-state) {
        display: block;
        padding: 0;
    }

    .empty-state-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        background: rgba(var(--primary-rgb, 16, 185, 129), 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        color: var(--primary);
    }

    .empty-state h4 {
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0 0 6px;
        color: var(--text);
    }

    .empty-state p {
        font-size: 0.8125rem;
        color: var(--text-muted);
        margin: 0;
    }

    /* ============================================
       CARDS PAGE MOBILE
       ============================================ */
    
    .card-promo {
        border-radius: var(--radius-lg);
        padding: 20px;
    }

    .card-promo h3 {
        font-size: 1.2rem;
    }

    /* Stack the hero banner content vertically on mobile */
    .hero-banner > div[style*="display:flex;justify-content:space-between"] {
        flex-direction: column !important;
        gap: 20px;
    }

    /* Make the virtual card preview full-width */
    .hero-banner .card[style*="min-width:240px"] {
        min-width: 100% !important;
        width: 100%;
    }

    .virtual-card-preview {
        border-radius: var(--radius-lg);
        padding: 20px;
    }

    .feature-pills {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .feature-pill {
        font-size: 0.75rem;
        padding: 6px 12px;
        border-radius: 20px;
    }

    /* ============================================
       TRANSFER PAGES MOBILE
       ============================================ */

    /* Hero Banner */
    .hero-banner {
        padding: 20px;
        border-radius: var(--radius-lg);
        margin-bottom: 16px;
    }

    .hero-banner h2 {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .hero-banner > p {
        font-size: 0.8rem;
        opacity: 0.85;
        margin-bottom: 16px;
    }

    .hero-stats {
        display: flex;
        gap: 0;
        flex-wrap: nowrap;
        background: rgba(255,255,255,0.12);
        border-radius: var(--radius-md);
        padding: 0;
        overflow: hidden;
    }

    .hero-stat {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        gap: 8px;
        border-right: 1px solid rgba(255,255,255,0.15);
    }

    .hero-stat:last-child {
        border-right: none;
    }

    .hero-stat-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: rgba(255,255,255,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .hero-stat-label {
        font-size: 0.65rem;
        opacity: 0.7;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .hero-stat-value {
        font-size: 0.8rem;
        font-weight: 700;
    }

    /* Transfer form card */
    .card.mt-lg {
        margin-top: 16px !important;
    }

    /* Transfer form sections */
    .transfer-form-section {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    /* Available Balance Card */
    .card div[style*="primary-ghost"] {
        border-radius: var(--radius-lg) !important;
        padding: 14px 16px !important;
        margin-bottom: 20px !important;
    }

    /* Beneficiaries */
    .beneficiaries-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .beneficiaries-row::-webkit-scrollbar {
        display: none;
    }

    .beneficiary-add {
        min-width: 56px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
    }

    .beneficiary-card {
        min-width: 60px;
    }

    .beneficiary-empty {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
    }

    .beneficiary-empty-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--bg-card);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

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

    .form-label {
        font-size: 0.8125rem;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
        color: var(--text);
    }

    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
        padding: 14px 16px 14px 44px;
        font-size: 0.9rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--bg-card);
        color: var(--text);
        transition: border-color 0.2s;
        box-sizing: border-box;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: var(--primary);
        outline: none;
    }

    .input-icon-wrapper {
        position: relative;
    }

    .input-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        pointer-events: none;
        z-index: 1;
    }

    .form-textarea {
        min-height: 80px;
        resize: vertical;
    }

    /* Quick amount buttons */
    .quick-amounts {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 10px;
    }

    .quick-amount-btn {
        flex: 1;
        padding: 8px 4px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--bg-card);
        color: var(--text);
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s;
    }

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

    /* Action buttons at bottom */
    .card div[style*="display:flex;gap:12px;margin-top:24px"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .card div[style*="display:flex;gap:12px;margin-top:24px"] .btn {
        width: 100%;
        justify-content: center;
    }

    .card div[style*="display:flex;gap:12px;margin-top:24px"] .btn-primary {
        order: -1;
        padding: 16px;
        font-size: 1rem;
        font-weight: 700;
        border-radius: var(--radius-lg);
    }

    /* Hide "Back to Dashboard" on mobile */
    .card div[style*="text-align:center;margin-top:16px"] {
        display: none;
    }

    /* Security note */
    .security-note {
        font-size: 0.75rem;
        padding: 14px 16px;
        border-radius: var(--radius-lg);
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 16px !important;
        margin-bottom: 16px;
    }

    /* Section header on mobile */
    .card .section-header {
        margin-bottom: 14px;
    }

    .card .section-header .section-title {
        font-size: 1rem;
    }

    .card .section-header div[style*="display:flex;gap:8px"] .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* ============================================
       DEPOSIT PAGE MOBILE
       ============================================ */

    .deposit-methods {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .deposit-method-card {
        padding: 14px;
        border-radius: var(--radius-lg);
    }

    .deposit-method-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    /* ============================================
       SWAP PAGE MOBILE
       ============================================ */

    .swap-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .swap-balance-card {
        padding: 14px;
        border-radius: var(--radius-lg);
    }

    /* ============================================
       LOANS PAGE MOBILE
       ============================================ */

    .loan-types-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 14px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .loan-type-card {
        padding: 14px;
        border-radius: var(--radius-lg);
    }

    /* ============================================
       GRANTS PAGE MOBILE
       ============================================ */

    .grant-type-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .grant-type-card {
        padding: 16px;
    }

    /* ============================================
       SETTINGS PAGE MOBILE
       ============================================ */

    .settings-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .settings-sidebar .settings-nav-item {
        padding: 12px 14px;
        font-size: 0.8125rem;
    }

    /* ============================================
       INTERNATIONAL TRANSFER MOBILE
       ============================================ */

    .method-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .method-card {
        padding: 14px;
    }

    .hero-promo-card {
        flex-direction: column;
        padding: 20px;
    }

    /* ============================================
       SUPPORT PAGE MOBILE
       ============================================ */

    .support-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* ============================================
       DASHBOARD MOBILE (desktop version adjustments)
       ============================================ */

    .dashboard-balance-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .balance-card {
        padding: 14px;
    }

    .balance-card-value {
        font-size: 1.1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .account-card {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .crypto-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .quick-action {
        padding: 14px 8px;
    }

    .quick-action-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .quick-action span {
        font-size: 0.7rem;
    }

    /* ---- PIN Page Mobile ---- */
    .pin-mobile-avatar {
        display: flex;
    }

    .pin-dots {
        display: flex;
    }

    .pin-keypad {
        display: grid;
    }

    .pin-passcode-label {
        display: flex;
    }

    .auth-card .pin-container {
        display: none;
    }

    .auth-card #verifyBtn {
        display: none;
    }

    .auth-card .auth-title {
        display: none;
    }

    .auth-card .auth-subtitle {
        display: none;
    }

    .auth-card {
        padding: 24px 20px;
        max-width: 100%;
        box-shadow: none;
        background: white;
    }

    /* ---- Footer ---- */
    .app-footer {
        padding: 16px;
        margin-bottom: 60px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .dashboard-balance-cards {
        grid-template-columns: 1fr;
    }

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

    .pin-key {
        width: 62px;
        height: 62px;
        font-size: 1.3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 8px;
    }
}
