:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: rgba(13, 20, 38, 0.88);
  --surface-strong: #111a31;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text: #eef2ff;
  --muted: #aab4d6;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7c8cff;
  --accent-2: #5eead4;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1200px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124, 140, 255, 0.25), transparent 36%),
    radial-gradient(circle at top right, rgba(94, 234, 212, 0.14), transparent 30%),
    linear-gradient(180deg, #09101f 0%, #0b1020 100%);
  color: var(--text);
}

a, button, input { font: inherit; }
button, input { border-radius: 12px; }
button { cursor: pointer; }
input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.9rem 1rem;
}
input:focus, button:focus, a:focus { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.shell { max-width: var(--max); margin: 0 auto; padding: 32px 20px 60px; }
.topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem; color: var(--accent-2); margin: 0 0 0.75rem;
}
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.1rem, 3.7vw, 4.8rem); line-height: 0.98; max-width: 12ch; margin-bottom: 0; }
.lead { font-size: 1.06rem; color: var(--muted); line-height: 1.7; max-width: 62ch; }
.card {
  background: linear-gradient(180deg, rgba(17, 26, 49, 0.95), rgba(13, 20, 38, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
.hero-copy { padding: 32px; }
.hero-panel { padding: 24px; display: grid; gap: 18px; align-content: start; }
.actions, .form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.primary-btn, .secondary-btn, .ghost-btn, .ghost-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 1px solid var(--line); transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.primary-btn, .secondary-btn, .ghost-btn { padding: 0.9rem 1.2rem; }
.primary-btn {
  background: linear-gradient(135deg, var(--accent), #5166ff);
  color: white; border-color: transparent; font-weight: 700;
}
.secondary-btn, .ghost-btn, .ghost-link { color: var(--text); background: rgba(255,255,255,0.03); }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .ghost-link:hover { transform: translateY(-1px); }
.checklist {
  list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px;
}
.checklist li {
  padding: 0.6rem 0.8rem; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
}
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metric-grid div, .status-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); padding: 16px;
}
.metric-value { display: block; font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.metric-label, .status-title, .section-note, .form-hint, .empty { color: var(--muted); }
.status-title { margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.checkout-section, .history-section { padding: 28px; margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.section-head h2 { margin-bottom: 0; font-size: clamp(1.4rem, 2vw, 2rem); }
.checkout-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.checkout-form label { display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.checkout-form input { border-radius: 14px; }
.form-actions { grid-column: 1 / -1; justify-content: space-between; }
.form-hint { margin: 0; }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.02); }
thead th {
  text-align: left; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
tbody td { padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
tbody tr:hover { background: rgba(255,255,255,0.025); }
.status-pill {
  display: inline-flex; align-items: center; padding: 0.34rem 0.68rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  border: 1px solid var(--line);
}
.status-paid { background: rgba(52, 211, 153, 0.14); color: #bbf7d0; }
.status-pending { background: rgba(250, 204, 21, 0.14); color: #fde68a; }
.status-failed { background: rgba(251, 113, 133, 0.14); color: #fecdd3; }
.status-unknown { background: rgba(148, 163, 184, 0.14); color: #e2e8f0; }
.empty { text-align: center; padding: 30px 16px; }
.ghost-link { padding: 0.8rem 1rem; border-radius: 999px; }
.ghost-btn { border-radius: 999px; }

@media (max-width: 900px) {
  .hero, .checkout-form { grid-template-columns: 1fr; }
  .topbar, .section-head, .form-actions { flex-direction: column; align-items: stretch; }
  h1 { max-width: none; }
}
