:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #08090b;
  color: #f7f7f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(125, 0, 0, .28), transparent 36%),
    #08090b url("/assets/global-trader-panel.png") center / cover no-repeat fixed;
}

.gt-shell {
  position: relative;
  width: min(1040px, 100%);
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 112px 80px 64px;
}

.gt-shell::before {
  content: "";
  position: absolute;
  inset: 38px 0 0;
  border: 1px solid rgba(190, 0, 0, .75);
  background: rgba(11, 12, 15, .70);
  box-shadow: 0 28px 90px #000, inset 0 0 90px rgba(0, 0, 0, .72);
  z-index: 0;
}

.gt-title {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: min(560px, 76vw);
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 12px #000);
}

.payment-panel {
  position: relative;
  z-index: 1;
  padding: 38px 42px 34px;
  border: 4px solid #36373d;
  background: rgba(4, 4, 6, .96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .72);
  overflow: hidden;
}

.panel-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: #c40000;
}

.eyebrow {
  margin: 0 0 8px;
  color: #ec2028;
  font-weight: 800;
  letter-spacing: .16em;
  font-size: .76rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.lead {
  max-width: 650px;
  margin: 14px 0 28px;
  color: #c6c7cb;
  font-size: 1.04rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.amount-card {
  min-height: 92px;
  border: 2px solid #383a42;
  background: #14151a;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.amount-card:hover,
.amount-card:focus-visible {
  transform: translateY(-3px);
  border-color: #ef2028;
  background: #24252b;
  outline: none;
}

.amount-card.selected {
  border-color: #ff3238;
  background: #a60000;
  box-shadow: inset 0 -5px 0 #620000;
}

.amount-card span {
  font-size: 2rem;
  font-weight: 850;
}

.amount-card small {
  margin-left: 5px;
  font-size: 1rem;
  font-weight: 700;
}

.email-field {
  display: grid;
  gap: 9px;
  margin: 26px 0 12px;
  font-weight: 700;
}

.email-field input {
  width: 100%;
  border: 2px solid #3b3c43;
  background: #101116;
  color: white;
  padding: 15px 16px;
  font: inherit;
}

.email-field input:focus {
  border-color: #e42027;
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 32, 39, .18);
}

.message {
  min-height: 24px;
  color: #ffbdc0;
}

.pay-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: #c70000;
  color: white;
  font: 800 1rem "Segoe UI", sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.pay-button:hover:not(:disabled) {
  background: #f01b23;
  transform: translateY(-2px);
}

.pay-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.fine-print {
  margin: 16px 0 0;
  color: #94969c;
  font-size: .82rem;
  line-height: 1.45;
}

.compact { min-height: 500px; }
.status-panel { text-align: center; }
.status-panel.success { border-color: #267d3a; }
.status-panel.error { border-color: #a00000; }

@media (max-width: 760px) {
  body {
    display: block;
    min-height: 100dvh;
    padding: 0;
    background:
      radial-gradient(circle at 50% 12%, rgba(145, 0, 0, .42), transparent 38%),
      linear-gradient(180deg, #111216 0%, #08090b 62%, #020203 100%);
  }

  .gt-shell {
    width: 100%;
    min-height: 100dvh;
    align-items: start;
    padding:
      max(94px, calc(env(safe-area-inset-top) + 78px))
      max(12px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .gt-shell::before {
    position: fixed;
    inset: 0;
    border: 0;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .34)),
      url("/assets/global-trader-panel.png") center / 100% 100% no-repeat;
    box-shadow: inset 0 0 48px rgba(0, 0, 0, .82);
  }

  .gt-title {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    width: min(470px, 88vw);
  }

  .payment-panel {
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 24px;
    border-width: 3px;
    background: rgba(4, 4, 6, .92);
    backdrop-filter: blur(3px);
  }

  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .amount-card:last-child { grid-column: 1 / -1; }

  .amount-card {
    min-height: 78px;
    touch-action: manipulation;
  }

  .pay-button {
    min-height: 58px;
    touch-action: manipulation;
  }
}

@media (max-width: 390px) {
  .gt-shell {
    padding-top: max(82px, calc(env(safe-area-inset-top) + 70px));
  }

  .payment-panel {
    padding: 26px 16px 20px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .lead {
    margin-bottom: 22px;
    font-size: .96rem;
  }

  .amount-card span {
    font-size: 1.65rem;
  }
}
