:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #64748b;
  --primary: #111827;
  --accent: #f59e0b;
  --accent-soft: #fff7ed;
  --border: #e5e7eb;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fff7ed, transparent 36rem), var(--bg);
  color: var(--text);
}

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

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 36px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

h1, h2 { margin: 0; }
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 0.95; letter-spacing: -0.06em; }
h2 { font-size: 20px; letter-spacing: -0.02em; }

.muted { color: var(--muted); max-width: 680px; }
.small { font-size: 14px; }

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

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.link-button.secondary-link {
  background: var(--accent);
  color: #111827;
}

.status-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.status-pill.ok { background: #dcfce7; color: #166534; }
.status-pill.error { background: #fee2e2; color: #991b1b; }

.grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  margin-bottom: 24px;
}

.panel { padding: 24px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.button-grid {
  display: grid;
  gap: 12px;
}

.category-btn, .service-card, button, .input {
  font: inherit;
}

.category-btn, .service-card {
  width: 100%;
  border: 1px solid var(--border);
  background: white;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.category-btn:hover, .service-card:hover { transform: translateY(-1px); border-color: #fbbf24; }
.category-btn.active, .service-card.active { border-color: var(--accent); background: var(--accent-soft); }

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  background: white;
}

.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12); }

.service-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.service-card strong { display: block; }
.service-card span { color: var(--muted); font-size: 14px; }
.price { font-weight: 900; white-space: nowrap; }

.selected {
  padding: 16px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 18px;
  margin-bottom: 18px;
}

.form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #334155;
}

.form button { align-self: end; }

.primary, .secondary, .ghost {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary { background: var(--primary); color: white; }
.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.secondary { background: var(--accent); color: #111827; }
.ghost { background: #f1f5f9; color: #334155; }

.order-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  background: #f1f5f9;
}
.badge.success { background: #dcfce7; color: #166534; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.failed { background: #fee2e2; color: #991b1b; }

.qris-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  background: #f8fafc;
  margin-bottom: 18px;
}

.qris-box img { max-width: min(320px, 100%); border-radius: 18px; background: white; padding: 10px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: #ffffff;
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
}

.pricing-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 22px;
  background: var(--accent-soft);
  border: 1px solid #fed7aa;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.check-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 900;
  margin-right: 10px;
}

.hidden { display: none !important; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  background: #111827;
  color: white;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .hero, .grid, .form, .feature-grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; flex-direction: column; padding: 26px; }
  .service-card, .pricing-box { align-items: flex-start; flex-direction: column; }
}
