/* =====================================================
   SwiftAirtime.com — 2026 rebuild. Mobile-first, responsive.
   Brand: deep blue #33639c (kept from old site), MTN yellow, Airtel red.
   ===================================================== */

:root {
  --brand: #33639c;
  --brand-dark: #244a77;
  --brand-light: #e8eef7;
  --mtn: #ffcb05;
  --mtn-text: #1a1a1a;
  --airtel: #e40000;
  --ok: #1a7f37;
  --warn: #b45309;
  --err: #b91c1c;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); }
img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 3px solid var(--brand); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; }
.logo { height: 52px; width: auto; display: block; }
.tagline { margin: 0; color: var(--brand); font-weight: 600; font-size: .95rem; }
.clocks { margin-left: auto; display: flex; gap: 12px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.clock b { color: var(--brand); font-weight: 600; display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }

.site-nav { background: var(--brand); }
.nav-inner { display: flex; flex-wrap: wrap; }
.site-nav a {
  color: #fff; text-decoration: none; padding: 10px 14px; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { background: var(--brand-dark); }

.announcement {
  background: #fff8e1; border: 1px solid #f0d264; color: #7a5c00;
  padding: 10px 14px; margin-top: 10px; border-radius: var(--radius); font-weight: 500;
}
.maintenance {
  background: #fde8e8; border: 1px solid #f5b5b5; color: var(--err);
  padding: 10px 14px; margin-top: 10px; border-radius: var(--radius); font-weight: 600;
}

/* ---------- Layout ---------- */
main.wrap { padding: 22px 16px 40px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 20px;
}
h1 { font-size: 1.5rem; color: var(--brand-dark); margin: 0 0 8px; }
h2 { font-size: 1.15rem; color: var(--brand-dark); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Flow steps graphic ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 14px 0; }
.flow-step {
  flex: 1 1 150px; background: var(--brand-light); border: 1px solid #c7d6ea;
  border-radius: var(--radius); padding: 12px; text-align: center; position: relative;
}
.flow-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 700; margin-bottom: 6px;
}
.flow-step.done { background: #e7f6ec; border-color: #b5dfc2; }
.flow-step.done .num { background: var(--ok); }
.flow-step p { margin: 0; font-size: .88rem; font-weight: 500; }
.flow-arrow { align-self: center; color: var(--brand); font-size: 1.3rem; font-weight: 700; }

/* ---------- Price guide ---------- */
.price-guide { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-guide th, .price-guide td { padding: 7px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.price-guide th { color: var(--brand-dark); }
.fx-note { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* ---------- Voucher grid ---------- */
.network-section { margin-bottom: 26px; }
.network-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.network-head img { height: 44px; width: auto; border-radius: 6px; }
.voucher-groups { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .voucher-groups { grid-template-columns: 1fr 1fr; } }

.voucher-group { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.voucher-group h3 { margin: 0 0 10px; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.voucher-list { display: flex; flex-direction: column; gap: 8px; }

.voucher-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  border: 0; border-radius: 8px; padding: 12px 14px; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-align: left; transition: transform .06s ease, filter .15s ease;
}
.voucher-btn:hover { filter: brightness(.94); }
.voucher-btn:active { transform: scale(.985); }
.voucher-btn .usd { font-size: .85rem; font-weight: 500; opacity: .85; }
.voucher-btn .detail { display: block; font-size: .78rem; font-weight: 400; opacity: .8; }
.voucher-btn.mtn { background: var(--mtn); color: var(--mtn-text); }
.voucher-btn.air { background: var(--airtel); color: #fff; }

/* ---------- Forms ---------- */
form.std label { display: block; font-weight: 600; margin: 14px 0 4px; }
form.std input[type=text], form.std input[type=email], form.std input[type=password],
form.std input[type=number], form.std select, form.std textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 1rem; background: #fff;
}
form.std input:focus, form.std select:focus, form.std textarea:focus {
  outline: 2px solid var(--brand); border-color: var(--brand);
}
.field-msg { font-size: .85rem; margin-top: 4px; color: var(--muted); min-height: 1.2em; }
.field-msg.ok { color: var(--ok); }
.field-msg.err { color: var(--err); }

.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; margin-top: 16px;
}
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: #e5e7eb; color: var(--text); }
.btn.danger { background: var(--err); }
.btn.paypal { background: #ffc439; color: #111; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-weight: 500; }
.alert.ok { background: #e7f6ec; color: var(--ok); border: 1px solid #b5dfc2; }
.alert.err { background: #fde8e8; color: var(--err); border: 1px solid #f5b5b5; }
.alert.warn { background: #fff8e1; color: var(--warn); border: 1px solid #f0d264; }

/* ---------- Confirmation / detail tables ---------- */
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td { padding: 9px 10px; border-bottom: 1px solid #eef1f4; text-align: left; vertical-align: top; }
.detail-table th { width: 42%; color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ---------- Top-up progress ---------- */
.spinner {
  width: 46px; height: 46px; border: 5px solid var(--brand-light);
  border-top-color: var(--brand); border-radius: 50%; margin: 14px auto;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.topup-done { color: var(--ok); font-size: 1.05rem; }
.topup-failed { color: var(--warn); }
.topup-pending { color: var(--muted); }

/* ---------- Data tables (admin/account) ---------- */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { background: var(--brand-light); color: var(--brand-dark); text-align: left; padding: 8px 10px; }
table.data td { padding: 8px 10px; border-bottom: 1px solid #eef1f4; }
table.data tr:hover td { background: #fafbfd; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge.ok { background: #e7f6ec; color: var(--ok); }
.badge.err { background: #fde8e8; color: var(--err); }
.badge.warn { background: #fff8e1; color: var(--warn); }
.badge.info { background: var(--brand-light); color: var(--brand-dark); }

/* ---------- Admin layout ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .admin-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: center; }
.stat .big { font-size: 1.7rem; font-weight: 700; color: var(--brand-dark); }
.stat .label { color: var(--muted); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark); color: #d7e2f0; padding: 22px 0; margin-top: 30px;
  font-size: .88rem; text-align: center;
}
.site-footer a { color: #fff; }
