.recharge-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(1.25rem + env(safe-area-inset-top, 0px))
    1.25rem
    calc(1.25rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.recharge-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.recharge-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.recharge-modal-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 34.5rem);
  max-height: min(92dvh, 48rem);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 138, 0.18);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 8% -8%, rgba(255, 176, 196, 0.22), transparent 12rem),
    radial-gradient(circle at 92% 0%, rgba(255, 107, 138, 0.16), transparent 11rem),
    linear-gradient(180deg, #1a1a1e 0%, #101012 52%, #0a0a0c 100%);
  box-shadow:
    0 1.5rem 3.5rem rgba(0, 0, 0, 0.62),
    0 0 2rem rgba(255, 107, 138, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(0.5rem) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease;
}

.recharge-modal.is-open .recharge-modal-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.recharge-modal-handle {
  display: none;
}

.recharge-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recharge-modal-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.recharge-modal-title-wrap h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.recharge-modal-title-wrap p {
  margin: 0.38rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.52);
}

.recharge-modal-close {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.recharge-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.recharge-modal-close:active {
  transform: scale(0.96);
}

.recharge-modal-close .material-symbols-outlined {
  font-size: 1.28rem;
  line-height: 1;
}

.recharge-modal-grid {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
  padding: 1.15rem 1.45rem 1.25rem;
  overflow-y: auto;
}

.recharge-package {
  position: relative;
  display: flex;
  min-height: 6.85rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 1.05rem 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.2s ease;
}

.recharge-package:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-0.06rem);
}

.recharge-package.is-selected {
  border-color: rgba(255, 107, 138, 0.88);
  background: linear-gradient(180deg, rgba(255, 143, 168, 0.18), rgba(255, 107, 138, 0.1));
  box-shadow:
    0 0 0 1px rgba(255, 143, 168, 0.32),
    0 0.65rem 1.35rem rgba(255, 107, 138, 0.2);
  transform: translateY(-0.06rem);
}

.recharge-package-top,
.recharge-package-bonus,
.recharge-package-starter {
  position: absolute;
  top: 0.55rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}

.recharge-package-top {
  left: 0.55rem;
  background: linear-gradient(135deg, #ff6b8a, #e85d75);
  color: #fff;
  box-shadow: 0 0.25rem 0.65rem rgba(255, 107, 138, 0.35);
}

.recharge-package-starter {
  left: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.recharge-package-bonus {
  right: 0.55rem;
  background: rgba(255, 143, 168, 0.22);
  color: #ffc0d0;
  border: 1px solid rgba(255, 107, 138, 0.28);
}

.recharge-package-coins {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.recharge-package-price {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}

.recharge-package-original {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
}

.recharge-package-original:empty {
  display: none;
}

.recharge-package-check {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  font-size: 1.35rem;
  line-height: 1;
  color: #ff6b8a;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
  filter: drop-shadow(0 0 0.35rem rgba(255, 107, 138, 0.45));
}

.recharge-package.is-selected .recharge-package-check {
  opacity: 1;
  transform: scale(1);
}

.recharge-modal-footer {
  flex-shrink: 0;
  padding: 1.15rem 1.45rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.32));
}

#recharge-step-packages.recharge-step {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.recharge-summary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recharge-summary-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.recharge-summary-coins {
  margin: 0.22rem 0 0;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}

.recharge-summary-breakdown {
  margin: 0.28rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.72);
}

.recharge-summary-breakdown:empty {
  display: none;
}

.recharge-summary-price {
  text-align: right;
}

.recharge-summary-original {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
}

.recharge-summary-original:empty {
  display: none;
}

.recharge-summary-current {
  margin: 0.15rem 0 0;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.recharge-pay-button {
  width: 100%;
  min-height: 3.55rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe08a 0%, #ff6b8a 38%, #e85d75 100%);
  color: #1a1008;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 0.65rem 1.45rem rgba(255, 107, 138, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.42);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.recharge-pay-button:hover {
  filter: brightness(1.04);
  box-shadow:
    0 0.75rem 1.65rem rgba(255, 107, 138, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.48);
}

.recharge-pay-button:active {
  transform: scale(0.985);
  filter: brightness(0.98);
}

body.recharge-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .recharge-modal {
    padding:
      calc(0.85rem + env(safe-area-inset-top, 0px))
      0.85rem
      calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .recharge-modal-sheet {
    width: min(100%, 100%);
    max-height: min(92dvh, 44rem);
    border-radius: 1.25rem;
  }

  .recharge-modal-header {
    padding: 1.1rem 1.1rem 1rem;
  }

  .recharge-modal-title-wrap h2 {
    font-size: 1.45rem;
  }

  .recharge-modal-grid {
    gap: 0.68rem;
    padding: 1rem 1.1rem 1.1rem;
  }

  .recharge-package {
    min-height: 6.2rem;
    padding: 0.95rem 0.62rem 0.85rem;
  }

  .recharge-modal-footer {
    padding: 1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }
}

.recharge-step[hidden] {
  display: none !important;
}

.recharge-pix-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.35rem 1.35rem;
  overflow-y: auto;
}

.recharge-pix-amount {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

.recharge-pix-amount strong {
  color: #ff8fa8;
  font-size: 1.15rem;
}

.recharge-pix-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 138, 0.14);
}

.recharge-pix-qr {
  width: min(100%, 14rem);
  height: auto;
  border-radius: 0.75rem;
  background: #fff;
}

.recharge-pix-copy-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.recharge-pix-copy-row {
  display: flex;
  gap: 0.55rem;
}

.recharge-pix-code-input {
  flex: 1;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #f5f5f5;
  font-size: 0.78rem;
}

.recharge-pix-copy-button {
  flex-shrink: 0;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ff6b8a 0%, #e85d75 100%);
  color: #1a1008;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.recharge-pix-copy-button.is-copied {
  background: #22c55e;
  color: #052e16;
}

.recharge-pix-status {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.recharge-pix-status.is-success {
  color: #4ade80;
}

.recharge-pix-status.is-error {
  color: #f87171;
}

.recharge-pay-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.recharge-method-picker {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.recharge-method-picker__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recharge-method-picker__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.4rem;
}

.recharge-method-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.recharge-method-option.is-active {
  border-color: rgba(255, 107, 138, 0.55);
  background: rgba(255, 107, 138, 0.14);
  color: #ffc0d0;
}

.recharge-method-option[hidden] {
  display: none !important;
}

.recharge-method-picker__hint {
  margin: 0.25rem 0 0;
  color: rgba(255, 176, 196, 0.9);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
}

.recharge-method-picker__hint[hidden] {
  display: none !important;
}

.recharge-paypal-followup__hint {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  line-height: 1.4;
}

.recharge-paypal-followup__text.is-success {
  color: #7dffa0;
}

.recharge-paypal-followup__text.is-error {
  color: #ff8f8f;
}

.recharge-paypal-followup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.45rem 2rem;
  text-align: center;
}

.recharge-paypal-followup__icon {
  font-size: 2.35rem;
  line-height: 1;
  color: #ffc0d0;
}

.recharge-paypal-followup__text {
  margin: 0;
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

.recharge-paypal-telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0.18rem;
  padding: 0.12rem 0.42rem 0.12rem 0.28rem;
  border-radius: 999px;
  background: rgba(42, 171, 238, 0.14);
  color: #6ecbff;
  font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
  transition: background 0.16s ease, transform 0.16s ease;
}

.recharge-paypal-telegram-link:hover {
  background: rgba(42, 171, 238, 0.24);
}

.recharge-paypal-telegram-link:active {
  transform: scale(0.98);
}

.recharge-paypal-telegram-link__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
