/* BITVIER V11 — unified wallet redesign */
body.wallet-v11{--wallet-accent:#2457f5;--wallet-accent-2:#16c7b1;--wallet-panel:#ffffff;--wallet-soft:#f4f7ff}
body.dark.wallet-v11{--wallet-panel:#0e1522;--wallet-soft:#141e2d}

.wallet-v11-overview{display:grid;grid-template-columns:minmax(0,1.45fr) repeat(3,minmax(170px,.55fr));gap:16px;margin:20px 0 18px}
.wallet-v11-balance-card,.wallet-v11-stat-card{position:relative;overflow:hidden;border:1px solid var(--card-border);background:var(--card);box-shadow:var(--shadow)}
.wallet-v11-balance-card{min-height:190px;padding:26px;border-radius:30px;background:linear-gradient(135deg,rgba(36,87,245,.98),rgba(67,104,248,.92) 52%,rgba(22,199,177,.88));color:#fff}
.wallet-v11-balance-card:before,.wallet-v11-balance-card:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.wallet-v11-balance-card:before{width:250px;height:250px;right:-80px;top:-120px;background:rgba(255,255,255,.13)}
.wallet-v11-balance-card:after{width:160px;height:160px;right:90px;bottom:-100px;background:rgba(255,255,255,.08)}
.wallet-v11-eyebrow{position:relative;z-index:1;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;opacity:.78}
.wallet-v11-total{position:relative;z-index:1;margin-top:10px;font-family:'Space Grotesk',sans-serif;font-size:clamp(42px,5vw,68px);line-height:1;font-weight:700;letter-spacing:-.055em}
.wallet-v11-sync{position:relative;z-index:1;margin-top:12px;font-size:13px;opacity:.82}
.wallet-v11-overview-actions{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}
.wallet-v11-overview-action{display:inline-flex;align-items:center;gap:8px;min-height:43px;padding:0 14px;border:1px solid rgba(255,255,255,.25);border-radius:14px;background:rgba(255,255,255,.14);color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;backdrop-filter:blur(8px);transition:transform .18s ease,background .18s ease}
.wallet-v11-overview-action:hover{transform:translateY(-2px);background:rgba(255,255,255,.22)}
.wallet-v11-overview-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wallet-v11-stat-card{min-height:190px;padding:20px;border-radius:26px;display:flex;flex-direction:column;justify-content:space-between}
.wallet-v11-stat-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:rgba(36,87,245,.10);color:var(--primary)}
.wallet-v11-stat-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wallet-v11-stat-label{margin-top:18px;font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.wallet-v11-stat-value{margin-top:5px;font-size:20px;font-weight:800;color:var(--text);word-break:break-word}
.wallet-v11-stat-sub{margin-top:5px;font-size:12px;line-height:1.5;color:var(--muted)}

body.wallet-v11 .wallet-strip{display:none!important}
.wallet-v11-workspace{display:grid;grid-template-columns:minmax(340px,.88fr) minmax(560px,1.42fr);gap:22px;align-items:start;margin-top:0}
body.wallet-v11 .portfolio-panel,body.wallet-v11 .wallet-grid{margin:0!important;min-width:0}
body.wallet-v11 .wallet-grid{display:block!important}
body.wallet-v11 .wallet-main{padding:0!important;overflow:hidden;border-radius:28px;background:var(--card);border:1px solid var(--card-border);box-shadow:var(--shadow)}
body.wallet-v11 .wallet-main>.panel-head{padding:22px 22px 16px;margin:0;border-bottom:1px solid var(--line)}
body.wallet-v11 .wallet-main>.panel-head .panel-title{font-size:24px;letter-spacing:-.025em}
body.wallet-v11 .wallet-main>.panel-head .panel-sub{margin-top:4px}
.wallet-v11-close{display:none;width:42px;height:42px;place-items:center;border:0;border-radius:14px;background:var(--soft);color:var(--text);cursor:pointer}
.wallet-v11-close svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

body.wallet-v11 .tabs-row{display:none!important}
.wallet-v11-operation-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(36,87,245,.025),transparent)}
.wallet-v11-operation-btn{display:flex;align-items:center;gap:10px;min-width:0;min-height:58px;padding:9px 11px;border:1px solid var(--card-border);border-radius:18px;background:var(--soft);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.wallet-v11-operation-btn:hover{transform:translateY(-2px);border-color:rgba(36,87,245,.2);box-shadow:0 10px 22px rgba(36,87,245,.08)}
.wallet-v11-operation-btn.active{background:linear-gradient(135deg,rgba(36,87,245,.14),rgba(22,199,177,.10));border-color:rgba(36,87,245,.24);box-shadow:inset 0 0 0 1px rgba(36,87,245,.04)}
.wallet-v11-operation-icon{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:13px;background:var(--card);color:var(--primary);box-shadow:0 6px 14px rgba(31,48,89,.08)}
.wallet-v11-operation-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wallet-v11-operation-copy{min-width:0}
.wallet-v11-operation-copy strong{display:block;font-size:13px;line-height:1.2}
.wallet-v11-operation-copy small{display:block;margin-top:3px;color:var(--muted);font-size:10px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

body.wallet-v11 .wallet-body{padding:20px 22px 24px}
body.wallet-v11 .hero-card{margin:0 0 14px;padding:17px 18px;border-radius:22px;background:linear-gradient(135deg,var(--soft),var(--soft-2));border:1px solid rgba(36,87,245,.08);box-shadow:none}
body.wallet-v11 .hero-main img{width:50px;height:50px}
body.wallet-v11 .hero-title{font-size:20px}
body.wallet-v11 .hero-balance strong{font-size:17px}
body.wallet-v11 .hero-actions .secondary-btn{min-height:42px;border-radius:14px}
body.wallet-v11 .networks{margin:0 0 16px;padding:4px;display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}
body.wallet-v11 .networks::-webkit-scrollbar{display:none}
body.wallet-v11 .network-btn{flex:0 0 auto;min-height:39px;border-radius:13px}
body.wallet-v11 .tab-pane{animation:walletV11Pane .2s ease}
@keyframes walletV11Pane{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
body.wallet-v11 .note-box{margin-bottom:14px;border-radius:16px}
body.wallet-v11 .deposit-grid{gap:14px}
body.wallet-v11 .qr-card,body.wallet-v11 .address-card,body.wallet-v11 .send-card{border:1px solid rgba(36,87,245,.07);border-radius:22px;background:linear-gradient(180deg,var(--soft),var(--soft-2));box-shadow:none}
body.wallet-v11 .address-value{border:1px solid rgba(36,87,245,.08)}
body.wallet-v11 .actions-row .primary-btn,body.wallet-v11 .actions-row .secondary-btn{min-height:46px;border-radius:14px}
body.wallet-v11 .history-item{border-radius:18px;background:linear-gradient(180deg,var(--soft),var(--soft-2))}

body.wallet-v11 .portfolio-panel{padding:20px!important;border-radius:28px!important}
body.wallet-v11 .portfolio-head{margin-bottom:14px}
body.wallet-v11 .portfolio-head .panel-title{font-size:24px}
body.wallet-v11 .portfolio-assets{display:grid;grid-template-columns:1fr!important;gap:9px!important}
body.wallet-v11 .portfolio-asset{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:76px;padding:12px 13px!important;border:1px solid rgba(36,87,245,.06)!important;border-radius:19px!important;background:linear-gradient(180deg,var(--soft),var(--soft-2))!important;box-shadow:none!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important}
body.wallet-v11 .portfolio-asset:hover{transform:translateY(-2px)!important;border-color:rgba(36,87,245,.16)!important;box-shadow:0 10px 22px rgba(36,87,245,.07)!important}
body.wallet-v11 .portfolio-asset.active{border-color:rgba(36,87,245,.28)!important;box-shadow:inset 3px 0 0 var(--primary)!important}
body.wallet-v11 .portfolio-asset-main img{width:48px!important;height:48px!important}
body.wallet-v11 .portfolio-asset-name strong{font-size:16px!important}
body.wallet-v11 .portfolio-asset-numbers strong{font-size:14px!important}
.wallet-v11-backdrop{display:none}

@media(max-width:1180px){
  .wallet-v11-overview{grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(145px,.5fr))}
  .wallet-v11-workspace{grid-template-columns:minmax(300px,.78fr) minmax(500px,1.22fr)}
  .wallet-v11-operation-copy small{display:none}
}

@media(max-width:900px){
  .wallet-v11-overview{grid-template-columns:1fr 1fr}
  .wallet-v11-balance-card{grid-column:1/-1}
  .wallet-v11-stat-card{min-height:145px}
  .wallet-v11-workspace{display:block}
  body.wallet-v11 .wallet-grid{margin-top:18px!important}
}

@media(max-width:820px){
  body.wallet-v11{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .wallet-v11-overview{display:none!important}
  .wallet-v11-workspace{display:block;margin-top:0}
  body.wallet-v11 .portfolio-panel{margin-top:18px!important}

  body.wallet-v11 .wallet-grid{position:fixed;z-index:2600;left:0;right:0;bottom:0;margin:0!important;padding:0!important;max-height:94dvh;transform:translateY(108%);transition:transform .3s cubic-bezier(.22,.8,.25,1);pointer-events:none}
  body.wallet-v11 .wallet-grid.wallet-v11-sheet-open{transform:translateY(0);pointer-events:auto}
  body.wallet-v11 .wallet-main{display:flex;flex-direction:column;max-height:94dvh;border:0;border-radius:28px 28px 0 0;box-shadow:0 -18px 55px rgba(18,30,58,.24)}
  body.wallet-v11 .wallet-main>.panel-head{flex:none;padding:13px 16px 11px;border-bottom:1px solid var(--line)}
  body.wallet-v11 .wallet-main>.panel-head>div:first-child{min-width:0}
  body.wallet-v11 .wallet-main>.panel-head .panel-title{font-size:20px}
  body.wallet-v11 .wallet-main>.panel-head .panel-sub{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.wallet-v11 .wallet-main>.panel-head .panel-actions{display:flex!important;align-items:center}
  body.wallet-v11 .wallet-main>.panel-head .panel-actions>#chooseAssetBtn{display:none!important}
  .wallet-v11-close{display:grid}

  .wallet-v11-operation-nav{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:9px 12px 10px;overflow:visible}
  .wallet-v11-operation-btn{justify-content:center;flex-direction:column;gap:4px;min-height:57px;padding:6px 2px;border-radius:14px;text-align:center}
  .wallet-v11-operation-icon{width:29px;height:29px;border-radius:10px;box-shadow:none}
  .wallet-v11-operation-icon svg{width:17px;height:17px}
  .wallet-v11-operation-copy strong{font-size:10px}
  .wallet-v11-operation-copy small{display:none}

  body.wallet-v11 .wallet-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 13px calc(20px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
  body.wallet-v11 .hero-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:12px 13px;margin-bottom:10px;border-radius:18px}
  body.wallet-v11 .hero-main{min-width:0}
  body.wallet-v11 .hero-main img{width:42px;height:42px}
  body.wallet-v11 .hero-title{font-size:17px}
  body.wallet-v11 .hero-sub{font-size:11px}
  body.wallet-v11 .hero-balance{text-align:right}
  body.wallet-v11 .hero-balance strong{font-size:14px}
  body.wallet-v11 .hero-balance span{font-size:10px}
  body.wallet-v11 .hero-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}
  body.wallet-v11 .hero-actions .secondary-btn{min-height:38px;padding:0 11px}
  body.wallet-v11 .networks{margin-bottom:10px}
  body.wallet-v11 .network-btn{min-height:36px;padding:0 12px}
  body.wallet-v11 .note-box{font-size:11px;line-height:1.55;padding:11px 12px;margin-bottom:10px}
  body.wallet-v11 .deposit-grid{grid-template-columns:1fr;gap:10px}
  body.wallet-v11 .qr-card{display:none}
  body.wallet-v11 .address-card,body.wallet-v11 .send-card{padding:14px;border-radius:18px}
  body.wallet-v11 .address-value{font-size:12px;min-height:52px;padding:11px}
  body.wallet-v11 .actions-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  body.wallet-v11 .actions-row .primary-btn,body.wallet-v11 .actions-row .secondary-btn{width:100%;min-height:45px;padding:0 10px;font-size:12px}
  body.wallet-v11 .summary{gap:8px}
  body.wallet-v11 .summary-row{font-size:11px}
  body.wallet-v11 .field{margin-bottom:10px}
  body.wallet-v11 .input-wrap{min-height:48px;border-radius:14px;padding:11px 12px}
  body.wallet-v11 .send-status{font-size:11px}
  body.wallet-v11 .history-item{padding:12px;border-radius:16px}
  body.wallet-v11 .history-line{font-size:12px}
  body.wallet-v11 .history-sub{font-size:11px}

  .wallet-v11-backdrop{display:block;position:fixed;z-index:2500;inset:0;background:rgba(14,24,45,.42);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
  .wallet-v11-backdrop.show{opacity:1;visibility:visible}
  body.wallet-v11-lock{overflow:hidden!important;touch-action:none}

  /* V10 overview remains the main mobile header */
  .mobile-wallet-actions{gap:5px}
  .mobile-wallet-action-icon{box-shadow:0 12px 26px rgba(31,48,89,.11)}
  .mobile-wallet-action:focus-visible .mobile-wallet-action-icon{outline:3px solid rgba(36,87,245,.2)}
}

@media(max-width:390px){
  .wallet-v11-operation-nav{padding-left:8px;padding-right:8px}
  .wallet-v11-operation-copy strong{font-size:9px}
  body.wallet-v11 .wallet-body{padding-left:10px;padding-right:10px}
}
