/* ==========================================================================
   PLIXWIN – header balance, Stake-style (v20)
   One dark pill: amount + coloured currency coin + caret, with the Deposit
   button joined on the right. Click the amount to open the currency list
   (rendered by account.js) – here it is only restyled.
   ========================================================================== */
:root {
  --pxw-bg: #16181d; --pxw-line: #262a32; --pxw-hover: #1d2027;
  --pxw-usd: #3f8f63; --pxw-eur: #3e6fb5; --pxw-rub: #8f4c5c; --pxw-inr: #c28237;
}

/* pill */
header .header-right .wallet-pill.px-wallet { display: flex; align-items: center; gap: 0; height: 44px; min-height: 44px; max-width: none; padding: 3px; border-radius: 12px; background: var(--pxw-bg) !important; border: 1px solid var(--pxw-line) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
header .header-right .px-wallet .wallet-balance-box { flex-direction: row !important; align-items: center !important; gap: 8px !important; height: 36px; padding: 0 10px 0 14px !important; border: 0; border-radius: 9px; background: transparent; color: #f1f2f4; font: inherit; cursor: pointer; transition: background-color .15s ease; }
header .header-right .px-wallet .wallet-balance-box:hover,
header .header-right .px-wallet .wallet-balance-box[aria-expanded="true"] { background: var(--pxw-hover); }
header .header-right .px-wallet .wallet-balance-box:focus-visible { outline: 2px solid #c9974a; outline-offset: 1px; }
.px-wallet .wallet-balance-amount { display: block; font-size: 15px !important; font-weight: 700; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; color: #f4f5f7; white-space: nowrap; }
.px-wallet .wallet-balance-label { display: none !important; }

/* currency coin */
.px-cur-badge { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--pxw-usd); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), 0 0 0 2px rgba(255, 255, 255, .06); }
.px-cur-badge .wallet-currency-sym { color: #fff !important; font-size: 11px !important; font-weight: 800; line-height: 1; }
.px-wallet[data-cur="EUR"] .px-cur-badge { background: var(--pxw-eur); }
.px-wallet[data-cur="RUB"] .px-cur-badge { background: var(--pxw-rub); }
.px-wallet[data-cur="INR"] .px-cur-badge { background: var(--pxw-inr); }
/* the code stays for screen readers and the account script, the coin shows it visually */
.px-wallet .wallet-cur-code { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.px-wallet .wallet-caret { width: 14px !important; height: 14px !important; fill: none; stroke: #8a8d97; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.px-wallet .wallet-balance-box[aria-expanded="true"] .wallet-caret { transform: rotate(180deg); }

/* deposit, joined to the pill */
header .header-right .px-wallet .btn-header-deposit { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; height: 36px !important; min-height: 36px !important; padding: 0 16px !important; border: 0 !important; border-radius: 9px !important; background: #d6a54f !important; background-image: none !important; box-shadow: none !important; color: #15120c !important; font-size: 13.5px !important; font-weight: 700 !important; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color .15s ease; }
header .header-right .px-wallet .btn-header-deposit:hover { background: #e2b45f !important; }
.px-wallet .px-dep-ico { display: none; width: 18px; height: 18px; }

/* currency list (opens under the pill) */
.pxc-menu { width: 300px !important; padding: 8px !important; border-radius: 14px !important; background: #121318 !important; border: 1px solid #262a32 !important; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .85) !important; backdrop-filter: none !important; }
.pxc-menu::after { display: none !important; }
.pxc-head { padding: 6px 8px 10px !important; }
.pxc-head strong { font-size: 13px !important; font-weight: 700; color: #f1f2f4; }
.pxc-head span { font-size: 11px !important; color: #7f838d !important; }
.pxc-menu button { gap: 12px !important; padding: 10px !important; border-radius: 10px !important; border: 0 !important; }
.pxc-menu button:hover { background: #1b1e24 !important; }
.pxc-menu button.is-on { background: #1d2027 !important; }
.pxc-menu button.is-on::before { left: 0 !important; top: 12px !important; bottom: 12px !important; width: 3px !important; background: #d6a54f !important; }
.pxc-menu .pxa-flag { display: grid !important; place-items: center; width: 30px !important; height: 30px !important; min-width: 30px; border-radius: 50% !important; border: 0 !important; background: var(--pxw-usd) !important; color: #fff !important; font-size: 14px !important; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.pxc-menu button[data-cur="EUR"] .pxa-flag { background: var(--pxw-eur) !important; }
.pxc-menu button[data-cur="RUB"] .pxa-flag { background: var(--pxw-rub) !important; }
.pxc-menu button[data-cur="INR"] .pxa-flag { background: var(--pxw-inr) !important; }
.pxc-menu button.is-on .pxa-flag { color: #fff !important; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2), 0 0 0 2px #121318, 0 0 0 3.5px #d6a54f; }
.pxc-name b { font-size: 14px !important; color: #f1f2f4; }
.pxc-name small { color: #7f838d !important; }
.pxc-val em { font-size: 14px !important; color: #f1f2f4; }
.pxc-val small { color: #7f838d !important; }
.pxc-foot { border-top-color: #22252c !important; color: #7f838d !important; }

/* tablets / small laptops */
@media (max-width: 1100px) {
  header .header-right .px-wallet .wallet-balance-box { padding: 0 8px 0 12px !important; }
  header .header-right .px-wallet .btn-header-deposit { padding: 0 12px !important; }
}
/* phones: compact pill, deposit becomes a wallet icon (like Stake) */
@media (max-width: 600px) {
  header .header-right .wallet-pill.px-wallet { height: 40px; min-height: 40px; max-width: none !important; padding: 3px; border-radius: 11px; }
  header .header-right .px-wallet .wallet-balance-box { height: 32px; gap: 6px !important; padding: 0 7px 0 10px !important; }
  .px-wallet .wallet-balance-amount { font-size: 13.5px !important; }
  .px-cur-badge { width: 18px; height: 18px; }
  .px-cur-badge .wallet-currency-sym { font-size: 10px !important; }
  .px-wallet .wallet-caret { width: 12px !important; height: 12px !important; }
  header .header-right .px-wallet .btn-header-deposit { width: 34px; height: 32px !important; min-height: 32px !important; padding: 0 !important; border-radius: 8px !important; }
  header .header-right .px-wallet .btn-header-deposit span { display: none; }
  .px-wallet .px-dep-ico { display: block; }
  .pxc-menu { width: auto !important; }
}
@media (prefers-reduced-motion: reduce) { .px-wallet .wallet-caret, .px-wallet .wallet-balance-box, .px-wallet .btn-header-deposit { transition: none; } }
