#popupPay .gt-pay-modal {
  width: min(520px, calc(100vw - 28px));
  padding: 22px;
  border-radius: 18px;
  background: #15141c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

#popupPay .gt-pay-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0;
  color: #fff;
  font-family: Onest, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#popupPay .gt-pay-head .popup_modal_close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}

#popupPay .gt-pay-head .popup_modal_close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

#popupPay .gt-pay-admin {
  margin-left: auto;
  margin-right: 6px;
  opacity: 0.65;
}

#popupPay .gt-pay-admin + .popup_modal_close {
  margin-left: 0;
}

.gt-pay-form {
  display: block;
}

.gt-pay-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gt-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gt-pay-method {
  position: relative;
  min-width: 0;
}

.gt-pay-radio {
  position: absolute !important;
  inset: 0 auto auto 0;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  appearance: none !important;
  pointer-events: none !important;
}

.gt-pay-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1b24;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gt-pay-card:hover {
  border-color: rgba(77, 112, 239, 0.45);
}

.gt-pay-radio:checked + .gt-pay-card {
  border-color: #4d70ef;
  background: linear-gradient(180deg, rgba(77, 112, 239, 0.2), #1c1b24 70%);
  box-shadow: 0 0 0 1px rgba(77, 112, 239, 0.28), 0 10px 24px rgba(77, 112, 239, 0.16);
}

.gt-pay-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.gt-pay-card__icon {
  width: 30px;
  height: 22px;
  object-fit: contain;
}

.gt-pay-radio[value="cryptobot"] + .gt-pay-card .gt-pay-card__icon {
  width: 24px;
  height: 24px;
}

.gt-pay-card__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.gt-pay-card__label {
  font-family: Onest, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.gt-pay-card__desc {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.gt-pay-empty {
  padding: 18px 16px;
  border-radius: 14px;
  background: #1c1b24;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.gt-pay-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gt-pay-label {
  color: rgba(255, 255, 255, 0.58);
  font-family: Onest, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.gt-pay-input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1c1b24;
  color: #fff;
  font-family: Onest, sans-serif;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gt-pay-input:focus {
  border-color: rgba(77, 112, 239, 0.7);
  box-shadow: 0 0 0 3px rgba(77, 112, 239, 0.16);
}

.gt-pay-promo {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
  align-items: stretch;
}

.gt-pay-promo__btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #4d70ef;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gt-pay-promo__btn:hover {
  background: #5c7ff2;
}

.gt-pay-promo__btn svg {
  width: 16px;
  height: 16px;
}

.gt-pay-promo-result:empty {
  display: none;
}

.gt-pay-promo-result {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.gt-pay-convert {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gt-pay-convert__title {
  color: rgba(255, 255, 255, 0.58);
  font-family: Onest, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.gt-pay-convert__stack {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1b24;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.gt-pay-convert__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  padding: 0 52px 0 14px;
  box-sizing: border-box;
}

.gt-pay-convert__row + .gt-pay-convert__row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gt-pay-convert__row--input {
  cursor: text;
}

.gt-pay-convert__badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gt-pay-convert__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.gt-pay-convert__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: 44px;
}

.gt-pay-convert__name {
  color: rgba(255, 255, 255, 0.4);
  font-family: Onest, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gt-pay-convert__input,
.gt-pay-convert__value {
  width: 100%;
  height: 26px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #fff !important;
  font-family: Onest, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 26px !important;
  font-variant-numeric: tabular-nums;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  box-sizing: border-box;
  -webkit-text-fill-color: #fff;
}

.gt-pay-convert__unit {
  color: rgba(255, 255, 255, 0.35);
  font-family: Onest, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  align-self: center;
}

.gt-pay-convert__input[type="number"]::-webkit-outer-spin-button,
.gt-pay-convert__input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gt-pay-convert__input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.gt-pay-convert__arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #12111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.gt-pay-convert__arrow svg {
  width: 13px;
  height: 13px;
}

.gt-pay-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gt-pay-preset {
  height: 40px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: Onest, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gt-pay-preset:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.gt-pay-preset.is-active {
  background: #4d70ef;
  color: #fff;
  box-shadow: 0 8px 18px rgba(77, 112, 239, 0.28);
}

.gt-pay-accept {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.35;
}

.gt-pay-accept input {
  margin-top: 2px;
  accent-color: #4d70ef;
}

.gt-pay-accept a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gt-pay-accept a:hover {
  color: #7ea0ff;
}

.gt-pay-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: #2a2936;
  color: rgba(255, 255, 255, 0.35);
  font-family: Onest, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.gt-pay-submit svg {
  width: 16px;
  height: 16px;
}

.gt-pay-submit:enabled {
  background: linear-gradient(180deg, #5c7ff2 0%, #4d70ef 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(77, 112, 239, 0.35);
}

.gt-pay-submit:enabled:hover {
  background: linear-gradient(180deg, #6b8af5 0%, #5a7af1 100%);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  #popupPay .gt-pay-modal {
    padding: 16px;
  }

  .gt-pay-grid {
    grid-template-columns: 1fr;
  }

  .gt-pay-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gt-pay-convert__row {
    height: 64px;
    min-height: 64px;
    max-height: 64px;
  }

  .gt-pay-convert__input,
  .gt-pay-convert__value {
    font-size: 20px !important;
  }
}
