html, body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 36%),
    radial-gradient(circle at bottom left, rgba(49, 46, 129, 0.18), transparent 42%),
    linear-gradient(180deg, #020617 0%, #071126 35%, #0a1f44 68%, #1e1b4b 100%);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.shell {
  width: 100%;
  max-width: 560px;
}

.payment-shell {
  max-width: 680px;
}

.card {
  padding: 32px 28px;
  border-radius: 28px;
  background: rgba(10, 31, 68, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(10, 31, 68, 0.28);
  backdrop-filter: blur(18px);
}

.payment-card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px 28px;
  box-shadow:
    0 20px 60px rgba(10, 31, 68, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.payment-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.9;
  pointer-events: none;
}

.payment-orb-one {
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34), rgba(56, 189, 248, 0));
}

.payment-orb-two {
  bottom: -90px;
  left: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.24), rgba(99, 102, 241, 0));
}

.eyebrow-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.68);
}

.status-chip {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.32);
}

.payment-icon,
h1,
p,
.details-grid,
.timeline-card,
.button-row,
.meta {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.06;
}

p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.82);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-card,
.timeline-card {
  background: rgba(15, 35, 80, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.detail-card {
  padding: 18px 18px 16px;
}

.detail-label,
.timeline-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 250, 252, 0.5);
}

.detail-value {
  font-size: 19px;
  line-height: 1.2;
  color: #f8fafc;
}

.timeline-card {
  margin-top: 18px;
  padding: 20px 20px 18px;
}

.timeline-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(248, 250, 252, 0.84);
}

.timeline-list li + li {
  margin-top: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #f8fafc;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.28);
}

.button-secondary {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(248, 250, 252, 0.48);
}

.payment-card.is-balance .status-chip {
  color: #fef3c7;
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(251, 146, 60, 0.26);
}

.payment-card.is-balance .payment-icon {
  background: linear-gradient(135deg, #f97316, #fb923c);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.32);
}

.payment-card.is-cancelled .status-chip {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.24);
}

.payment-card.is-cancelled .payment-icon {
  background: linear-gradient(135deg, #ef4444, #fb7185);
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.28);
}

@media (max-width: 640px) {
  body {
    padding: 18px;
  }

  .payment-card {
    padding: 26px 22px 22px;
  }

  .eyebrow-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
