/* Mobile balance flow. Loaded last; the desktop layout keeps its original styles. */
.refill-mobile-only { display: none; }
@media (max-width: 1100px) {
  body.refopen { overscroll-behavior: none; }
  body .refill.popup {
    box-sizing: border-box; top: var(--refill-top, 50%) !important; left: 50% !important;
    width: min(100% - 16px, 520px) !important; max-width: none !important;
    max-height: calc(100vh - 16px); max-height: calc(var(--refill-viewport, 100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: auto !important; overscroll-behavior: contain; scrollbar-width: thin;
    border: 1px solid #494235; border-radius: 22px !important;
    background: #14151b !important; color: #f6f3ec;
    box-shadow: 0 24px 90px #0009; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  body .refill *, body .refill *::before, body .refill *::after { box-sizing: border-box; }
  body .refill .md-effect { background: transparent; border-radius: inherit; transition: opacity .18s ease; transform: none; }
  body .refill .refill-wrap { display: flex; flex-direction: column; min-height: 0 !important; }
  body .refill .refill-wrap::before, body .refill .refill-wrap::after, body .refill .refill-left::before { display: none; }
  body .refill .refill-left { display: flex !important; flex-direction: column; gap: 0; width: 100% !important; padding: 22px 18px 0 !important; }
  body .refill .refill-title { padding-right: 44px; margin: 0 0 18px; font-size: 22px !important; line-height: 1.2; letter-spacing: -.4px; text-transform: none; }
  body .refill .close-modal { position: absolute; top: 10px !important; right: 10px !important; width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; padding: 0 !important; border: 1px solid #393a43; border-radius: 50%; background: #24252d; color: #ece9e3; cursor: pointer; z-index: 3; }
  body .refill .close-modal span { display: none; }
  body .refill .close-modal i { font-size: 27px; font-style: normal; line-height: 1; }
  body .refill .refill-right { width: 100% !important; padding: 12px 18px 18px !important; }
  body .refill .refill-right__title { display: block; font-size: 16px !important; line-height: 1.4; text-transform: none; }
  body .refill .refill-form { height: auto; min-width: 0; }
  body .refill .refill-form__wrap { margin: 0; padding: 0; }
  body .refill .refill-inputs { min-width: 0; gap: 10px !important; margin-top: 10px; }
  body .refill .refill-input { min-width: 0; max-width: 100%; background: #1d1f27; border: 1px solid #41424e; border-radius: 12px; }
  body .refill .refill-inputs input { min-width: 0 !important; max-width: 100% !important; padding: 13px 14px !important; font-size: 16px !important; line-height: 24px; color: #fff; }
  body .refill .refill-inputs input::placeholder { color: #a6a7b4; }
  body .refill .refill-input:focus-within { border-color: #e8c681; box-shadow: 0 0 0 3px #e8c68120; }
  body .refill .refill-submit { width: 100% !important; min-height: 52px; height: auto; display: flex; justify-content: center; align-items: center; padding: 14px !important; border: 0; border-radius: 13px; background: linear-gradient(115deg,#f4dfac,#dab36b); color: #211a0d; font-size: 16px; font-weight: 700; line-height: 1.35; text-transform: none; box-shadow: 0 6px 22px #d6ae5a16; }
  body .refill .refill-submit:disabled { opacity: .65; cursor: wait; }
  body .refill :is(button,select,a,[role="button"]):focus-visible { outline: 2px solid #f4d398; outline-offset: 3px; }
  body .refill .card_rate { height: auto; min-height: 60px; padding: 12px; gap: 8px; }
  body .refill .card_rate label { width: 100%; text-align: left; padding: 0; color: #bfc0cb; font-size: 14px; }
  body .refill .card_rate input { min-width: 0; width: 100%; color: #fff; font-size: 16px; }
  body .refill .card_rate span { width: auto; line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
  body .refill .card_rate span[onclick] { min-height: 44px; display: flex; align-items: center; color: #f4d398; cursor: pointer; }
  body .refill .cardpay-message { line-height: 1.5; overflow-wrap: anywhere; padding: 12px; }
  body .refill .refill-check { height: auto; padding: 10px; }
  body .refill .refill-check input { width: 100%; min-width: 0; font-size: 16px; }
  body .refill #timer { width: 100%; text-shadow: none; background: #24252d; }
  body .js-modal-container .refill-mobile-only { display: block; }
  body .js-modal-container .refill-menu, body .js-modal-container .refill-right__title { display: none !important; }
  body .js-modal-container .refill-total { order: -1; margin: 0 0 16px !important; padding: 14px; background: linear-gradient(120deg,#2a2825,#1d1e26); border: 1px solid #4a4234; border-radius: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body .js-modal-container .refill-title { position: static; order: -2; }
  body .js-modal-container .refill-total__item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; min-width: 0; }
  body .js-modal-container .refill-total__item > span { display: none; }
  body .js-modal-container .refill-total__item-title { color: #c1bcb4; font-size: 12px; line-height: 1.4; letter-spacing: 0; }
  body .js-modal-container .refill-total__item-value { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  body .js-modal-container .refill-sum { color: #f2d495; }
  body .js-modal-container .refill-category label, body .js-modal-container .refill-field-label { font-size: 14px; font-weight: 600; line-height: 1.4; color: #f1eee7; }
  body .js-modal-container .refill-category select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; margin-top: 8px; font: inherit; font-size: 16px; color: #f1eee7; color-scheme: dark; border: 1px solid #41424e; border-radius: 12px; background: #1d1f27; }
  body .js-modal-container .refill-category a { display: inline-flex; align-items: center; min-height: 44px; color: #c7c3bc; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
  body .js-modal-container .refill-methods { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 0 !important; overflow: visible; }
  body .js-modal-container .refill-method { height: auto !important; min-height: 78px; min-width: 0; padding: 12px 22px 10px 10px; flex-direction: column; gap: 7px; border: 1px solid #393b47; border-radius: 13px; background: #1d1f27; justify-content: center; }
  body .js-modal-container .refill-method.hidden { display: none !important; }
  body .js-modal-container .refill-method img { width: auto; max-width: 90px; height: 26px; object-fit: contain; }
  body .js-modal-container .refill-method-name { color: #e0e0e8; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
  body .js-modal-container .refill-method__info { display: none; }
  body .js-modal-container .refill-method.active { border-color: #e7c580; background: #302b23; box-shadow: inset 0 0 0 1px #e7c580; }
  body .js-modal-container .refill-method.active::after { content: '✓'; position: absolute; right: 7px; top: 7px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #edcf92; color: #241c10; font-size: 12px; }
  body .js-modal-container .refill-selection { margin: 10px 0 4px; color: #c6bea9; font-size: 13px; line-height: 1.4; }
  body .js-modal-container .refill-warning:not(.show), body .js-modal-container .refill-message { display: none; }
  body .js-modal-container .refill-rate { padding-right: 14px; }
  body .js-modal-container .refill-rate input { font-size: 24px !important; font-weight: 600; }
  body .js-modal-container .refill-rate > span { font-size: 20px; color: #d4c4a7; }
  body .js-modal-container .refill-quick { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  body .js-modal-container .refill-quick button { min-width: 0; min-height: 44px; padding: 8px 2px; border: 1px solid #41424e; border-radius: 10px; background: #22232b; color: #e4e0d8; font: inherit; font-size: 14px; cursor: pointer; }
  body .js-modal-container .refill-quick button[aria-pressed="true"] { border-color: #e7c580; background: #302b23; color: #f5dbab; }
  body .js-modal-container .refill-quick button:disabled { opacity: .4; cursor: not-allowed; }
  body .js-modal-container .refill-hint { font-size: 12px; color: #b4b5c0; line-height: 1.4; }
  body .js-modal-container .refill-checkbox { grid-row: auto; gap: 10px; font-size: 12px !important; line-height: 1.5 !important; color: #bfc0ca; }
  body .js-modal-container .refill-checkbox input { position: static; opacity: 1; width: 22px !important; min-width: 22px !important; height: 22px; margin: 3px 0; padding: 0 !important; accent-color: #e7c580; }
  body .js-modal-container .refill-checkbox > span { display: none; }
  body .js-modal-container .refill-checkbox label { padding: 4px 0; }
  body .js-modal-container .refill-checkbox a { color: #f1d39a; }
  body .js-modal-container .refill-submit { position: sticky; bottom: 0; z-index: 2; margin-top: 2px; box-shadow: 0 0 0 8px #14151b; }
  body .refill .refill-payText { margin-top: 16px; }
}
@media (max-width: 360px) {
  body .refill .refill-title { font-size: 20px !important; }
  body .refill .refill-left { padding-left: 14px !important; padding-right: 14px !important; }
  body .refill .refill-right { padding-left: 14px !important; padding-right: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body .refill .md-effect, body .refill .refill-method { transition: none; }
}
@media (max-width: 1100px) {
  body .refill .refill-submit::before, body .refill .refill-submit::after { display: none; }
  body .refill .close-modal, body .refill .close-modal:hover, body .refill .close-modal:active,
  body .refill .close-modal i, body .refill .close-modal:hover i { text-shadow: none; transform: none; animation: none; }
}

@media (max-width: 1100px) { body .js-modal-container .refill-method img.refill-icon-unavailable { display: none; } }
