@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #0f1a2b;
  --ink-2: #33415c;
  --muted: #6b7a90;
  --line: #e3e8ef;
  --bg: #f4f6f9;
  --card: #ffffff;
  --brand: #0d7a5f;
  --brand-2: #0a5f4a;
  --brand-soft: #e3f4ee;
  --accent: #ffb703;
  --danger: #c62828;
  --danger-soft: #fdecea;
  --warn-soft: #fff6dd;
  --mtn: #ffcb05;
  --telecel: #e30613;
  --at: #0a4ea3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 26, 43, .06), 0 6px 20px rgba(15, 26, 43, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hide { display: none !important; }

/* Header */
.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: #cfd8e6; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a.on { background: rgba(255, 255, 255, .1); color: #fff; }

.notice { background: var(--accent); color: var(--ink); font-weight: 600; font-size: 14px; text-align: center; padding: 8px 16px; }

.hero { background: var(--ink); color: #fff; padding: 28px 0 70px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(26px, 6vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.hero p { margin: 0; color: #b9c4d6; max-width: 560px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.pill.gold { background: var(--accent); color: var(--ink); }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.lift { margin-top: -48px; }
.card h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink);
  color: #fff; font-size: 12px; font-weight: 700; margin-right: 8px; vertical-align: 2px; }
.stack > * + * { margin-top: 16px; }

/* Network chooser */
.nets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.net { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 8px; cursor: pointer;
  font-weight: 800; font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: .15s; }
.net .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.net[data-n="MTN"] .dot { background: var(--mtn); color: var(--ink); }
.net[data-n="Telecel"] .dot { background: var(--telecel); }
.net[data-n="AT"] .dot { background: var(--at); }
.net.on { border-color: var(--ink); background: #f8fafc; box-shadow: inset 0 0 0 1px var(--ink); }

/* Bundles */
.bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bundle { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; cursor: pointer; text-align: left; transition: .15s; }
.bundle:hover { border-color: #c4cdd9; }
.bundle .size { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.bundle .val { font-size: 12px; color: var(--muted); }
.bundle .price { margin-top: 8px; font-weight: 700; color: var(--brand); }
.bundle .was { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 4px; font-weight: 500; }
.bundle.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.empty { color: var(--muted); font-size: 14px; padding: 18px; text-align: center; border: 2px dashed var(--line); border-radius: 14px; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field + .field { margin-top: 14px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; outline: none; transition: .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 122, 95, .15); }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hint.bad { color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
  padding: 12px 18px; font-weight: 700; cursor: pointer; background: var(--ink); color: #fff; transition: .15s; }
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.go { background: var(--brand); width: 100%; padding: 15px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn.red { background: var(--danger); }
.btn.wa { background: #1fa855; }

.summary { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; }
.summary .total { font-weight: 800; font-size: 18px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.alert.bad { background: var(--danger-soft); color: #8e1b1b; }
.alert.warn { background: var(--warn-soft); color: #6b4f00; }
.alert.good { background: var(--brand-soft); color: var(--brand-2); }

/* Layout */
.grid2 { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1.4fr 1fr; align-items: start; } .sticky { position: sticky; top: 16px; } }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0; }
.trust div { background: #fff; border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.trust b { display: block; color: var(--ink); }

/* Status badges */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef1f5; color: var(--ink-2); white-space: nowrap; }
.badge.delivered { background: var(--brand-soft); color: var(--brand-2); }
.badge.failed, .badge.underpaid { background: var(--danger-soft); color: var(--danger); }
.badge.paid, .badge.processing { background: #e6efff; color: #1d4ed8; }
.badge.pending { background: var(--warn-soft); color: #8a6200; }
.badge.refunded, .badge.cancelled, .badge.blocked { background: #eef1f5; color: var(--muted); }
.badge.approved { background: var(--brand-soft); color: var(--brand-2); }

/* Tables */
.tablewrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
table input, table select { padding: 7px 9px; border-radius: 8px; min-width: 70px; }
table select { min-width: 100px; }

/* Tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 16px; }
.tab { border: 0; background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); }
.tab.on { background: var(--ink); color: #fff; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bars .b i { display: block; width: 100%; max-width: 30px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bars .b span { font-size: 10px; color: var(--muted); }

/* Tracking */
.timeline { display: flex; gap: 0; margin: 18px 0 6px; }
.timeline .t { flex: 1; text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; position: relative; }
.timeline .t::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--line); margin: 0 auto 6px; position: relative; z-index: 1; }
.timeline .t::after { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline .t:first-child::after { display: none; }
.timeline .t.done { color: var(--brand); }
.timeline .t.done::before, .timeline .t.done::after { background: var(--brand); }
.timeline .t.bad { color: var(--danger); }
.timeline .t.bad::before { background: var(--danger); }

.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 16px 40px; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 20; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.mt { margin-top: 16px; }
.center { text-align: center; }
.narrow { max-width: 440px; margin: 0 auto; }
.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: s .7s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .top .wrap { height: 56px; }
  .logo { font-size: 15px; white-space: nowrap; gap: 8px; }
  .logo-mark { width: 30px; height: 30px; font-size: 12px; }
  .nav { flex-wrap: nowrap; gap: 2px; }
  .nav a { padding: 6px 9px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 380px) { .logo .long { display: none; } }
td.profit { white-space: nowrap; font-size: 13px; }
