:root{
  --bg:#eef4ff;--card:#ffffff;--ink:#172033;--muted:#667085;--line:#e5e7ef;--primary:#6d5dfc;--primary2:#00c2ff;--success:#0fb981;--danger:#ff4d6d;--warning:#ffb020;--purple:#8b5cf6;--shadow:0 18px 55px rgba(34,42,84,.14);--radius:22px;--safe:max(14px,env(safe-area-inset-bottom))
}
*{box-sizing:border-box}body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Bengali",Arial,sans-serif;color:var(--ink);background:radial-gradient(circle at 10% 0%,rgba(0,194,255,.22),transparent 34%),radial-gradient(circle at 95% 6%,rgba(141,92,246,.24),transparent 32%),linear-gradient(180deg,#f7fbff 0%,var(--bg) 100%);min-height:100vh}button,input,select{font:inherit}button{border:0;cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:18px}.auth-card{width:min(460px,100%);background:rgba(255,255,255,.92);border:1px solid rgba(229,231,239,.9);border-radius:30px;box-shadow:var(--shadow);overflow:hidden}.auth-head{padding:25px;color:white;background:linear-gradient(135deg,var(--primary),var(--primary2))}.auth-head h1{margin:0;font-size:26px}.auth-head p{margin:6px 0 0;opacity:.9}.auth-body{padding:18px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.auth-tabs button{border-radius:16px;padding:11px;background:#f2f4ff;color:#4f46e5;font-weight:900}.auth-tabs button.active{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white}.auth-panel{display:none}.auth-panel.active{display:grid;gap:10px}.app-layout{width:min(1240px,100%);margin:0 auto;min-height:100vh}.desktop-side{display:none}.app{width:min(440px,100%);min-height:100vh;margin:0 auto;background:rgba(255,255,255,.54);backdrop-filter:blur(18px);box-shadow:0 0 0 1px rgba(255,255,255,.55);position:relative;overflow:hidden;padding-bottom:90px}header{padding:20px 16px 14px;color:white;background:linear-gradient(135deg,var(--primary),var(--primary2));border-bottom-left-radius:28px;border-bottom-right-radius:28px;box-shadow:var(--shadow);position:sticky;top:0;z-index:4}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:10px}.logo{width:44px;height:44px;border-radius:16px;background:rgba(255,255,255,.22);display:grid;place-items:center;font-size:22px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}h1{font-size:20px;margin:0 0 2px;font-weight:850;letter-spacing:-.2px}.sub{font-size:12px;opacity:.86}.user-pill{background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 10px;display:flex;align-items:center;gap:8px;font-size:12px;color:white;max-width:165px}.user-pill b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:82px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.stat{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.24);border-radius:18px;padding:12px}.stat span{font-size:11px;opacity:.82}.stat strong{display:block;font-size:18px;margin-top:3px}main{padding:14px 14px 24px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.action-card{border-radius:20px;padding:13px 12px;box-shadow:0 12px 35px rgba(52,63,102,.1);color:white;display:flex;align-items:center;gap:10px;font-weight:800;min-height:66px}.action-card small{display:block;font-weight:600;font-size:11px;opacity:.85;margin-top:2px}.blue{background:linear-gradient(135deg,#1d9bf0,#00c2ff)}.green{background:linear-gradient(135deg,#00b894,#2dd4bf)}.orange{background:linear-gradient(135deg,#ff8a00,#ffcb47);color:#241b02}.violet{background:linear-gradient(135deg,#7c3aed,#c084fc)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:18px 2px 10px}.section-title h2{font-size:16px;margin:0}.section-title small{color:var(--muted)}.search-row{display:grid;grid-template-columns:1fr;gap:9px;margin-bottom:12px}.input{width:100%;border:1px solid var(--line);background:white;border-radius:16px;padding:12px 13px;outline:none;transition:.18s;box-shadow:0 8px 18px rgba(80,90,120,.05)}.input:focus{border-color:#99a4ff;box-shadow:0 0 0 4px rgba(109,93,252,.11)}.wallet-list{display:grid;gap:12px}.wallet-card{background:var(--card);border:1px solid rgba(229,231,239,.85);border-radius:var(--radius);padding:13px;box-shadow:0 14px 40px rgba(40,50,92,.1);position:relative;overflow:hidden}.wallet-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--primary),var(--primary2),var(--success))}.wallet-head{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:3px}.wallet-top-actions{display:flex;align-items:flex-start;gap:7px}.number-block{min-width:0}.serial{font-size:11px;color:var(--muted);font-weight:700}.number-title{font-size:16px;font-weight:900;margin:3px 0 1px;color:#111827;text-decoration:underline;text-decoration-color:#d7dcff;text-underline-offset:4px;cursor:pointer}.number-sub{font-size:12px;color:var(--muted)}.copy-btn,.tiny-btn{border-radius:13px;background:#f2f4ff;color:#4f46e5;font-weight:800;padding:8px 10px;font-size:12px}.balance-pill{text-align:right}.balance-pill span{font-size:11px;color:var(--muted)}.balance-pill strong{display:block;font-size:18px;color:#111827}.wallet-body{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:8px;margin-top:12px;align-items:stretch}.cash-btn{border-radius:17px;padding:11px 8px;font-weight:900;box-shadow:0 10px 24px rgba(0,0,0,.1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:76px}.cash-btn small{font-size:11px;font-weight:700;opacity:.8}.cash-in{background:#e9fff8;color:#057a55}.cash-out{background:#fff0f3;color:#d92d4f}.limit-box{background:#f8faff;border:1px dashed #c7d2fe;border-radius:17px;padding:10px 9px;text-align:center;min-height:76px}.limit-box .label{font-size:11px;color:var(--muted);font-weight:800}.limit-box b{display:block;font-size:13px;margin-top:3px}.limit-box small{display:block;color:var(--muted);font-size:10.5px;margin-top:4px;line-height:1.28}.progress{height:8px;border-radius:99px;background:#e8ecf8;overflow:hidden;margin-top:8px}.bar{height:100%;width:0;background:linear-gradient(90deg,#0fb981,#6d5dfc);border-radius:99px;transition:.25s}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.chip{font-size:11px;font-weight:800;border-radius:999px;padding:6px 8px;background:#f8fafc;color:#475467;border:1px solid #eef2f7}.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(440px,100%);display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:9px 10px var(--safe);background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border-top:1px solid rgba(210,218,235,.7);z-index:8}.nav-btn{background:transparent;color:#667085;border-radius:16px;padding:8px 4px;font-size:10.5px;font-weight:850;display:grid;gap:3px;place-items:center}.nav-btn span{font-size:19px}.nav-btn.active{color:var(--primary);background:#f2f4ff}.screen{display:none}.screen.active{display:block}.panel-card{background:white;border:1px solid var(--line);border-radius:22px;padding:14px;box-shadow:0 14px 40px rgba(40,50,92,.09);margin-bottom:12px}.form-grid{display:grid;gap:10px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn-main{border-radius:16px;padding:13px 15px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:white;font-weight:900;box-shadow:0 12px 26px rgba(109,93,252,.2)}.btn-soft{border-radius:16px;padding:12px 14px;background:#f2f4ff;color:#4f46e5;font-weight:900}.btn-danger{background:#fff0f3;color:#d92d4f}.list-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 0;border-bottom:1px solid #f1f3f8}.list-row:last-child{border-bottom:0}.list-row b{font-size:14px}.list-row small{display:block;color:var(--muted);margin-top:2px}.row-actions{display:flex;gap:6px;align-items:center}.report-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:12px}.report-tabs button{border-radius:14px;background:white;color:#667085;border:1px solid var(--line);padding:10px 4px;font-size:12px;font-weight:900}.report-tabs button.active{background:var(--primary);color:white;border-color:var(--primary)}.report-total{display:grid;grid-template-columns:1fr 1fr;gap:10px}.report-total .panel-card{margin:0}.big-num{font-size:22px;font-weight:950}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:12px}.table th,.table td{padding:9px 5px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:top}.table th{color:#667085;font-size:11px}.right{text-align:right!important}.positive{color:#059669;font-weight:900}.negative{color:#e11d48;font-weight:900}.modal-backdrop{position:fixed;inset:0;background:rgba(14,23,42,.38);backdrop-filter:blur(8px);z-index:20;display:none;align-items:flex-end;justify-content:center}.modal-backdrop.show{display:flex}.modal{width:min(440px,100%);background:white;border-radius:28px 28px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -18px 60px rgba(0,0,0,.24);max-height:88vh;overflow:auto}.modal-handle{width:42px;height:5px;background:#d0d5dd;border-radius:99px;margin:0 auto 12px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-head h3{margin:0;font-size:17px}.close-btn{width:34px;height:34px;border-radius:14px;background:#f2f4f7;font-size:18px}.hint{font-size:12px;color:#667085;line-height:1.45;background:#f8faff;border:1px solid #e8ecff;border-radius:14px;padding:10px;margin:8px 0}.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:84px;background:#101828;color:white;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:800;opacity:0;pointer-events:none;transition:.22s;z-index:40}.toast.show{opacity:1;bottom:100px}.empty{padding:24px;text-align:center;color:#667085;background:white;border:1px dashed #d8deee;border-radius:22px}.custom-range{display:none;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.custom-range.show{display:grid}.log-item{border-left:4px solid #c7d2fe;padding:8px 0 8px 10px;margin-bottom:8px;background:#fbfcff;border-radius:0 12px 12px 0}.log-item b{font-size:13px}.log-item small{display:block;color:var(--muted);margin-top:3px}.role-admin{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.role-user{background:#ecfeff;color:#0e7490;border-color:#a5f3fc}
@media(min-width:720px){.search-row{grid-template-columns:1fr 190px}.wallet-head{grid-template-columns:1fr auto auto}.modal{border-radius:28px;width:min(560px,calc(100% - 28px));margin-bottom:20px}.modal-backdrop{align-items:center}.two-desktop{grid-template-columns:1fr 1fr}}
@media(min-width:980px){body{background:linear-gradient(135deg,#eef4ff,#f8faff)}.app-layout{display:grid;grid-template-columns:280px 1fr;gap:22px;padding:22px}.desktop-side{display:block}.side-card{position:sticky;top:22px;background:white;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:20px}.side-brand{display:flex;align-items:center;gap:10px;margin-bottom:20px}.side-nav{display:grid;gap:8px}.side-nav button{display:flex;align-items:center;gap:10px;border-radius:16px;background:#f8faff;padding:13px;color:#475467;font-weight:900}.side-nav button.active{background:linear-gradient(135deg,var(--primary),var(--primary2));color:white}.side-mini{margin-top:18px;padding:14px;border-radius:20px;background:#f8faff;color:#667085;line-height:1.55;font-size:13px}.app{width:100%;min-height:calc(100vh - 44px);border-radius:30px;margin:0;background:rgba(255,255,255,.72);box-shadow:var(--shadow);padding-bottom:24px}header{position:relative;border-radius:30px;margin:0 0 8px}.bottom-nav{display:none}main{padding:18px}.quick-grid{grid-template-columns:repeat(4,1fr)}.wallet-list{grid-template-columns:repeat(2,minmax(0,1fr))}.screen.active{animation:fade .14s ease}.modal-backdrop{position:fixed}.toast{bottom:24px}.toast.show{bottom:42px}.report-area{display:grid;grid-template-columns:1fr 1fr;gap:12px}.report-area .panel-card{margin-bottom:0}}
@media(min-width:1220px){.wallet-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@keyframes fade{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}
.lang-switch{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.24);color:white;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.top-actions{display:flex;align-items:center;gap:7px;min-width:0}.auth-card{position:relative}.auth-lang{position:absolute;right:14px;top:14px;z-index:2;background:rgba(255,255,255,.9);color:#4f46e5;border-color:rgba(255,255,255,.5)}.nav-btn em{font-style:normal}.side-link span{pointer-events:none}
@media(max-width:420px){.top-actions{gap:5px}.lang-switch{padding:7px 9px;font-size:11px}.user-pill{max-width:135px;padding:7px 8px}.user-pill b{max-width:58px}.brand h1{font-size:18px}.logo{width:40px;height:40px}}

/* v3.1 fixed shell scrolling: header and bottom nav stay fixed, list/content scrolls inside app */
html,body{height:100%;overflow:hidden}
.app{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-bottom:0}
header{flex:0 0 auto;position:relative;top:auto}
main{flex:1 1 auto;min-height:0;overflow:hidden;padding:14px 14px calc(78px + var(--safe))}
.bottom-nav{position:absolute;left:0;right:0;bottom:0;transform:none;width:100%}
.screen.active{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#home.screen.active{display:flex;flex-direction:column;overflow:hidden}
#home .quick-grid,#home .section-title,#home .search-row{flex:0 0 auto}
#home .wallet-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 2px 12px}
@media(min-width:980px){
  html,body{height:auto;min-height:100%;overflow:auto}
  .app{height:calc(100vh - 44px);min-height:620px;display:flex;flex-direction:column;padding-bottom:0}
  header{flex:0 0 auto;position:relative}
  main{flex:1 1 auto;min-height:0;overflow:hidden;padding:18px}
  .bottom-nav{display:none}
  .screen.active{height:100%;overflow-y:auto;overscroll-behavior:contain}
  #home.screen.active{display:flex;flex-direction:column;overflow:hidden}
  #home .wallet-list{flex:1 1 auto;overflow-y:auto;min-height:0;padding-right:6px}
}

/* v4 status and method-number detail refinements */
button,input,select,textarea{font:inherit}
.view-btn{background:#ecfeff;color:#0e7490;border:1px solid #a5f3fc}
.status-active{background:#ecfdf3;color:#027a48;border-color:#abefc6}
.status-inactive{background:#fff1f3;color:#c01048;border-color:#fecdd6}
.status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;flex-wrap:wrap}
.reason-line{font-size:12px;color:#b42318;background:#fff5f6;border:1px solid #fecdd6;border-radius:12px;padding:8px 10px;margin:8px 0;line-height:1.4}
.method-wallet-list{display:grid;gap:8px}.method-wallet{margin-bottom:0}.method-wallet.inactive{opacity:.78;background:#fffafa;border-color:#fecdd6}.wrap-actions{flex-wrap:wrap;justify-content:flex-end}.wallet-top-actions{flex-wrap:wrap;justify-content:flex-end}.wallet-top-actions .tiny-btn,.wallet-top-actions .copy-btn{padding:7px 9px}
textarea.input{resize:vertical;min-height:90px}
@media(max-width:420px){.wallet-top-actions{gap:5px}.wallet-top-actions .tiny-btn,.wallet-top-actions .copy-btn{font-size:11px;padding:6px 8px}.balance-pill strong{font-size:16px}}

/* v5 serial highlight, number detail actions and transaction edit/delete */
.wallet-head{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:10px}
.serial-badge{width:62px;min-height:58px;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;box-shadow:0 12px 24px rgba(109,93,252,.24);display:grid;place-items:center;padding:7px 6px;text-align:center}
.serial-badge small{font-size:10px;font-weight:800;opacity:.9;line-height:1}
.serial-badge b{font-size:22px;font-weight:950;line-height:1.05;letter-spacing:.2px}
.mini-serial{display:inline-grid;place-items:center;min-width:46px;height:42px;padding:0 8px;border-radius:14px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:950;box-shadow:0 8px 18px rgba(109,93,252,.18)}
.mini-serial.big{min-width:56px;height:50px;font-size:18px;margin-right:10px}.detail-number-title,.method-wallet-info{display:flex;align-items:center;gap:10px;min-width:0}.method-wallet-info>div{min-width:0}.table-actions{justify-content:flex-end}.table-actions .tiny-btn{padding:6px 8px;font-size:11px}.modal .table-wrap{max-height:44vh;overscroll-behavior:contain}.wallet-card .number-block{min-width:0}.wallet-card .number-title{word-break:break-word}@media(max-width:420px){.wallet-head{grid-template-columns:auto 1fr}.wallet-top-actions{grid-column:1/-1;display:grid;grid-template-columns:auto auto 1fr;width:100%}.serial-badge{width:58px}.serial-badge b{font-size:20px}.modal .table{font-size:11px}.table-actions{gap:4px}.table-actions .tiny-btn{font-size:10px;padding:5px 7px}}@media(min-width:980px){.wallet-head{grid-template-columns:auto 1fr auto}.serial-badge{width:66px}.serial-badge b{font-size:24px}.modal .table-wrap{max-height:50vh}}

/* v6 bulk number import */
.bulk-btn{background:#eef2ff;color:#4338ca;border:1px solid #c7d2fe}
.bulk-text{min-height:240px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;line-height:1.45;white-space:pre}
@media(max-width:420px){.bulk-text{min-height:220px}.method-wallet .row-actions,.panel-card .row-actions.wrap-actions{justify-content:flex-end}}

/* v7 number list layout fix: keep number cards one-by-one vertically on PC too */
.wallet-list{
  grid-template-columns:1fr !important;
}
@media(min-width:980px){
  #home .wallet-list{
    grid-template-columns:1fr !important;
    max-width:760px;
    width:100%;
    align-self:flex-start;
  }
  #home .wallet-card{
    width:100%;
  }
}
@media(min-width:1220px){
  .wallet-list,
  #home .wallet-list{
    grid-template-columns:1fr !important;
  }
}


/* v8 strict vertical number list + scroll fix
   Requirement: header/footer stay fixed; only the Home number list scrolls.
   Number cards must always show top-to-bottom, never grid/side-by-side. */
html,body{
  height:100%;
  overflow:hidden;
}
body{
  overscroll-behavior:none;
}
.app-layout{
  height:100%;
  min-height:0;
}
.app{
  height:100svh;
  max-height:100dvh;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  padding-bottom:0 !important;
}
@supports (height:100dvh){
  .app{height:100dvh;}
}
header{
  flex:0 0 auto !important;
  position:relative !important;
  top:auto !important;
  z-index:5;
}
main{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:hidden !important;
  padding:14px 14px calc(78px + var(--safe)) !important;
}
.screen{
  min-height:0;
}
.screen.active{
  height:100% !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
#home.screen.active{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
  min-height:0 !important;
  overflow:hidden !important;
}
#home .quick-grid,
#home .section-title,
#home .search-row{
  flex:0 0 auto !important;
}
#home .wallet-list,
.wallet-list{
  display:flex !important;
  flex-direction:column !important;
  grid-template-columns:none !important;
  grid-auto-flow:row !important;
  align-items:stretch !important;
  gap:12px !important;
  width:100% !important;
  max-width:none !important;
}
#home .wallet-list{
  flex:1 1 0 !important;
  min-height:140px !important;
  max-height:100% !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:0 2px 14px !important;
}
.wallet-card{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  flex:0 0 auto !important;
  margin:0 !important;
  height:auto !important;
  min-height:auto !important;
  display:block !important;
  clear:both !important;
}
.wallet-head{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) auto !important;
  align-items:start !important;
  width:100% !important;
}
.number-block,
.wallet-top-actions,
.balance-pill{
  min-width:0 !important;
}
.number-title{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  line-height:1.25 !important;
}
.wallet-body{
  width:100% !important;
}
.bottom-nav{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  transform:none !important;
  width:100% !important;
}
@media(max-width:420px){
  .wallet-head{
    grid-template-columns:auto minmax(0,1fr) !important;
  }
  .wallet-top-actions{
    grid-column:1 / -1 !important;
    display:flex !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    width:100% !important;
  }
}
@media(min-width:720px){
  .wallet-list,
  #home .wallet-list{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
  }
}
@media(min-width:980px){
  html,body{
    height:100%;
    overflow:hidden;
  }
  .app-layout{
    height:100vh;
    min-height:0;
    overflow:hidden;
  }
  .desktop-side{
    height:calc(100vh - 44px);
    overflow:hidden;
  }
  .app{
    height:calc(100vh - 44px) !important;
    min-height:0 !important;
    max-height:calc(100vh - 44px) !important;
  }
  main{
    padding:18px !important;
  }
  .bottom-nav{display:none !important;}
  #home .wallet-list{
    max-width:none !important;
    align-self:stretch !important;
    padding-right:8px !important;
  }
  #home .wallet-card{
    width:100% !important;
    max-width:none !important;
  }
}
@media(min-width:1220px){
  .wallet-list,
  #home .wallet-list{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    max-width:none !important;
  }
}

/* v9 mobile duplicate shortcut hide
   Mobile/tablet app already has bottom navigation, so the four header shortcut cards are hidden there.
   Desktop keeps the quick action cards for a professional dashboard look. */
@media(max-width:979px){
  #home .quick-grid{
    display:none !important;
    margin:0 !important;
    padding:0 !important;
  }
  #home .section-title{
    margin-top:10px !important;
  }
}

/* v10 compact number list + clean detail/limit view
   - Removes lower Today/Monthly/click chips from number cards (handled in JS).
   - Keeps every number as a compact top-to-bottom row on both mobile and PC.
   - Makes View/Copy/Cash buttons smaller and places balance on the right side. */
.compact-wallet.wallet-card{
  padding:10px 11px !important;
  border-radius:18px !important;
  box-shadow:0 10px 24px rgba(40,50,92,.08) !important;
}
.compact-head.wallet-head{
  grid-template-columns:auto minmax(0,1fr) minmax(88px,auto) !important;
  align-items:center !important;
  gap:8px !important;
  margin-top:0 !important;
}
.compact-wallet .serial-badge{
  width:52px !important;
  min-height:50px !important;
  border-radius:15px !important;
  padding:6px 5px !important;
}
.compact-wallet .serial-badge small{font-size:9px !important}
.compact-wallet .serial-badge b{font-size:20px !important}
.compact-number{
  align-self:center !important;
  cursor:pointer;
}
.compact-number .number-title{
  font-size:15px !important;
  margin:1px 0 !important;
  text-decoration:none !important;
  line-height:1.18 !important;
}
.compact-number .number-sub,
.compact-number .serial{
  font-size:10.5px !important;
  line-height:1.2 !important;
}
.compact-actions{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-end !important;
  justify-content:center !important;
  gap:5px !important;
  min-width:86px !important;
}
.top-mini-actions{
  display:flex;
  gap:4px;
  justify-content:flex-end;
  width:100%;
}
.compact-actions .tiny-btn,
.compact-actions .copy-btn{
  padding:5px 7px !important;
  border-radius:10px !important;
  font-size:10.5px !important;
  line-height:1 !important;
}
.compact-actions .balance-pill{
  background:#f8faff;
  border:1px solid #eef2ff;
  border-radius:13px;
  padding:5px 8px;
  min-width:78px;
  text-align:center !important;
}
.compact-actions .balance-pill span{
  font-size:9.5px !important;
  line-height:1 !important;
}
.compact-actions .balance-pill strong{
  font-size:14px !important;
  line-height:1.1 !important;
}
.compact-body.wallet-body{
  grid-template-columns:.88fr 1.25fr .88fr !important;
  gap:6px !important;
  margin-top:8px !important;
}
.compact-body .cash-btn{
  min-height:48px !important;
  padding:6px 5px !important;
  border-radius:13px !important;
  gap:0 !important;
  font-size:13px !important;
  box-shadow:none !important;
}
.compact-body .cash-btn small{display:none !important}
.compact-body .limit-box{
  min-height:48px !important;
  padding:6px 7px !important;
  border-radius:13px !important;
}
.compact-body .limit-box .label{
  font-size:9.5px !important;
}
.compact-body .limit-box b{
  font-size:12px !important;
  margin-top:1px !important;
}
.compact-body .progress{
  height:5px !important;
  margin-top:5px !important;
}
.wallet-card .chips{display:none !important}
.warning-box{
  background:#fff7ed !important;
  border-color:#fed7aa !important;
  color:#9a3412 !important;
  font-weight:800;
}
.warning-box b{color:#c2410c}
.limit-mini-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:10px 0 8px;
}
.limit-mini-box{
  background:#f8faff;
  border:1px solid #e8ecff;
  border-radius:14px;
  padding:9px 10px;
  min-width:0;
}
.limit-mini-box span{
  display:block;
  color:#667085;
  font-size:10.5px;
  font-weight:850;
  line-height:1.2;
}
.limit-mini-box b{
  display:block;
  margin-top:4px;
  font-size:15px;
  line-height:1.1;
  color:#172033;
}
.limit-mini-box.highlight{
  background:linear-gradient(135deg,rgba(109,93,252,.10),rgba(0,194,255,.10));
  border-color:#c7d2fe;
}
.compact-hint{
  padding:8px 10px !important;
  margin:8px 0 0 !important;
  font-size:11px !important;
}
@media(max-width:420px){
  .compact-head.wallet-head{
    grid-template-columns:auto minmax(0,1fr) minmax(76px,auto) !important;
    gap:7px !important;
  }
  .compact-wallet.wallet-card{padding:9px 10px !important}
  .compact-wallet .serial-badge{width:48px !important;min-height:48px !important}
  .compact-wallet .serial-badge b{font-size:18px !important}
  .compact-number .number-title{font-size:14px !important}
  .compact-actions{
    grid-column:auto !important;
    width:auto !important;
    min-width:74px !important;
    justify-content:center !important;
    align-items:flex-end !important;
  }
  .compact-actions .tiny-btn,
  .compact-actions .copy-btn{
    padding:5px 6px !important;
    font-size:10px !important;
  }
  .compact-actions .balance-pill{
    min-width:72px;
    padding:4px 6px;
  }
  .compact-actions .balance-pill strong{font-size:13px !important}
  .compact-body.wallet-body{grid-template-columns:.82fr 1.2fr .82fr !important}
  .compact-body .cash-btn{font-size:12px !important;min-height:45px !important}
  .compact-body .limit-box{min-height:45px !important}
  .limit-mini-grid{grid-template-columns:1fr 1fr;gap:7px}
}
@media(min-width:980px){
  #home .wallet-list{
    max-width:820px !important;
  }
  .compact-wallet.wallet-card{
    padding:11px 13px !important;
  }
}

/* v11 profile workspace */
.profile-current{
  margin-top:3px;
  display:inline-flex;
  max-width:210px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  font-size:10.5px;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.profile-card.active-profile{
  border-color:#99a4ff;
  box-shadow:0 14px 40px rgba(109,93,252,.14);
}
.profile-hint{margin-top:0 !important}
@media(max-width:979px){
  .bottom-nav{grid-template-columns:repeat(6,1fr) !important;gap:2px !important;padding-left:6px !important;padding-right:6px !important}
  .nav-btn{font-size:9px !important;padding:7px 2px !important;border-radius:13px !important}
  .nav-btn span{font-size:17px !important}
}
