:root {
  --red: #ef171e;
  --red-dark: #d70e16;
  --text: #151515;
  --muted: #707070;
  --border: #f3b8bb;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 22%, rgba(239, 23, 30, .10), transparent 130px),
    radial-gradient(circle at 88% 76%, rgba(239, 23, 30, .12), transparent 180px),
    #fff;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.page {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 62px 18px 74px;
}

.payment-card {
  width: min(100%, 560px);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(239, 23, 30, .14);
  border-radius: 24px;
  padding: 40px 46px 34px;
  box-shadow:
    0 24px 70px rgba(39, 14, 14, .10),
    0 4px 18px rgba(239, 23, 30, .06);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  line-height: 1;
}

.brand-mark {
  color: var(--red);
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -6px;
  font-style: italic;
}

.brand-pay {
  color: #171717;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
}

.brand-line {
  width: 58px;
  height: 3px;
  margin: 18px auto 13px;
  border-radius: 999px;
  background: var(--red);
}

.tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: #656565;
  font-size: 17px;
  margin-bottom: 36px;
}

.tagline b {
  color: var(--red);
}

label {
  display: block;
  margin-bottom: 11px;
  font-size: 18px;
  font-weight: 750;
}

.amount-wrap {
  height: 58px;
  display: flex;
  align-items: center;
  border: 1.7px solid #ee4d52;
  border-radius: 13px;
  background: #fff;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.amount-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 23, 30, .08);
}

.rupee {
  padding-left: 20px;
  color: var(--red);
  font-size: 23px;
  font-weight: 700;
}

#amount {
  width: 100%;
  height: 100%;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: #222;
  background: transparent;
  font-size: 18px;
}

#amount::placeholder {
  color: #9a9a9a;
}

#amount::-webkit-outer-spin-button,
#amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#amount[type=number] {
  appearance: textfield;
}

.presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.preset {
  height: 58px;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--red);
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
  transition: .16s ease;
}

.preset:hover,
.preset.active {
  background: #fff4f4;
  border-color: var(--red);
  transform: translateY(-1px);
}

.pay-button {
  width: 100%;
  height: 62px;
  margin-top: 26px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #f21b22, #dd1017);
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(222, 16, 23, .20);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.pay-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(222, 16, 23, .26);
}

.pay-button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.arrow {
  margin-left: 8px;
  font-size: 23px;
}

#message {
  min-height: 22px;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

#message.success { color: #14833b; }
#message.error { color: #c5181e; }
#message.pending { color: #9a6300; }

.security {
  margin-top: 27px;
  text-align: center;
  color: #747474;
  font-size: 15px;
}

.secure-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.lock {
  font-size: 15px;
}

.powered {
  margin-top: 18px;
}

.powered strong {
  color: var(--red);
}

footer {
  margin-top: 36px;
  color: #6c6c6c;
  font-size: 14px;
  text-align: center;
}

footer span {
  color: var(--red);
  font-weight: 700;
}

.red-wave {
  position: fixed;
  left: -5vw;
  width: 110vw;
  height: 100px;
  z-index: 1;
  pointer-events: none;
  background: var(--red);
}

.wave-top {
  top: -65px;
  border-radius: 0 0 55% 45%;
  transform: rotate(-1.3deg);
}

.wave-bottom {
  bottom: -73px;
  border-radius: 55% 45% 0 0;
  transform: rotate(1deg);
}

.orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(255, 70, 76, .34), rgba(239, 23, 30, .04) 68%, transparent 72%);
  filter: blur(1px);
}

.orb-one {
  width: 190px;
  height: 190px;
  left: 4%;
  top: 15%;
}

.orb-two {
  width: 270px;
  height: 270px;
  right: 1%;
  bottom: 8%;
}

.orb-three {
  width: 90px;
  height: 90px;
  left: 7%;
  bottom: 28%;
  opacity: .55;
}

.dot {
  position: fixed;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
}

.dot-one {
  right: 18%;
  top: 28%;
}

.dot-two {
  left: 12%;
  bottom: 25%;
}

@media (max-width: 620px) {
  .page {
    padding: 52px 13px 64px;
  }

  .payment-card {
    padding: 31px 22px 28px;
    border-radius: 20px;
  }

  .brand-mark {
    font-size: 56px;
  }

  .brand-pay {
    font-size: 39px;
  }

  .tagline {
    font-size: 15px;
    margin-bottom: 29px;
  }

  .presets {
    gap: 10px;
  }

  .preset {
    height: 54px;
  }

  .pay-button {
    height: 58px;
    font-size: 17px;
  }

  .orb-one {
    width: 130px;
    height: 130px;
    left: -25px;
  }

  .orb-two {
    width: 190px;
    height: 190px;
    right: -65px;
  }
}
