/* Complete Binance Pay styles v20261026-pay-note-8: wallet layout, dialog motion and archived financial rows. */
.wallet-usdt-history>div { min-width:0; }
.wallet-usdt-history-fee { line-height:1.8; overflow-wrap:anywhere; }
.wallet-page .wallet-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
.wallet-page .wallet-cards.is-reordering { scroll-snap-type:none; scroll-behavior:auto; }
.wallet-page .wallet-cards.is-reordering .wallet-card.is-selected { z-index:1; }
.wallet-page .wallet-topup[data-topup="مصرف"] img { padding:0; border:0; border-radius:50%; background:transparent; object-fit:contain; }
.wallet-page .wallet-overview { max-width:none; }
.wallet-page .wallet-topup-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
/* Each wallet keeps its own color in the same polished metallic finish. */
.account-page .wallet-card.wallet-libyana {
  --wallet-color:#c16be5;
  --wallet-metal-start:#151019;
  --wallet-metal-mid:#25182e;
  --wallet-metal-end:#573066;
  --wallet-metal-edge:#824998;
  --wallet-metal-line:#9263a3;
  --wallet-metal-text:#f1c8ff;
  --wallet-metal-muted:#ead8f0;
  --wallet-metal-control:#2c1d34;
  --wallet-metal-hover:#43294f;
  --wallet-metal-ink:#211127;
  --wallet-metal-reflection:234 188 255;
}
.account-page .wallet-card.wallet-bank {
  --wallet-color:#68b6ef;
  --wallet-metal-start:#0d141f;
  --wallet-metal-mid:#152437;
  --wallet-metal-end:#284d70;
  --wallet-metal-edge:#3d769f;
  --wallet-metal-line:#5488af;
  --wallet-metal-text:#c5e6ff;
  --wallet-metal-muted:#d5e5f2;
  --wallet-metal-control:#182e43;
  --wallet-metal-hover:#25445f;
  --wallet-metal-ink:#0e2030;
  --wallet-metal-reflection:185 225 255;
}
.account-page .wallet-card:is(.wallet-libyana,.wallet-bank) {
  background:linear-gradient(118deg,transparent 36%,rgb(var(--wallet-metal-reflection) / .09) 46%,rgb(255 255 255 / .14) 47%,transparent 57%),linear-gradient(130deg,var(--wallet-metal-start) 0%,var(--wallet-metal-mid) 48%,var(--wallet-metal-end) 78%,var(--wallet-metal-edge) 100%);
  border-color:var(--wallet-metal-line);
  box-shadow:inset 0 1px 0 rgb(var(--wallet-metal-reflection) / .28),inset 0 -1px 0 rgb(0 0 0 / .3),0 8px 24px rgb(0 0 0 / .18);
}
.wallet-page :is(.wallet-libyana,.wallet-bank) .wallet-badge { color:var(--wallet-metal-text); background:var(--wallet-metal-control); border-color:var(--wallet-metal-line); }
.wallet-page :is(.wallet-libyana,.wallet-bank) h3 { color:var(--wallet-metal-text); }
.wallet-page :is(.wallet-libyana,.wallet-bank) p { color:var(--wallet-metal-muted); }
.wallet-page :is(.wallet-libyana,.wallet-bank) .wallet-card-footer { border-top-color:rgb(var(--wallet-metal-reflection) / .25); }
.wallet-page :is(.wallet-libyana,.wallet-bank) .wallet-default-button { background:var(--wallet-metal-control); border-color:var(--wallet-metal-line); color:var(--wallet-metal-text); }
.wallet-page :is(.wallet-libyana,.wallet-bank) .wallet-default-button:hover { background:var(--wallet-metal-hover); }
.wallet-page :is(.wallet-libyana,.wallet-bank) .wallet-default-button:focus-visible { outline-color:var(--wallet-metal-text); }
.wallet-page :is(.wallet-libyana,.wallet-bank) .wallet-default-button[aria-pressed="true"] { color:var(--wallet-metal-text); background:transparent; border-color:transparent; }
.wallet-page :is(.wallet-libyana,.wallet-bank) .wallet-default-badge { background:var(--wallet-color); color:var(--wallet-metal-ink); }
.wallet-page :is(.wallet-libyana,.wallet-bank).is-selected { border-color:var(--wallet-color); }
.wallet-page .wallet-tabs button[data-wallet-filter="libyana"][aria-pressed="true"] { background:#2c1d34; color:#f1c8ff; border-color:#9263a3; }
.wallet-page .wallet-tabs button[data-wallet-filter="bank"][aria-pressed="true"] { background:#182e43; color:#c5e6ff; border-color:#5488af; }
/* Polished black and Binance gold, with a fixed metallic reflection. */
.account-page .wallet-card.wallet-usdt {
  --wallet-color:#f0b90b;
  background:linear-gradient(118deg,transparent 36%,rgb(255 234 164 / .09) 46%,rgb(255 255 255 / .14) 47%,transparent 57%),linear-gradient(130deg,#101114 0%,#1b1a15 48%,#574514 78%,#b68b0b 100%);
  border-color:#897026;
  box-shadow:inset 0 1px 0 rgb(255 235 171 / .28),inset 0 -1px 0 rgb(0 0 0 / .3),0 8px 24px rgb(0 0 0 / .18);
}
.wallet-page .wallet-tabs button[data-wallet-filter="usd"][aria-pressed="true"] { background:#302912; color:#ffe080; border-color:#8c7229; opacity:1; }
.wallet-page .wallet-usdt .wallet-badge { color:#ffe080; background:#302912; border-color:#8c7229; }
.wallet-page .wallet-usdt h3 { color:#ffe080; }
.wallet-page .wallet-usdt p { color:#f0e5c6; }
.wallet-page .wallet-usdt .wallet-card-footer { border-top-color:rgb(255 224 128 / .25); }
.wallet-page .wallet-usdt .wallet-default-button { background:#262216; border-color:#8c7229; color:#ffe8a3; }
.wallet-page .wallet-usdt .wallet-default-button:hover { background:#3a3118; }
.wallet-page .wallet-usdt .wallet-default-button:focus-visible { outline-color:#ffe080; }
.wallet-page .wallet-usdt .wallet-default-button[aria-pressed="true"] { color:#ffe080; background:transparent; border-color:transparent; }
.wallet-page .wallet-usdt .wallet-default-badge { background:#f0b90b; color:#19170d; }
.wallet-page .wallet-usdt.is-selected { border-color:#f0b90b; }
.account-page .wallet-card.wallet-usdt .wallet-card-icon { background:transparent; border:0; border-radius:0; overflow:visible; }
.account-page .wallet-card.wallet-usdt .wallet-card-icon img { width:44px; height:44px; max-width:none; object-fit:contain; border-radius:0; filter:brightness(0) saturate(100%) invert(76%) sepia(86%) saturate(1460%) hue-rotate(359deg) brightness(98%) contrast(94%); }
.wallet-usdt .wallet-card-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; }
#openUsdtTopup img { width:36px; height:36px; object-fit:contain; }
.wallet-usdt-open { overflow:hidden; }
.wallet-usdt-dialog { box-sizing:border-box; width:min(480px,calc(100% - 24px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:auto; overscroll-behavior:contain; border:1px solid var(--border-color); border-radius:18px; background:var(--bg-card); color:var(--text-main); font-family:'Almarai','Cairo',sans-serif; scrollbar-width:thin; scrollbar-color:#55515e #1b1b23; box-shadow:0 24px 80px rgb(0 0 0 / .38); }
.wallet-usdt-dialog[open] { animation:wallet-usdt-in .28s cubic-bezier(.16,1,.3,1) both!important; }
.wallet-usdt-dialog[open].is-closing { animation:wallet-usdt-out .18s ease-in both!important; pointer-events:none; }
.wallet-usdt-dialog::backdrop { background:rgb(0 0 0 / .68); backdrop-filter:none!important; }
.wallet-usdt-dialog [hidden] { display:none!important; }
.wallet-usdt-dialog button,.wallet-usdt-dialog input { font-family:inherit; }
.wallet-usdt-dialog button { cursor:pointer; }
.wallet-usdt-dialog button:focus-visible { outline:2px solid #e78896; outline-offset:3px; }
.wallet-usdt-heading { position:sticky; z-index:2; top:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid var(--border-color); background:var(--bg-card); }
.wallet-usdt-heading h2 { margin:0; font-size:19px; font-weight:800; line-height:1.6; }
.wallet-usdt-heading p { margin:4px 0 0; color:#b0acba; font-size:12px; line-height:1.7; }
.wallet-usdt-close { display:grid; place-items:center; flex-shrink:0; width:36px; height:36px; padding:0; border:1px solid #3a3642; border-radius:10px; background:#24232d; color:#bcb8c7; }
.wallet-usdt-close svg,.wallet-usdt-primary svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; }
.wallet-usdt-close:hover { color:#fff; background:#302931; }
.wallet-usdt-primary { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:46px; padding:12px; border:1px solid #e63346; border-radius:11px; background:linear-gradient(180deg,#d92538,#c41a2f); color:#fff; font-size:14px; font-weight:800; box-shadow:inset 0 1px 0 rgb(255 255 255 / .12); transition:background .18s ease; }
.wallet-usdt-primary:hover { background:#c91f30; }
.wallet-usdt-dialog .wallet-usdt-primary:disabled { background:#3a2c37; border-color:#55404d; color:#ded3df; cursor:wait; opacity:1; }
.wallet-usdt-primary[aria-busy="true"] svg { display:none; }
.wallet-usdt-primary[aria-busy="true"]::after { content:""; width:14px; height:14px; border:2px solid currentColor; border-top-color:transparent; border-radius:50%; animation:wallet-usdt-spin .8s linear infinite; }
@keyframes wallet-usdt-shine { from { opacity:0; transform:translateX(0) skewX(-20deg); } 20% { opacity:1; } to { opacity:0; transform:translateX(520%) skewX(-20deg); } }
@keyframes wallet-usdt-in { from { opacity:0; transform:translateY(14px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes wallet-usdt-out { to { opacity:0; transform:translateY(8px) scale(.99); } }
@keyframes wallet-usdt-spin { to { transform:rotate(360deg); } }
/* Account-theme control and bounded shine retained for Binance Pay. */
.wallet-usdt-primary{position:relative;isolation:isolate;overflow:hidden;border-color:#673742;background:var(--account-accent-soft);color:var(--account-accent-text);box-shadow:inset 0 1px 0 rgb(255 255 255 / .04);transition:background-color .3s ease,color .3s ease,border-color .3s ease,transform .3s ease}
.wallet-usdt-primary::before{content:"";position:absolute;z-index:-1;top:-60%;bottom:-60%;left:-50%;width:32%;pointer-events:none;background:linear-gradient(90deg,transparent,rgb(255 255 255 / .16),transparent);opacity:0;transform:skewX(-20deg)}
.wallet-usdt-dialog[open] .wallet-usdt-primary:not(:disabled)::before{animation:wallet-usdt-shine .65s .15s ease-out both}
@media(hover:hover){.wallet-usdt-primary:hover:not(:disabled){border-color:var(--primary-red);background:var(--primary-dark-red);color:white;transform:translateY(-2px)}.wallet-usdt-primary:hover:not(:disabled)::before{animation:wallet-usdt-shine .65s ease-out both}}
.wallet-usdt-primary:active:not(:disabled){transform:translateY(0)}
@media(max-width:480px){.wallet-usdt-heading h2{font-size:18px}}
@media(max-width:650px) {
  .wallet-page .account-main { width:100%; padding-inline:10px; }
  .wallet-page .wallet-cards { gap:10px; padding:2px 10px 12px; scroll-padding-inline:10px; }
  .wallet-page .wallet-overview .wallet-card { flex-basis:90%; min-height:216px; padding:18px 14px 14px; border-radius:18px; }
  .wallet-page .wallet-overview .wallet-card-top { margin-bottom:24px; }
  .wallet-page .wallet-overview .wallet-card-balance { font-size:26px; line-height:1.3; }
  .wallet-page .wallet-overview .wallet-card h3 { font-size:12px; line-height:1.5; margin-bottom:10px; }
  .wallet-page .wallet-overview .wallet-card p { font-size:11px; line-height:1.5; }
  .wallet-page .wallet-overview .wallet-card-icon { width:36px; height:36px; }
  .wallet-page .wallet-overview .wallet-card .wallet-card-icon img { width:36px; height:36px; }
  .wallet-page .wallet-overview .wallet-default-badge { top:45px; left:14px; font-size:11px; }
  .wallet-page .wallet-overview .wallet-card-footer { padding-top:12px; }
  .wallet-page .wallet-overview .wallet-default-button { min-height:32px; font-size:11px; padding:5px 8px; }
  .wallet-page .wallet-topup-options { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; align-items:stretch; }
  .wallet-page .wallet-topup { min-width:0; min-height:82px; padding:12px 6px; gap:8px; border-radius:12px; }
  .wallet-page .wallet-topup img,.wallet-page #openUsdtTopup img { width:36px; height:36px; }
  .wallet-page .wallet-topup strong { font-size:11px; line-height:1.6; }
  .wallet-page #openUsdtTopup { grid-column:auto; }
}

@media(prefers-reduced-motion:reduce){.wallet-usdt-dialog[open],.wallet-usdt-dialog[open].is-closing,.wallet-usdt-primary[aria-busy="true"]::after,.wallet-usdt-primary::before{animation:none!important}.wallet-usdt-primary{transition:none}}
.wallet-archive-row,.wallet-archive-row:hover{cursor:default;background:transparent}
/* Binance Pay keeps the wallet's dark surfaces, typography and red actions. */
.binance-pay-dialog{width:min(500px,calc(100% - 28px))}
.binance-pay-brand{display:flex;align-items:center;gap:10px}
.binance-pay-brand img{width:30px;height:30px}
.binance-pay-fields{display:grid;gap:19px;padding:24px}
.binance-pay-field{display:grid;gap:9px;font-size:13px;font-weight:700;color:var(--text-muted,#b6b6c5)}
.binance-pay-field input,.binance-pay-recipient{box-sizing:border-box;width:100%;min-height:54px;border:1px solid var(--border-color,#34343f);border-radius:12px;background:var(--bg-main,#121218);color:var(--text-main,#fff);padding:12px 16px;font:inherit;font-size:16px;transition:border-color .2s,box-shadow .2s}
.binance-pay-field input::placeholder{color:#a2a2b0;opacity:1}
.binance-pay-field input{text-align:right}
.binance-pay-field input:focus-visible{outline:none;border-color:#d15b6c;box-shadow:0 0 0 3px rgb(209 91 108 / .12)}
.binance-pay-recipient{display:flex;justify-content:space-between;align-items:center;gap:14px}
.binance-pay-recipient bdi{font-size:22px;color:var(--text-main,#fff);font-variant-numeric:tabular-nums}
.binance-pay-copy{display:grid;place-items:center;width:38px;height:38px;border:1px solid #61404a;border-radius:10px;background:#332027;color:#ff8c9b;cursor:pointer}
.binance-pay-copy svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.binance-pay-amount{position:relative}
.binance-pay-amount input{padding-left:80px}
.binance-pay-amount span{position:absolute;left:16px;top:18px;color:#ff8c9b;font-size:13px}
.binance-pay-help{margin:0;font-size:12px;line-height:1.9;color:var(--text-muted,#b6b6c5)}
.binance-pay-message{margin:0;padding:12px;border-radius:10px;background:#332027;color:#ffc1c9;font-size:13px;line-height:1.9;overflow-wrap:anywhere}
.binance-pay-message[data-success="true"]{background:#173b2d;color:#c0f5d8}
.binance-pay-fields .wallet-usdt-primary{margin:0}
@media(max-width:480px){.binance-pay-fields{padding:20px;gap:17px}.binance-pay-dialog .wallet-usdt-heading{padding:18px 20px}}

.binance-pay-brand bdi{white-space:nowrap}
.binance-pay-note{padding:13px 15px;border:1px solid #67404a;border-radius:12px;background:var(--account-accent-soft,#332027)}
.binance-pay-note-label,.binance-pay-note-value{display:flex;align-items:center;justify-content:space-between;gap:10px}
.binance-pay-note-label{margin-bottom:10px;font-size:12px;color:var(--text-main,#fff)}
.binance-pay-note-label>span{color:#ffb0bc;font-weight:700}
.binance-pay-note-label bdi{display:inline-block}
.binance-pay-note-value{direction:ltr}
.binance-pay-note-value>bdi{color:#fff0f3;font-size:20px;font-weight:800;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.binance-pay-note p{margin:10px 0 0;color:#efc5cd;font-size:12px;line-height:1.8}
.binance-pay-note button:disabled{opacity:.5;cursor:default}
#binancePayRetryNote{margin-top:10px;padding:6px 0;min-height:32px;background:transparent;border:0;color:#ffb0bc;font-family:inherit;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
@media(max-width:380px){.binance-pay-note{padding:12px}.binance-pay-note-value>bdi{font-size:18px}}

/* Keep this dialog's requested motion enabled, including reduced-motion devices. */
.binance-pay-dialog[open]{animation:binance-pay-in .3s cubic-bezier(.2,.8,.2,1) both!important}
.binance-pay-dialog[open].is-closing{animation:binance-pay-out .2s ease-out both!important}
.binance-pay-dialog[open]::backdrop{animation:binance-pay-backdrop-in .3s ease-out both!important}
.binance-pay-dialog[open].is-closing::backdrop{animation:binance-pay-backdrop-out .2s ease-out both!important}
@keyframes binance-pay-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes binance-pay-out{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(6px) scale(.995)}}
@keyframes binance-pay-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes binance-pay-backdrop-out{from{opacity:1}to{opacity:0}}
