:root {
  --ink: #071013;
  --paper: #f5f0e7;
  --muted: #6d655a;
  --line: rgba(7, 16, 19, .14);
  --panel: rgba(255, 252, 244, .82);
  --green: #79ffb0;
  --blue: #46d6ff;
  --orange: #ff9d4d;
  --red: #ff6b6b;
  --shadow: 0 24px 80px rgba(7, 16, 19, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(70, 214, 255, .34), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(255, 157, 77, .30), transparent 22rem),
    linear-gradient(135deg, #fbf4e7 0%, #efe9dc 52%, #e0f7ed 100%);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(7,16,19,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(7,16,19,.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

button, input, select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 22px;
  align-items: stretch;
  min-height: 520px;
}

.hero > div,
.panel,
.status-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero > div {
  padding: clamp(34px, 6vw, 76px);
  border-radius: 38px;
  position: relative;
  overflow: hidden;
}

.hero > div::after {
  content: "CURRENCY · SECURITY · WEBHOOKS · AFFILIATES";
  position: absolute;
  left: -24px;
  bottom: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .28em;
  transform: rotate(-4deg);
  color: rgba(7,16,19,.24);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1f6f66;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 920px;
  font-size: clamp(46px, 7vw, 98px);
  line-height: .88;
  letter-spacing: -.07em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 3vw, 48px);
  line-height: .95;
  letter-spacing: -.045em;
  margin-bottom: 16px;
}

h3 {
  font-size: 22px;
  letter-spacing: -.025em;
}

.hero-copy {
  max-width: 690px;
  font-size: 20px;
  line-height: 1.55;
  color: #40392f;
}

.hero-actions,
.panel-heading,
.tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary,
.ghost,
.tab {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 7px 7px 0 rgba(7,16,19,.18);
}

.ghost,
.tab {
  background: rgba(255,255,255,.36);
  color: var(--ink);
}

.small {
  padding: 8px 12px;
  font-size: 13px;
}

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

.tab.active {
  background: var(--green);
}

.status-card {
  border-radius: 38px;
  padding: 30px;
  background:
    linear-gradient(160deg, rgba(7,16,19,.94), rgba(11,38,42,.91)),
    var(--ink);
  color: var(--paper);
  align-self: end;
  min-height: 430px;
  position: relative;
  overflow: hidden;
}

.status-card::after {
  content: "";
  position: absolute;
  inset: auto -28% -24% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green), transparent 66%);
  opacity: .72;
}

.status-card h2 { color: white; }
.status-card ul { padding-left: 18px; line-height: 1.9; }

.pulse {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 12px rgba(121,255,176,.12);
  margin-bottom: 80px;
}

.grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact {
  gap: 12px;
  margin-top: 0;
}

.panel {
  border-radius: 28px;
  padding: 26px;
}

.panel-heading {
  justify-content: space-between;
  margin-bottom: 18px;
}

.muted,
.empty {
  color: var(--muted);
}

.auth-form,
#checkoutForm {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #302c25;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.68);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #1f6f66;
  box-shadow: 0 0 0 4px rgba(70,214,255,.2);
}

.provider-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.badge.api { background: rgba(121,255,176,.35); }
.badge.mock { background: rgba(255,157,77,.28); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,.42);
}

.plan-card strong {
  font-size: 28px;
  letter-spacing: -.04em;
}

.plan-card ul {
  padding-left: 18px;
  min-height: 88px;
}

.card-note {
  border: 1px dashed rgba(7,16,19,.26);
  background: rgba(70,214,255,.12);
  border-radius: 16px;
  padding: 12px;
  color: #3b403d;
  font-size: 14px;
}

.qrbox {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
}

.qrbox svg,
.qrbox img {
  width: 150px;
  height: 150px;
  border: 10px solid white;
  border-radius: 18px;
}

.code {
  display: block;
  max-height: 88px;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: #071013;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: rgba(255,255,255,.36);
}

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.status.approved { background: rgba(121,255,176,.4); }
.status.pending, .status.creating { background: rgba(255,157,77,.3); }
.status.failed, .status.refunded { background: rgba(255,107,107,.22); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stat {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.42);
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -.04em;
}

.logs {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.log {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.38);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.hidden { display: none !important; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #071013;
  color: white;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .hero,
  .two,
  .plans-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .status-card { min-height: auto; }
  .provider-mode { grid-template-columns: 1fr; }
  .qrbox { grid-template-columns: 1fr; }
}
