/* Branded payment tiles and a luminous amount panel, using the site's blue accent. */
.wallet-dialog {
  --site-radius: 9px;
  --wallet-muted: #9793ae;
  width: min(920px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #8981b13b;
  border-radius: 12px;
  background: #131321;
  color: #f4f1fc;
  font-family: Inter, sans-serif;
  box-shadow: 0 30px 110px #000a, 0 0 55px #117bff09;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #484260 transparent;
}
.wallet-dialog, .wallet-dialog * { box-sizing: border-box }
.wallet-dialog::backdrop { background: #04050db8; backdrop-filter: blur(6px) }
.wallet-dialog [hidden] { display: none !important }
.wallet-dialog button, .wallet-dialog input, .wallet-dialog summary { -webkit-tap-highlight-color: transparent }
.wallet-dialog button { font-family: inherit }
.wallet-dialog__shell { overflow: hidden; background: radial-gradient(ellipse at 0 0, #133e6d26, transparent 48%), #131321 }
.wallet-dialog__header { position: relative; display: flex; align-items: center; gap: 16px; padding: 25px 28px; border-bottom: 1px solid #ffffff09; background: radial-gradient(ellipse at 8% -40%, #157aff32, transparent 68%) }
.wallet-dialog__header::after { content: ''; position: absolute; bottom: -1px; left: 28px; width: 150px; height: 1px; background: linear-gradient(90deg, #3c9dff99, transparent); pointer-events: none }
.wallet-dialog__emblem { display: block; flex: none; width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 8px 22px #0586ff2e }
.wallet-dialog__heading { min-width: 0 }
.wallet-dialog__eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #6daefa; font-size: 8px; font-weight: 750; letter-spacing: .17em }
.wallet-dialog__eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: #7997bd }
.wallet-dialog h2 { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 750; letter-spacing: -.035em }
.wallet-dialog__header p { margin: 7px 0 0; color: var(--wallet-muted); font-size: 12px; line-height: 1.4 }
.wallet-dialog__close { display: grid; place-items: center; align-self: flex-start; flex: none; width: 32px; height: 32px; margin-left: auto; padding: 7px; border: 1px solid #ffffff08; background: #242237; color: #a39ab8; cursor: pointer; transition: background .2s, color .2s }
.wallet-dialog__close svg { width: 17px; height: 17px }
.wallet-dialog__close:hover { background: #342f4a; color: #fff }
.wallet-dialog__layout { display: grid; grid-template-columns: 1fr 1.08fr; align-items: start; gap: 24px; padding: 26px 28px 28px }
.wallet-section-label { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: #c1bcd4; font-size: 12px; line-height: 20px; font-weight: 550 }
.wallet-step { display: grid; place-items: center; flex: none; width: 25px; height: 23px; border-radius: 5px; background: #28253b; color: #7c7692; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums }
.wallet-methods { min-width: 0 }
.wallet-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.wallet-pay__item { --tile-glow: #2c89ed; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; width: 100%; min-height: 150px; padding: 18px 16px; overflow: hidden; isolation: isolate; border: 1px solid #ffffff0d; background: #1b1a2c; color: #f1eef9; text-align: left; cursor: pointer; transition: background .22s, border-color .22s, box-shadow .22s }
.wallet-pay__item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 45% 0, var(--tile-glow), transparent 76%); opacity: .12; transition: opacity .25s; pointer-events: none }
.wallet-pay__item::after { content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent, #ffffff35, transparent); opacity: .55; pointer-events: none }
.wallet-pay__item[data-method=sbp] { --tile-glow: #a357e7 }
.wallet-pay__item[data-method=crypto] { --tile-glow: #29b7a1 }
.wallet-pay__item[data-method=steam] { --tile-glow: #3888c2 }
.wallet-pay__item:hover { border-color: #98bafc42; background: #201f34 }
.wallet-pay__item:hover::before { opacity: .22 }
.wallet-pay__item.is-active { border-color: #389bff; background: #182a44; box-shadow: 0 0 0 1px #2d94ff17 inset, 0 8px 22px #0860cf12 }
.wallet-pay__item.is-active::before { opacity: .23 }
.wallet-pay__item.is-active::after { background: linear-gradient(90deg, transparent, #79c8ff, transparent); opacity: 1 }
.wallet-pay__icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 59px; margin-bottom: 13px; flex: none; color: #eaf4ff; pointer-events: none }
.wallet-pay__icon img { display: block; object-fit: contain }
.wallet-brand-cards { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 11px; max-width: 143px }
.wallet-brand-visa { width: 51px; height: 20px; filter: brightness(0) invert(1) }
.wallet-brand-mastercard { flex: none; width: 40px; height: 26px }
.wallet-brand-mir { width: 48px; height: 18px }
.wallet-brand-sbp { width: 190px; max-width: none; height: 93px; flex: none }
.wallet-brand-coins { display: flex; align-items: center; justify-content: center; padding: 0 5px }
.wallet-brand-coins > img, .wallet-brand-eth { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #1b2b31; box-shadow: 0 5px 12px #0003 }
.wallet-brand-coins .wallet-brand-btc { position: relative; z-index: 1; width: 37px; height: 37px; margin-right: -7px; background: white }
.wallet-brand-coins .wallet-brand-usdt { position: relative; z-index: 2; width: 49px; height: 49px }
.wallet-brand-eth { position: relative; z-index: 1; display: grid; place-items: center; width: 37px; height: 37px; margin-left: -7px; background: #c7d0e6 }
.wallet-brand-eth img { width: 21px; height: 25px }
.wallet-brand-steam { display: flex; align-items: center; justify-content: center; gap: 8px }
.wallet-brand-steam > img { width: 39px; height: 39px; filter: brightness(0) invert(1) }
.wallet-brand-steam > span { color: #fff; font-size: 17px; font-weight: 750; letter-spacing: .025em }
.wallet-brand-steam sup { position: relative; top: -4px; margin-left: 1px; font-size: 7px }
.wallet-pay__copy { display: grid; gap: 6px; min-width: 0; position: relative }
.wallet-pay__copy strong { font-size: 13px; font-weight: 650; line-height: 1.3 }
.wallet-pay__copy small { color: #958da9; font-size: 10px; line-height: 1.4 }
.wallet-pay__item.is-active .wallet-pay__copy small { color: #9fb4d1 }
.wallet-pay__check { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #77718c50; border-radius: 50%; color: #fff; transition: background .2s, border-color .2s }
.wallet-pay__check svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s }
.wallet-pay__item.is-active .wallet-pay__check { background: #3094ff; border-color: #75bfff; box-shadow: 0 0 12px #3094ff40 }
.wallet-pay__item.is-active .wallet-pay__check svg { opacity: 1; transform: scale(1) }
.wallet-methods__note { display: flex; align-items: flex-start; gap: 8px; padding: 16px 2px 0; color: #77718e; font-size: 10px; line-height: 1.6 }
.wallet-methods__note svg { flex: none; width: 16px; height: 16px }
.wallet-checkout { min-width: 0; padding: 19px; border: 1px solid #83779c25; border-radius: 10px; background: linear-gradient(145deg, #20203385, #181725); box-shadow: 0 12px 26px #0001 }
.wallet-checkout > .wallet-section-label { margin-bottom: 14px }
.wallet-currency { margin-left: auto; color: #78728e; font-size: 10px; font-weight: 650; letter-spacing: .06em }
.wallet-amount-panel { position: relative; isolation: isolate; overflow: hidden; padding: 18px 18px 13px; border: 1px solid #5e9de848; border-radius: 9px; background: radial-gradient(ellipse at 110% -15%, #1a85ee51, transparent 73%), linear-gradient(110deg, #1a2943, #142136); transition: border-color .2s, box-shadow .2s }
.wallet-amount-panel::before, .wallet-amount-panel::after { content: ''; position: absolute; z-index: -1; width: 220px; height: 220px; border: 1px solid #67b4ff0e; border-radius: 45px; right: -130px; top: -105px; transform: rotate(35deg); pointer-events: none }
.wallet-amount-panel::after { right: -100px; top: -95px }
.wallet-amount-panel:focus-within { border-color: #489fff; box-shadow: 0 0 0 3px #3094ff12 }
.wallet-custom__field { display: flex; align-items: baseline; gap: 10px }
.wallet-dialog .wallet-custom__field input { width: 100%; min-width: 0; padding: 0; margin: 0; border: 0 !important; outline: none; box-shadow: none; background: transparent !important; color: #fff; font: 650 36px/1.25 Inter, sans-serif; letter-spacing: -.035em; font-variant-numeric: tabular-nums }
.wallet-custom__field > span { color: #72aff2; font-size: 25px; font-weight: 550; line-height: 1.2 }
.wallet-amount-panel:has([aria-invalid=true]) { border-color: #df6986 }
.wallet-amount-panel__method { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; color: #829dc1; font-size: 9px; line-height: 16px }
.wallet-amount-panel__method svg { width: 19px; height: 19px; color: #67a3e14a }
.wallet-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 9px 0 16px }
.wallet-amount { height: 34px; padding: 0 2px; border: 1px solid #ffffff09; background: #29263d; color: #aca4c1; font-size: 10px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s }
.wallet-amount:hover { background: #353049; color: #fff }
.wallet-amount.is-active { border-color: #4aa4ff60; background: #28466d; color: #9ad0ff; box-shadow: 0 1px 8px #268cff12 inset }
.wallet-promo-section { margin: 0 0 16px }
.wallet-promo-section summary { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px; list-style: none; border: 1px dashed #8c729b45; border-radius: 7px; color: #b1a1c9; background: linear-gradient(90deg, #55417515, #392b4e08); font-size: 11px; line-height: 20px; cursor: pointer; user-select: none; transition: border-color .2s, background .2s }
.wallet-promo-section summary::-webkit-details-marker { display: none }
.wallet-promo-section summary:hover { border-color: #ad8ac26b; background: #523a6e26 }
.wallet-promo__symbol { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #73568d24; color: #c39cde; font-size: 12px; font-weight: 750 }
.wallet-promo-section summary > svg { width: 12px; height: 12px; margin-left: auto; color: #90819f; transform: rotate(90deg); transition: transform .2s }
.wallet-promo-section[open] summary > svg { transform: rotate(-90deg) }
.wallet-promo { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 11px; min-width: 0; border: 1px solid #77638355; border-radius: 7px; background: #12121f }
.wallet-dialog .wallet-promo input { width: 100%; min-width: 0; padding: 7px 0; margin: 0; border: 0; outline: none; box-shadow: none; background: transparent; color: #f2effa; font: 500 11px/1.4 Inter, sans-serif }
.wallet-promo input::placeholder { color: #8b7d99 }
.wallet-promo:focus-within { border-color: #409eff85 }
.wallet-promo button { flex: none; min-height: 33px; padding: 7px 9px; border: 1px solid #5889c52b; background: #24334d; color: #9bcaff; font-size: 10px; font-weight: 600; cursor: pointer }
.wallet-promo button:hover { background: #2c4569 }
.wallet-receipt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 17px; border-top: 1px solid #ffffff09 }
.wallet-receipt__label { display: flex; align-items: center; gap: 9px; min-width: 0 }
.wallet-receipt__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #224e7b2b }
.wallet-receipt__icon svg { width: 22px; height: 22px; color: #4aa4ff }
.wallet-receipt__label > div { display: grid; gap: 5px }
.wallet-receipt__label span { color: #ded8ec; font-size: 11px; font-weight: 600 }
.wallet-receipt small { color: #7d738f; font-size: 9px; line-height: 1.3 }
.wallet-receipt > strong { font-size: 23px; line-height: 1.2; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #edf6ff }
.wallet-submit { display: flex; align-items: center; justify-content: center; gap: 16px; position: relative; width: 100%; min-height: 49px; padding: 12px 42px; border: 1px solid #63b4ff80; background: var(--gloss-blue, linear-gradient(180deg, #4ba4ff, #1e86f8 55%, #1676e0)); box-shadow: 0 5px 22px #1189ff26; color: #fff; font-size: 12px; line-height: 1.4; font-weight: 650; cursor: pointer; transition: filter .2s, box-shadow .2s }
.wallet-submit__arrow { position: absolute; right: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0061c34f }
.wallet-submit__arrow svg { width: 12px; height: 12px }
.wallet-submit:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 5px 25px #1189ff42 }
.wallet-submit:disabled { opacity: .4; cursor: default }
.wallet-dialog__availability { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: #8a809d; text-align: center; font-size: 9px; line-height: 1.5 }
.wallet-dialog__availability > span:first-child { flex: none; width: 4px; height: 4px; border-radius: 50%; background: #c7a970 }
.wallet-dialog__status { margin: 0 0 12px; padding: 10px 11px; border: 1px solid #448fe52a; border-radius: 7px; background: #318df910; color: #adbee0; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere }
.wallet-dialog button:focus-visible, .wallet-dialog summary:focus-visible { outline: 2px solid #82bcff; outline-offset: 3px }
@media (max-width: 780px) {
  .wallet-dialog__layout { gap: 16px; padding: 22px }
  .wallet-dialog__header { padding: 22px }
  .wallet-checkout { padding: 15px }
  .wallet-pay { gap: 9px }
  .wallet-pay__item { padding: 16px 12px; min-height: 145px }
  .wallet-pay__copy strong { font-size: 12px }
  .wallet-pay__copy small { font-size: 9px }
  .wallet-brand-sbp { width: 170px; height: 83px }
  .wallet-brand-steam > span { font-size: 14px }
  .wallet-brand-steam > img { width: 31px; height: 31px }
  .wallet-brand-cards { gap: 7px }
  .wallet-brand-cards .wallet-brand-visa { width: 39px }
  .wallet-brand-cards .wallet-brand-mastercard { width: 32px }
  .wallet-brand-cards .wallet-brand-mir { width: 39px }
  .wallet-receipt > strong { font-size: 20px }
  .wallet-receipt small { display: none }
}
@media (max-width: 650px) {
  .wallet-dialog { width: min(470px, calc(100vw - 20px)); max-height: calc(100dvh - 20px) }
  .wallet-dialog__header { padding: 20px; gap: 12px }
  .wallet-dialog__emblem { width: 41px; height: 41px; border-radius: 10px }
  .wallet-dialog__eyebrow { margin-bottom: 6px; font-size: 7px }
  .wallet-dialog h2 { font-size: 20px }
  .wallet-dialog__header p { font-size: 10px; margin-top: 6px }
  .wallet-dialog__close { width: 27px; height: 27px; padding: 5px }
  .wallet-dialog__layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 19px }
  .wallet-section-label { margin-bottom: 12px; font-size: 11px }
  .wallet-pay { gap: 9px }
  .wallet-pay__item { min-height: 121px; padding: 13px }
  .wallet-pay__icon { height: 42px; margin: 4px 0 12px }
  .wallet-pay__copy { gap: 4px }
  .wallet-pay__copy strong { font-size: 12px }
  .wallet-pay__copy small { font-size: 9px }
  .wallet-pay__check { top: 9px; right: 9px; width: 15px; height: 15px }
  .wallet-brand-sbp { width: 160px; height: 78px }
  .wallet-brand-cards .wallet-brand-visa { width: 44px }
  .wallet-brand-cards .wallet-brand-mastercard { width: 34px }
  .wallet-brand-cards .wallet-brand-mir { width: 42px }
  .wallet-brand-steam > img { width: 32px; height: 32px }
  .wallet-brand-steam > span { font-size: 15px }
  .wallet-methods__note { display: none }
  .wallet-checkout { padding: 16px }
  .wallet-amount-panel { padding: 14px 16px 11px }
  .wallet-dialog .wallet-custom__field input { font-size: 32px }
  .wallet-amount-panel__method { margin-top: 8px }
  .wallet-amounts { margin-bottom: 13px }
  .wallet-promo-section { margin-bottom: 12px }
  .wallet-receipt { padding: 12px 0 15px }
  .wallet-receipt > strong { font-size: 22px }
  .wallet-receipt small { display: block }
}
@media (max-width: 370px) {
  .wallet-dialog__header { padding: 17px; gap: 10px }
  .wallet-dialog__emblem { width: 35px; height: 35px }
  .wallet-dialog h2 { font-size: 17px }
  .wallet-dialog__header p { font-size: 9px }
  .wallet-dialog__layout { padding: 15px; gap: 15px }
  .wallet-pay__copy strong { font-size: 11px }
  .wallet-pay__copy small { font-size: 8px }
  .wallet-brand-sbp { width: 146px; height: 71px }
  .wallet-brand-steam { gap: 6px }
  .wallet-brand-steam > img { width: 27px; height: 27px }
  .wallet-brand-steam > span { font-size: 13px }
  .wallet-checkout { padding: 13px }
  .wallet-receipt { flex-wrap: wrap }
  .wallet-receipt > strong { margin-left: auto; font-size: 20px }
  .wallet-receipt small { font-size: 8px }
  .wallet-brand-cards .wallet-brand-visa { width: 35px }
  .wallet-brand-cards .wallet-brand-mastercard { width: 29px }
  .wallet-brand-cards .wallet-brand-mir { width: 34px }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-dialog * { transition: none !important; animation: none !important }
}
