/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
  padding: 24px 16px;
}

h1 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #1a1a2e;
}

h2 { font-size: 1.1rem; margin-bottom: 16px; color: #333; }
h3 { font-size: 0.9rem; color: #666; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Layout ──────────────────────────────────────────────────── */
.container { max-width: 640px; margin: 0 auto; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── Summary table ───────────────────────────────────────────── */
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.summary-table td { padding: 8px 6px; border-bottom: 1px solid #f0f0f0; }
.summary-table td:first-child { color: #888; width: 40%; }

/* ── Payment sections ────────────────────────────────────────── */
.payment-section { margin-bottom: 20px; }
.payment-section:last-child { margin-bottom: 0; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.pay-btn {
  padding: 10px 20px;
  border: 2px solid #0070f3;
  border-radius: 8px;
  background: #fff;
  color: #0070f3;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-block;
}
.pay-btn:hover { background: #0070f3; color: #fff; }

.pay-btn.primary { background: #0070f3; color: #fff; }
.pay-btn.primary:hover { background: #005ad4; border-color: #005ad4; }

.pay-btn.ewallet { border-color: #00a86b; color: #00a86b; }
.pay-btn.ewallet:hover { background: #00a86b; color: #fff; }

/* ── Channel select ──────────────────────────────────────────── */
#channelSelect {
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-right: 10px;
  outline: none;
}
#channelSelect:focus { border-color: #0070f3; }

/* ── Result card ─────────────────────────────────────────────── */
.result-card { text-align: center; }
.result-card .summary-table { text-align: left; margin: 20px 0; }

.result-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  line-height: 1;
}
.result-card.success .result-icon { color: #00a86b; }
.result-card.failed  .result-icon { color: #e53e3e; }
.result-card.pending .result-icon { color: #d69e2e; }

.result-card.success h2 { color: #00a86b; }
.result-card.failed  h2 { color: #e53e3e; }
.result-card.pending h2 { color: #d69e2e; }

.alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 12px 0;
  text-align: left;
}
