﻿/* ==========================================================================
   BUYACCTS4NAIJA - design system
   Palette: warm, slightly yellow-leaning greens on a soft cream background.
   ========================================================================== */

:root {
  --g-950:#0e2417;
  --g-900:#14331f;
  --g-800:#1c4a2b;
  --g-700:#256036;
  --g-600:#2f7d48;
  --g-500:#3a9a5c;
  --g-400:#57b477;
  --g-300:#86cea0;
  --g-200:#b9e4c7;
  --g-100:#dcf1e3;
  --g-50:#f0f8f2;

  --cream:#fbf8f1;
  --sand:#f4eee1;
  --amber:#dd9730;
  --amber-soft:#fbeed7;

  --ink:#15251b;
  --ink-2:#33473a;
  --muted:#6b8175;
  --line:#e3ebe4;
  --line-strong:#d3e0d7;
  --white:#fff;

  --danger:#c2452f;
  --danger-soft:#fbe6e1;
  --teal:#1f7068;
  --teal-soft:#ddf0ed;

  --radius-sm:8px;
  --radius:14px;
  --radius-lg:22px;
  --radius-pill:999px;

  --shadow-xs:0 1px 2px rgba(21,37,27,.06);
  --shadow-sm:0 2px 8px rgba(21,37,27,.06);
  --shadow:0 8px 24px rgba(21,37,27,.08);
  --shadow-lg:0 18px 48px rgba(21,37,27,.12);

  --container:1140px;
  --container-wide:1340px;
  --header-h:68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--g-700); text-decoration: none; }
a:hover { color: var(--g-600); }
img, svg { max-width: 100%; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--g-700); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------- layout */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: var(--container-wide); }
main.container { padding-top: 30px; padding-bottom: 56px; min-height: 60vh; }

.section { padding: 68px 0; }
.section--tight { padding: 44px 0; }
.section--sand { background: var(--sand); }
.section--green { background: linear-gradient(160deg, var(--g-800), var(--g-950)); color: var(--g-100); }
.section--green h2, .section--green h3 { color: #fff; }

.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/*
 * Two column pages set their ratio with the --split custom property, so a media
 * query can still collapse them. An inline grid-template-columns would win over
 * every media query and could never be undone on a phone.
 */
.grid--split { grid-template-columns: var(--split, 1fr 1fr); align-items: start; }

/*
 * Grid and flex children default to min-width:auto, which lets a wide table
 * push the whole track past the viewport. Pinning them to 0 keeps the overflow
 * inside .table-wrap, where it can scroll.
 */
.grid > *, .stack > *, .admin-shell > *, .grid--split > * { min-width: 0; }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; } .mb-2 { margin-bottom: 1.5rem; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-between { justify-content: space-between; }
.hidden { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--g-600); background: var(--g-50); border: 1px solid var(--g-100);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.section--green .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--g-200); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,248,241,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g-400), var(--g-700)); color: #fff;
  box-shadow: 0 4px 12px rgba(47,125,72,.28);
}
.brand__text { font-size: 1.02rem; letter-spacing: -.03em; white-space: nowrap; }
.brand__accent { color: var(--g-500); }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light .brand__accent { color: var(--g-300); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav__link {
  padding: 8px 13px; border-radius: var(--radius-pill);
  color: var(--ink-2); font-size: .92rem; font-weight: 550; white-space: nowrap;
}
.site-nav__link:hover { background: var(--g-50); color: var(--g-700); }
.site-nav__link.is-active { background: var(--g-100); color: var(--g-800); }
.site-nav__link--admin { color: var(--amber); }
.site-nav__link--admin.is-active { background: var(--amber-soft); color: #8a5a10; }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.balance-chip {
  display: flex; flex-direction: column; line-height: 1.15;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--g-50); border: 1px solid var(--g-100); color: var(--g-800);
}
.balance-chip:hover { background: var(--g-100); color: var(--g-900); }
.balance-chip__label { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.balance-chip__value { font-weight: 700; font-size: .95rem; }

.account-menu { position: relative; }
.account-menu__button {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 4px 10px 4px 4px; font: inherit; color: var(--ink);
}
.account-menu__button:hover { background: var(--g-50); border-color: var(--line); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g-400), var(--g-700)); color: #fff; font-weight: 700; font-size: .9rem;
}
.account-menu__name { font-weight: 600; font-size: .92rem; }
.account-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 70;
}
.account-menu.is-open .account-menu__panel { display: block; }
.account-menu__header { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu__header strong { display: block; font-size: .93rem; }
.account-menu__header small { color: var(--muted); font-size: .78rem; word-break: break-all; }
.account-menu__panel a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: .9rem;
}
.account-menu__panel a:hover { background: var(--g-50); color: var(--g-800); }
.account-menu__panel a.is-danger { color: var(--danger); }
.account-menu__panel a.is-danger:hover { background: var(--danger-soft); }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--ink); border-radius: 2px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  font: inherit; font-weight: 650; font-size: .94rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }

.btn--primary { background: linear-gradient(150deg, var(--g-500), var(--g-700)); color: #fff; box-shadow: 0 6px 18px rgba(47,125,72,.28); }
.btn--primary:hover:not(:disabled) { background: linear-gradient(150deg, var(--g-400), var(--g-600)); color: #fff; box-shadow: 0 10px 24px rgba(47,125,72,.32); }
.btn--soft { background: var(--g-50); color: var(--g-800); border-color: var(--g-100); }
.btn--soft:hover:not(:disabled) { background: var(--g-100); color: var(--g-900); }
.btn--ghost { background: #fff; color: var(--ink-2); border-color: var(--line-strong); }
.btn--ghost:hover:not(:disabled) { border-color: var(--g-300); color: var(--g-800); background: var(--g-50); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover:not(:disabled) { background: #a93a26; color: #fff; }
.btn--amber { background: var(--amber); color: #3b2704; }
.btn--amber:hover:not(:disabled) { background: #eaa942; }
.btn--on-dark { background: #fff; color: var(--g-800); }
.btn--on-dark:hover:not(:disabled) { background: var(--g-100); color: var(--g-900); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover:not(:disabled) { background: rgba(255,255,255,.1); color: #fff; }

.btn--sm { padding: 8px 15px; font-size: .87rem; }
.btn--xs { padding: 5px 11px; font-size: .8rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ cards */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); padding: 22px;
}
.card--flush { padding: 0; overflow-x: auto; overflow-y: hidden; }
.card--soft { background: var(--g-50); border-color: var(--g-100); }
.card__header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fff;
}
.card__header h2, .card__header h3 { margin: 0; font-size: 1rem; }
.card__body { padding: 22px; }
.card__footer { padding: 14px 22px; border-top: 1px solid var(--line); background: #fcfdfc; }

.section-heading { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-heading p { color: var(--muted); font-size: 1.02rem; }

/* ------------------------------------------------------------------ stats */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-xs);
}
.stat--accent { background: linear-gradient(155deg, var(--g-600), var(--g-800)); border-color: transparent; color: var(--g-100); }
.stat--accent .stat__label { color: var(--g-200); }
.stat--accent .stat__value { color: #fff; }
.stat__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.stat__value { font-size: 1.7rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.stat__hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.stat--accent .stat__hint { color: var(--g-200); }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 16px; }
.field__label { display: block; font-size: .86rem; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field__hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.field__error { font-size: .82rem; color: var(--danger); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #a5b5aa; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--g-400); box-shadow: 0 0 0 3px var(--g-100);
}
.input:disabled, .select:disabled { background: #f6f8f6; color: var(--muted); }
.textarea { min-height: 110px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b8175' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-prefix { position: relative; }
.input-prefix__label {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: .9rem; font-weight: 600; pointer-events: none;
}
.input-prefix .input { padding-left: 34px; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field-row--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field-row--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 860px) {
  .field-row--3, .field-row--4 { grid-template-columns: minmax(0,1fr); }
}
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: var(--ink-2); }
.checkbox input { margin-top: 3px; accent-color: var(--g-500); width: 16px; height: 16px; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: .86rem; font-weight: 650; color: var(--ink-2); padding: 0; margin-bottom: 10px; }

/* ----------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: .91rem; }
.table th {
  text-align: left; padding: 11px 16px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  background: #f8faf8; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfefc; }
.table__num { font-variant-numeric: tabular-nums; }
.table--compact td, .table--compact th { padding: 9px 12px; }
.table__actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ----------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 650; white-space: nowrap;
}
.badge--ok    { background: var(--g-100); color: var(--g-800); }
.badge--warn  { background: var(--amber-soft); color: #8a5a10; }
.badge--bad   { background: var(--danger-soft); color: var(--danger); }
.badge--info  { background: var(--teal-soft); color: var(--teal); }
.badge--muted { background: #eef2ee; color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  background: var(--g-50); border: 1px solid var(--g-100); border-radius: var(--radius-pill);
  font-size: .8rem; color: var(--g-800);
}

/* ----------------------------------------------------------------- alerts */

.alert {
  display: flex; align-items: flex-start; gap: 12px; justify-content: space-between;
  padding: 13px 18px; border-radius: var(--radius); margin-bottom: 18px;
  font-size: .92rem; border: 1px solid transparent;
}
.alert--ok    { background: var(--g-50); border-color: var(--g-200); color: var(--g-800); }
.alert--warn  { background: var(--amber-soft); border-color: #f0dcb4; color: #7d5210; }
.alert--bad   { background: var(--danger-soft); border-color: #f2cfc6; color: var(--danger); }
.alert--info  { background: var(--teal-soft); border-color: #c6e4e0; color: var(--teal); }
.alert__close {
  background: none; border: 0; cursor: pointer; color: inherit; opacity: .6;
  font-size: 1.3rem; line-height: 1; padding: 0 2px;
  min-width: 34px; min-height: 34px;
}
.alert__close:hover { opacity: 1; }

/* ------------------------------------------------------------ page header */

.page-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.page-header__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.page-header__subtitle { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.page-header__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }

/* ------------------------------------------------------------ empty state */

.empty-state {
  text-align: center; padding: 54px 24px; background: #fff;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty-state__icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--g-50); color: var(--g-500);
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 380px; margin: 0 auto 18px; }

/* ------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px;
  background: radial-gradient(60% 60% at 70% 20%, rgba(58,154,92,.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -140px; bottom: -180px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(221,151,48,.16), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; padding: 66px 0 78px; }
.hero h1 { color: var(--g-950); }
.hero h1 em { font-style: normal; color: var(--g-600); }
.hero__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 520px; margin-bottom: 26px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; list-style: none; }
.hero__points li { display: flex; align-items: center; gap: 7px; font-size: .9rem; color: var(--ink-2); font-weight: 550; }
.hero__points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--g-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23256036' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3 5 8.8l4.5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.hero__panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.hero__panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero__panel-head h3 { margin: 0; font-size: .95rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--g-600); font-weight: 650; }
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g-500);
  box-shadow: 0 0 0 0 rgba(58,154,92,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(58,154,92,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(58,154,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(58,154,92,0); }
}

.code-feed { display: flex; flex-direction: column; }
.code-feed__row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.code-feed__row:last-child { border-bottom: 0; }
.code-feed__icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--g-50); color: var(--g-600); font-size: .68rem; font-weight: 800; letter-spacing: -.02em;
}
.code-feed__meta { flex: 1; min-width: 0; }
.code-feed__name { font-weight: 620; font-size: .9rem; }
.code-feed__time { font-size: .76rem; color: var(--muted); }
.code-feed__code { font-family: var(--mono); font-size: 1rem; font-weight: 600; color: var(--g-700); letter-spacing: .06em; }

/* -------------------------------------------------------------- marketing */

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature__icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--g-50); color: var(--g-600); margin-bottom: 14px; border: 1px solid var(--g-100);
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--g-100); color: var(--g-800); font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 56px; right: -8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--g-200) 0 7px, transparent 7px 13px);
}

.service-chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.service-chip {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .89rem; font-weight: 560;
}
.service-chip__dot {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--g-50); color: var(--g-700); font-size: .7rem; font-weight: 800;
}

.pricing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
}
.pricing-card.is-featured { border-color: var(--g-400); box-shadow: var(--shadow); position: relative; }
.pricing-card__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #3b2704; font-size: .72rem; font-weight: 750;
  padding: 4px 14px; border-radius: var(--radius-pill); letter-spacing: .04em; text-transform: uppercase;
}
.pricing-card__price { font-size: 2.3rem; font-weight: 780; letter-spacing: -.04em; line-height: 1; margin: 10px 0 4px; }
.pricing-card__price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pricing-card ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.pricing-card li { display: flex; gap: 9px; padding: 6px 0; font-size: .92rem; color: var(--ink-2); }
.pricing-card li::before {
  content: ""; width: 17px; height: 17px; margin-top: 3px; flex: none; border-radius: 50%;
  background: var(--g-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23256036' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3 5 8.8l4.5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 620; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; color: var(--g-500); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.cta-band {
  background: linear-gradient(150deg, var(--g-700), var(--g-950));
  border-radius: var(--radius-lg); padding: 46px 40px; color: var(--g-100); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--g-200); max-width: 520px; margin: 0 auto 22px; }

/* ------------------------------------------------------------------ auth */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth__aside {
  background: linear-gradient(165deg, var(--g-700), var(--g-950));
  color: var(--g-100); padding: 46px 44px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth__aside h2 { color: #fff; font-size: 1.7rem; }
.auth__aside p { color: var(--g-200); font-size: .95rem; }
.auth__list { list-style: none; padding: 0; margin: 26px 0 0; }
.auth__list li { display: flex; gap: 11px; padding: 9px 0; font-size: .93rem; }
.auth__list li::before {
  content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%;
  background: rgba(255,255,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23b9e4c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3 5 8.8l4.5-5'/%3E%3C/svg%3E") center no-repeat;
}
.auth__main { display: grid; place-items: center; padding: 46px 24px; background: var(--cream); }
.auth__card { width: 100%; max-width: 400px; }
.auth__card .brand { margin-bottom: 24px; }
.auth__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .89rem; color: var(--muted); text-align: center; }

/* ----------------------------------------------------------------- number */

.order-picker { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.country-list { max-height: 560px; overflow-y: auto; }
.country-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit;
}
.country-row:hover { background: var(--g-50); }
.country-row.is-active { background: var(--g-50); box-shadow: inset 3px 0 0 var(--g-500); }
.country-row__flag { font-size: 1.15rem; line-height: 1; }
.country-row__name { flex: 1; font-size: .9rem; font-weight: 560; }
.country-row__stock { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.offer-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.offer-row:hover { background: #fcfefc; }
.offer-row.is-disabled { opacity: .5; cursor: not-allowed; }
.offer-row__main { flex: 1; min-width: 0; }
.offer-row__name { font-weight: 620; }
.offer-row__stock { font-size: .8rem; color: var(--muted); }
.offer-row__price { font-weight: 750; font-size: 1.02rem; color: var(--g-700); font-variant-numeric: tabular-nums; white-space: nowrap; }

.number-display {
  font-family: var(--mono); font-size: 1.7rem; font-weight: 600; letter-spacing: .04em; color: var(--g-800);
}
.code-display {
  font-family: var(--mono); font-size: 2rem; font-weight: 700; letter-spacing: .18em;
  color: var(--g-700); background: var(--g-50); border: 1px dashed var(--g-300);
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.sms-item { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.sms-item:last-child { border-bottom: 0; }
.sms-item__time { font-size: .76rem; color: var(--muted); }
.sms-item__text { font-size: .93rem; margin: 3px 0 0; word-break: break-word; }

/* ---------------------------------------------------------------- wallet */

.balance-card {
  background: linear-gradient(150deg, var(--g-600), var(--g-900));
  border-radius: var(--radius-lg); padding: 26px; color: var(--g-100);
  position: relative; overflow: hidden;
}
.balance-card::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.balance-card__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--g-200); }
.balance-card__amount { font-size: 2.6rem; font-weight: 780; letter-spacing: -.03em; color: #fff; line-height: 1.1; margin: 6px 0 4px; }
.balance-card__meta { font-size: .84rem; color: var(--g-200); }

.tx-amount { font-variant-numeric: tabular-nums; font-weight: 650; }
.tx-amount.is-credit { color: var(--g-600); }
.tx-amount.is-debit { color: var(--danger); }

.bank-detail { display: grid; gap: 10px; }
.bank-detail__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.bank-detail__row:last-child { border-bottom: 0; }
.bank-detail__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bank-detail__value { font-weight: 650; text-align: right; word-break: break-word; }

/* ----------------------------------------------------------------- misc */

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: .88rem; font-weight: 600;
}
.pagination a:hover { border-color: var(--g-400); color: var(--g-700); }
.pagination .is-current { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.pagination .is-disabled { color: #b9c4bd; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a {
  padding: 10px 15px; font-size: .91rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--g-700); }
.tabs a.is-active { color: var(--g-800); border-bottom-color: var(--g-500); }

.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: var(--mono); font-size: .84rem; }

.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }

details.dropdown { position: relative; }
details.dropdown summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
details.dropdown summary::-webkit-details-marker { display: none; }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px;
}
.dropdown__menu a, .dropdown__menu button {
  display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none;
  border-radius: var(--radius-sm); font: inherit; font-size: .89rem; color: var(--ink-2); cursor: pointer;
}
.dropdown__menu a:hover, .dropdown__menu button:hover { background: var(--g-50); color: var(--g-800); }
.dropdown__menu .is-danger { color: var(--danger); }
.dropdown__menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ------------------------------------------------------------------ prose */

.prose h2 { font-size: 1.12rem; margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--ink-2); font-size: .95rem; }
.prose li { margin-bottom: 7px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.prose strong { color: var(--ink); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--g-950); color: var(--g-200); padding: 54px 0 26px; margin-top: 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.site-footer a { display: inline-block; padding: 5px 0; }
.site-footer__brand p { color: var(--g-300); font-size: .9rem; margin-top: 14px; max-width: 320px; }
.site-footer__col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer__col a { display: block; padding: 4px 0; color: var(--g-300); font-size: .9rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--g-400);
}
.site-footer__bottom p { margin: 0; }
.site-footer__note { max-width: 520px; }

/* ----------------------------------------------------------------- admin */

.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-nav {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; position: sticky; top: calc(var(--header-h) + 18px);
}
.admin-nav h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 10px 6px; margin: 0; }
.admin-nav a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: .9rem; font-weight: 550;
}
.admin-nav a:hover { background: var(--g-50); color: var(--g-800); }
.admin-nav a.is-active { background: var(--g-100); color: var(--g-800); font-weight: 650; }
.admin-nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g-300); flex: none; }
.admin-nav a.is-active .admin-nav__dot { background: var(--g-500); }

.admin-unlock { max-width: 420px; margin: 60px auto; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 56px; }
  .hero__panel { max-width: 520px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; display: none; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 11px 14px; }
  .nav-toggle { display: block; }
  .site-header__actions { margin-left: 0; }
  .account-menu__name { display: none; }
  .account-menu__panel { max-width: calc(100vw - 24px); }
  .order-picker { grid-template-columns: 1fr; }
  .country-list { max-height: 260px; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-nav h4 { width: 100%; }
  .admin-nav a { flex: 1 1 auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }

  /* Two column pages give up their ratio and stack. */
  .grid--split { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 780px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .cta-band { padding: 34px 22px; }
  .section { padding: 48px 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .balance-chip { display: none; }
  .btn--lg { width: 100%; }
  .hero__points { gap: 6px 16px; }

  /* Headers stack so the title keeps the full width. */
  .page-header { align-items: flex-start; }
  .page-header__actions { width: 100%; }

  /* Tables breathe less, and the admin list scrolls instead of stretching. */
  .card__header { flex-wrap: wrap; }
  .card__header, .card__body, .card__footer, .card { padding-left: 16px; padding-right: 16px; }
  .table td, .table th { padding-left: 12px; padding-right: 12px; }
  .admin-shell { gap: 18px; }

  /* Header actions wrap instead of pushing the whole page wide. */
  .site-header__actions { flex-wrap: wrap; justify-content: flex-end; }

  /* Long button labels wrap rather than force a sideways scroll. */
  .btn { white-space: normal; }
  .card .btn { max-width: 100%; }

  /* Inline text links get a usable tap height. */
  .site-footer a { display: inline-block; padding: 11px 0; }
  a.small { display: inline-block; padding: 8px 0; }
}

/*
 * Touch sized targets. Keyed off viewport width as well as pointer type,
 * because a narrow window is a phone even when the pointer reports "fine".
 */
@media (hover: none), (pointer: coarse), (max-width: 780px) {
  .btn, .btn--lg, button, input[type="submit"] { min-height: 44px; }
  .btn--sm { min-height: 40px; }
  .btn--xs { min-height: 36px; padding-left: 14px; padding-right: 14px; }
  .alert__close { width: 44px; height: 44px; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .admin-nav a { padding: 12px 11px; }
  .site-nav__link { padding: 13px 14px; }
  .site-footer a { display: inline-block; padding: 6px 0; }
  .page-header__actions .btn { width: 100%; }
  .badge { min-height: 24px; }
}

/*
 * The header row cannot hold the brand, the menu button and the account
 * actions at once below roughly 560px. Give the actions their own full width
 * row instead of squeezing them until long labels break onto two lines.
 */
@media (max-width: 560px) {
  :root { --header-h: 116px; }
  .site-header__inner {
    min-height: var(--header-h);
    height: auto;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-header__actions { width: 100%; margin-left: 0; justify-content: stretch; }
  .site-header__actions .btn { flex: 1 1 auto; }
  .account-menu { flex: 1 1 auto; }
  .account-menu__button { width: 100%; justify-content: center; }
  .account-menu__panel { left: 0; right: 0; min-width: 0; }
}

/* Very narrow phones: shed the last of the chrome padding. */
@media (max-width: 420px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .card, .card__body { padding-left: 14px; padding-right: 14px; }
  .page-header__title { font-size: 1.4rem; }
  .btn--block { width: 100%; }
  .site-header__actions .btn { padding-left: 10px; padding-right: 10px; }
}

/* ------------------------------------------------ whatsapp contact button */
  .wa-widget {
    position: fixed;
    left: calc(18px + env(safe-area-inset-left, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    height: 54px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .38);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: wa-in .5s cubic-bezier(.22, 1, .36, 1) .9s both;
  }
  .wa-widget:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, .46); }
  .wa-widget:focus-visible { outline: 3px solid var(--g-800); outline-offset: 3px; }
  .wa-widget__icon { width: 26px; height: 26px; flex: none; }
  .wa-widget__label {
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
    font-size: .9rem;
    opacity: 0;
    transition: max-width .24s ease, margin-left .24s ease, opacity .2s ease;
  }
  .wa-widget:hover .wa-widget__label,
  .wa-widget:focus-visible .wa-widget__label { max-width: 190px; margin-left: 10px; opacity: 1; }
  @keyframes wa-in {
    from { opacity: 0; transform: translateY(14px) scale(.9); }
    to   { opacity: 1; transform: none; }
  }

  /* ------------------------------------------------------------- preloader */
  .preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--cream);
    background-image: radial-gradient(122% 92% at 50% 6%, var(--white) 0%, var(--g-50) 46%, var(--g-100) 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease, visibility .45s;
  }
  html.is-preloading .preloader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: preloader-timeout 1ms linear 9s forwards;
  }
  .preloader__stage {
    width: min(76vw, calc(44vh * 1.2909), 380px);
    display: grid;
    justify-items: center;
    gap: clamp(12px, 2.4vh, 20px);
  }
  .preloader__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1096 / 849;
  }
  .preloader__logo {
    position: absolute;
    inset: 13%;
    width: 74%;
    height: 74%;
    object-fit: contain;
    opacity: 0;
  }
  .preloader__trace {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .preloader__trace-path {
    fill: none;
    stroke: var(--g-400);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
  }
  .preloader__wordmark {
    margin: 0;
    font-size: clamp(.72rem, 2.5vw, .92rem);
    font-weight: 700;
    letter-spacing: .22em;
    text-indent: .22em;
    color: var(--ink-2);
    opacity: 0;
  }
  .preloader__wordmark span { color: var(--g-600); }
  .preloader__bar {
    width: min(220px, 60%);
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--g-100);
    overflow: hidden;
  }
  .preloader__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--g-700), var(--g-400));
    transform: scaleX(0);
    transform-origin: left center;
  }
  html.is-preloading .preloader__logo {
    animation: preloader-mark 1.15s cubic-bezier(.22, 1, .36, 1) both;
  }
  html.is-preloading .preloader__trace-path {
    animation: preloader-trace 1.55s cubic-bezier(.62, .05, .3, 1) .12s forwards;
  }
  html.is-preloading .preloader__wordmark {
    animation: preloader-word .8s ease-out .52s both;
  }
  html.is-preloading .preloader__bar span {
    animation: preloader-fill 1.9s cubic-bezier(.4, 0, .2, 1) .1s forwards;
  }
  @keyframes preloader-mark {
    from { opacity: 0; transform: translateY(10px) scale(.965); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes preloader-trace {
    to { stroke-dashoffset: 0; }
  }
  @keyframes preloader-word {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes preloader-fill {
    to { transform: scaleX(1); }
  }
  @keyframes preloader-timeout {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
  }
  @supports (height: 1dvh) {
    .preloader__stage { width: min(76vw, calc(44dvh * 1.2909), 380px); }
  }
  @media (max-height: 420px) {
    .preloader__stage { width: min(70vw, calc(38vh * 1.2909), 320px); gap: 10px; }
  }
  @media (max-height: 320px) {
    .preloader__stage { width: min(62vw, calc(34vh * 1.2909), 260px); gap: 8px; }
    .preloader__wordmark { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .preloader { transition: none; }
    html.is-preloading .preloader { animation: preloader-timeout 1ms linear 9s forwards; }
    .preloader__logo, .preloader__wordmark { opacity: 1; transform: none; animation: none !important; }
    .preloader__trace-path { stroke-dashoffset: 0; animation: none !important; }
    .preloader__bar span { transform: scaleX(1); animation: none !important; }
    .wa-widget { animation: none; }
  }

  @media print {
    .site-header, .site-footer, .btn, .admin-nav, .preloader, .wa-widget { display: none !important; }
    body { background: #fff; }
  }
