/* Deposit flow: shared sheet, payment methods, asset selection and amount entry. */
dialog.deposit-sheet{
  width:460px;
  height:min(820px,92dvh);
  max-height:min(92dvh,calc(var(--tg-viewport-height,100dvh) - 12px));
  padding:0;
  overflow:hidden;
  border:1px solid #34374f;
  border-radius:26px;
  background:#0e0f23;
  box-shadow:0 24px 90px #0007;
}
dialog.deposit-sheet[open]{display:flex;flex-direction:column}
dialog.deposit-sheet[data-deposit-screen="methods"]{height:auto;min-height:min(350px,calc(var(--tg-viewport-height,100dvh) - 12px))}
.deposit-sheet .modal-handle{display:block;flex-shrink:0;width:34px;height:4px;margin:10px auto 0;border-radius:4px;background:#4d5068}
.deposit-sheet .modal-top{position:absolute;top:23px;right:18px;z-index:3;margin:0}
.deposit-sheet .modal-brand{display:none}
.deposit-sheet #close-modal{width:36px;height:36px;padding:0;border-radius:50%;background:#202238;color:#b6bdd4}
.deposit-sheet #close-modal svg{width:19px;height:19px;stroke-width:1.9}
.deposit-sheet #modal-content{display:flex;flex:1;min-width:0;min-height:0}
.dep-view{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}
.dep-header{display:flex;align-items:center;gap:10px;flex-shrink:0;min-height:81px;padding:20px 66px 20px 20px}
#modal-content .dep-header h2{margin:0;color:#f0f2fc;font-size:22px;font-weight:600;line-height:1.25;letter-spacing:-.5px;outline:0}
.dep-header.has-back{min-height:73px;padding-top:12px;padding-bottom:17px;gap:10px}
.dep-back{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:0;border-radius:50%;background:#202238;color:#c7cee1}
.dep-back svg{width:18px;height:18px;stroke-width:1.9}
.dep-back svg{transform:rotate(180deg)}
.dep-method-switch{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;max-width:100%;min-height:39px;margin-left:auto;padding:5px 10px 5px 6px;border:1px solid #282d44;border-radius:22px;background:#1a1d32;color:#dce3f6;font-size:13px;font-weight:500;line-height:1.3;letter-spacing:-.2px}
.dep-method-switch>.dep-icon{width:27px;height:27px}
.dep-method-switch>svg:last-child{width:11px;height:11px;color:#8493b4}
.dep-method-switch>span:not(.dep-icon){min-width:0}
.dep-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#414860 transparent;padding:0 20px calc(24px + env(safe-area-inset-bottom))}
.dep-scroll::-webkit-scrollbar{width:4px}
.dep-scroll::-webkit-scrollbar-thumb{border-radius:4px;background:#414860}
.dep-group{margin:0 0 25px}
.dep-group:last-child{margin-bottom:0}
.dep-group>h3{margin:0 0 11px;color:#858ca6;font-size:11px;font-weight:500;line-height:1.4;letter-spacing:1px;text-transform:uppercase}
.dep-options{overflow:hidden;border:1px solid #30334b;border-radius:17px;background:#202237}
.dep-option{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:70px;padding:13px 15px;border:0;border-radius:0;background:transparent;color:#e8ecf7;text-align:left;opacity:1}
.dep-option+.dep-option:before{content:'';position:absolute;top:0;right:15px;left:66px;height:1px;background:#ffffff09}
.dep-option:active{background:#2b3652;opacity:1}
.dep-option:focus-visible{z-index:1;outline:2px solid #85b5ff;outline-offset:-3px}
.dep-option[aria-pressed="true"],.dep-option.selected{background:#283650}
.dep-option-text{display:block;flex:1;min-width:0;letter-spacing:-.1px}
.dep-option-text strong{display:block;color:#eef1fb;font-size:15px;font-weight:500;line-height:1.4}
.dep-option-text small{display:block;margin-top:3px;color:#919ab4;font-size:13px;font-weight:400;line-height:1.4}
.dep-chevron{width:12px;height:12px;margin-left:2px;color:#77829e;flex-shrink:0;stroke-width:1.8}
.dep-icon{display:block;width:40px;height:40px;overflow:hidden;flex-shrink:0;border-radius:50%;stroke:none;fill:none}
span.dep-icon{display:grid;place-items:center}
span.dep-icon>svg{display:block;width:100%;height:100%;stroke:none;fill:none}
.dep-coin-stack{position:relative;display:block;flex-shrink:0;width:42px;height:42px;margin-right:-2px}
.dep-coin-stack>svg{position:absolute;width:29px;height:29px;border-radius:50%;stroke:none;fill:none}
.dep-coin-stack>svg:first-child{top:0;left:0}
.dep-coin-stack>svg:last-child{right:0;bottom:0;box-shadow:0 0 0 2px #202237}
.dep-option-code{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;max-width:85px;padding:4px 6px;border:1px solid #48516a;border-radius:6px;background:#2b3147;color:#b6c1d9;font-size:10px;line-height:1.3;letter-spacing:.2px;text-align:center;overflow-wrap:anywhere}
.dep-footnote,.dep-network-note{margin:12px 3px 0;color:#8c96b1;font-size:12.5px;font-weight:400;line-height:1.6;letter-spacing:-.1px}
.dep-unavailable{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #303c54;border-radius:13px;background:#192238;color:#94a6c5}
.dep-unavailable>svg{width:18px;height:18px;flex-shrink:0;color:#7d9ecb;margin-top:1px}
.dep-unavailable h3,.dep-unavailable strong{display:block;margin:0 0 5px;color:#ccd8ed;font-size:14px;font-weight:500;line-height:1.4}
.dep-unavailable p{margin:0;color:#94a6c5;font-size:12.5px;line-height:1.65;letter-spacing:-.1px}
.dep-status-note{padding:13px 14px;border:1px solid #303c54;border-radius:12px;background:#192238;color:#94a6c5;font-size:12.5px;line-height:1.65}
.dep-amounts{display:flex;flex-direction:column;gap:4px}
.dep-amount-card{min-width:0;padding:17px 18px 16px;border:1px solid #23283e;border-radius:17px;background:#171a2d}
.dep-amount-card:first-child{border-bottom-right-radius:5px;border-bottom-left-radius:5px}
.dep-amount-card:last-child{border-top-right-radius:5px;border-top-left-radius:5px}
.dep-amount-label{display:block;color:#929ab1;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:0}
.dep-amount-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:49px;margin-top:4px}
#deposit-amount{display:block;flex:1;min-width:0;width:100%;padding:0;border:0;border-radius:0;outline:0;background:transparent;color:#edf1fc;font-size:34px;font-weight:500;line-height:1.2;letter-spacing:-1px;font-variant-numeric:lining-nums tabular-nums;caret-color:#6aa5ff}
#deposit-amount::selection{background:#498de66b}
.dep-received{display:block;min-width:0;color:#a4adc4;font-size:34px;font-weight:500;line-height:1.2;letter-spacing:-.8px;font-variant-numeric:lining-nums tabular-nums}
.dep-currency{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;color:#e6eaf6;font-size:15px;font-weight:500;line-height:1.3;letter-spacing:0}
.dep-currency>svg,.dep-currency>.dep-icon{width:21px;height:21px;border-radius:50%;stroke:none;fill:none}
.dep-receive-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:20px}
.dep-wallet-mini{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;color:#7f8ba7;font-size:11px;line-height:1.4;white-space:nowrap}
.dep-wallet-mini>svg{width:13px;height:13px;stroke-width:1.6}
.dep-sbp-footer{flex-shrink:0;min-width:0;padding:0 20px calc(20px + env(safe-area-inset-bottom))}
.dep-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:4px 0 15px}
.dep-keypad>button{display:grid;place-items:center;min-width:0;min-height:49px;padding:6px;border-radius:12px;background:transparent;color:#eef1fb;font-size:25px;font-weight:500;line-height:1;letter-spacing:0;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.dep-keypad>button:active{background:#222c45;opacity:1}
.dep-keypad>button:focus-visible{outline:2px solid #77aaf3;outline-offset:-2px}
.dep-key-delete svg{width:24px;height:24px;stroke-width:1.8}
.dep-continue{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:13px 16px;border:0;border-radius:13px;background:#4389f4;color:#fff;font-size:14px;font-weight:600;line-height:1.5}
.dep-continue:disabled{background:#30364d;color:#7c87a3;cursor:default;opacity:1}
.dep-provider-note{margin:0 3px 10px;color:#7f8ba7;font-size:11.5px;line-height:1.6;text-align:center;letter-spacing:-.1px}
.dep-sbp-scroll{padding-bottom:13px}
@media(hover:hover) and (pointer:fine){
  .dep-option:hover{background:#28334d}
  .dep-keypad>button:hover,.deposit-sheet #close-modal:hover,.dep-back:hover{background:#29344f}
  .dep-method-switch:hover{background:#25304a;border-color:#3c4b6c}
}
@media(max-width:600px){
  dialog.deposit-sheet{width:100%;max-width:100%;margin:auto 0 0;border-radius:27px 27px 0 0;border-bottom:0}
}
@media(max-width:350px){
  .dep-header{padding-left:17px;padding-right:60px;gap:8px}
  #modal-content .dep-header h2{font-size:21px}
  .deposit-sheet .modal-top{right:15px}
  .dep-header.has-back{padding-left:16px;gap:7px}
  .dep-method-switch{gap:5px;padding-right:8px;font-size:12px}
  .dep-method-switch>.dep-icon{width:24px;height:24px}
  .dep-scroll{padding-left:16px;padding-right:16px}
  .dep-option{gap:10px;padding-left:12px;padding-right:12px}
  .dep-option-text strong{font-size:14px}
  .dep-option-text small{font-size:12px}
  .dep-icon{width:36px;height:36px}
  .dep-amount-card{padding:15px}
  #deposit-amount,.dep-received{font-size:30px}
  .dep-currency{font-size:14px}
  .dep-sbp-footer{padding-left:16px;padding-right:16px}
}
@media(max-height:650px){
  dialog.deposit-sheet{height:min(820px,95dvh);max-height:min(95dvh,calc(var(--tg-viewport-height,100dvh) - 8px))}
  dialog.deposit-sheet[data-deposit-screen="methods"]{height:auto;min-height:min(330px,calc(var(--tg-viewport-height,100dvh) - 8px))}
  .dep-header{min-height:65px;padding-top:14px;padding-bottom:14px}
  .dep-header.has-back{min-height:62px;padding-top:9px;padding-bottom:12px}
  .deposit-sheet .modal-top{top:18px}
  .dep-group{margin-bottom:20px}
  .dep-amount-card{padding-top:12px;padding-bottom:11px}
  .dep-amount-line{min-height:39px}
  #deposit-amount,.dep-received{font-size:30px}
  .dep-sbp-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .dep-keypad{gap:1px;margin:0 0 9px}
  .dep-keypad>button{min-height:39px;font-size:23px}
  .dep-continue{min-height:44px;padding:10px 14px}
  .dep-provider-note{margin-bottom:7px;font-size:10.5px}
}

.deposit-sheet[data-deposit-screen="assets"] .dep-header,.deposit-sheet[data-deposit-screen="networks"] .dep-header{display:grid;grid-template-columns:36px 1fr;grid-template-rows:36px auto;gap:17px 0;padding:9px 20px 25px}
.deposit-sheet[data-deposit-screen="assets"] .dep-header h2,.deposit-sheet[data-deposit-screen="networks"] .dep-header h2{grid-column:1/-1;grid-row:2;font-size:25px;line-height:1.24;letter-spacing:-.6px}
.dep-method-switch>.dep-chevron{transform:rotate(90deg)}
.dep-usd-symbol{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#28ae86;color:#fff;font-size:14px;font-weight:600;line-height:1}
.dep-address-button{margin-top:18px;min-height:46px;border-radius:13px}
.dep-address-button:disabled{background:#30364d;color:#7c87a3;opacity:1}
.dep-network-note{margin:0 2px 18px}
#deposit-amount.is-long{font-size:26px;letter-spacing:-.5px}
@media(max-width:350px){.deposit-sheet[data-deposit-screen="assets"] .dep-header,.deposit-sheet[data-deposit-screen="networks"] .dep-header{padding-left:16px;padding-right:16px}.deposit-sheet[data-deposit-screen="assets"] .dep-header h2,.deposit-sheet[data-deposit-screen="networks"] .dep-header h2{font-size:23px}#deposit-amount.is-long{font-size:23px}}
@media(max-height:650px){.deposit-sheet[data-deposit-screen="assets"] .dep-header,.deposit-sheet[data-deposit-screen="networks"] .dep-header{padding-top:4px;padding-bottom:19px;gap:11px 0}}
/* The SBP amount screen fits its cards and keypad without inner scrolling. */
.deposit-sheet[data-deposit-screen="sbp"] .dep-view{overflow:hidden}
.deposit-sheet[data-deposit-screen="sbp"] .dep-sbp-scroll{flex:0 0 auto;overflow:hidden;padding-bottom:0}
.deposit-sheet[data-deposit-screen="sbp"] .dep-sbp-footer{display:flex;flex-direction:column;flex:1 1 0;min-height:0;padding-top:12px}
.deposit-sheet[data-deposit-screen="sbp"] .dep-keypad{flex:1 1 0;min-height:0;grid-template-rows:repeat(4,minmax(0,1fr));margin:0 0 10px}
.deposit-sheet[data-deposit-screen="sbp"] .dep-keypad>button{min-height:0;padding:4px}
.deposit-sheet[data-deposit-screen="sbp"] .dep-continue,.deposit-sheet[data-deposit-screen="sbp"] .dep-provider-note{flex-shrink:0}
@media(max-height:650px){
  .deposit-sheet[data-deposit-screen="sbp"] .dep-amount-card{padding:8px 14px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-amount-line{min-height:32px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-amount-label{font-size:12px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-receive-top{min-height:18px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-sbp-footer{padding-top:10px}
}
@media(max-height:480px) and (max-width:499px){
  .deposit-sheet[data-deposit-screen="sbp"] .dep-header{min-height:54px;padding-top:6px;padding-bottom:9px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-amount-card{position:relative;padding:10px 12px;border-radius:13px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-amount-label{font-size:11px;line-height:15px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-receive-top{min-height:15px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-wallet-mini{display:none}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-amount-line{min-height:29px;margin-top:8px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-currency{position:absolute;top:10px;right:10px;gap:3px;font-size:10px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-currency>svg,.deposit-sheet[data-deposit-screen="sbp"] .dep-usd-symbol{width:14px;height:14px;font-size:10px}
  .deposit-sheet[data-deposit-screen="sbp"] #deposit-amount,.deposit-sheet[data-deposit-screen="sbp"] .dep-received{font-size:22px}
  .deposit-sheet[data-deposit-screen="sbp"] #deposit-amount.is-long{font-size:18px;letter-spacing:-.6px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-keypad>button{font-size:21px;padding:2px}
}
@media(max-height:480px) and (min-width:500px){
  .deposit-sheet[data-deposit-screen="sbp"] .dep-view{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto minmax(0,1fr)}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-header{grid-column:1/-1;grid-row:1;min-height:54px;padding-top:6px;padding-bottom:9px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-sbp-scroll{grid-column:1;grid-row:2;padding-right:8px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-sbp-footer{grid-column:2;grid-row:2;padding-top:0;padding-left:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-keypad{margin-bottom:5px;gap:1px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-keypad>button{font-size:21px;padding:2px}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-provider-note{margin-bottom:5px;font-size:10px;line-height:1.3}
  .deposit-sheet[data-deposit-screen="sbp"] .dep-continue{min-height:36px;padding:7px 10px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.dep-view *{scroll-behavior:auto!important}}
