/* BITVIER V13 — polished wallet UI for phone and desktop */
body.wallet-v13{
  --w13-blue:#2457f5;
  --w13-blue-2:#4b7bff;
  --w13-mint:#16c7b1;
  --w13-ink:var(--text,#101828);
  --w13-muted:var(--muted,#667085);
  --w13-card:var(--card,#fff);
  --w13-soft:var(--soft,#f4f7ff);
  --w13-line:var(--line,rgba(16,24,40,.08));
}

/* Desktop overview and workspace */
@media(min-width:821px){
  body.wallet-v13 .page-shell{max-width:1480px}
  body.wallet-v13 .wallet-v11-overview{grid-template-columns:minmax(460px,1.55fr) repeat(3,minmax(170px,.5fr));gap:15px;margin-top:22px}
  body.wallet-v13 .wallet-v11-balance-card{min-height:210px;padding:30px;border-radius:32px;background:
    radial-gradient(circle at 85% 10%,rgba(255,255,255,.23),transparent 30%),
    linear-gradient(135deg,#1f4ee8 0%,#3d70ff 52%,#17bda9 115%)}
  body.wallet-v13 .wallet-v11-total{font-size:clamp(48px,5vw,72px)}
  body.wallet-v13 .wallet-v11-overview-actions{margin-top:27px}
  body.wallet-v13 .wallet-v11-overview-action{min-height:46px;padding:0 16px;border-radius:15px}
  body.wallet-v13 .wallet-v11-stat-card{min-height:210px;padding:22px;border-radius:28px;background:linear-gradient(180deg,var(--card),rgba(247,250,255,.92))}
  body.dark.wallet-v13 .wallet-v11-stat-card{background:linear-gradient(180deg,var(--card),rgba(20,30,45,.92))}

  body.wallet-v13 .wallet-v11-workspace{grid-template-columns:minmax(360px,.78fr) minmax(650px,1.42fr);gap:22px;align-items:start}
  body.wallet-v13 .portfolio-panel{position:sticky;top:104px;max-height:calc(100vh - 125px);overflow:hidden;display:flex;flex-direction:column}
  body.wallet-v13 .portfolio-assets{overflow:auto;padding-right:2px;scrollbar-width:thin}
  body.wallet-v13 .wallet-main{min-height:690px;border-radius:30px!important;box-shadow:0 22px 58px rgba(31,48,89,.12)!important}
  body.wallet-v13 .wallet-main>.panel-head{padding:24px 25px 18px}
  body.wallet-v13 .wallet-v11-operation-nav{padding:15px 24px 17px;gap:11px}
  body.wallet-v13 .wallet-v11-operation-btn{min-height:64px;border-radius:19px;background:rgba(244,247,255,.9)}
  body.dark.wallet-v13 .wallet-v11-operation-btn{background:rgba(20,30,45,.88)}
  body.wallet-v13 .wallet-v11-operation-btn.active{background:linear-gradient(135deg,rgba(36,87,245,.16),rgba(22,199,177,.12));border-color:rgba(36,87,245,.28)}
  body.wallet-v13 .wallet-body{padding:23px 25px 28px}
  body.wallet-v13 .hero-card{padding:19px 20px;border-radius:23px}
  body.wallet-v13 .deposit-grid{grid-template-columns:minmax(260px,.8fr) minmax(360px,1.2fr);gap:18px;align-items:stretch}
  body.wallet-v13 .qr-card,body.wallet-v13 .address-card,body.wallet-v13 .send-card{border-radius:24px!important;background:linear-gradient(180deg,rgba(248,250,255,.98),rgba(241,246,255,.94))!important}
  body.dark.wallet-v13 .qr-card,body.dark.wallet-v13 .address-card,body.dark.wallet-v13 .send-card{background:linear-gradient(180deg,rgba(19,28,42,.98),rgba(15,24,38,.96))!important}
  body.wallet-v13 .qr-frame{width:260px;height:260px;padding:18px;border-radius:22px;background:#fff;box-shadow:0 15px 36px rgba(31,48,89,.10)}
  body.wallet-v13 .address-card{justify-content:center;padding:24px!important}
  body.wallet-v13 .address-value{min-height:74px;padding:16px;border-radius:18px;font-size:14px;line-height:1.6}
  body.wallet-v13 .send-card{padding:24px!important}
  body.wallet-v13 .send-card .field{margin-bottom:17px}
  body.wallet-v13 .send-card .input-wrap{min-height:62px;padding:9px 11px 9px 17px;border-radius:18px;background:var(--card)}
  body.wallet-v13 .wallet-v13-field-actions{display:flex;gap:7px;flex:none}
  body.wallet-v13 .wallet-v13-tool{height:42px;padding:0 13px;border:0;border-radius:13px;background:var(--soft);color:var(--text);font:inherit;font-size:12px;font-weight:800;cursor:pointer}
  body.wallet-v13 .wallet-v13-tool.icon-only{width:42px;padding:0;display:grid;place-items:center;color:var(--primary)}
  body.wallet-v13 .wallet-v13-tool svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  body.wallet-v13 .wallet-v13-coin-picker{height:44px;display:flex;align-items:center;gap:8px;padding:0 13px;border:0;border-radius:14px;background:var(--soft);color:var(--text);font:inherit;font-weight:800;cursor:pointer;flex:none}
  body.wallet-v13 .wallet-v13-coin-picker img{width:27px;height:27px;border-radius:50%}
  body.wallet-v13 .wallet-v13-coin-picker svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
  body.wallet-v13 .wallet-v13-amount-meta{display:flex;justify-content:space-between;gap:12px;margin-top:9px;color:var(--muted);font-size:12px}
  body.wallet-v13 .wallet-v13-amount-right{display:flex;align-items:center;gap:9px;text-align:right}
  body.wallet-v13 .wallet-v13-max{border:0;background:transparent;color:var(--primary);font-weight:900;cursor:pointer}
  body.wallet-v13 #sendPane .actions-row{margin-top:18px}
  body.wallet-v13 #sendBtn{min-width:230px}
  body.wallet-v13 #depositPane .wallet-v13-deposit-intro{margin-bottom:15px}
  body.wallet-v13 .wallet-v13-deposit-intro strong{font-size:20px;color:var(--text)}
  body.wallet-v13 .wallet-v13-deposit-intro span{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.55}
}

/* Shared operation controls */
body.wallet-v13 .wallet-v13-field-actions{display:flex;align-items:center;gap:7px;flex:none}
body.wallet-v13 .wallet-v13-tool{border:0;background:var(--soft);color:var(--text);font:inherit;font-weight:800;cursor:pointer}
body.wallet-v13 .wallet-v13-tool.icon-only{display:grid;place-items:center;color:var(--primary)}
body.wallet-v13 .wallet-v13-tool svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.wallet-v13 .wallet-v13-coin-picker{border:0;background:var(--soft);color:var(--text);font:inherit;font-weight:800;cursor:pointer}
body.wallet-v13 .wallet-v13-coin-picker img{object-fit:cover}
body.wallet-v13 .wallet-v13-amount-meta{color:var(--muted)}
body.wallet-v13 .wallet-v13-max{border:0;background:transparent;color:var(--primary);font:inherit;font-weight:900;cursor:pointer}
body.wallet-v13 #shareAddressBtn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Mobile wallet operation screens */
@media(max-width:820px){
  body.wallet-v13{--wallet-sheet-top:72px;padding-bottom:calc(72px + env(safe-area-inset-bottom) + 12px)!important}
  body.wallet-v13 .header-wrap{z-index:3000!important}
  body.wallet-v13 .wallet-v11-backdrop{z-index:2800!important;top:var(--wallet-sheet-top);background:rgba(35,52,86,.20);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
  body.wallet-v13 .wallet-grid{z-index:2900!important;top:var(--wallet-sheet-top);bottom:0;height:calc(100dvh - var(--wallet-sheet-top));max-height:none!important;transform:translateY(105%)}
  body.wallet-v13 .wallet-grid.wallet-v11-sheet-open{transform:translateY(0)}
  body.wallet-v13 .wallet-main{height:100%;max-height:none!important;border-radius:25px 25px 0 0!important;background:linear-gradient(180deg,#f8faff 0%,#f1f5fc 100%)!important;color:#172039!important;box-shadow:0 -16px 55px rgba(30,48,82,.20)!important;overflow:hidden}
  body.wallet-v13.dark .wallet-main{background:linear-gradient(180deg,#f8faff 0%,#f1f5fc 100%)!important;color:#172039!important}
  body.wallet-v13 .wallet-main>.panel-head{position:relative;z-index:30;display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:67px;padding:10px 13px!important;border-bottom:1px solid #e5eaf3!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  body.wallet-v13 .wallet-main>.panel-head>div:first-of-type{grid-column:2;grid-row:1;text-align:center;min-width:0}
  body.wallet-v13 .wallet-main>.panel-head .panel-title{font-size:21px!important;line-height:1.15;color:#172039!important;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.wallet-v13 .wallet-main>.panel-head .panel-sub{display:none!important}
  body.wallet-v13 .wallet-main>.panel-head .panel-actions{grid-column:3;grid-row:1;display:flex!important;justify-content:flex-end;width:auto!important}
  body.wallet-v13 .wallet-main>.panel-head .panel-actions>#chooseAssetBtn{display:none!important}
  body.wallet-v13 .wallet-v13-back,body.wallet-v13 .wallet-v11-close{width:42px!important;height:42px!important;display:grid!important;place-items:center;border:0;border-radius:50%;background:#edf2f8;color:#41506a;cursor:pointer}
  body.wallet-v13 .wallet-v13-back{grid-column:1;grid-row:1}
  body.wallet-v13 .wallet-v13-back svg,body.wallet-v13 .wallet-v11-close svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
  body.wallet-v13 .wallet-v11-operation-nav{display:none!important}
  body.wallet-v13 .wallet-body{min-height:0!important;flex:1;overflow-y:auto!important;overscroll-behavior:contain;padding:0 14px calc(24px + env(safe-area-inset-bottom))!important;background:transparent!important;-webkit-overflow-scrolling:touch}
  body.wallet-v13 .hero-card{display:none!important}
  body.wallet-v13 .tab-pane{padding-top:0!important;animation:none!important}
  body.wallet-v13 .mobile-dock{transition:opacity .18s ease,transform .18s ease}
  body.wallet-v11-lock.wallet-v13 .mobile-dock{opacity:0;pointer-events:none;transform:translateY(120%)}

  /* Receive */
  body.wallet-v13 .wallet-main[data-wallet-view="deposit"] .wallet-body{display:flex;flex-direction:column}
  body.wallet-v13 .wallet-main[data-wallet-view="deposit"] .networks{order:0;align-self:center;display:flex!important;width:auto;max-width:100%;margin:17px auto 13px!important;padding:4px!important;border-radius:17px;background:#e8edf5!important;box-shadow:inset 0 0 0 1px rgba(80,100,135,.06);overflow-x:auto;scrollbar-width:none}
  body.wallet-v13 .wallet-main[data-wallet-view="deposit"] .networks::-webkit-scrollbar{display:none}
  body.wallet-v13 .wallet-main[data-wallet-view="deposit"] .network-btn{flex:0 0 auto;min-width:70px;min-height:40px!important;padding:0 15px!important;border:0!important;border-radius:13px!important;background:transparent!important;color:#4b5870!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important}
  body.wallet-v13 .wallet-main[data-wallet-view="deposit"] .network-btn.active{background:linear-gradient(135deg,#2457f5,#4aa9ef)!important;color:#fff!important;box-shadow:0 7px 17px rgba(36,87,245,.22)!important}
  body.wallet-v13 .wallet-main[data-wallet-view="deposit"] #depositPane{display:block!important;order:1}
  body.wallet-v13 .wallet-main[data-wallet-view="deposit"] #sendPane,body.wallet-v13 .wallet-main[data-wallet-view="deposit"] #historyPane{display:none!important}
  body.wallet-v13 .wallet-v13-deposit-intro{margin:2px auto 15px!important;padding:0 8px!important;border:0!important;background:transparent!important;text-align:center;color:#78849a!important}
  body.wallet-v13 .wallet-v13-deposit-intro strong{display:block;margin-bottom:7px;font-size:25px;line-height:1.15;color:#172039;letter-spacing:-.04em}
  body.wallet-v13 .wallet-v13-deposit-intro span{display:block;max-width:470px;margin:auto;font-size:14px;line-height:1.5}
  body.wallet-v13 .deposit-grid{display:flex!important;flex-direction:column;gap:13px!important}
  body.wallet-v13 .qr-card{display:flex!important;flex-direction:column;align-items:center;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.wallet-v13 .qr-frame{width:min(78vw,320px)!important;height:min(78vw,320px)!important;min-width:230px;min-height:230px;padding:20px!important;border-radius:27px!important;background:#fff!important;border:1px solid #e3e8f0!important;box-shadow:0 18px 42px rgba(29,52,89,.12)!important}
  body.wallet-v13 .qr-frame img{width:100%!important;height:100%!important;object-fit:contain;border-radius:10px}
  body.wallet-v13 .qr-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:19px;border-radius:17px;background:linear-gradient(145deg,#f7f9fd,#eef3fa);color:#758198;font-size:13px;line-height:1.5;text-align:center}
  body.wallet-v13 #qrNetworkLabel{display:none!important}
  body.wallet-v13 .address-card{display:flex;flex-direction:column;align-items:center;padding:0 0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.wallet-v13 .address-state,body.wallet-v13 .address-label,body.wallet-v13 #depositPane .summary{display:none!important}
  body.wallet-v13 .address-value{width:min(100%,530px);min-height:0!important;margin:0 auto;padding:3px 8px!important;border:0!important;background:transparent!important;color:#172039!important;font-family:'Space Grotesk',monospace;font-size:14px!important;line-height:1.5;text-align:center;overflow-wrap:anywhere;word-break:break-word}
  body.wallet-v13 .address-value.placeholder{color:#7d889c!important}
  body.wallet-v13 #depositPane .actions-row{display:flex!important;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;margin-top:13px;width:100%}
  body.wallet-v13 #generateAddressBtn,body.wallet-v13 #copyAddressBtn,body.wallet-v13 #shareAddressBtn{width:auto!important;min-height:50px!important;padding:0 18px!important;border-radius:17px!important;font-size:13px!important;font-weight:800!important}
  body.wallet-v13 #generateAddressBtn{background:linear-gradient(135deg,#2457f5,#2796ef)!important;box-shadow:0 11px 25px rgba(36,87,245,.20)!important}
  body.wallet-v13 #copyAddressBtn{background:#e9eef6!important;border:0!important;color:#26354e!important}
  body.wallet-v13 #shareAddressBtn{width:50px!important;padding:0!important;border:0!important;background:#e9eef6!important;color:#26354e!important}
  body.wallet-v13 #copyAddressBtn:before{content:"⧉";margin-right:7px;font-size:17px;vertical-align:-1px}
  body.wallet-v13 #depositPane.has-deposit-address #generateAddressBtn{display:none!important}

  /* Send */
  body.wallet-v13 .wallet-main[data-wallet-view="send"] .networks{display:none!important}
  body.wallet-v13 .wallet-main[data-wallet-view="send"] #depositPane,body.wallet-v13 .wallet-main[data-wallet-view="send"] #historyPane{display:none!important}
  body.wallet-v13 .wallet-main[data-wallet-view="send"] #sendPane{display:block!important;padding-top:16px!important}
  body.wallet-v13 #sendPane>.note-box{display:none!important}
  body.wallet-v13 .send-card{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.wallet-v13 .send-card .field{margin:0 0 14px!important}
  body.wallet-v13 .send-card .field>label{display:none!important}
  body.wallet-v13 .send-card .input-wrap{display:flex!important;align-items:center;gap:8px;min-height:74px!important;padding:10px 11px 10px 17px!important;border:1px solid #e3e9f2!important;border-radius:21px!important;background:#fff!important;box-shadow:0 9px 25px rgba(31,48,89,.065)!important;transition:border-color .18s ease,box-shadow .18s ease}
  body.wallet-v13 .send-card .input-wrap:focus-within{border-color:#2796ef!important;box-shadow:0 0 0 3px rgba(39,150,239,.11),0 10px 27px rgba(31,48,89,.075)!important}
  body.wallet-v13 .send-card input{flex:1 1 auto;min-width:0!important;min-height:46px!important;padding:0!important;border:0!important;background:transparent!important;color:#172039!important;font-size:17px!important;font-weight:650!important;box-shadow:none!important;outline:none!important}
  body.wallet-v13 .send-card input::placeholder{color:#929db0!important;font-weight:600}
  body.wallet-v13 #sendAmount{font-size:24px!important;font-family:'Space Grotesk',sans-serif;font-weight:700!important}
  body.wallet-v13 .wallet-v13-field-actions{gap:6px}
  body.wallet-v13 .wallet-v13-tool{height:44px;padding:0 13px;border-radius:14px;background:#edf2f8;color:#2b3850;font-size:12px;white-space:nowrap}
  body.wallet-v13 .wallet-v13-tool.icon-only{width:44px;padding:0;color:#2457f5}
  body.wallet-v13 .wallet-v13-tool svg{width:22px;height:22px}
  body.wallet-v13 .wallet-v13-coin-picker{height:46px;display:flex;align-items:center;gap:7px;flex:none;padding:0 11px;border-radius:15px;background:#edf2f8;color:#1f2c43;font-size:13px}
  body.wallet-v13 .wallet-v13-coin-picker img{width:27px;height:27px;border-radius:50%}
  body.wallet-v13 .wallet-v13-coin-picker svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
  body.wallet-v13 .wallet-v13-amount-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-top:8px;padding:0 2px;color:#7b879a;font-size:11px;line-height:1.45}
  body.wallet-v13 .wallet-v13-amount-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;text-align:right}
  body.wallet-v13 .wallet-v13-max{padding:0;color:#2457f5;font-size:12px}
  body.wallet-v13 #sendPane .summary{margin-top:4px;padding:13px 14px!important;border:1px solid #e4eaf3!important;border-radius:18px!important;background:rgba(255,255,255,.76)!important}
  body.wallet-v13 #sendPane .summary-row{font-size:11px!important;color:#6f7c91!important}
  body.wallet-v13 #sendPane .summary-row span:last-child{color:#26344c!important;font-weight:800}
  body.wallet-v13 #sendPane .actions-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:9px;margin-top:14px}
  body.wallet-v13 #sendBtn{width:100%!important;min-height:55px!important;border-radius:18px!important;background:linear-gradient(135deg,#2457f5,#2796ef)!important;box-shadow:0 12px 28px rgba(36,87,245,.20)!important;font-size:14px!important}
  body.wallet-v13 #clearSendBtn{width:55px!important;min-width:55px!important;min-height:55px!important;padding:0!important;border-radius:18px!important;font-size:0!important}
  body.wallet-v13 #clearSendBtn:after{content:"×";font-size:25px;line-height:1}
  body.wallet-v13 .send-status{margin-top:10px!important;padding:11px 13px!important;border-radius:14px!important;font-size:11px!important;line-height:1.45!important;text-align:center}

  /* History */
  body.wallet-v13 .wallet-main[data-wallet-view="history"] .networks,body.wallet-v13 .wallet-main[data-wallet-view="history"] #depositPane,body.wallet-v13 .wallet-main[data-wallet-view="history"] #sendPane{display:none!important}
  body.wallet-v13 .wallet-main[data-wallet-view="history"] #historyPane{display:block!important;padding-top:15px!important}
  body.wallet-v13 .history-list{display:grid;gap:9px}
  body.wallet-v13 .history-item{padding:14px!important;border:1px solid #e4eaf3!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 22px rgba(31,48,89,.055)!important}
  body.wallet-v13 .history-line{font-size:13px!important;line-height:1.45!important;color:#1f2d45!important}
  body.wallet-v13 .history-sub{font-size:11px!important;line-height:1.55!important;color:#738096!important;overflow-wrap:anywhere}
}

@media(max-width:390px){
  body.wallet-v13{--wallet-sheet-top:70px}
  body.wallet-v13 .wallet-body{padding-left:10px!important;padding-right:10px!important}
  body.wallet-v13 .qr-frame{width:min(82vw,290px)!important;height:min(82vw,290px)!important;padding:17px!important}
  body.wallet-v13 .wallet-v13-deposit-intro strong{font-size:23px}
  body.wallet-v13 .wallet-v13-deposit-intro span{font-size:13px}
  body.wallet-v13 .send-card .input-wrap{min-height:68px!important;padding-left:14px!important;padding-right:9px!important}
  body.wallet-v13 .wallet-v13-tool{padding:0 10px;font-size:11px}
  body.wallet-v13 .wallet-v13-tool.icon-only{width:42px}
  body.wallet-v13 .wallet-v13-coin-picker{padding:0 9px}
  body.wallet-v13 #copyAddressBtn{padding-left:15px!important;padding-right:15px!important}
}
