/* Wallet modal — isolated, loads LAST after user_profile.css */
#walletModal.bp-wallet {
  --bg: #1c1c1e;
  --field: #000000;
  --track: #3a3a3c;
  --on: #2c2c2e;
  --text: #ffffff;
  --muted: #8e8e93;
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  background: rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
}
#walletModal.bp-wallet *,
#walletModal.bp-wallet *::before,
#walletModal.bp-wallet *::after {
  box-sizing: border-box;
}
#walletModal.bp-wallet.is-open,
#walletModal.bp-wallet:not([hidden]) {
  display: flex !important;
}
#walletModal.bp-wallet[hidden] {
  display: none !important;
}

#walletModal .bp-wallet__sheet {
  --sheet-h: min(78vh, 640px);
  --sheet-pad-x: 16px;
  position: relative;
  width: min(420px, 100%);
  max-width: 420px;
  flex: 0 0 auto;
  align-self: center;
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 0 12px; /* no side pad — scrollbar lives on the window edge */
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  height: var(--sheet-h) !important;
  min-height: var(--sheet-h) !important;
  max-height: var(--sheet-h) !important;
}

/* Custom stick on the far right of the modal (no OS arrows / track) */
#walletModal .bp-wallet__scroller {
  position: absolute !important;
  top: 48px !important;
  right: 4px !important;
  bottom: 10px !important;
  width: 2px !important;
  z-index: 20 !important;
  pointer-events: none !important;
  background: transparent !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}
#walletModal .bp-wallet__scroller.is-idle .bp-wallet__scroller-thumb {
  opacity: 0.22;
}
#walletModal .bp-wallet__scroller-thumb {
  position: absolute !important;
  top: 0;
  left: 0 !important;
  width: 2px !important;
  min-height: 14px !important;
  max-height: 35% !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.55) !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  transform: none !important;
  will-change: top, height;
}

#walletModal .bp-wallet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 var(--sheet-pad-x);
}
#walletModal .bp-wallet__head h3 {
  margin: 0;
  flex: 1 1 auto;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
}
#walletModal .bp-wallet__back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 28px;
  margin-right: 4px;
  padding: 0 8px 0 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#walletModal .bp-wallet__back[hidden] {
  display: none !important;
}
#walletModal .bp-wallet__back span:first-child {
  font-size: 20px;
  line-height: 1;
}
#walletModal.is-crypto-view .bp-wallet__head h3 {
  text-align: left;
}
#walletModal .bp-wallet__x {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#walletModal .bp-wallet__tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 2px;
  margin: 0 var(--sheet-pad-x);
  padding: 3px;
  border-radius: 12px;
  background: #111113;
  flex: 0 0 auto;
}
#walletModal .bp-wallet__tab {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 1;
}
#walletModal .bp-wallet__tab.is-on {
  background: #2c2c2e;
  color: #fff;
  opacity: 1;
}

#walletModal .bp-wallet__scroll {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--sheet-pad-x);
  margin: 0;
  scrollbar-gutter: auto;
  scrollbar-width: none; /* hide native — custom stick on sheet edge */
  -ms-overflow-style: none;
}
#walletModal .bp-wallet__scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}
#walletModal .bp-wallet__chrome,
#walletModal .bp-wallet__body,
#walletModal .bp-wallet__panel,
#walletModal .bp-wallet__topup-fiat,
#walletModal .bp-crypto,
#walletModal .bp-wallet__flow {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
#walletModal .bp-wallet__chrome {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}
#walletModal .bp-wallet__chrome[hidden],
#walletModal .bp-wallet__methods-wrap[hidden] {
  display: none !important;
}
#walletModal .bp-wallet__balance-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
#walletModal .bp-wallet__balance-val {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
#walletModal .bp-wallet__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  margin-top: 0;
  position: static !important;
  flex: 1 1 auto;
}
#walletModal .bp-wallet__hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
#walletModal .bp-wallet__hint--soft {
  padding: 0;
  background: transparent;
}
#walletModal .bp-wallet__methods-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: 40px;
}
#walletModal .bp-wallet__methods-slot > .bp-wallet__methods {
  grid-area: 1 / 1;
}
#walletModal .bp-wallet__methods-slot > .bp-wallet__methods:not(.is-on) {
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}
#walletModal .bp-wallet__methods-slot > .bp-wallet__methods.is-on {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

#walletModal .bp-wallet__stack {
  display: block;
  width: 100%;
  min-width: 0;
}

/* Panels: kill legacy overlay styles; sheet height is fixed so no jump */
#walletModal .bp-wallet__panel,
#walletModal #topUpModal,
#walletModal #withdrawModal,
#walletModal #walletHistoryPanel {
  display: none !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  inset: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  float: none !important;
  transform: none !important;
  color: inherit !important;
}
#walletModal .bp-wallet__panel.is-on,
#walletModal #topUpModal.is-on,
#walletModal #withdrawModal.is-on,
#walletModal #walletHistoryPanel.is-on {
  display: flex !important;
}

#walletModal .bp-wallet__lbl {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  line-height: 1.2 !important;
  background: transparent !important;
}

/* Methods — same for topup & withdraw: black / selected charcoal */
#walletModal .bp-wallet__methods {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
#walletModal .bp-wallet__methods--3 {
  grid-template-columns: 1fr 1fr 1fr !important;
}
#walletModal a.bp-wallet__method {
  text-decoration: none !important;
}
#walletModal .bp-wallet__method,
#walletModal label.bp-wallet__method,
#walletModal button.bp-wallet__method,
#walletModal #topUpModal .bp-wallet__method,
#walletModal #withdrawModal .bp-wallet__method {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 40px !important;
  height: 40px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #000000 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  position: relative !important;
  box-shadow: none !important;
  transform: none !important;
  text-align: center !important;
}
#walletModal .bp-wallet__method.is-on,
#walletModal .bp-wallet__method.is-selected,
#walletModal #topUpModal .bp-wallet__method.is-on,
#walletModal #withdrawModal .bp-wallet__method.is-on,
#walletModal label.bp-wallet__method:has(.payment-method-input:checked) {
  background: #3a3a3c !important;
  color: #ffffff !important;
}
/* Top up radios: always follow checked state even if is-on class is stale */
#walletModal label.bp-wallet__method:not(:has(.payment-method-input:checked)) {
  background: #000000 !important;
  color: #ffffff !important;
}
#walletModal .bp-wallet__method input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}
#walletModal .bp-wallet__method img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
}

/* Inputs — dark field plates, no outlines */
#walletModal .bp-wallet__input,
#walletModal #paypalEmail,
#walletModal #withdrawPhone,
#walletModal #withdrawBankSearch,
#walletModal #withdrawCardNumber,
#walletModal #withdrawCryptoAddress {
  display: block !important;
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #111113 !important;
  background-color: #111113 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 44px !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
#walletModal .bp-wallet__input::placeholder,
#walletModal #paypalEmail::placeholder,
#walletModal #withdrawCardNumber::placeholder,
#walletModal #withdrawCryptoAddress::placeholder {
  color: #636366 !important;
  opacity: 1 !important;
}
#walletModal .bp-wallet__input:-webkit-autofill,
#walletModal .bp-wallet__input:-webkit-autofill:hover,
#walletModal .bp-wallet__input:-webkit-autofill:focus,
#walletModal #withdrawCardNumber:-webkit-autofill,
#walletModal #withdrawCardNumber:-webkit-autofill:hover,
#walletModal #withdrawCardNumber:-webkit-autofill:focus,
#walletModal #paypalEmail:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  box-shadow: 0 0 0 1000px #111113 inset !important;
  transition: background-color 99999s ease-out 0s !important;
}

/* Amount row — one line on dark plate */
#walletModal .bp-wallet__money,
#walletModal label.bp-wallet__money {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 52px !important;
  height: 52px !important;
  margin: 4px 0 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #111113 !important;
  box-shadow: none !important;
  cursor: text;
}
#walletModal .bp-wallet__cur {
  flex: 0 0 auto !important;
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #fff !important;
  background: transparent !important;
}
#walletModal .bp-wallet__money input,
#walletModal #topUpAmount,
#walletModal #withdrawAmount,
#walletModal #walletCryptoAmount {
  flex: 1 1 auto !important;
  display: block !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 32px !important;
  outline: none !important;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
#walletModal .bp-wallet__money input::-webkit-outer-spin-button,
#walletModal .bp-wallet__money input::-webkit-inner-spin-button,
#walletModal #topUpAmount::-webkit-outer-spin-button,
#walletModal #topUpAmount::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
#walletModal .bp-wallet__max {
  flex: 0 0 auto !important;
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--track) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
#walletModal .bp-wallet__rub-val {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1 !important;
}

/* FX / approx rubles */
#walletModal .bp-wallet__fx {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
}
#walletModal .bp-wallet__fx:empty {
  display: none !important;
}
#walletModal .bp-wallet__rate {
  margin: 0 !important;
  font-size: 11px !important;
  color: var(--muted) !important;
}
#walletModal .bp-wallet__rub {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
#walletModal #ruSbpCalc[hidden],
#walletModal #topUpRubRow[hidden],
#walletModal .bp-wallet__fx [hidden] {
  display: none !important;
}

#walletModal .bp-wallet__slot {
  display: block;
  width: 100%;
  min-width: 0;
}
#walletModal .bp-wallet__slot-pane {
  display: none !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100%;
  min-width: 0;
}
#walletModal .bp-wallet__slot-pane.is-on {
  display: flex !important;
}

#walletModal .bp-wallet__picked,
#walletModal button.bp-wallet__picked {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #111113 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: left !important;
  cursor: pointer !important;
}
#walletModal .bp-wallet__picked[hidden] {
  display: none !important;
}
#walletModal .bp-wallet__picked-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #1c1c1e !important;
}
#walletModal .bp-wallet__picked-ico[hidden] {
  display: none !important;
}
#walletModal .bp-wallet__picked-ico img,
#walletModal #withdrawBankPickIcon {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
}
#walletModal .bp-wallet__picked-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#walletModal .bp-wallet__picked-edit {
  flex: 0 0 auto !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #8e8e93 !important;
}

#walletModal .bp-wallet__bank-picker {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
}
#walletModal .bp-wallet__bank-picker[hidden] {
  display: none !important;
}

#walletModal .bp-wallet__banks {
  list-style: none;
  margin: 0;
  padding: 4px;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
  background: #111113;
}
#walletModal .bp-wallet__bank-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
#walletModal .bp-wallet__bank-item:hover,
#walletModal .bp-wallet__bank-item.is-selected {
  background: var(--track);
}
#walletModal .bp-wallet__bank-item img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
}
#walletModal .bp-wallet__bank-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 12px;
}

/* Extra info under amount — flat rows, no plate */
#walletModal .bp-wallet__meta,
#walletModal .bp-wallet__sum,
#walletModal #withdrawCalc {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#walletModal .bp-wallet__meta-row,
#walletModal .bp-wallet__sum > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
#walletModal .bp-wallet__meta-row strong,
#walletModal .bp-wallet__sum strong {
  color: #fff;
  font-weight: 600;
}
#walletModal .bp-wallet__meta-row.is-total,
#walletModal .bp-wallet__sum .is-total {
  color: #fff;
}
#walletModal .bp-wallet__meta-row[hidden] {
  display: none !important;
}
#walletModal #withdrawCommissionLocal,
#walletModal #withdrawNetLocal {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
#walletModal #withdrawCommissionLocal:not([hidden]),
#walletModal #withdrawNetLocal:not([hidden]) {
  display: inline !important;
}
#walletModal #withdrawRateRow {
  color: var(--muted);
  font-size: 12px;
}
#walletModal #withdrawRateRow:not([hidden]) {
  display: flex !important;
}
#walletModal #withdrawRateDisplay:not([hidden]) {
  display: inline !important;
  font-weight: 600;
  color: var(--muted);
}

#walletModal .bp-wallet__cta,
#walletModal .bp-pay__submit,
#walletModal #stripeTopUpBtn,
#walletModal #ruSbpStartBtn,
#walletModal #walletCryptoCreate,
#walletModal #withdrawSubmitBtn {
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
#walletModal .bp-wallet__cta--ghost {
  background: var(--track) !important;
  color: #fff !important;
}

#walletModal .bp-wallet__foot,
#walletModal .bp-wallet__flow,
#walletModal .payment-panel:not([hidden]),
#walletModal #withdrawFlowContent:not([hidden]),
#walletModal #withdrawSuccessStep:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#walletModal .payment-panel[hidden],
#walletModal #withdrawFlowContent[hidden],
#walletModal #withdrawSuccessStep[hidden],
#walletModal .bp-wallet__status[hidden],
#walletModal .bp-wallet__picked[hidden],
#walletModal .bp-wallet__slot-pane:not(.is-on),
#walletModal .bp-wallet__hist-list[hidden],
#walletModal [hidden] {
  display: none !important;
}
#walletModal .bp-wallet__panel:not(.is-on) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#walletModal .bp-wallet__panel.is-on,
#walletModal .bp-wallet__slot-pane.is-on {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#walletModal .bp-wallet__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
}
#walletModal .bp-wallet__status h3 {
  margin: 0;
  font-size: 16px;
}
#walletModal .bp-wallet__status p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

#walletModal #withdrawBankSheet,
#walletModal #withdrawBankPickBtn,
#walletModal #withdrawBankSheetClose {
  display: none !important;
}

#walletModal .payment-method-option,
#walletModal .payment-method-content,
#walletModal .finance-method-card,
#walletModal .finance-modal-card,
#walletModal .finance-money-input,
#walletModal .payment-panels,
#walletModal .finance-float-item {
  all: unset;
  display: contents;
}
#walletModal #ruSbpCalc,
#walletModal #topUpRubRow {
  position: static !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Crypto — flat cards, real icons, no nested chrome */
#walletModal .bp-crypto,
#walletModal .bp-crypto__pick,
#walletModal .bp-crypto__details {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#walletModal #walletTopupFiat,
#walletModal #withdrawFiatFields {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}
#walletModal .bp-crypto[hidden],
#walletModal .bp-crypto__pick[hidden],
#walletModal .bp-crypto__details[hidden],
#walletModal #walletTopupFiat[hidden],
#walletModal #withdrawFiatFields[hidden] {
  display: none !important;
}
#walletModal .bp-crypto__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
#walletModal .bp-crypto__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 78px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #111113;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}
#walletModal .bp-crypto__card.is-on {
  background: #2c2c2e;
}
#walletModal .bp-crypto__card.is-disabled,
#walletModal .bp-crypto__card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#walletModal .bp-crypto__card-name {
  position: relative;
  z-index: 1;
  max-width: 70%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#walletModal .bp-crypto__coin {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
}
#walletModal .bp-crypto__coin-img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
}
#walletModal .bp-crypto__coin-net {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #1c1c1e;
  padding: 1px;
  box-sizing: border-box;
}

#walletModal .bp-crypto__status {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
#walletModal .bp-crypto__info {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#walletModal .bp-crypto__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#walletModal .bp-crypto__row + .bp-crypto__row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#walletModal .bp-crypto__row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#walletModal .bp-crypto__row-lbl {
  font-size: 11px;
  color: var(--muted);
}
#walletModal .bp-crypto__row-val {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  overflow-wrap: anywhere;
}
#walletModal .bp-crypto__row-val--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
}
#walletModal .bp-crypto__icon-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #111113;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#walletModal .bp-crypto__qr {
  align-self: center;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}
#walletModal .bp-crypto__qr[hidden] {
  display: none !important;
}
#walletModal .bp-crypto__qr img,
#walletModal .bp-crypto__qr canvas {
  display: block;
  width: 160px;
  height: 160px;
}
#walletModal .bp-crypto__warns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
#walletModal .bp-crypto__warn {
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #2a2318;
  color: #f5d78e;
  font-size: 11px;
  line-height: 1.4;
}
#walletModal .bp-crypto__error {
  margin: 0;
  color: #ff6969;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#walletModal .bp-crypto__error[hidden] {
  display: none !important;
}
#walletModal .bp-crypto__asset-pick {
  opacity: 0.75;
}
#walletModal .bp-crypto__asset-pick img {
  width: 20px;
  height: 20px;
  border-radius: 999px;
}

/* History */
#walletModal .bp-wallet__hist-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: #111113;
}
#walletModal .bp-wallet__hist-tab {
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
#walletModal .bp-wallet__hist-tab.is-on {
  background: #2c2c2e;
  color: #fff;
}
#walletModal .bp-wallet__hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#walletModal .bp-wallet__hist-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #111113;
}
#walletModal .bp-wallet__hist-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
#walletModal .bp-wallet__hist-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
#walletModal .bp-wallet__hist-item em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
}
#walletModal .bp-wallet__hist-empty {
  padding: 24px 12px;
  border-radius: 12px;
  background: #111113;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  list-style: none;
}

@media (max-width: 380px) {
  #walletModal .bp-crypto__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
