﻿:root{
    --primary:#3157d5;
    --primary-dark:#2445b5;
    --bg:#f5f7fb;
    --text:#1d2433;
    --muted:#7c8497;
    --border:#e8ebf2;
    --green:#159875;
    --red:#e65360;
}
*{box-sizing:border-box}
body{
    margin:0;background:var(--bg);color:var(--text);
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a{text-decoration:none}
.sidebar{
    position:fixed;left:0;top:0;bottom:0;width:250px;background:#fff;
    border-right:1px solid var(--border);padding:25px 16px;z-index:1000
}
.logo{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:700;padding:0 12px 30px}
.logo-icon{width:38px;height:38px;border-radius:11px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center}
.nav-title{color:#a1a8b7;text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:.08em;padding:0 13px;margin:15px 0 8px}
.sidebar .nav-link{display:flex;align-items:center;gap:13px;color:#697286;border-radius:10px;padding:11px 13px;margin-bottom:3px;font-size:14px;font-weight:500}
.sidebar .nav-link:hover,.sidebar .nav-link.active{background:#eef2ff;color:var(--primary)}
.sidebar .nav-link i{font-size:18px}
.main{margin-left:250px;min-height:100vh}
.topbar{
    height:76px;background:#fff;border-bottom:1px solid var(--border);
    display:flex;align-items:center;justify-content:space-between;padding:0 35px
}
.page-title{font-size:20px;font-weight:700}
.topbar-right{display:flex;align-items:center;gap:18px}
.notification{
    width:38px;height:38px;border-radius:10px;background:#f7f8fb;
    display:flex;align-items:center;justify-content:center;color:#687185;
    position:relative;cursor:pointer
}
.notification.has-new::after{
    content:"";position:absolute;width:7px;height:7px;background:#ef5b68;
    border-radius:50%;top:7px;right:7px
}
.profile-dropdown .profile{
    display:flex;align-items:center;gap:10px;color:inherit;cursor:pointer;
    padding:4px 7px;border-radius:12px
}
.profile-dropdown .profile:hover{background:#f7f8fb}
.avatar{
    width:38px;height:38px;background:#e7ecff;color:var(--primary);
    border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700
}
.profile-name{font-size:13px;font-weight:600}
.profile-role{font-size:11px;color:var(--muted)}
.dropdown-menu{border:1px solid var(--border);border-radius:14px;padding:7px;box-shadow:0 12px 35px rgba(30,41,59,.12);min-width:190px}
.dropdown-item{border-radius:9px;padding:10px 11px;font-size:13px}
.dropdown-item:hover{background:#f1f4ff;color:var(--primary)}
.content{padding:30px 35px 50px}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
.section-heading h5{margin:0;font-size:16px;font-weight:700}
.section-heading a{font-size:12px;color:var(--primary)}

.bank-card{
    height:280px;min-height:280px;border-radius:20px;padding:23px;color:white;
    position:relative;overflow:hidden;cursor:pointer;transition:.2s
}
.bank-card:hover{transform:translateY(-3px)}
.bank-card.selected{box-shadow:0 10px 30px rgba(49,87,213,.28);outline:3px solid rgba(49,87,213,.12)}
.card-blue{background:linear-gradient(135deg,#3157d5,#647de4)}
.card-dark{background:linear-gradient(135deg,#202636,#4b5366)}
.card-crypto{background:linear-gradient(135deg,#7a4b14,#d08b2d)}
.bank-card::before{
    content:"";position:absolute;width:210px;height:210px;border-radius:50%;
    border:1px solid rgba(255,255,255,.14);right:-80px;top:-80px
}
.bank-card::after{
    content:"";position:absolute;width:170px;height:170px;border-radius:50%;
    border:1px solid rgba(255,255,255,.10);right:-40px;bottom:-100px
}
.card-header-row{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:2}
.card-type{font-size:12px;opacity:.82}
.card-brand{font-size:18px;font-weight:800;font-style:italic}
.chip{width:40px;height:30px;background:linear-gradient(135deg,#e4e4e4,#929292);border-radius:6px;margin-top:28px;position:relative;z-index:2}
.chip::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(0,0,0,.2)}
.card-number{margin-top:19px;font-size:17px;letter-spacing:3px;position:relative;z-index:2}
.card-footer{display:flex;justify-content:space-between;margin-top:17px;position:relative;z-index:2}
.card-label{font-size:9px;opacity:.65;text-transform:uppercase}
.card-value{font-size:11px;margin-top:2px}
.card-balance-value{
    font-size:18px;
    font-weight:800;
    margin-top:2px;
}

.bank-card.card-blue .card-balance-value{
    font-size:22px;
    letter-spacing:.01em;
}

.crypto-mark{
    width:40px;height:40px;border-radius:50%;background:#f7931a;color:#fff;
    display:flex;align-items:center;justify-content:center;font-size:23px;font-weight:800;
    margin-top:20px;position:relative;z-index:2
}
.add-card{
    min-height:205px;border:1px dashed #cdd2de;border-radius:20px;background:#fff;
    display:flex;align-items:center;justify-content:center;flex-direction:column;
    color:#7e879a;cursor:pointer;transition:.2s
}
.add-card:hover{border-color:var(--primary);color:var(--primary)}
.add-card i{font-size:27px;margin-bottom:8px}
.add-card span{font-size:13px;font-weight:600}

.balance-box{
    background:#fff;border:1px solid var(--border);border-radius:18px;padding:23px 25px;height:100%
}
.balance-label{color:var(--muted);font-size:12px}
.balance{font-size:32px;font-weight:750;margin:4px 0;letter-spacing:-.7px}
.account-number{font-size:11px;color:#9ba2b0}
.balance-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:18px}
.transfer-main{
    grid-column:1/-1;background:var(--primary);color:#fff;border:0;border-radius:11px;
    padding:13px 16px;font-size:13px;font-weight:700;box-shadow:0 7px 18px rgba(49,87,213,.20)
}
.transfer-main:hover{background:var(--primary-dark);color:#fff}
.transfer-small{
    background:#eef2ff;color:#3157d5;border:1px solid #dfe5ff;border-radius:14px;
    padding:15px 10px;font-size:12px;font-weight:750;min-height:78px;
    display:flex;align-items:center;justify-content:center;gap:8px;
    box-shadow:0 5px 14px rgba(49,87,213,.08);transition:.18s
}
.transfer-small i{font-size:23px}
.transfer-small:hover{background:#e2e8ff;transform:translateY(-2px);box-shadow:0 8px 18px rgba(49,87,213,.14)}
.stat-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px}
.stat-icon{width:38px;height:38px;background:#eef2ff;color:var(--primary);border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.stat-title{font-size:11px;color:var(--muted)}
.stat-value{font-size:19px;font-weight:700;margin-top:3px}
.income{color:var(--green)} .expense{color:#313746}
.transactions{background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden}
.transaction{display:flex;align-items:center;padding:15px 20px;border-bottom:1px solid #f0f1f5}
.transaction:last-child{border-bottom:none}
.transaction-icon{
    width:42px;height:42px;border-radius:12px;display:flex;align-items:center;
    justify-content:center;margin-right:13px;font-size:17px;flex-shrink:0
}
.icon-red{background:#fff0f1;color:var(--red)}
.icon-green{background:#eaf9f4;color:var(--green)}
.icon-blue{background:#eef2ff;color:var(--primary)}
.icon-orange{background:#fff4e7;color:#d97706}
.icon-purple{background:#f4efff;color:#7c3aed}
.transaction-name{font-size:13px;font-weight:600}
.transaction-date{color:#9aa1af;font-size:11px;margin-top:3px}
.transaction-amount{margin-left:auto;text-align:right;font-size:13px;font-weight:700}
.transaction-status{color:#9aa1af;font-size:10px;font-weight:400;margin-top:3px}
.chart-box{background:#fff;border:1px solid var(--border);border-radius:18px;padding:20px}
.chart-container{position:relative;height:240px}

.transfer-card{
    background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px;
    height:100%;cursor:pointer;transition:.2s
}
.transfer-card:hover{border-color:#aebcf0;box-shadow:0 10px 25px rgba(49,87,213,.09);transform:translateY(-2px)}
.transfer-card .transfer-icon{
    width:48px;height:48px;border-radius:14px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:16px
}
.transfer-card h5{font-size:15px;margin-bottom:7px}.transfer-card p{font-size:12px;color:var(--muted);margin:0}
.linked-account{background:#fff;border:1px solid var(--border);border-radius:15px;padding:15px}
.linked-account .icon{
    width:40px;height:40px;border-radius:11px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center
}

.filter-box{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px;margin-bottom:12px}
.filter-box .form-control,.filter-box .form-select{font-size:12px;border-color:#e3e6ed;min-height:38px}
.modal-content{border:none;border-radius:18px}
.modal-header{padding:20px 22px 10px;border:none}
.modal-body{padding:15px 22px 22px}.modal-footer{border:none;padding:10px 22px 22px}
.form-label{font-size:12px;font-weight:600}.form-control,.form-select{border-radius:9px}
.recipient-hint{font-size:11px;margin-top:7px;color:var(--green)}
.confirm-row{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #f0f1f5;font-size:12px}
.confirm-row:last-child{border-bottom:0}
.empty{padding:40px;text-align:center;color:var(--muted)}
.toast{border:0;border-radius:14px;box-shadow:0 10px 30px rgba(30,41,59,.15)}

.page-section{display:none}.page-section.active{display:block}
.pagination-wrap{display:flex;justify-content:center;gap:6px;margin-top:15px}
.pagination-wrap button{border:0;background:#f3f5fa;border-radius:9px;width:34px;height:34px;color:#697286}
.pagination-wrap button.active{background:var(--primary);color:#fff}

@media(max-width:991px){
    .sidebar{width:70px;padding:20px 8px}
    .logo{justify-content:center;padding-left:0;padding-right:0}
    .logo span,.sidebar .nav-link span,.nav-title{display:none}
    .sidebar .nav-link{justify-content:center;padding:12px}
    .main{margin-left:70px}
    .balance-actions{grid-template-columns:1fr}
    .transfer-main{grid-column:auto}
}
@media(max-width:767px){
    .sidebar{display:none}.main{margin-left:0}
    .topbar{padding:0 18px}.content{padding:20px 15px 40px}
    .profile-name,.profile-role{display:none}
    .bank-card{height:auto;min-height:300px}
    .bank-card.has-debt{min-height:330px}
    .add-card{min-height:280px}
    .balance{font-size:28px}
    .transaction{padding:13px}
    .transaction-amount{font-size:12px}
    .topbar-right{gap:9px}
}

.dashboard-transfer-title{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:750}
.transfer-title-icon{width:34px;height:34px;border-radius:10px;background:#eef2ff;color:var(--primary);display:flex;align-items:center;justify-content:center}
.mobile-bottom-nav{display:none}
@media(max-width:767px){
 body{padding-bottom:76px}
 #cardsContainer{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:12px;padding-bottom:12px;scroll-snap-type:x mandatory;scrollbar-width:none}
 #cardsContainer::-webkit-scrollbar{display:none}
 #cardsContainer>.col-xl-4{flex:0 0 82%;max-width:82%;scroll-snap-align:start}
 .balance-actions{grid-template-columns:1fr 1fr;gap:11px}
 .transfer-small{min-height:88px;flex-direction:column;gap:5px;border-radius:15px}
 .transfer-small i{font-size:28px}
 .mobile-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;height:68px;z-index:2000;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid #e8ebf2;justify-content:space-around;padding:5px 6px}
 .mobile-nav-item{border:0;background:transparent;color:#8a91a1;display:flex;min-width:58px;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:9px;font-weight:650}
 .mobile-nav-item i{font-size:21px}
 .mobile-nav-item.active{color:var(--primary)}
 .mobile-nav-item.transfer-tab i{width:42px;height:42px;border-radius:14px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;margin-top:-17px;box-shadow:0 7px 18px rgba(49,87,213,.25)}
 .mobile-nav-item.transfer-tab{color:var(--primary);font-weight:750}
}


.quick-transfer-heading{
    display:flex;align-items:center;gap:9px;margin-top:20px;margin-bottom:10px;
    font-size:15px;font-weight:750;color:#1d2433
}
.quick-transfer-heading-icon{
    width:32px;height:32px;border-radius:10px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;font-size:15px
}

/* ===== Multi-page additions ===== */
body{min-width:320px}
.content-page-title{margin-bottom:24px}
.content-page-title h2{font-weight:800;margin-bottom:4px}
.quick-transfer-heading{
    display:flex;align-items:center;gap:9px;margin-bottom:12px;
    font-size:15px;font-weight:750;color:var(--text)
}
.quick-transfer-heading-icon{
    width:32px;height:32px;border-radius:10px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center
}
.transfer-actions-box{display:flex;flex-direction:column;justify-content:center}
.transfer-actions-box .balance-actions{margin-top:0}
.transfer-main{display:none!important}

.notification-wrap{position:relative}
.notification-badge{
    position:absolute;top:-5px;right:-6px;min-width:18px;height:18px;padding:0 5px;
    border-radius:9px;background:#ef5b68;color:#fff;font-size:10px;font-weight:700;
    display:flex;align-items:center;justify-content:center;border:2px solid #fff
}
.notification-menu{width:350px;max-width:calc(100vw - 24px);padding:8px}
.notification-head{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 10px}
.notification-item{
    display:flex;gap:11px;padding:11px 9px;border-radius:11px;white-space:normal
}
.notification-item:hover{background:#f7f8fb}
.notification-item-icon{
    width:36px;height:36px;border-radius:10px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;flex-shrink:0
}
.notification-item-title{font-size:12px;font-weight:700}
.notification-item-text{font-size:11px;color:var(--muted);margin-top:2px;line-height:1.35}
.notification-item-time{font-size:10px;color:#a1a8b7;margin-top:4px}

.service-card{
    background:#fff;border:1px solid var(--border);border-radius:18px;padding:20px;height:100%
}
.service-card-icon{
    width:46px;height:46px;border-radius:13px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;font-size:21px;margin-bottom:14px
}
.qr-demo{
    width:180px;height:180px;margin:0 auto;border:10px solid #111;border-radius:12px;
    display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:8px;background:#fff
}
.qr-demo span.on{background:#111}

.login-page{
    min-height:100vh;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:24px
}
.login-shell{width:100%;max-width:1040px}
.login-card{
    background:#fff;border:1px solid var(--border);border-radius:24px;overflow:hidden;
    box-shadow:0 18px 55px rgba(30,41,59,.08)
}
.login-side{
    min-height:580px;background:linear-gradient(145deg,#3157d5,#637ce5);
    color:#fff;padding:46px;position:relative;overflow:hidden
}
.login-side:before,.login-side:after{
    content:"";position:absolute;border:1px solid rgba(255,255,255,.13);border-radius:50%
}
.login-side:before{width:330px;height:330px;right:-130px;top:-100px}
.login-side:after{width:260px;height:260px;left:-120px;bottom:-120px}
.login-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;position:relative;z-index:2}
.login-brand-icon{
    width:42px;height:42px;border-radius:12px;background:#fff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;font-size:23px
}
.login-hero{position:relative;z-index:2;margin-top:100px}
.login-hero h1{font-size:38px;font-weight:800;letter-spacing:-1px;max-width:420px}
.login-hero p{font-size:14px;opacity:.82;max-width:390px;line-height:1.65}
.login-feature{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:12px;color:rgba(255,255,255,.88)}
.login-feature i{
    width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.12);
    display:flex;align-items:center;justify-content:center
}
.login-form-side{padding:58px 54px}
.login-form-side h2{font-weight:800;font-size:28px;margin-bottom:7px}
.login-subtitle{color:var(--muted);font-size:13px;margin-bottom:30px}
.btn-login{
    width:100%;min-height:48px;border:0;border-radius:11px;background:var(--primary);
    color:#fff;font-size:14px;font-weight:700;box-shadow:0 8px 20px rgba(49,87,213,.20)
}
.btn-login:hover{background:var(--primary-dark);color:#fff}
.demo-box{margin-top:20px;padding:13px 14px;background:#f7f8fb;border-radius:12px;font-size:11px;color:var(--muted)}

@media(max-width:767px){
    .notification-menu{width:310px}
    .login-side{display:none}
    .login-form-side{padding:34px 24px}
    .login-card{border-radius:20px}
}


/* ===== Bitcoin top-up page ===== */
.bitcoin-page-hero{
    display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
    margin-bottom:24px
}
.bitcoin-status{
    display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;
    background:#fff4e7;color:#b96a06;font-size:11px;font-weight:700;border:1px solid #fde2bd
}
.bitcoin-card{
    min-height:230px;border-radius:24px;padding:25px;color:#fff;position:relative;overflow:hidden;
    background:linear-gradient(135deg,#21170c,#6d4517 55%,#d28a2e);
    box-shadow:0 18px 35px rgba(122,75,20,.22)
}
.bitcoin-card:before,.bitcoin-card:after{
    content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.12)
}
.bitcoin-card:before{width:260px;height:260px;right:-90px;top:-100px}
.bitcoin-card:after{width:190px;height:190px;right:-40px;bottom:-115px}
.bitcoin-card .btc-logo{
    width:50px;height:50px;border-radius:50%;background:#f7931a;color:#fff;
    display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:800;
    position:relative;z-index:2
}
.bitcoin-card .btc-network{font-size:11px;opacity:.72;text-transform:uppercase;letter-spacing:.08em}
.bitcoin-card .btc-balance{font-size:30px;font-weight:800;letter-spacing:-.7px}
.bitcoin-card .btc-fiat{font-size:12px;opacity:.72}
.bitcoin-card .btc-number{font-size:16px;letter-spacing:3px}
.bitcoin-card .btc-bottom{display:flex;justify-content:space-between;align-items:end}
.bitcoin-card .btc-label{font-size:9px;text-transform:uppercase;opacity:.6}
.bitcoin-card .btc-value{font-size:11px;margin-top:3px}

.bitcoin-info-card{
    background:#fff;border:1px solid var(--border);border-radius:18px;padding:20px;height:100%
}
.bitcoin-info-title{font-size:12px;color:var(--muted);margin-bottom:6px}
.bitcoin-info-value{font-size:21px;font-weight:800}
.bitcoin-debt{
    background:#fff7ed;border:1px solid #fed7aa;border-radius:16px;padding:16px
}
.bitcoin-debt strong{color:#b45309}
.wallet-panel{
    background:#fff;border:1px solid var(--border);border-radius:20px;padding:22px
}
.wallet-address-box{
    background:#f7f8fb;border:1px solid #edf0f5;border-radius:14px;padding:14px;
    display:flex;align-items:center;gap:12px
}
.wallet-address{
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
    font-size:12px;word-break:break-all;line-height:1.55;flex:1
}
.copy-btn{
    width:40px;height:40px;border:0;border-radius:11px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;flex-shrink:0
}
.btc-qr{
    width:210px;height:210px;margin:0 auto;border:10px solid #111;border-radius:14px;
    display:grid;grid-template-columns:repeat(9,1fr);gap:3px;padding:9px;background:#fff
}
.btc-qr span.on{background:#111}
.wallet-warning{
    display:flex;gap:10px;background:#fff8eb;border:1px solid #fde1ae;
    border-radius:14px;padding:13px 14px;color:#8a5a0a;font-size:11px;line-height:1.45
}
.howto-btn{
    min-height:50px;border-radius:13px;font-size:14px;font-weight:750;
    box-shadow:0 8px 18px rgba(49,87,213,.18)
}
.step-row{display:flex;gap:13px;padding:13px 0;border-bottom:1px solid #f0f1f5}
.step-row:last-child{border-bottom:0}
.step-number{
    width:30px;height:30px;border-radius:10px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex-shrink:0
}
.step-title{font-size:12px;font-weight:750}
.step-text{font-size:11px;color:var(--muted);line-height:1.45;margin-top:3px}
@media(max-width:767px){
    .bitcoin-page-hero{flex-direction:column}
    .bitcoin-card{min-height:215px}
    .btc-qr{width:185px;height:185px}
}


/* ===== Connect instrument modal ===== */
.instrument-type-grid{
    display:grid;grid-template-columns:repeat(2,1fr);gap:10px
}
.instrument-type-option{
    border:1px solid var(--border);background:#fff;border-radius:14px;padding:13px;
    display:flex;align-items:center;gap:11px;cursor:pointer;transition:.18s;text-align:left
}
.instrument-type-option:hover{
    border-color:#bcc8ef;background:#fafbff;transform:translateY(-1px)
}
.instrument-type-option.active{
    border-color:#9fb0eb;background:#eef2ff;box-shadow:0 0 0 3px rgba(49,87,213,.06)
}
.instrument-type-icon{
    width:40px;height:40px;border-radius:11px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0
}
.instrument-type-option.active .instrument-type-icon{
    background:var(--primary);color:#fff
}
.instrument-type-title{font-size:12px;font-weight:750}
.instrument-type-subtitle{font-size:10px;color:var(--muted);margin-top:2px}
.instrument-fields{
    margin-top:16px;padding-top:16px;border-top:1px solid #f0f1f5
}
.soft-status{
    display:flex;gap:11px;background:#f7f8fb;border:1px solid #edf0f5;
    border-radius:14px;padding:13px 14px
}
.soft-status-icon{
    width:36px;height:36px;border-radius:10px;background:#eef2ff;color:var(--primary);
    display:flex;align-items:center;justify-content:center;flex-shrink:0
}
.soft-status-title{font-size:12px;font-weight:750}
.soft-status-text{font-size:11px;color:var(--muted);line-height:1.45;margin-top:3px}
@media(max-width:575px){
    .instrument-type-grid{grid-template-columns:1fr}
}


/* ===== Transfer debt alert ===== */
.transfer-debt-message{
    margin-top:14px;padding:16px 17px;border-radius:16px;
    background:linear-gradient(135deg,#fff8eb,#fff3df);
    border:1px solid #f6d49a;text-align:center
}
.transfer-debt-label{
    font-size:11px;font-weight:750;color:#956013;
    text-transform:uppercase;letter-spacing:.04em
}
.transfer-debt-amount{
    margin-top:4px;font-size:28px;line-height:1.1;font-weight:850;
    color:#b45309;letter-spacing:-.5px
}
.transfer-debt-note{
    margin-top:8px;font-size:12px;line-height:1.45;color:#7c5a23
}


.transfer-debt-fiat{
    margin-top:5px;font-size:13px;font-weight:750;color:#8a5a0a;
    letter-spacing:.01em
}

/* ===== Account blocked page ===== */
.blocked-page{
    min-height:100vh;background:
        radial-gradient(circle at top right,rgba(49,87,213,.08),transparent 34%),
        var(--bg);
    display:flex;align-items:center;justify-content:center;padding:28px
}
.blocked-shell{width:100%;max-width:920px}
.blocked-card{
    background:#fff;border:1px solid var(--border);border-radius:26px;
    box-shadow:0 22px 60px rgba(30,41,59,.10);overflow:hidden
}
.blocked-top{
    padding:38px 40px 30px;border-bottom:1px solid var(--border);
    display:flex;align-items:center;justify-content:space-between;gap:20px
}
.blocked-brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:800}
.blocked-brand-icon{
    width:42px;height:42px;border-radius:12px;background:var(--primary);color:#fff;
    display:flex;align-items:center;justify-content:center;font-size:22px
}
.blocked-status{
    display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;
    background:#fff4e7;color:#b96a06;border:1px solid #fde2bd;font-size:11px;font-weight:750
}
.blocked-body{padding:42px 40px}
.blocked-hero{display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:start}
.blocked-icon{
    width:72px;height:72px;border-radius:20px;background:#fff0f1;color:#d74b59;
    display:flex;align-items:center;justify-content:center;font-size:31px
}
.blocked-title{font-size:30px;font-weight:850;letter-spacing:-.6px;margin-bottom:10px}
.blocked-text{font-size:14px;line-height:1.65;color:var(--muted);max-width:690px}
.blocked-note{
    margin-top:24px;background:#f7f8fb;border:1px solid #edf0f5;border-radius:16px;
    padding:16px 18px
}
.blocked-note-title{font-size:12px;font-weight:800;margin-bottom:5px}
.blocked-note-text{font-size:12px;line-height:1.55;color:var(--muted)}
.blocked-actions{
    margin-top:26px;display:flex;gap:10px;flex-wrap:wrap
}
.blocked-footer{
    padding:18px 40px;background:#fafbfc;border-top:1px solid var(--border);
    display:flex;justify-content:space-between;gap:15px;align-items:center
}
.blocked-footer small{color:var(--muted)}
@media(max-width:767px){
    .blocked-page{padding:14px}
    .blocked-top,.blocked-body,.blocked-footer{padding-left:22px;padding-right:22px}
    .blocked-top{align-items:flex-start;flex-direction:column}
    .blocked-hero{grid-template-columns:1fr}
    .blocked-title{font-size:25px}
    .blocked-footer{align-items:flex-start;flex-direction:column}
}


/* ===== Bitcoin top-up v15 ===== */
.btc-deposit-panel{padding:26px}
.btc-address-primary{padding:10px 10px 10px 16px}
.btc-address-primary .wallet-address{font-size:14px;font-weight:650;color:#16203a}
.btc-copy-main{min-height:44px;border-radius:11px;white-space:nowrap;font-size:12px;font-weight:700}
.btc-copy-success{margin-top:10px;padding:10px 13px;border-radius:11px;background:#eaf8f0;border:1px solid #bee8cf;color:#14804a;font-size:11px;display:flex;gap:8px;align-items:center}
.wallet-network-card{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e7eaf1;border-radius:14px;background:#fafbfe}
.wallet-network-icon{width:38px;height:38px;border-radius:11px;background:#fff1dc;color:#f7931a;display:flex;align-items:center;justify-content:center;font-size:20px}
.wallet-info-note{display:flex;gap:11px;padding:14px;border-radius:14px;background:#edf5ff;border:1px solid #d7e8ff;color:#315d9b;font-size:11px;line-height:1.5}
.wallet-info-note>i{font-size:17px;color:#2f6fd4;margin-top:1px}
.btc-qr-card{border:1px solid #e7eaf1;border-radius:16px;padding:18px;background:#fbfcff;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.btc-qr-real{width:244px;min-height:244px;border:1px solid #e7eaf1;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;padding:12px;overflow:hidden}
.btc-qr-real canvas,.btc-qr-real img{max-width:220px!important;max-height:220px!important}
.btc-qr-loading{font-size:11px;color:var(--muted);text-align:center;padding:20px}
.btc-howto-panel{padding:24px}
.btc-steps-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.btc-step-card{position:relative;border:1px solid #e7eaf1;border-radius:14px;padding:15px 12px;min-height:190px;background:#fff;display:flex;flex-direction:column;gap:8px}
.btc-step-card b{font-size:11px;line-height:1.3}
.btc-step-card .small{font-size:10px!important;line-height:1.45}
.btc-step-number{position:absolute;left:10px;top:10px;width:25px;height:25px;border-radius:50%;background:#e9f2ff;color:#2872d6;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.btc-step-icon{font-size:27px;color:#2872d6;margin:23px 0 2px 1px}
.btc-exchange-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px;border:1px solid #e7eaf1;border-radius:14px;background:#fbfcff}
.btc-exchange-icon{width:42px;height:42px;border-radius:12px;background:#eef5ff;color:#2872d6;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
@media(max-width:1199px){.btc-steps-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.btc-step-card{min-height:170px}}
@media(max-width:767px){.btc-deposit-panel,.btc-howto-panel{padding:17px}.btc-steps-grid{grid-template-columns:1fr}.btc-step-card{min-height:auto}.btc-exchange-card{align-items:flex-start;flex-direction:column}.btc-qr-real{width:220px;min-height:220px}.btc-address-primary{align-items:stretch;flex-direction:column}.btc-copy-main{width:100%}}


.notification-item-warning{
    border-left:3px solid #dc3545;
    padding-left:10px;
}

.notification-item-icon-warning{
    background:#fff0f1 !important;
    color:#dc3545 !important;
    box-shadow:0 0 0 1px rgba(220,53,69,.12);
}

.notification-item-warning .notification-item-title{
    color:#b4232f;
}


.debt-reminder-card{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    border:1px solid #f2d28b;
    border-left:4px solid #e5a11a;
    border-radius:14px;
    background:#fffaf0;
}

.debt-reminder-icon{
    width:38px;
    height:38px;
    min-width:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:#fff0cf;
    color:#c47d00;
    font-size:17px;
}

.debt-reminder-body{
    flex:1;
    min-width:0;
}

.debt-reminder-title{
    font-size:14px;
    font-weight:800;
    color:#6f4700;
}

.debt-reminder-text{
    margin-top:2px;
    font-size:13px;
}

.debt-reminder-note{
    margin-top:2px;
    font-size:12px;
    color:#7a6a4b;
}

.debt-reminder-action{
    white-space:nowrap;
}

.debt-topbar-chip{
    display:flex;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border-radius:10px;
    background:#fff4d8;
    color:#9a6200;
    font-size:12px;
    font-weight:700;
    text-decoration:none;
    white-space:nowrap;
}

.debt-topbar-chip:hover{
    color:#7c4e00;
    background:#ffedbd;
}

.debt-nav-link{
    position:relative;
}

.debt-nav-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#e55353;
    box-shadow:0 0 0 2px #fff;
    margin-left:auto;
}

.mobile-nav-item .debt-nav-dot{
    position:absolute;
    top:5px;
    right:calc(50% - 17px);
    width:7px;
    height:7px;
    margin:0;
}

.bank-card.has-debt .crypto-mark{
    margin-top:12px;
}

.bank-card.has-debt .card-number{
    margin-top:12px;
}

.debt-card-badge{
    position:absolute;
    top:44px;
    right:18px;
    z-index:3;
    padding:4px 7px;
    border-radius:999px;
    background:rgba(255,240,207,.96);
    color:#8c5700;
    font-size:9px;
    font-weight:800;
    letter-spacing:.03em;
    text-transform:uppercase;
}

.debt-card-line{
    margin-top:5px;
    font-size:11px;
    font-weight:700;
    color:#fff1c7;
}

@media (max-width: 767.98px){
    .debt-reminder-card{
        align-items:flex-start;
        flex-wrap:wrap;
    }

    .debt-reminder-body{
        flex:1 1 calc(100% - 54px);
    }

    .debt-reminder-action{
        margin-left:52px;
    }

    .debt-topbar-chip span{
        display:none;
    }

    .debt-topbar-chip{
        width:36px;
        height:36px;
        justify-content:center;
        padding:0;
    }
}


/* v23: compact international transfer methods */
.quick-transfer-methods{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.quick-transfer-method{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:42px;
  padding:8px 10px;
  border:1px solid var(--bs-border-color,#dee2e6);
  border-radius:12px;
  background:var(--bs-body-bg,#fff);
  color:inherit;
  font-size:.82rem;
  font-weight:600;
  text-align:left;
  transition:.18s ease;
}
.quick-transfer-method:hover{
  transform:translateY(-1px);
  border-color:rgba(13,110,253,.38);
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}
.quick-transfer-method i{
  width:22px;
  font-size:1rem;
  text-align:center;
}
.quick-transfer-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:12px;
  font-size:.82rem;
  font-weight:600;
  text-decoration:none;
}

.transfer-method-card{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  min-height:96px;
  padding:16px;
  border:1px solid var(--bs-border-color,#dee2e6);
  border-radius:16px;
  background:var(--bs-body-bg,#fff);
  color:inherit;
  text-align:left;
  transition:.18s ease;
}
.transfer-method-card:hover{
  transform:translateY(-2px);
  border-color:rgba(13,110,253,.38);
  box-shadow:0 10px 24px rgba(0,0,0,.07);
}
.transfer-method-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 46px;
  width:46px;
  height:46px;
  border-radius:14px;
  background:rgba(13,110,253,.09);
  font-size:1.2rem;
}
.transfer-method-card b{
  display:block;
  margin-bottom:4px;
  font-size:.98rem;
}
.transfer-method-card small{
  display:block;
  color:var(--bs-secondary-color,#6c757d);
  line-height:1.35;
}
.transfer-region .section-heading{
  margin-bottom:12px;
}
#transferRecipientFields .mb-3:last-child{
  margin-bottom:0!important;
}

@media (min-width:1200px){
  .quick-transfer-methods{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:575.98px){
  .quick-transfer-methods{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .quick-transfer-method{
    min-height:40px;
    font-size:.78rem;
  }
}


/* v23.1: QR scanner demo */
.qr-scanner-viewport{
  position:relative;
  min-height:330px;
  overflow:hidden;
  border-radius:20px;
  background:
    radial-gradient(circle at 35% 28%,rgba(255,255,255,.16),transparent 24%),
    linear-gradient(145deg,#26323b,#0e151b 72%);
}
.qr-camera-noise{
  position:absolute;
  inset:0;
  opacity:.12;
  background-image:repeating-linear-gradient(0deg,transparent,transparent 3px,rgba(255,255,255,.08) 4px);
}
.qr-scan-frame{
  position:absolute;
  width:190px;
  height:190px;
  left:50%;
  top:47%;
  transform:translate(-50%,-50%);
}
.qr-scan-frame>span{
  position:absolute;
  width:34px;
  height:34px;
  border-color:#fff;
  border-style:solid;
}
.qr-scan-frame>span:nth-child(1){left:0;top:0;border-width:3px 0 0 3px;border-radius:10px 0 0 0}
.qr-scan-frame>span:nth-child(2){right:0;top:0;border-width:3px 3px 0 0;border-radius:0 10px 0 0}
.qr-scan-frame>span:nth-child(3){left:0;bottom:0;border-width:0 0 3px 3px;border-radius:0 0 0 10px}
.qr-scan-frame>span:nth-child(4){right:0;bottom:0;border-width:0 3px 3px 0;border-radius:0 0 10px 0}
.qr-scan-line{
  position:absolute;
  left:10px;
  right:10px;
  height:2px;
  background:#fff;
  box-shadow:0 0 12px rgba(255,255,255,.9);
  animation:qrScanMove 1.7s ease-in-out infinite alternate;
}
@keyframes qrScanMove{from{top:18px}to{top:170px}}
.qr-camera-status{
  position:absolute;
  left:0;
  right:0;
  bottom:18px;
  color:#fff;
  text-align:center;
  font-size:.84rem;
}
.qr-merchant-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:14px;
  background:rgba(13,110,253,.1);
  font-size:1.2rem;
}
.qr-payment-details{
  border:1px solid var(--bs-border-color,#dee2e6);
  border-radius:14px;
  overflow:hidden;
}
.qr-payment-details>div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:11px 13px;
}
.qr-payment-details>div+div{border-top:1px solid var(--bs-border-color,#dee2e6)}
.qr-payment-details span{color:var(--bs-secondary-color,#6c757d)}


/* v23.3: QR scanner visual viewport */
.qr-scanner-dialog{
  max-width:540px;
}
.qr-scanner-modal{
  overflow:hidden;
  border:0;
  border-radius:22px;
}
.qr-scanner-viewport{
  position:relative !important;
  display:block !important;
  width:100% !important;
  min-height:360px !important;
  overflow:hidden !important;
  border-radius:18px !important;
  background:
    radial-gradient(circle at 25% 20%,rgba(255,255,255,.14),transparent 24%),
    radial-gradient(circle at 78% 72%,rgba(92,128,150,.22),transparent 26%),
    linear-gradient(145deg,#36434c 0%,#202b32 45%,#0d1419 100%) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.qr-scanner-viewport::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(115deg,transparent 0 35%,rgba(255,255,255,.045) 36% 44%,transparent 45% 100%),
    radial-gradient(circle at 68% 28%,rgba(255,255,255,.055),transparent 18%);
  pointer-events:none;
}
.qr-camera-noise{
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  opacity:.16 !important;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(255,255,255,.07) 4px
    ) !important;
  pointer-events:none;
}
.qr-scan-frame{
  display:block !important;
  position:absolute !important;
  width:210px !important;
  height:210px !important;
  left:50% !important;
  top:46% !important;
  transform:translate(-50%,-50%) !important;
}
.qr-scan-frame>span{
  display:block !important;
  position:absolute !important;
  width:42px !important;
  height:42px !important;
  border-color:#fff !important;
  border-style:solid !important;
  filter:drop-shadow(0 0 4px rgba(255,255,255,.22));
}
.qr-scan-frame>span:nth-child(1){
  left:0;top:0;border-width:4px 0 0 4px !important;border-radius:12px 0 0 0;
}
.qr-scan-frame>span:nth-child(2){
  right:0;top:0;border-width:4px 4px 0 0 !important;border-radius:0 12px 0 0;
}
.qr-scan-frame>span:nth-child(3){
  left:0;bottom:0;border-width:0 0 4px 4px !important;border-radius:0 0 0 12px;
}
.qr-scan-frame>span:nth-child(4){
  right:0;bottom:0;border-width:0 4px 4px 0 !important;border-radius:0 0 12px 0;
}
.qr-scan-line{
  display:block !important;
  position:absolute !important;
  left:14px !important;
  right:14px !important;
  height:2px !important;
  background:#fff !important;
  box-shadow:0 0 14px rgba(255,255,255,.95) !important;
  animation:qrScanMoveV23 1.8s ease-in-out infinite alternate !important;
}
@keyframes qrScanMoveV23{
  from{top:18px}
  to{top:190px}
}
.qr-camera-status{
  display:flex !important;
  align-items:center;
  justify-content:center;
  position:absolute !important;
  left:14px !important;
  right:14px !important;
  bottom:18px !important;
  min-height:36px;
  padding:8px 12px;
  border-radius:12px;
  color:#fff !important;
  background:rgba(0,0,0,.28);
  backdrop-filter:blur(4px);
  text-align:center;
  font-size:.84rem !important;
}

@media (max-width:575.98px){
  .qr-scanner-dialog{
    margin:12px;
  }
  .qr-scanner-modal{
    border-radius:20px;
  }
  .qr-scanner-viewport{
    min-height:330px !important;
    border-radius:16px !important;
  }
  .qr-scan-frame{
    width:190px !important;
    height:190px !important;
  }
  @keyframes qrScanMoveV23{
    from{top:16px}
    to{top:172px}
  }
}


/* v23.4: live camera in QR scanner */
.qr-camera-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#0d1419;
  z-index:0;
}
.qr-camera-fallback{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:28px;
  color:#fff;
  text-align:center;
  background:linear-gradient(145deg,#36434c,#11191f);
}
.qr-camera-fallback i{
  font-size:2.2rem;
  opacity:.85;
}
.qr-camera-noise{
  z-index:2;
}
.qr-scan-frame{
  z-index:3;
}
.qr-camera-status{
  z-index:4;
}


/* v23.5: mobile "More" services menu */
.mobile-more-dialog{
  max-width:520px;
}
.mobile-more-content{
  border:0;
  border-radius:24px;
  overflow:hidden;
}
.mobile-more-title{
  margin-bottom:9px;
  color:var(--bs-secondary-color,#6c757d);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.mobile-more-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.mobile-more-item{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:66px;
  padding:11px 12px;
  border:1px solid var(--bs-border-color,#dee2e6);
  border-radius:14px;
  background:var(--bs-body-bg,#fff);
  color:inherit;
  text-decoration:none;
  transition:.18s ease;
}
.mobile-more-item:hover,
.mobile-more-item:focus{
  border-color:rgba(13,110,253,.32);
  background:rgba(13,110,253,.035);
  color:inherit;
}
.mobile-more-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:12px;
  background:rgba(13,110,253,.09);
  font-size:1.1rem;
}
.mobile-more-item b{
  display:block;
  margin-bottom:2px;
  font-size:.92rem;
}
.mobile-more-item small{
  display:block;
  color:var(--bs-secondary-color,#6c757d);
  font-size:.76rem;
  line-height:1.25;
}

@media (max-width:767.98px){
  .mobile-more-modal .modal-dialog{
    align-items:flex-end;
    min-height:100%;
    margin:0;
    max-width:none;
  }
  .mobile-more-modal .modal-content{
    width:100%;
    max-height:82vh;
    border-radius:22px 22px 0 0;
  }
  .mobile-more-modal .modal-body{
    overflow-y:auto;
    padding-bottom:calc(20px + env(safe-area-inset-bottom));
  }
}
@media (min-width:768px){
  .mobile-more-modal{
    display:none!important;
  }
}


/* v23.6: mobile More sheet scroll fix */
@media (max-width:767.98px){
  .mobile-more-modal{
    overflow:hidden !important;
  }

  .mobile-more-modal .modal-dialog{
    display:flex !important;
    align-items:flex-end !important;
    min-height:100dvh !important;
    height:100dvh !important;
    margin:0 !important;
    max-width:none !important;
    pointer-events:none;
  }

  .mobile-more-modal .modal-content{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    max-height:calc(100dvh - 72px) !important;
    border-radius:22px 22px 0 0 !important;
    overflow:hidden !important;
    pointer-events:auto;
  }

  .mobile-more-modal .modal-header{
    flex:0 0 auto !important;
  }

  .mobile-more-modal .modal-body{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    padding-bottom:calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-more-grid{
    padding-bottom:2px;
  }
}


/* v23.7: equal dashboard instrument heights on mobile */
@media (max-width:767.98px){
  #cardsContainer .bank-card{
    height:330px !important;
    min-height:330px !important;
  }

  #cardsContainer .bank-card.has-debt{
    height:330px !important;
    min-height:330px !important;
  }

  #cardsContainer .add-card{
    height:330px !important;
    min-height:330px !important;
  }
}
