:root {
  --ink: #162533;
  --ink-soft: #365067;
  --paper: #f7f6f3;
  --card: #fffdf7;
  --accent: #0d8f8a;
  --accent-strong: #046763;
  --alert: #b4452b;
  --ok: #1f8a41;
  --border: #c8d4de;
  --shadow: 0 24px 60px rgba(5, 21, 30, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Trebuchet MS", "Gill Sans", "Franklin Gothic Medium", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, #f6d8ad 0%, transparent 34%),
    radial-gradient(circle at 85% 10%, #b3dfe4 0%, transparent 30%),
    linear-gradient(130deg, #f0eee7 0%, #eef4f8 45%, #f8f1e8 100%);
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(transparent 92%, rgba(22, 37, 51, 0.04) 92%);
  background-size: 100% 28px;
  opacity: 0.32;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(760px, 100%);
  background: var(--card);
  border: 1px solid rgba(10, 30, 44, 0.18);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.4vw, 34px);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.title {
  margin: 8px 0 10px;
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: clamp(1.7rem, 4.2vw, 2.45rem);
  line-height: 1.08;
}

.subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.status-wrap {
  margin-top: 18px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-loading {
  background: #fff4d9;
  color: #6e4d1f;
  border-color: #e5cc8f;
}

.status-active {
  background: #dff4e5;
  color: #1f5e36;
  border-color: #8bcaa0;
}

.status-paid {
  background: #d7f3ec;
  color: #0e5750;
  border-color: #71bfb0;
}

.status-expired,
.status-cancelled,
.status-invalid {
  background: #f8e2dc;
  color: #7f2f1d;
  border-color: #e7a794;
}

.error-box {
  margin-top: 16px;
  border: 1px solid #e5ad9d;
  background: #fff2ef;
  color: var(--alert);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

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

.item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  min-height: 72px;
}

.item-full {
  grid-column: 1 / -1;
}

.label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.value {
  display: block;
  font-size: 0.99rem;
  line-height: 1.35;
  word-break: break-word;
}

.value.amount {
  font-size: 1.35rem;
  font-family: "Georgia", "Palatino Linotype", serif;
  color: var(--accent-strong);
}

.value.mono {
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 0.84rem;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(4, 103, 99, 0.25);
}

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

.btn-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--ink);
}

.note {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 520ms ease forwards;
}

.reveal-1 {
  animation-delay: 90ms;
}

.reveal-2 {
  animation-delay: 230ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 18px;
    padding: 18px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
