#custom-recharge {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 33, 48, 0.66);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#custom-recharge[hidden] {
  display: none !important;
}

.custom-recharge-card {
  position: relative;
  box-sizing: border-box;
  width: min(430px, calc(100vw - 36px));
  padding: 28px 25px 22px;
  border: 4px solid #85451f;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff8d6 0%, #fff0bb 100%);
  color: #6d381e;
  box-shadow: 0 8px 0 #60331d, 0 18px 44px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.custom-recharge-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a4b2b;
  font-size: 32px;
  line-height: 36px;
  cursor: pointer;
}

.custom-recharge-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  border: 4px solid #0a866c;
  border-radius: 17px;
  background: linear-gradient(145deg, #50e8c6, #13b893);
  color: #fff8b0;
  font-size: 30px;
  font-weight: 800;
  line-height: 50px;
  transform: rotate(8deg);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.32), 0 4px 0 #086b5b;
}

#custom-recharge-title {
  margin: 10px 0 4px;
  color: #bf581b;
  font-size: 28px;
  line-height: 1.2;
}

.custom-recharge-subtitle {
  margin: 0 0 20px;
  color: #8f6040;
  font-size: 15px;
}

.custom-recharge-field {
  display: block;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}

.custom-recharge-input-wrap {
  display: flex;
  align-items: center;
  margin-top: 8px;
  overflow: hidden;
  border: 3px solid #d17728;
  border-radius: 14px;
  background: #fffef8;
}

#custom-recharge-amount {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 58px;
  padding: 8px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4d301d;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.custom-recharge-input-wrap b {
  padding: 0 16px 0 8px;
  color: #8b583a;
  font-size: 18px;
}

.custom-recharge-reward {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f4d790;
  color: #70411f;
  font-size: 17px;
}

.custom-recharge-reward strong {
  color: #07876d;
  font-size: 22px;
}

.custom-recharge-message {
  min-height: 21px;
  margin: 7px 0 2px;
  color: #c33122;
  font-size: 14px;
}

.custom-recharge-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}

.custom-recharge-actions button {
  height: 52px;
  border: 2px solid #9c511f;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.custom-recharge-cancel {
  background: #ead3a4;
  color: #714022;
}

.custom-recharge-submit {
  background: linear-gradient(180deg, #ffb43e, #ee741f);
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(152, 57, 16, 0.45);
}

.custom-recharge-note {
  margin: 14px 0 0;
  color: #9a7558;
  font-size: 12px;
}

@media (max-height: 560px) {
  .custom-recharge-card {
    padding-top: 18px;
    transform: scale(0.9);
  }

  .custom-recharge-icon {
    display: none;
  }
}
