:root {
  --bg: #f4f4f5;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --accent: #ff0000;
  --accent-dark: #cc0000;
  --border: #e5e7eb;
  --success: #059669;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: #000;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-meta {
  font-size: 13px;
  opacity: 0.8;
}

.content {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 24px 16px 40px;
  flex: 1;
}

.footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.hero h1 { margin-top: 0; }

h1, h2 { margin: 0 0 12px; }

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

.amount {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  margin-bottom: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); }

.btn.secondary {
  background: #fff;
  color: #111;
  border: 1px solid var(--border);
}

.list { list-style: none; padding: 0; margin: 0; }

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.service-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.service-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
}

.service-tile:hover { border-color: #111; }

.service-name { font-weight: 700; font-size: 18px; }
.service-link { color: var(--muted); }

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.form input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

.code {
  margin-top: 12px;
  padding: 12px;
  background: #111;
  color: #f8fafc;
  border-radius: 12px;
  overflow: auto;
}

.hidden { display: none; }

.alert.success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
  padding: 12px;
  border-radius: 12px;
}

.qr-block {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  border: 8px solid #111;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.bank-box {
  background: #fafafa;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.bank-details {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
}

.bank-details dt { font-weight: 700; }
.bank-details dd { margin: 0; }

.runner-shell {
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fafafa;
}

@media (max-width: 640px) {
  .header { flex-direction: column; align-items: flex-start; }
  .list-item, .service-tile { flex-direction: column; align-items: flex-start; }
}
