:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2733;
  --muted: #6b7a8c;
  --border: #e3e8ee;
  --primary: #0f6b4f;
  --primary-dark: #0b5340;
  --green: #12925f;
  --green-bg: #e7f7ef;
  --red: #c0392b;
  --red-bg: #fdecea;
  --amber: #9a6b00;
  --amber-bg: #fff7e0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(18, 34, 51, 0.08);
}

.card.wide { max-width: 960px; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text { flex: 1; }

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}

.muted {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 14px;
}

.small { font-size: 13px; margin-top: 20px; line-height: 1.5; }

.badge {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #f0dfae;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.45;
}

.alert.error {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid #f5c6c1;
}

.pay-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.amount-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  margin-bottom: 20px;
  background: #fbfcfd;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.amount-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 107, 79, 0.12);
  background: #fff;
}

.currency {
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
  margin-right: 12px;
}

.amount-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 16px 0;
  font-size: 24px;
  font-weight: 650;
  color: var(--text);
  width: 100%;
}

.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  width: 100%;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  transition: background 0.15s ease;
}

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

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 18px;
}

.result-icon.success { background: var(--green-bg); color: var(--green); }
.result-icon.failed { background: var(--red-bg); color: var(--red); }

.result-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 6px;
}

.result-title + .muted { text-align: center; }

.amount-display {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 22px 0;
}

.amount-display span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}

.details {
  margin: 0 0 24px;
  border-top: 1px solid var(--border);
}

.details > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }

.txn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}

.txn-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.txn-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.txn-table a { color: var(--primary); text-decoration: none; font-weight: 600; }

.mono { font-family: Consolas, "Courier New", monospace; font-size: 13px; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.pill.success { background: var(--green-bg); color: var(--green); }
.pill.failed { background: var(--red-bg); color: var(--red); }
.pill.pending { background: var(--amber-bg); color: var(--amber); }
