:root {
  --forest: #123f33;
  --forest-deep: #0b2b23;
  --leaf: #187255;
  --cream: #f5f0e6;
  --paper: #fffdf7;
  --ink: #17231f;
  --muted: #63706b;
  --line: #dcd9cf;
  --gold: #c9902d;
  --danger: #9f2f2a;
  --shadow: 0 18px 52px rgba(20, 49, 40, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Avenir, Helvetica, Arial, sans-serif;
}
button, input, select { font: inherit; }
a { color: inherit; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  color: var(--forest);
  font-weight: 700;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid #e2a83d; outline-offset: 3px; }
.store-header {
  background: var(--forest);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.store-nav {
  width: min(1080px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.store-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}
.store-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.35);
  background: #fff7df;
  color: var(--forest);
  border-radius: 50%;
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
}
.store-brand strong, .store-brand small { display: block; }
.store-brand strong { font-family: Fraunces, Georgia, serif; font-size: 18px; }
.store-brand small { margin-top: 1px; color: #cbd9d4; font-size: 11px; }
.store-nav nav { display: flex; align-self: stretch; }
.store-nav nav a {
  display: grid;
  place-items: center;
  padding: 0 15px;
  color: #dce8e4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}
.store-nav nav a[aria-current="page"] { color: #fff; border-color: #efd08d; }
.store-shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 100px;
}
.purchase-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(18, 63, 51, .16);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.purchase-heading {
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  margin: 0 0 7px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Fraunces, Georgia, serif; }
h1 { margin-bottom: 8px; font-size: clamp(29px, 6vw, 43px); line-height: 1.05; }
.purchase-heading > p:last-child { max-width: 570px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.purchase-form { display: grid; gap: 0; padding: 4px 30px 32px; }
.form-step { min-width: 0; margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); }
.form-step legend, .step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
  font-weight: 800;
}
.form-step legend span, .step-label span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font: 700 13px "DM Sans", sans-serif;
}
.network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.network-card {
  position: relative;
  min-width: 0;
  min-height: 122px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
}
.network-card input, .payer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.network-card:has(input:checked), .payer-option:has(input:checked) {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}
.network-logo { display: grid; align-items: center; width: 72px; height: 38px; margin-bottom: 12px; }
.network-logo img { display: block; max-width: 100%; max-height: 38px; }
.network-card strong { display: block; overflow-wrap: anywhere; }
.network-card small { display: block; margin-top: 4px; color: var(--muted); }
.purchase-form select, .purchase-form input[type="tel"], .track-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #bfc6c2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.purchase-form select:disabled { background: #edece8; color: #727975; }
.field-help { margin: -7px 0 10px; color: var(--muted); font-size: 13px; }
.field-error, .form-alert {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--danger);
  background: #fff1ef;
  color: #7d241f;
  font-weight: 700;
}
.field-error ul, .form-alert ul { margin: 0; padding-left: 19px; }
.payer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.payer-option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.payer-mtn { background: #ffcd00; color: #171717; }
.payer-telecel { background: #d71920; color: #fff; }
.payer-at { background: #1669ae; color: #fff; }
.store-button {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}
.store-button:hover { background: var(--forest-deep); }
.button-link { display: grid; place-items: center; text-decoration: none; }
.store-messages { margin-bottom: 14px; }
.store-notice { padding: 13px 15px; border: 1px solid #e4c883; border-radius: 10px; background: #fff8e5; color: #6d4a0e; font-weight: 700; }
.compact-card { max-width: 650px; margin: 0 auto; }
.review-list { margin: 0; padding: 8px 30px; }
.review-list div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; text-align: right; font-weight: 800; }
.confirm-form { padding: 0 30px; }
.back-link { display: block; padding: 18px 30px 28px; color: var(--forest); text-align: center; font-weight: 700; }
.status-card { padding-bottom: 28px; text-align: center; }
.status-card .purchase-heading { border: 0; }
.status-symbol { width: 54px; height: 54px; margin: 30px auto 0; border: 8px solid #d7dfdb; border-top-color: var(--leaf); border-radius: 50%; }
.status-success { border: 0; background: var(--leaf); }
.status-failed { border: 0; background: var(--danger); }
.payment-state { display: flex; justify-content: space-between; gap: 18px; margin: 0 30px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.payment-state span { color: var(--muted); }
.reference { padding: 16px 30px 0; color: var(--muted); overflow-wrap: anywhere; }
.status-card .store-button { width: auto; margin-inline: 30px; }
.track-form { padding: 24px 30px; border-bottom: 1px solid var(--line); }
.track-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.track-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.track-row .store-button { width: auto; min-width: 120px; margin: 0; }
.tracking-results { padding: 24px 30px 30px; }
.tracking-results h2 { margin-bottom: 14px; }
.tracking-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.tracking-item strong, .tracking-item span { display: block; }
.tracking-item div > span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.public-pill { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #e5f1ec; color: var(--forest); font-size: 12px; font-weight: 800; }
.public-status-failed, .public-status-cancelled { background: #fbe9e7; color: var(--danger); }
.empty-state { margin-bottom: 0; color: var(--muted); }
.whatsapp-help { position: fixed; right: 20px; bottom: 20px; z-index: 30; }
.whatsapp-help summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  background: #126b48;
  color: #fff;
  box-shadow: 0 10px 30px rgba(10,45,34,.28);
  cursor: pointer;
  list-style: none;
}
.whatsapp-help summary::-webkit-details-marker { display: none; }
.whatsapp-help summary span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #126b48; font-size: 11px; font-weight: 900; }
.whatsapp-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(360px, calc(100vw - 28px));
  padding: 20px;
  border: 1px solid #d5ded9;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.whatsapp-panel h2 { margin-bottom: 6px; font-size: 20px; }
.whatsapp-panel > p { margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.starter-list { display: grid; gap: 7px; }
.whatsapp-starter { padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); text-decoration: none; font-size: 13px; font-weight: 700; }
.channel-link { display: block; margin-top: 14px; color: var(--forest); font-weight: 800; }

@media (max-width: 620px) {
  .store-nav { width: calc(100% - 22px); min-height: 68px; gap: 8px; }
  .store-brand small { display: none; }
  .store-nav nav a { padding: 0 9px; font-size: 13px; }
  .store-shell { width: min(100% - 20px, 760px); padding-top: 14px; }
  .purchase-heading, .purchase-form, .review-list, .confirm-form, .track-form, .tracking-results { padding-left: 18px; padding-right: 18px; }
  .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payer-grid { grid-template-columns: 1fr; }
  .payer-option { min-height: 48px; }
  .track-row { grid-template-columns: 1fr; }
  .track-row .store-button { width: 100%; }
  .tracking-item { align-items: flex-start; flex-direction: column; }
  .payment-state { margin-inline: 18px; }
  .status-card .store-button { margin-inline: 18px; }
  .whatsapp-help { right: 10px; bottom: 10px; }
  .whatsapp-help summary strong { display: none; }
  .whatsapp-help summary { padding-right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
