.funds-sheet {
  padding: 13px clamp(16px, 5.5vw, 27px) max(26px, env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  border-color: #282b2d;
  max-height: 94dvh;
  background: radial-gradient(ellipse at 48% 0%, #1a1d1f, transparent 75%), #0d1011;
}
.funds-sheet .handle { width: 36px; height: 4px; background: #969ba7; margin-bottom: 22px; }
.funds-sheet h2 { padding-right: 25px; font-size: clamp(17px, 4.8vw, 24px); letter-spacing: -.025em; }
.funds-close {
  position: absolute; top: 13px; right: 15px; display: grid; place-items: center;
  border-radius: 50%; width: 31px; height: 31px; background: #ffffff09;
  font-size: 24px; font-weight: 300; line-height: 1;
}
.funds-lead { color: #a8bacd; margin: 8px 0 13px; font-size: clamp(10px, 3.05vw, 14px); line-height: 1.35; }
.funds-steps { display: grid; gap: 8px; }
.funds-step {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: clamp(6px, 2.5vw, 13px);
  padding: clamp(7px, 2.25vw, 12px); min-height: 65px;
  border: 1px solid #24292c; border-radius: 12px;
  background: linear-gradient(145deg, #141819, #0c1011);
}
.funds-step.is-done { border-color: #153234; }
.funds-step-icon {
  display: grid; place-items: center;
  width: clamp(32px, 11.75vw, 52px); aspect-ratio: 1;
  background: linear-gradient(135deg, #282e31, #131617 70%); border-radius: 13px;
  box-shadow: inset 0 1px 0 #a8b4be29;
}
.funds-step-icon .nx-icon { width: 62%; height: 62%; }
.funds-step.is-done .funds-step-icon { background: linear-gradient(135deg, #172b2e, #0f191a); }
.funds-step-copy h3 { font-size: clamp(9px, 2.95vw, 14px); line-height: 1.23; }
.funds-step-copy p { margin: 4px 0 0; color: #a8bacd; line-height: 1.3; font-size: clamp(8px, 2.43vw, 12px); }
.funds-step-action, .funds-identity {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 34px; padding: 4px 6px; border-radius: 13px; white-space: nowrap;
  font-size: clamp(8px, 2.4vw, 12px); line-height: 1.18;
}
.funds-step-action { border: 1px solid #576064; font-weight: 650; }
.funds-step-action.is-primary { background: #fafbfc; color: #101418; border-color: #fafbfc; }
.funds-identity img { width: clamp(19px, 7vw, 37px); height: clamp(19px, 7vw, 37px); object-fit: contain; flex: none; border-radius: 50%; }
.funds-identity small { color: #a8bacd; font-size: .87em; margin-top: 3px; }
.funds-wallet-id { background: #0b1011; border: 1px solid #37484b; }
.funds-wallet-id img { width: 23px; height: 23px; padding: 4px; border: 1px solid #218589; }
.funds-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 17px; min-height: 39px; padding: 7px;
  border: 1px solid #fafbfc; border-radius: 13px; color: #0b1013;
  background: #fafbfc; font-size: clamp(12px, 3.52vw, 16px); font-weight: 700;
}
.funds-submit:disabled { border-color: #1d3036; background: #1c2d33; color: #7a8b95; cursor: default; }
.funds-ready { box-shadow: 0 0 16px #35caff59; }
.funds-sheet-deposit { background: radial-gradient(ellipse at top,#18191a,#080809 75%); }
.funds-sheet-deposit .funds-lead { color: #a8a9ad; }
.funds-sheet-deposit .funds-close { background: transparent; }
.funds-tokens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(5px, 2.2vw, 11px); }
.funds-token {
  position: relative; display: flex; align-items: center; gap: clamp(5px, 2vw, 10px);
  padding: 6px; min-height: 47px; cursor: pointer;
  border: 1px solid #252629; border-radius: 9px; background: linear-gradient(145deg,#161718,#101011);
  font-size: clamp(10px, 2.75vw, 14px); line-height: 1.18;
}
.funds-token input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.funds-token:has(input:checked), .funds-token:has(input:focus-visible) {
  border-color: #d6e7fa; background: linear-gradient(145deg,#1b2835,#10161c);
  box-shadow: inset 0 0 8px #74b9ff36, 0 0 10px #489aff34;
}
.funds-token small { margin-top: 3px; font-size: .85em; color: #aeb1b9; }
.funds-token .coin { width: clamp(20px, 7.6vw, 35px); height: clamp(20px, 7.6vw, 35px); }
.funds-amount-label { display: block; margin: 14px 0 5px; color: #aeb1b9; font-size: 11px; }
.funds-amount-row { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: center; gap: 7px; }
.funds-input-wrap { display: flex; align-items: center; gap: 2px; min-width: 0; padding-inline: 7px; border: 1px solid #616467; border-radius: 9px; background: #111112; }
.funds-input-wrap input { width: 100%; min-width: 0; min-height: 36px; border: 0; color: #fff; background: none; font-size: 15px; appearance: textfield; }
.funds-input-wrap input::-webkit-inner-spin-button { appearance: none; }
.funds-input-wrap span { color: #aaadb1; font-size: 11px; }
.funds-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.funds-presets button { min-width: 0; min-height: 30px; padding: 2px; border: 1px solid #303033; border-radius: 6px; color: #eee; background: #151516; font-size: clamp(8px, 2.6vw, 12px); }
.funds-presets button[aria-pressed="true"] { border-color: #d1d4d8; background: #242527; box-shadow: inset 0 0 6px #e1e5ef1c; }
.funds-summary {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 13px 0 5px;
  padding: 9px 0; border: 1px solid #242527; border-radius: 8px; background: #121213;
}
.funds-summary div { padding: 0 6px; }
.funds-summary div + div { border-left: 1px solid #28292b; }
.funds-summary dt, .funds-info p { font-size: clamp(8px, 2.5vw, 12px); line-height: 1.26; color: #abaeb4; }
.funds-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: clamp(9px, 2.65vw, 13px); }
.funds-info { display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid #292a2c; border-radius: 7px; background: #0f0f10; }
.funds-info .nx-icon { width: 17px; height: 17px; }
.funds-info p { margin: 0; }
.funds-sheet-deposit .funds-submit { border-radius: 30px; margin-top: 11px; }

.sbp-option { margin-top: 9px; min-height: 43px; padding-inline: 10px; }
.sbp-option img { width: clamp(23px, 7.3vw, 34px); height: auto; mix-blend-mode: screen; flex: none; }
.sbp-option strong { font-size: clamp(12px, 3.35vw, 16px); }
.sbp-form .funds-amount-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); }
.sbp-form .funds-presets button { white-space: nowrap; font-size: clamp(7px, 2.35vw, 11px); }
.sbp-card {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #38404b;
  border-radius: 10px;
  background: linear-gradient(145deg, #171d27, #101419);
}
.sbp-card h3 { margin: 0; font-size: clamp(11px, 3.4vw, 16px); }
.sbp-badge { color: #adbacd; font-size: 10px; font-weight: 500; margin-left: 4px; }
.sbp-detail {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: clamp(4px, 2vw, 10px); padding-top: 7px; padding-bottom: 6px;
}
.sbp-detail + .sbp-detail { border-top: 1px solid #41454d; }
.sbp-detail small { color: #c3ccdb; font-size: clamp(7px, 2.2vw, 11px); }
.sbp-detail strong { font-size: clamp(9px, 3.2vw, 14px); font-variant-numeric: tabular-nums; }
.sbp-detail-icon {
  display: grid; place-items: center; width: clamp(22px, 7vw, 34px); aspect-ratio: 1;
  border-radius: 7px; background: #2b3039; font-size: 18px; line-height: 1;
}
.sbp-copy {
  display: flex; align-items: center; gap: 3px; min-height: 25px; padding: 3px 6px;
  border: 1px solid #505660; border-radius: 20px; background: none; color: #e0e6f0;
  font-size: clamp(7px, 2.25vw, 11px);
}
.sbp-guide { align-items: start; }
.sbp-guide p { margin-top: 3px; color: #c3ccdb; }
.sbp-summary { margin-top: 9px; }
.sbp-feedback { color: #b8dce8; margin: 6px 0; }

.funds-sheet-deposit .funds-input-wrap input {
  font-size: 16px;
  outline: none;
}
.sbp-option img { mix-blend-mode: normal; }
.sbp-detail-icon img { display: block; width: 61%; height: 61%; object-fit: contain; }

.funds-token { --funds-icon-size: clamp(20px, 7.6vw, 35px); }
.funds-token .coin, .sbp-option img { width: var(--funds-icon-size); height: var(--funds-icon-size); }
.sbp-option img { object-fit: contain; }
.sbp-detail { grid-auto-rows: minmax(clamp(28px, 9vw, 43px), auto); }
.sbp-detail-icon { height: clamp(22px, 7vw, 34px); }
.funds-sheet-withdraw .funds-lead { color: #c1cedf; }
.sbp-recipient label { display: block; font-size: 11px; margin-bottom: 4px; color: #e4e8ed; }
.sbp-recipient > input {
  display: block; width: 100%; min-width: 0; height: 32px;
  padding: 4px 8px; border-radius: 8px; border: 1px solid #a1a8b1;
  background: #0c0f14; color: #f3f6fa; font-size: 16px;
}
.sbp-recipient h3 { margin-bottom: 9px; }
.sbp-recipient-row {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px;
  align-items: center; margin-top: 9px;
}
.funds-sheet-withdraw .funds-summary dd { font-weight: 700; }
.overlay:has(.funds-sheet-withdraw) { background: #0004; }
.funds-sheet-withdraw { padding-bottom: max(19px, env(safe-area-inset-bottom)); }
.funds-sheet-withdraw .handle { margin-bottom: 14px; }
.funds-sheet-withdraw .funds-lead { margin-bottom: 10px; }
.funds-sheet-withdraw .funds-token { min-height: 43px; }
.funds-sheet-withdraw .sbp-option { min-height: 44px; padding-block: 8.5px; }
.funds-sheet-withdraw .sbp-card { margin-top: 8px; padding-block: 8px; }
.funds-sheet-withdraw .sbp-form .sbp-recipient { padding: 10px 9px; }
.funds-sheet-withdraw .sbp-recipient-row {
  min-height: 45px;
  align-items: end;
  gap: 9px;
  margin-top: 10px;
}
.sbp-recipient-row label { font-size: 10px; }
.funds-sheet-withdraw .funds-amount-label { margin-top: 10px; }

.sbp-recipient-row .sbp-detail-icon {
  width: clamp(34px, 10.5vw, 47px);
  height: clamp(38px, 11.5vw, 51px);
  position: relative;
  overflow: hidden;
}
.sbp-recipient-row .sbp-detail-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(19px, 6vw, 28px);
  height: clamp(19px, 6vw, 28px);
  object-position: center;
  transform: translate(-50%, -50%);
}
.sbp-recipient-row .funds-input-wrap {
  overflow: hidden;
  border-radius: 8px;
  background: #12171e;
}
.sbp-recipient-row .funds-input-wrap input {
  min-height: 28px;
  font-size: 16px;
}
.sbp-recipient-row .funds-input-wrap input::placeholder {
  font-size: 12px;
}

.funds-token[hidden] { display: none; }
.is-crypto-withdrawal .funds-summary dd { font-weight: 500; }
.is-crypto-withdrawal .crypto-address { gap: 5px; }
.crypto-address button {
  display: grid;
  place-items: center;
  flex: none;
  width: auto;
  height: 25px;
  padding: 1px 7px;
  font-size: 11px;
  border: 1px solid #303033;
  border-radius: 6px;
  background: #151516;
  color: #eee;
}
.crypto-network {
  border: 1px solid #242527;
  border-radius: 9px;
  background: linear-gradient(145deg, #171819, #101011);
}
.crypto-network-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
}
.crypto-network strong { font-size: 12px; font-weight: 500; }
.crypto-network small { font-size: 9px; }

.funds-sheet-withdraw .sbp-form .funds-input-wrap > span { font-size: 16px; }
.funds-sheet-withdraw .sbp-guide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 7px; }
.funds-sheet-withdraw .sbp-guide > div { display: contents; }
.funds-sheet-withdraw .sbp-guide > .nx-icon { grid-area: 1 / 1; align-self: center; }
.funds-sheet-withdraw .sbp-guide h3 { grid-area: 1 / 2; }
.funds-sheet-withdraw .sbp-guide p { grid-area: 2 / 2; margin: 0; }

.funds-support-info {
  margin-top: 10px;
  gap: 10px;
  padding: 9px 10px;
  border-color: #272e36;
  border-radius: 12px;
  background: linear-gradient(145deg, #151a20, #0d1116);
}
.funds-support-info > .nx-icon { width: 23px; height: 23px; }
.funds-support-info h3 { font-size: clamp(11px, 3.3vw, 15px); }
.funds-support-info p { margin-top: 3px; color: #cbd1da; }
.funds-support-link { margin-top: 14px; }
.funds-support-icon { width: 17px; height: 17px; object-fit: contain; flex: none; }
.funds-support-link + .funds-submit { margin-top: 12px; }

.funds-checkout-link { display:block; margin:10px 0 0; text-align:center; color:#d4dfed; text-decoration:underline; font-size:13px; }
.funds-checkout-link[hidden] { display:none; }

.funds-tokens.funds-tokens-single { grid-template-columns: minmax(0, 1fr); }

[data-funds-account] [hidden] { display: none; }
[data-funds-account] .funds-step {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
  margin-top: 10px;
  min-height: clamp(72px, 18.8vw, 90px);
}
[data-funds-account] .funds-step-action {
  min-height: clamp(34px, 9.25vw, 43px);
  padding-inline: clamp(7px, 2vw, 11px);
  font-size: clamp(10px, 2.7vw, 13px);
}
[data-funds-account] .funds-identity {
  min-width: 0;
  max-width: clamp(65px, 25vw, 120px);
  justify-content: flex-start;
}
[data-funds-account] .funds-identity img { object-fit: cover; }
[data-funds-account] .funds-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.funds-sheet[data-funds-account][hidden] { display: none; }

.funds-deposit .funds-support-info { margin-top:12px; }
.funds-deposit .funds-support-link {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:clamp(36px,9.15vw,46px);
  margin-top:clamp(12px,3.2vw,16px);
  border-radius:clamp(12px,3vw,16px);
  font-size:clamp(14px,3.7vw,18px);
  font-weight:700;
}
.funds-deposit .funds-support-link .nx-icon { width:1.1em; height:1.1em; flex:none; }
