:root {
  --ink: #10231f;
  --muted: #61706c;
  --paper: #f6f3eb;
  --surface: #fffdf8;
  --line: #d8ddd8;
  --accent: #e5ff52;
  --accent-ink: #09221c;
  --deep: #082c25;
  --danger: #a22929;
  --success: #147a57;
  --warning: #9a5b08;
  --shadow: 0 18px 50px rgba(8, 44, 37, .09);
  --radius: 18px;
  --font-display: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
  --font-body: "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--font-body); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: #fff; color: #000; border: 2px solid #000; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #147a57; outline-offset: 3px; }

.site-header { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 800 15px/1 var(--font-display); letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.wordmark-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font-size: 18px; }
.site-header nav { display: flex; gap: 8px; }
.site-header nav a { padding: 9px 13px; color: var(--muted); text-decoration: none; font-weight: 700; }
.site-header nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

.hero { width: min(1180px, calc(100% - 40px)); margin: 70px auto 42px; display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 0; font: 800 clamp(52px, 8vw, 108px)/.88 var(--font-display); letter-spacing: -.055em; text-wrap: balance; }
.hero h1 em { color: var(--success); font-style: normal; }
.hero-lede { max-width: 560px; margin: 28px 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; font-weight: 800; }
.hero-note { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.hero-note span { color: var(--success); font: 800 12px var(--font-display); }
.hero-note p { margin: 0; font-weight: 700; }

.channel-banner { width: min(1180px, calc(100% - 40px)); margin: 0 auto 52px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 28px; background: var(--deep); color: #fff; border-radius: var(--radius); }
.channel-banner .eyebrow { color: #b8cbc5; }
.channel-banner a { flex: none; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 800; border-radius: 10px; }

.purchase-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto 100px; padding: clamp(28px, 5vw, 64px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0 0 22px; font: 800 clamp(34px, 5vw, 58px)/1 var(--font-display); letter-spacing: -.035em; }
fieldset { margin: 0; padding: 0; border: 0; }
.network-picker legend { margin-bottom: 14px; font-weight: 800; }
.network-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.network-option { position: relative; min-height: 120px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 800; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.network-option:hover { transform: translateY(-2px); }
.network-option:has(input:checked) { border-color: var(--deep); background: #f1f8e5; box-shadow: inset 0 0 0 1px var(--deep); }
.network-option input { position: absolute; opacity: 0; }
.network-option:has(input:focus-visible) { outline: 3px solid var(--success); outline-offset: 3px; }
.network-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; font: 800 12px var(--font-display); }
.network-option:has(input[data-network-brand]) .network-symbol { width: 76px; height: 42px; border: 0; border-radius: 10px; background: #fff center / contain no-repeat; }
.network-option:has(input[data-network-brand="mtn"]) .network-symbol { background-image: url("network-mtn.bec7bcec6807.svg"); }
.network-option:has(input[data-network-brand="telecel"]) .network-symbol { background-image: url("network-telecel.6a95dde51d25.svg"); }
.network-option:has(input[data-network-brand="airteltigo"]) .network-symbol { background-image: url("network-airteltigo.07b7ec412bce.svg"); }
.network-option:has(input[data-network-brand="mtn"]):has(input:checked) { color: #111 !important; background: #ffcc00 !important; border-color: #111 !important; box-shadow: inset 0 0 0 1px #111 !important; }
.network-option:has(input[data-network-brand="telecel"]):has(input:checked) { color: #fff !important; background: #e30613 !important; border-color: #9f0009 !important; box-shadow: inset 0 0 0 1px #9f0009 !important; }
.network-option:has(input[data-network-brand="airteltigo"]):has(input:checked) { color: #fff !important; background: #005baa !important; border-color: #003f77 !important; box-shadow: inset 0 0 0 1px #003f77 !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 36px; }
.field-group > label, .stack-form > label, .filter-bar label, .complaint-actions label { display: grid; gap: 7px; font-weight: 800; }
.field-hint { margin: -3px 0 9px; color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #bac5c0; border-radius: 9px; }
textarea { resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.order-total { padding: 20px; display: grid; grid-template-columns: 1fr auto; align-content: center; background: var(--deep); color: #fff; border-radius: 12px; }
.order-total span { color: #b8cbc5; font-size: 13px; }
.order-total strong { font: 800 25px var(--font-display); }
.order-total small { grid-column: 1 / -1; margin-top: 4px; color: #b8cbc5; }
.primary-action, .secondary-action, .button-link, .filter-bar button, .bulk-actions button, .stack-form button, .complaint-actions button, .search-form button { min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 800; text-decoration: none; }
.primary-action { width: 100%; margin-top: 28px; display: flex; justify-content: space-between; align-items: center; background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); font-size: 17px; }
.primary-action:hover, .button-accent:hover { filter: brightness(.96); }
.secondary-action { background: var(--deep); color: #fff; }
.setup-note { margin: 10px 0 0; color: var(--warning); font-size: 13px; }
.form-alert, .message { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #e4be7b; background: #fff7e3; border-radius: 9px; }
.form-alert ul, .field-error ul { margin: 0; padding-left: 18px; }
.field-error, .errorlist { margin: 7px 0 0; color: var(--danger); font-size: 13px; }
.message-stack { width: min(920px, calc(100% - 40px)); margin: 18px auto 0; }
.message.success { border-color: #84c3ab; background: #ebfff7; }
.message.error { border-color: #dc9b9b; background: #fff0f0; }

.site-footer { min-height: 110px; padding: 30px max(20px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }
.whatsapp-trigger { position: fixed; right: 22px; bottom: 22px; z-index: 20; min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 12px 17px; border: 0; border-radius: 99px; background: #087d4a; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); cursor: pointer; font-weight: 800; }
.whatsapp-trigger { width: 52px; height: 52px; min-height: 52px; justify-content: center; padding: 0; font-size: 21px; }
.whatsapp-panel { position: fixed; right: 22px; bottom: 84px; z-index: 19; width: min(390px, calc(100vw - 44px)); padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 70px rgba(0,0,0,.2); }
.whatsapp-panel-head { display: flex; justify-content: space-between; gap: 20px; }
.whatsapp-panel h2 { margin: 0; font: 800 27px var(--font-display); }
.whatsapp-panel > p { color: var(--muted); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 24px; }
.starter-list { display: grid; gap: 8px; }
.starter-list a { display: flex; justify-content: space-between; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.starter-list a:hover { background: #f0f8f4; border-color: var(--success); }
.channel-link { display: block; margin-top: 15px; color: var(--success); font-weight: 800; }

.narrow-page { width: min(720px, calc(100% - 40px)); min-height: 65vh; margin: 70px auto 100px; }
.narrow-page h1, .login-card h1 { margin: 0; font: 800 clamp(42px, 7vw, 78px)/.96 var(--font-display); letter-spacing: -.04em; }
.narrow-page > p { max-width: 580px; color: var(--muted); font-size: 18px; }
.payment-state { text-align: center; padding: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.status-orbit { width: 72px; height: 72px; margin: 0 auto 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.status-orbit span { width: 14px; height: 14px; background: var(--success); border-radius: 50%; animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }
.reference-line code { padding: 5px 8px; color: var(--ink); background: #edf1ed; border-radius: 5px; }
.payment-status { font-size: 14px !important; }
.text-link { display: inline-block; margin-top: 24px; color: var(--success); font-weight: 800; }
.otp-form { max-width: 420px; margin: 30px auto; text-align: left; }
.otp-form label { display: block; margin-bottom: 7px; font-weight: 800; }
.search-form { margin: 34px 0; }
.search-form > label { display: block; margin-bottom: 7px; font-weight: 800; }
.search-form > div { display: flex; }
.search-form input { border-radius: 9px 0 0 9px; }
.search-form button { flex: none; border-radius: 0 9px 9px 0; background: var(--deep); color: #fff; }
.track-results { display: grid; gap: 16px; }
.track-card, .empty-state { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.track-card > div:first-child { display: flex; align-items: center; gap: 9px; }
.track-card .eyebrow { margin: 0; }
.track-card h2 { margin: 8px 0 20px; font: 800 26px var(--font-display); }
.track-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.track-card dl div, .detail-list div { display: grid; gap: 2px; }
dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
dd { margin: 0; font-weight: 800; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warning); }
.status-dot.status-complete { background: var(--success); }
.status-dot.status-failed, .status-dot.status-cancelled { background: var(--danger); }
.danger-link { padding: 0; color: var(--danger); background: transparent; border: 0; cursor: pointer; text-decoration: underline; font-weight: 800; }
.muted { color: var(--muted); }
.login-page { min-height: 72vh; display: grid; place-items: center; padding: 40px 20px 80px; }
.login-card { width: min(480px, 100%); padding: clamp(28px, 5vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.login-card > p { color: var(--muted); }
.login-card .field-group { margin-top: 18px; }

/* Console */
.console-shell { background: #f1f3ef; }
.console-sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; padding: 24px 18px; display: flex; flex-direction: column; background: var(--deep); color: #fff; }
.console-sidebar .wordmark { padding: 0 8px 26px; color: #fff; }
.console-sidebar nav { display: grid; gap: 4px; }
.console-sidebar nav a, .sidebar-foot a { padding: 10px 12px; color: #c7d7d1; text-decoration: none; border-radius: 8px; font-weight: 700; }
.console-sidebar nav a:hover, .console-sidebar nav a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-foot { margin-top: auto; display: grid; gap: 4px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; }
.console-main { min-height: 100vh; margin-left: 248px; }
.console-topbar { height: 70px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 800; }
.menu-toggle { display: none; }
.console-content { width: min(1320px, calc(100% - 68px)); margin: 0 auto; padding: 44px 0 80px; }
.page-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 0; font: 800 clamp(38px, 5vw, 62px)/1 var(--font-display); letter-spacing: -.04em; }
.button-link { display: inline-flex; align-items: center; background: var(--deep); color: #fff; }
.button-subtle { background: #fff; color: var(--ink); border-color: var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric-grid article { min-height: 158px; padding: 22px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.metric-grid span { color: var(--muted); font-size: 13px; font-weight: 800; }
.metric-grid strong { margin: auto 0 3px; font: 800 clamp(27px, 3vw, 40px) var(--font-display); letter-spacing: -.03em; }
.metric-grid small { color: var(--muted); }
.console-card { margin-bottom: 20px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.console-card > h2, .card-heading h2 { margin: 0 0 18px; font: 800 25px var(--font-display); }
.card-heading { margin-bottom: 18px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.card-heading h2 { margin: 0; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 11px 10px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.data-table td { padding: 14px 10px; border-bottom: 1px solid #edf0ed; white-space: nowrap; }
.data-table a { color: var(--success); font-weight: 800; }
.select-cell { width: 36px; }
.select-cell input { width: 18px; min-height: 18px; }
.empty-cell { padding: 40px !important; color: var(--muted); text-align: center; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 99px; background: #f1ead8; color: #744c0e; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.status-complete { background: #dff5ea; color: #0b6243; }
.status-processing, .status-reviewing { background: #e3ecf7; color: #24517c; }
.status-failed, .status-cancelled, .status-dismissed { background: #f8dfdf; color: #8d2525; }
.filter-bar { display: grid; grid-template-columns: 200px 1fr auto; align-items: end; gap: 14px; }
.filter-bar button { background: var(--deep); color: #fff; }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.bulk-actions > span { margin-right: auto; color: var(--muted); font-size: 13px; }
.bulk-actions button { min-height: 40px; padding: 8px 11px; background: #fff; border-color: var(--line); font-size: 13px; }
.bulk-actions .button-accent, .button-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); }
.bulk-feedback { min-height: 22px; margin: 0 0 6px; color: var(--success); font-size: 13px; }
.detail-grid, .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.detail-list { display: grid; gap: 17px; }
.detail-list div { grid-template-columns: 160px 1fr; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.stack-form { display: grid; gap: 15px; }
.stack-form label:has(input[type="checkbox"]) { grid-template-columns: 1fr auto; align-items: center; }
.stack-form input[type="checkbox"] { width: 22px; min-height: 22px; }
.stack-form small { color: var(--muted); font-weight: 400; }
.list-stack { display: grid; gap: 8px; }
.list-stack article { padding: 13px; display: flex; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 9px; }
.list-stack article div { display: grid; }
.list-stack article span { color: var(--muted); font-size: 13px; }
.list-stack article a { color: var(--success); font-weight: 800; }
.endpoint-note { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.complaint-list { display: grid; gap: 14px; }
.complaint-list > article { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; border: 1px solid var(--line); border-radius: 11px; }
.complaint-copy > div { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 800; }
.complaint-copy h2 { margin: 10px 0 5px; font: 800 20px var(--font-display); }
.complaint-copy p { margin: 0; }
.complaint-copy small { color: var(--muted); }
.complaint-actions { display: grid; gap: 8px; }
.complaint-actions button { background: var(--deep); color: #fff; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; margin-top: 50px; }
  .hero-note { max-width: 520px; }
  .network-options { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .console-sidebar { transform: translateX(-105%); z-index: 40; transition: transform .2s ease; }
  .console-shell.menu-open .console-sidebar { transform: translateX(0); }
  .console-main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .console-content { width: min(100% - 32px, 1320px); }
}

@media (max-width: 680px) {
  .site-header { min-height: 74px; }
  .site-header .wordmark > span:last-child { display: none; }
  .site-header nav a { padding: 8px; font-size: 13px; }
  .hero h1 { font-size: clamp(48px, 17vw, 76px); }
  .channel-banner, .section-heading, .site-footer, .page-heading { align-items: flex-start; flex-direction: column; }
  .purchase-section { width: calc(100% - 20px); padding: 25px 17px; }
  .network-options, .form-grid, .track-card dl, .metric-grid, .detail-grid, .settings-grid, .complaint-list > article { grid-template-columns: 1fr; }
  .network-option { min-height: 92px; }
  .payment-state { padding: 30px 20px; }
  .search-form > div { display: grid; gap: 8px; }
  .search-form input, .search-form button { border-radius: 9px; }
  .whatsapp-trigger span:last-child { display: none; }
  .filter-bar { grid-template-columns: 1fr; }
  .console-topbar { padding: 0 18px; }
  .console-content { padding-top: 28px; }
  .detail-list div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
