/* ==========================================================================
   Bespoke account theme
   The customer-facing account area. Admin is untouched.

   1. Tokens        5. Wallet cards       9. Legacy (Metronic) alignment
   2. Shell         6. Lists & tables    10. Responsive
   3. Primitives    7. Data viz
   4. Forms         8. Drawers & modals
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --bx-primary: #6D28D9;
    --bx-primary-strong: #5B21B6;
    --bx-primary-deep: #4C1D95;
    --bx-violet: #7C3AED;
    --bx-violet-soft: #8B5CF6;
    --bx-primary-50: #F3EEFE;
    --bx-primary-100: #EDE9FE;
    --bx-primary-200: #DDD6F3;
    --bx-primary-300: #C4B5FD;

    --bx-ink: #1F1D2B;
    --bx-body: #3F3B4F;
    --bx-muted: #6B7280;
    --bx-bg: #F7F6FB;
    --bx-surface: #FFFFFF;
    --bx-surface-tint: #FCFBFF;
    --bx-soft: #F5F3FA;
    --bx-border: #EEEAF6;
    --bx-border-strong: #E7E3F1;
    --bx-divider: #F1EEF7;

    --bx-green: #15803D;
    --bx-green-bg: #DCFCE7;
    --bx-red: #B91C1C;
    --bx-red-bg: #FEE2E2;
    --bx-amber: #B45309;
    --bx-amber-bg: #FEF3C7;
    --bx-teal: #0F766E;
    --bx-teal-bg: #CCFBF1;
    --bx-blue: #1D4ED8;
    --bx-blue-bg: #DBEAFE;
    --bx-pink: #BE185D;
    --bx-pink-bg: #FCE7F3;

    --bx-grad-primary: linear-gradient(135deg, #7C3AED, #6D28D9);
    --bx-grad-usd: linear-gradient(135deg, #1E5FD0 0%, #3B8AF0 100%);
    --bx-grad-eur: linear-gradient(135deg, #0D8F7E 0%, #2CC3A6 100%);
    --bx-grad-gbp: linear-gradient(135deg, #7E22CE 0%, #A855F7 100%);
    --bx-grad-main: linear-gradient(135deg, #4C1D95 0%, #7C3AED 100%);
    --bx-grad-savings: linear-gradient(135deg, #0D8F7E 0%, #2CC3A6 100%);
    --bx-grad-unsettled: linear-gradient(135deg, #B45309 0%, #F59E0B 100%);

    --bx-radius-lg: 20px;
    --bx-radius: 14px;
    --bx-radius-sm: 10px;
    --bx-shadow-card: 0 1px 2px rgba(31, 29, 43, .04);
    --bx-shadow-pop: 0 18px 40px -12px rgba(31, 29, 43, .25);
    --bx-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bx-sidebar-w: 260px;
}

/* 2. Shell ----------------------------------------------------------------- */
body.bx-account {
    margin: 0;
    background: var(--bx-bg) !important;
    color: var(--bx-ink);
    font-family: var(--bx-font) !important;
    -webkit-font-smoothing: antialiased;
}
body.bx-account h1, body.bx-account h2, body.bx-account h3, body.bx-account h4,
body.bx-account h5, body.bx-account h6, body.bx-account .btn, body.bx-account input,
body.bx-account select, body.bx-account textarea, body.bx-account .form-control,
body.bx-account .form-select, body.bx-account .menu, body.bx-account .modal,
body.bx-account .drawer, body.bx-account .card { font-family: var(--bx-font); }

.bx-shell { display: flex; min-height: 100vh; align-items: stretch; }

.bx-sidebar {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    flex: 0 0 var(--bx-sidebar-w); width: var(--bx-sidebar-w);
    box-sizing: border-box; padding: 24px 20px;
    background: var(--bx-surface); border-right: 1px solid var(--bx-border);
    display: flex; flex-direction: column; gap: 22px; z-index: 105;
}
.bx-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px; color: var(--bx-ink); }
.bx-brand img { max-height: 34px; max-width: 170px; width: auto; }
.bx-brand-name { font-weight: 800; font-size: 21px; letter-spacing: -.3px; color: var(--bx-ink); }

.bx-nav { display: flex; flex-direction: column; gap: 2px; }
.bx-nav-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--bx-muted); padding: 0 12px 6px; }
.bx-nav-link {
    display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 44px;
    border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--bx-body);
    cursor: pointer; transition: background .15s, color .15s;
}
.bx-nav-link i { width: 18px; text-align: center; font-size: 16px; color: inherit; }
.bx-nav-link:hover { background: var(--bx-primary-50); color: var(--bx-primary-strong); }
.bx-nav-link.active { font-weight: 700; color: #fff; background: var(--bx-grad-primary); box-shadow: 0 6px 16px rgba(109, 40, 217, .28); }
.bx-nav-link.active:hover { color: #fff; }
.bx-nav-badge { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--bx-primary-100); color: var(--bx-primary-strong); border-radius: 999px; padding: 2px 8px; }
.bx-nav-link.active .bx-nav-badge { background: rgba(255, 255, 255, .25); color: #fff; }

.bx-promo { margin-top: auto; border-radius: 18px; padding: 18px; background: linear-gradient(140deg, #6D28D9, #9333EA); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.bx-promo-title { font-weight: 700; font-size: 15px; }
.bx-promo-text { font-size: 12.5px; line-height: 1.5; color: #EDE9FE; }
.bx-promo .bx-btn { align-self: flex-start; background: #fff; color: var(--bx-primary-strong); }

.bx-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bx-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px 32px 0; }
.bx-topbar-title { flex: 1 1 220px; min-width: 0; }
.bx-topbar-title h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.4px; color: var(--bx-ink); }
.bx-topbar-title p { margin: 4px 0 0; font-size: 13.5px; color: var(--bx-muted); }
.bx-search {
    flex: 1 1 300px; max-width: 420px; display: flex; align-items: center; gap: 10px;
    background: var(--bx-surface); border: 1px solid var(--bx-border-strong); border-radius: var(--bx-radius);
    padding: 0 14px; height: 46px; margin: 0;
}
.bx-search i { color: var(--bx-muted); }
.bx-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--bx-ink); min-width: 0; }
.bx-search:focus-within { border-color: var(--bx-primary-300); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.bx-topbar-actions { display: flex; align-items: center; gap: 10px; }
.bx-icon-btn {
    position: relative; width: 46px; height: 46px; border-radius: var(--bx-radius);
    border: 1px solid var(--bx-border-strong); background: var(--bx-surface);
    display: grid; place-items: center; color: var(--bx-primary); font-size: 18px; cursor: pointer;
}
.bx-icon-btn:hover { border-color: var(--bx-primary-300); color: var(--bx-primary-strong); }
.bx-icon-btn .bx-dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #DC2626; border: 2px solid #fff; }
.bx-menu-toggle { display: none; }

/* Megaphone's bell inherits the icon-button look */
.bx-topbar .megaphone { display: flex; align-items: center; }
.bx-topbar .megaphone > button, .bx-topbar .megaphone .bell, .bx-topbar .megaphone > div > button {
    width: 46px; height: 46px; border-radius: var(--bx-radius); border: 1px solid var(--bx-border-strong) !important;
    background: var(--bx-surface) !important; color: var(--bx-primary) !important; display: grid; place-items: center;
}

.bx-profile {
    display: flex; align-items: center; gap: 10px; border: 1px solid var(--bx-border-strong);
    background: var(--bx-surface); border-radius: var(--bx-radius); padding: 5px 12px 5px 5px; height: 46px; cursor: pointer;
}
.bx-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px; background: linear-gradient(140deg, #8B5CF6, #6D28D9);
    color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; background-size: cover; background-position: center;
}
.bx-profile-text { text-align: left; line-height: 1.2; }
.bx-profile-name { display: block; font-size: 13.5px; font-weight: 700; color: var(--bx-ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-profile-sub { display: block; font-size: 11.5px; color: var(--bx-muted); }
.bx-profile-menu.menu-sub-dropdown { border-radius: 16px; border: 1px solid var(--bx-border); box-shadow: var(--bx-shadow-pop); }

.bx-content { flex: 1 1 auto; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bx-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--bx-muted); margin: 0 32px; padding: 16px 0 24px; border-top: 1px solid var(--bx-border); }
.bx-footer a { color: var(--bx-muted); }
.bx-footer a:hover { color: var(--bx-primary); }
.bx-footer-links { display: flex; gap: 18px; }

.bx-overlay { display: none; }

/* 3. Primitives ------------------------------------------------------------ */
.bx-account a { color: var(--bx-primary); text-decoration: none; }
.bx-account a:hover { color: var(--bx-primary-deep); }

.bx-card {
    background: var(--bx-surface); border: 1px solid var(--bx-border); border-radius: var(--bx-radius-lg);
    padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--bx-shadow-card);
}
.bx-card-lg { padding: 24px; gap: 16px; }
.bx-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bx-card-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--bx-ink); }
.bx-section-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--bx-ink); }
.bx-link { font-size: 13px; font-weight: 600; color: var(--bx-primary); background: none; border: 0; padding: 0; cursor: pointer; }
.bx-link:hover { color: var(--bx-primary-deep); }
.bx-muted { color: var(--bx-muted); }
.bx-small { font-size: 12.5px; }
.bx-xsmall { font-size: 11.5px; }
.bx-strong { font-weight: 700; color: var(--bx-ink); }
.bx-pos { color: var(--bx-green) !important; }
.bx-neg { color: var(--bx-red) !important; }
.bx-accent { color: var(--bx-primary-strong) !important; }
.bx-soft { border-radius: 12px; background: var(--bx-soft); padding: 10px 12px; font-size: 12.5px; }

.bx-grid { display: grid; gap: 20px; }
.bx-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.bx-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bx-grid-wallets { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bx-split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.bx-split > .bx-split-main { flex: 999 1 520px; min-width: 0; }
.bx-split > .bx-split-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.bx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
    border-radius: 12px; border: 1px solid transparent; font-family: var(--bx-font); font-weight: 700; font-size: 13px;
    cursor: pointer; transition: filter .15s, background .15s, border-color .15s; white-space: nowrap; text-decoration: none;
}
.bx-btn-primary { background: var(--bx-primary); color: #fff; }
.bx-btn-primary:hover { background: var(--bx-primary-strong); color: #fff; }
.bx-btn-outline { background: var(--bx-surface); color: var(--bx-primary-strong); border-color: var(--bx-primary-200); }
.bx-btn-outline:hover { border-color: var(--bx-primary-300); color: var(--bx-primary-deep); }
.bx-btn-ghost { background: var(--bx-surface); color: var(--bx-ink); border-color: var(--bx-border-strong); height: 38px; font-weight: 600; font-size: 12.5px; padding: 0 12px; }
.bx-btn-block { width: 100%; }
.bx-btn[disabled] { opacity: .55; cursor: not-allowed; }

.bx-chip { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.bx-chip-sm { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
.bx-chip-violet { background: var(--bx-primary-100); color: var(--bx-primary-strong); }
.bx-chip-blue { background: var(--bx-blue-bg); color: var(--bx-blue); }
.bx-chip-teal { background: var(--bx-teal-bg); color: var(--bx-teal); }
.bx-chip-amber { background: var(--bx-amber-bg); color: var(--bx-amber); }
.bx-chip-pink { background: var(--bx-pink-bg); color: var(--bx-pink); }
.bx-chip-green { background: var(--bx-green-bg); color: var(--bx-green); }
.bx-chip-red { background: var(--bx-red-bg); color: var(--bx-red); }

.bx-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.bx-pill-up { color: var(--bx-green); background: var(--bx-green-bg); }
.bx-pill-down { color: var(--bx-red); background: var(--bx-red-bg); }
.bx-pill-flat { color: var(--bx-muted); background: var(--bx-soft); }

.bx-badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 4px 8px; color: #fff; background: var(--bx-green); text-transform: capitalize; }
.bx-badge-pending { background: var(--bx-primary); }
.bx-badge-failed, .bx-badge-declined, .bx-badge-cancelled { background: var(--bx-red); }

.bx-progress { height: 8px; border-radius: 999px; background: var(--bx-border); overflow: hidden; }
.bx-progress-sm { height: 6px; }
.bx-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7C3AED, #6D28D9); }

.bx-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--bx-border); flex-wrap: wrap; }
.bx-tab { border: 0; background: transparent; padding: 10px 14px; min-height: 44px; font-size: 13.5px; font-weight: 500; color: var(--bx-muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; }
.bx-tab:hover { color: var(--bx-primary-strong); }
.bx-tab.active { font-weight: 700; color: var(--bx-primary-strong); border-bottom-color: var(--bx-primary); }

.bx-seg { display: flex; background: var(--bx-soft); border-radius: 12px; padding: 4px; gap: 2px; }
.bx-seg button { border: 0; border-radius: 9px; padding: 0 12px; height: 34px; font-size: 12.5px; font-weight: 700; background: transparent; color: var(--bx-muted); }
.bx-seg button.active { background: #fff; color: var(--bx-primary-strong); box-shadow: 0 1px 3px rgba(31, 29, 43, .12); }

.bx-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.bx-filter { border: 1px solid var(--bx-border-strong); border-radius: 999px; padding: 0 14px; height: 36px; font-size: 12.5px; font-weight: 700; background: #fff; color: var(--bx-body); }
.bx-filter span { opacity: .75; margin-left: 2px; }
.bx-filter.active { border-color: var(--bx-primary); background: var(--bx-primary); color: #fff; }

.bx-qa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bx-qa {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px;
    border-radius: 16px; border: 1px solid var(--bx-border); background: var(--bx-surface-tint); transition: all .15s; min-height: 96px;
    font-size: 12.5px; font-weight: 600; color: var(--bx-ink); text-align: center; cursor: pointer;
}
.bx-qa:hover { border-color: var(--bx-primary-300); transform: translateY(-1px); color: var(--bx-ink); }

.bx-avatars { display: flex; }
.bx-avatars span { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; margin-left: -8px; }
.bx-avatars span:first-child { margin-left: 0; }

.bx-empty { padding: 28px; text-align: center; color: var(--bx-muted); font-size: 13px; }
.bx-empty i { display: block; font-size: 28px; color: var(--bx-primary-300); margin-bottom: 10px; }

.bx-check { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.bx-check.done { background: var(--bx-green-bg); color: var(--bx-green); }
.bx-check.todo { border: 2px solid var(--bx-primary-300); }

.bx-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 4. Forms ----------------------------------------------------------------- */
.bx-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--bx-body); margin-bottom: 6px; }
.bx-input, .bx-select {
    width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--bx-border-strong); background: #fff;
    padding: 0 14px; font-size: 14px; color: var(--bx-ink); font-family: var(--bx-font); outline: 0;
}
.bx-input:focus, .bx-select:focus { border-color: var(--bx-primary-300); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.bx-input-lg { height: 56px; font-size: 22px; font-weight: 700; }
.bx-input-group { display: flex; align-items: center; border: 1px solid var(--bx-border-strong); border-radius: 12px; background: #fff; overflow: hidden; }
.bx-input-group:focus-within { border-color: var(--bx-primary-300); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.bx-input-group .bx-addon { padding: 0 14px; font-weight: 700; color: var(--bx-muted); font-size: 18px; }
.bx-input-group input { border: 0; flex: 1; height: 56px; font-size: 22px; font-weight: 700; outline: 0; min-width: 0; font-family: var(--bx-font); }
.bx-error { display: block; margin-top: 6px; font-size: 12px; color: var(--bx-red); }
.bx-summary { border-radius: 14px; background: var(--bx-soft); padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.bx-summary-row { display: flex; justify-content: space-between; gap: 10px; }
.bx-summary-total { border-top: 1px solid var(--bx-primary-200); padding-top: 8px; font-weight: 800; color: var(--bx-ink); }

/* 5. Wallet cards ---------------------------------------------------------- */
.bx-wallet { border-radius: 22px; padding: 22px; color: #fff; box-shadow: 0 12px 28px -12px rgba(31, 29, 43, .35); display: flex; flex-direction: column; min-width: 0; }
.bx-wallet-usd { background: var(--bx-grad-usd); }
.bx-wallet-eur { background: var(--bx-grad-eur); }
.bx-wallet-gbp { background: var(--bx-grad-gbp); }
.bx-wallet-main { background: var(--bx-grad-main); }
.bx-wallet-savings { background: var(--bx-grad-savings); }
.bx-wallet-unsettled { background: var(--bx-grad-unsettled); }
.bx-wallet-head { display: flex; align-items: center; gap: 10px; }
.bx-wallet-sym { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-weight: 800; font-size: 16px; overflow: hidden; }
.bx-wallet-sym .fi { width: 36px; height: 36px; background-size: cover; border-radius: 50%; }
.bx-wallet-code { font-weight: 800; font-size: 17px; line-height: 1.2; }
.bx-wallet-name { font-size: 11.5px; opacity: .85; }
.bx-wallet-tag { margin-left: auto; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.bx-wallet-total { font-size: 31px; font-weight: 800; letter-spacing: -.6px; margin-top: 16px; line-height: 1.15; word-break: break-word; }
.bx-wallet-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bx-wallet-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.bx-wallet-row span:first-child { opacity: .9; }
.bx-wallet-row span:last-child { font-weight: 700; }
.bx-wallet-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.bx-wallet-bar span { display: block; height: 100%; background: #fff; border-radius: 999px; }
.bx-wallet-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.bx-wallet-actions button, .bx-wallet-actions a {
    flex: 1 1 0; min-width: 72px; border: 0; border-radius: 12px; font-weight: 700; font-size: 12.5px; padding: 0 10px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; font-family: var(--bx-font);
}
.bx-wallet-btn { background: #fff; color: var(--bx-ink) !important; }
.bx-wallet-ghost { background: rgba(255, 255, 255, .18); color: #fff !important; }
.bx-wallet-ghost:hover { background: rgba(255, 255, 255, .28); }
.bx-wallet-outline { background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .75) !important; }
.bx-wallet-more { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; }
.bx-wallet-more button, .bx-wallet-more a { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .9) !important; font-weight: 600; cursor: pointer; }
.bx-wallet-more button:hover, .bx-wallet-more a:hover { color: #fff !important; text-decoration: underline; }
.bx-wallet-tile {
    border: 2px dashed #D8CFF0; border-radius: 22px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; color: var(--bx-primary-strong); min-height: 220px; text-align: center; padding: 22px;
}
.bx-wallet-tile:hover { border-color: var(--bx-primary-300); color: var(--bx-primary-deep); }
.bx-wallet-tile-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--bx-primary-50); display: grid; place-items: center; font-size: 20px; }

/* 6. Lists & tables ---------------------------------------------------------- */
.bx-list-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F4F1F9; }
.bx-list-row:last-child { border-bottom: 0; }
.bx-date-chip { width: 44px; flex: 0 0 44px; text-align: center; border-radius: 12px; background: var(--bx-primary-50); padding: 6px 0; line-height: 1.1; }
.bx-date-chip small { display: block; font-size: 10.5px; font-weight: 700; color: var(--bx-primary-strong); text-transform: uppercase; }
.bx-date-chip strong { display: block; font-size: 16px; font-weight: 800; }

.bx-tx { overflow-x: auto; }
.bx-tx-table { min-width: 560px; display: flex; flex-direction: column; }
.bx-tx-head, .bx-tx-row { display: grid; grid-template-columns: 44px minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 92px; gap: 12px; align-items: center; }
.bx-tx-head { padding: 8px 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--bx-muted); border-bottom: 1px solid var(--bx-divider); }
.bx-tx-row { padding: 12px 10px; border-bottom: 1px solid #F6F4FA; border-radius: 10px; }
.bx-tx-row:hover { background: #FAF8FF; }
.bx-tx-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.bx-tx-icon.in { background: var(--bx-green-bg); color: var(--bx-green); }
.bx-tx-icon.out { background: var(--bx-red-bg); color: var(--bx-red); }
.bx-tx-icon.move { background: var(--bx-primary-100); color: var(--bx-primary-strong); }
.bx-tx-label { display: block; font-weight: 700; font-size: 13.5px; color: var(--bx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-tx-ref { display: block; font-size: 12px; color: var(--bx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-tx-date { font-size: 12.5px; color: #4B5563; }
.bx-tx-amt { text-align: right; font-weight: 700; font-size: 13.5px; }
.bx-tx-status { text-align: right; }

/* 7. Data viz ---------------------------------------------------------------- */
.bx-balance { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: var(--bx-ink); line-height: 1.1; word-break: break-word; }
.bx-chart { width: 100%; height: 170px; display: block; }
.bx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--bx-divider); padding-top: 14px; }
.bx-stat-label { font-size: 12px; color: var(--bx-muted); }
.bx-stat-value { font-size: 16px; font-weight: 700; word-break: break-word; }
.bx-bar-row { display: flex; flex-direction: column; gap: 6px; }
.bx-bar-row-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.bx-bar-row-head span:first-child { font-weight: 600; }
.bx-bar-row-head span:last-child { color: var(--bx-muted); }
.bx-bar { height: 8px; border-radius: 999px; background: var(--bx-divider); overflow: hidden; }
.bx-bar span { display: block; height: 100%; border-radius: 999px; }
.bx-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bx-donut { position: relative; width: 140px; height: 140px; flex: 0 0 140px; }
.bx-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bx-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.bx-legend li { display: flex; align-items: center; gap: 8px; }
.bx-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bx-mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bx-mini-stat { border-radius: 12px; background: var(--bx-soft); padding: 10px 12px; }
.bx-mini-stat div:first-child { font-size: 11.5px; color: var(--bx-muted); }
.bx-mini-stat div:last-child { font-weight: 800; font-size: 15px; }
.bx-goal { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--bx-divider); color: inherit; }
.bx-goal:hover { border-color: var(--bx-primary-200); color: inherit; }
.bx-goal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bx-rate-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F4F1F9; font-size: 13.5px; }
.bx-rate-row:last-of-type { border-bottom: 0; }
.bx-rate-row .fi { border-radius: 50%; width: 20px; height: 20px; background-size: cover; }

.bx-teal-card { border-radius: var(--bx-radius-lg); padding: 22px; color: #fff; background: linear-gradient(140deg, #0F766E, #14B8A6); display: flex; flex-direction: column; gap: 10px; }
.bx-teal-card .bx-copy { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .16); border-radius: 12px; padding: 6px 6px 6px 12px; }
.bx-teal-card .bx-copy span { flex: 1; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-teal-card .bx-copy button { border: 0; border-radius: 9px; background: #fff; color: #0F766E; font-weight: 700; font-size: 12.5px; height: 36px; padding: 0 14px; }

/* 8. Drawers & modals ---------------------------------------------------------- */
.bx-account .drawer { border-radius: 20px 0 0 20px; }
.bx-account .drawer .card { border: 0 !important; border-radius: 0; box-shadow: none; }
.bx-account .drawer .card-header { border-bottom: 1px solid var(--bx-border); min-height: 70px; }
.bx-account .modal-content { border-radius: 20px; border: 0; box-shadow: var(--bx-shadow-pop); }
.bx-account .modal-header { border-bottom: 1px solid var(--bx-border); }
.bx-account .modal-footer { border-top: 1px solid var(--bx-border); }
.bx-drawer-hero { text-align: center; margin-bottom: 18px; }
.bx-drawer-hero .bx-chip { margin: 0 auto 10px; width: 64px; height: 64px; flex-basis: 64px; border-radius: 18px; font-size: 26px; }
.bx-option { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--bx-border); border-radius: 14px; margin-bottom: 10px; cursor: pointer; color: var(--bx-ink); background: #fff; width: 100%; text-align: left; }
.bx-option:hover { border-color: var(--bx-primary-300); color: var(--bx-ink); }
.bx-option-title { font-weight: 700; font-size: 14px; }
.bx-option-sub { font-size: 12px; color: var(--bx-muted); }
.bx-option .fa-chevron-right { margin-left: auto; color: var(--bx-muted); }

/* 9. Legacy (Metronic) alignment --------------------------------------------
   Pages not yet redesigned keep their markup; these rules bring them into the
   same palette, type and shapes so the account area feels like one product. */
body.bx-account .content { padding: 0 !important; }
body.bx-account .toolbar { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 0 16px !important; }
body.bx-account .post > .container, body.bx-account .toolbar > .container-fluid, body.bx-account .post > .container-fluid { padding-left: 0; padding-right: 0; max-width: none; }
body.bx-account .card { border-radius: var(--bx-radius-lg); border: 1px solid var(--bx-border); box-shadow: var(--bx-shadow-card); }
body.bx-account .btn { border-radius: 12px; font-weight: 700; }
body.bx-account .btn-primary, body.bx-account .btn-info, body.bx-account .btn.btn-dark {
    background: var(--bx-primary) !important; border-color: var(--bx-primary) !important; color: #fff !important;
}
body.bx-account .btn-primary:hover, body.bx-account .btn-info:hover, body.bx-account .btn.btn-dark:hover { background: var(--bx-primary-strong) !important; }
body.bx-account .btn-light-info, body.bx-account .btn-light-primary { background: var(--bx-primary-50) !important; color: var(--bx-primary-strong) !important; border-color: transparent !important; }
body.bx-account .btn-light-info:hover, body.bx-account .btn-light-primary:hover { background: var(--bx-primary-100) !important; }
body.bx-account .text-info, body.bx-account .text-primary, body.bx-account .link-primary { color: var(--bx-primary) !important; }
body.bx-account .bg-info, body.bx-account .bg-primary { background-color: var(--bx-primary) !important; }
body.bx-account .bg-light-info, body.bx-account .bg-light-primary { background-color: var(--bx-primary-50) !important; }
body.bx-account .text-hover-primary:hover { color: var(--bx-primary) !important; }
body.bx-account .progress-bar { background: var(--bx-primary); }
body.bx-account .form-control.form-control-solid, body.bx-account .form-select.form-select-solid {
    background-color: var(--bx-soft); border: 1px solid var(--bx-border); border-radius: 12px; color: var(--bx-ink);
}
body.bx-account .form-control.form-control-solid:focus, body.bx-account .form-select.form-select-solid:focus { background-color: #fff; border-color: var(--bx-primary-300); }
body.bx-account .form-check-input:checked { background-color: var(--bx-primary); border-color: var(--bx-primary); }
body.bx-account .nav-line-tabs .nav-link.active, body.bx-account .nav-tabs .nav-link.active { color: var(--bx-primary-strong); border-bottom-color: var(--bx-primary); }
body.bx-account .badge-light-info, body.bx-account .badge-light-primary { background: var(--bx-primary-50); color: var(--bx-primary-strong); }
body.bx-account .menu-state-bg .menu-item .menu-link.active, body.bx-account .menu-state-bg .menu-item:hover > .menu-link { background: var(--bx-primary-50); color: var(--bx-primary-strong); }
body.bx-account .page-loading { background: var(--bx-bg); }
body.bx-account .text-dark { color: var(--bx-ink) !important; }

/* 10. Responsive --------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .bx-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--bx-shadow-pop); }
    body.bx-nav-open .bx-sidebar { transform: translateX(0); }
    body.bx-nav-open .bx-overlay { display: block; position: fixed; inset: 0; background: rgba(31, 29, 43, .45); z-index: 104; }
    .bx-menu-toggle { display: grid; }
    .bx-topbar { padding: 16px 16px 0; }
    .bx-content { padding: 16px 16px 32px; gap: 20px; }
    .bx-footer { margin: 0 16px; }
    .bx-topbar-title h1 { font-size: 22px; }
    .bx-search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (max-width: 575.98px) {
    .bx-profile-text, .bx-profile .fa-chevron-down { display: none; }
    .bx-profile { padding: 5px; }
    .bx-grid-2, .bx-grid-3, .bx-grid-wallets { grid-template-columns: minmax(0, 1fr); }
    .bx-balance { font-size: 30px; }
    .bx-stats { grid-template-columns: minmax(0, 1fr); }
    .bx-card, .bx-card-lg { padding: 18px; }
}

/* Font Awesome's JS replaces <i> with <svg class="svg-inline--fa">; mirror icon rules. */
.bx-empty .svg-inline--fa { display: block; margin: 0 auto 10px; font-size: 28px; color: var(--bx-primary-300); }
.bx-nav-link .svg-inline--fa { width: 18px; font-size: 16px; }
.bx-chip .svg-inline--fa { font-size: inherit; }

/* Fixed sidebar: Metronic's body overflow rules break position:sticky. */
@media (min-width: 992px) {
    .bx-sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: auto; }
    .bx-main { margin-left: var(--bx-sidebar-w); }
}

/* Link-styled buttons: beat the generic `.bx-account a` colour. */
.bx-account a.bx-btn-primary, .bx-account a.bx-btn-primary:hover { color: #fff; }
.bx-account a.bx-btn-outline { color: var(--bx-primary-strong); }
.bx-account a.bx-btn-ghost, .bx-account a.bx-qa, .bx-account a.bx-qa:hover, .bx-account a.bx-goal { color: var(--bx-ink); }
.bx-account .bx-promo a.bx-btn { color: var(--bx-primary-strong); }

/* Extra wallet slots (India, Australia, International). */
.bx-wallet-inr { background: linear-gradient(135deg, #C2410C 0%, #F97316 100%); }
.bx-wallet-aud { background: linear-gradient(135deg, #0E7490 0%, #22B8CF 100%); }
.bx-wallet-cny { background: linear-gradient(135deg, #B91C1C 0%, #EF4444 100%); }
.bx-wallet-intl { background: linear-gradient(135deg, #1F1D2B 0%, #4C1D95 100%); }
.bx-wallet-sym .svg-inline--fa, .bx-wallet-sym i { font-size: 16px; }
.bx-wallet-off { opacity: .5; cursor: not-allowed; }
