/* ==========================================================================
   MWST Membership Management System — Design System
   Muslim Welfare Society of Tanzania
   Imani • Huruma • Huduma • Maendeleo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS

   Rangi rasmi za MUWESTA:
     Emerald Green  #0F8A5F  — rangi kuu; vitufe, menyu, vichwa
     Royal Blue     #1B3B6F  — uaminifu; header, footer, sehemu za taarifa
     Gold           #D4AF37  — hadhi; aikoni, mipaka, Tanzanite
     White          #FFFFFF  — mandharinyuma kuu
     Dark Charcoal  #17202A  — maandishi
     Soft Green     #F1F8F5  — sehemu za huduma na faida za wanachama

   Ngazi nyingine (--g-400, --g-700 n.k.) zimehesabiwa kuizunguka rangi
   kuu ili vivuli, hover na mipaka vibaki na uhusiano ule ule.
   -------------------------------------------------------------------------- */
:root {
  /* Brand — Kijani (Imani na Maendeleo) */
  --g-950: #04241a;
  --g-900: #063122;
  --g-800: #0a422d;
  --g-700: #0c563a;
  --g-600: #0e6f4a;
  --g-500: #0f8a5f;
  --g-400: #17a674;
  --g-300: #48c295;
  --g-100: #d3f0e3;
  --g-50:  #f1f8f5;

  /* Brand — Bluu (Uaminifu) */
  --n-900: #0d2350;
  --n-800: #14305c;
  --n-700: #1b3b6f;
  --n-600: #2a5090;
  --n-400: #5b82c4;
  --n-100: #dde6f5;
  --n-50:  #eef3fb;

  /* Brand — Dhahabu (Ukarimu na Mafanikio) */
  --gold-700: #a9812a;
  --gold-600: #c19a2e;
  --gold-500: #d4af37;
  --gold-400: #e3c463;
  --gold-100: #faf1d6;

  /* Neutrals */
  --ink:        #17202a;
  --ink-2:      #3a4552;
  --muted:      #64748b;
  --muted-2:    #94a3b8;
  --line:       #e2e8f0;
  --line-soft:  #eef2f6;
  --surface:    #ffffff;
  --canvas:     #f4f6f9;

  /* Semantic */
  --ok:      #0f8a5f;
  --ok-bg:   #e7f6ed;
  --warn:    #d97706;
  --warn-bg: #fef3e2;
  --danger:  #dc2626;
  --danger-bg:#fdeaea;
  --info:    #1b3b6f;
  --info-bg: #e8effa;

  /* Category colours (Bronze / Silver / Gold / Diamond / Founder) */
  --cat-bronze:   #b45309;
  --cat-bronze-bg:#fdf0e3;
  --cat-silver:   #64748b;
  --cat-silver-bg:#eef2f6;
  --cat-gold:     #a9812a;
  --cat-gold-bg:  #faf1d6;
  --cat-diamond: #6d28d9;
  --cat-diamond-bg:#f0eaff;
  --cat-founder:  #0d5433;
  --cat-founder-bg:#e0f2e8;
  --cat-tanzanite:    #2f4f9e;
  --cat-tanzanite-bg: #e8edfa;

  /* Chart palette — derived from brand, ordered for legibility */
  --c1: #12864a;  --c2: #1b3b6f;  --c3: #d4af37;  --c4: #6d28d9;
  --c5: #0891b2;  --c6: #dc2626;  --c7: #ea580c;  --c8: #4cbd83;

  /* Shape & depth */
  --r-sm: 8px;  --r: 12px;  --r-lg: 16px;  --r-xl: 20px;  --r-full: 999px;
  --sh-1: 0 1px 2px rgba(15,23,42,.06);
  --sh-2: 0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --sh-3: 0 4px 16px rgba(15,23,42,.08);
  --sh-4: 0 12px 32px rgba(15,23,42,.12);

  /* Layout */
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 68px;
  --gap: 16px;

  /* Type */
  --font-ui: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Amiri', 'Noto Naskh Arabic', serif;
  --font-num: 'Inter', sans-serif;
}

/* Dark mode — Dashibodi Kuu ina toggle ya jua/mwezi */
[data-theme="dark"] {
  --ink: #e6edf3; --ink-2: #c3ced9; --muted: #8b9aa9; --muted-2: #6b7a8a;
  --line: #22303c; --line-soft: #1b2733;
  --surface: #101a24; --canvas: #0a121a;
  --g-50: #0d2a1c; --g-100: #123a26;
  --n-50: #101c30; --n-100: #16294a;
  --ok-bg:#0f2e1f; --warn-bg:#33240d; --danger-bg:#331616; --info-bg:#132540;
  --cat-bronze-bg:#33240d; --cat-silver-bg:#1b2733; --cat-gold-bg:#332a0d;
  --cat-diamond-bg:#221436; --cat-founder-bg:#0d2a1c;
  --cat-tanzanite: #9db4ec; --cat-tanzanite-bg:#16203d;
  --sh-2: 0 1px 3px rgba(0,0,0,.4);
  --sh-3: 0 4px 16px rgba(0,0,0,.45);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6,p,ul,ol,figure { margin: 0; padding: 0; }
ul,ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--g-500);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.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;
}

/* Numeric alignment — muhimu kwa kolamu za fedha */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* --------------------------------------------------------------------------
   3. APP SHELL
   -------------------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  transition: margin-left .22s ease;
}
.app.is-collapsed .main { margin-left: var(--sidebar-w-collapsed); }

.page {
  flex: 1;
  padding: 20px 22px 28px;
}

/* --------------------------------------------------------------------------
   4. SIDEBAR  (System C — kijani giza + kadi ya aya)
   -------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--g-950);
  color: #cfe3d7;
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: width .22s ease, transform .22s ease;
}

.sidebar__brand {
  padding: 14px 16px 12px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar__mark { width: 44px; height: 44px; flex: none; }
.sidebar__wordmark {
  font-size: 23px; font-weight: 800; letter-spacing: .06em;
  color: var(--gold-500); line-height: 1;
}
.sidebar__org {
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #a9c9b6; text-align: center; line-height: 1.5;
}
.sidebar__tagline {
  font-size: 8.5px; color: var(--gold-400); text-align: center;
  line-height: 1.55; font-style: italic; opacity: .85;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.16) transparent;
}
.sidebar__nav::-webkit-scrollbar { width: 5px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }

.nav-section {
  padding: 16px 12px 7px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.36);
}

.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: #cfe3d7;
  font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.is-active { background: var(--g-500); color: #fff; font-weight: 600; }
.nav-link.is-active .nav-link__icon { opacity: 1; }
.nav-link__icon { width: 18px; height: 18px; flex: none; opacity: .78; }
.nav-link__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link__badge {
  flex: none; min-width: 20px; height: 19px; padding: 0 6px;
  border-radius: var(--r-full); background: var(--gold-500); color: var(--g-950);
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
}
.nav-link__caret { width: 14px; height: 14px; flex: none; opacity: .5; transition: transform .18s; }
.nav-group.is-open > .nav-link .nav-link__caret { transform: rotate(90deg); }

/* Sub-menu — System D pattern */
.nav-sub { max-height: 0; overflow: hidden; transition: max-height .24s ease; }
.nav-group.is-open .nav-sub { max-height: 420px; }
.nav-sub__link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 42px;
  font-size: 12.5px; color: rgba(255,255,255,.62);
  border-radius: var(--r-sm);
}
.nav-sub__link::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .55; flex: none;
  margin-left: -12px;
}
.nav-sub__link:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-sub__link.is-active { color: var(--g-300); font-weight: 600; }

/* Kadi ya aya ya Qur'an */
.verse-card {
  margin: 14px 2px 4px; padding: 12px 10px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: var(--r);
  background: rgba(212,175,55,.06);
  text-align: center;
}
.verse-card__ar {
  font-family: var(--font-ar);
  font-size: 16px; line-height: 1.9; color: var(--gold-400);
  direction: rtl; margin-bottom: 8px;
}
.verse-card__sw { font-size: 11.5px; line-height: 1.6; color: #cfe3d7; }
.verse-card__ref { font-size: 10.5px; color: var(--gold-500); margin-top: 6px; font-weight: 600; }

/* Kadi ya msaada (System A/D pattern) */
.support-card {
  margin: 0 0 6px; padding: 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r);
  background: rgba(255,255,255,.045);
}
.support-card__title { font-size: 12.5px; font-weight: 700; color: #fff; }
.support-card__sub { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }
.support-card__link {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; color: #fff;
}
.support-card__link:hover { background: rgba(255,255,255,.1); }

.sidebar__foot { flex: none; border-top: 1px solid rgba(255,255,255,.07); padding: 6px 10px 10px; }

/* Collapsed state */
.app.is-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
.app.is-collapsed .sidebar__wordmark,
.app.is-collapsed .sidebar__org,
.app.is-collapsed .sidebar__tagline,
.app.is-collapsed .nav-link__text,
.app.is-collapsed .nav-link__caret,
.app.is-collapsed .nav-section,
.app.is-collapsed .nav-sub,
.app.is-collapsed .verse-card,
.app.is-collapsed .support-card { display: none; }
.app.is-collapsed .nav-link { justify-content: center; padding: 11px; }
.app.is-collapsed .nav-link__badge {
  position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; font-size: 9px;
}

/* --------------------------------------------------------------------------
   5. TOPBAR
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--muted);
  position: relative;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--canvas); color: var(--ink); }
.icon-btn__dot {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--surface);
}

.topbar__title { min-width: 0; }
.topbar__title h1 {
  font-size: 19px; font-weight: 700; color: var(--g-700);
  letter-spacing: -.01em; line-height: 1.25;
}
.topbar__title p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.topbar__spacer { flex: 1; }

.search {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 13px;
  min-width: 240px; max-width: 380px; flex: 1;
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--canvas);
  color: var(--muted);
}
.search:focus-within { border-color: var(--g-400); background: var(--surface); }
.search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 13px; color: var(--ink);
}
.search input::placeholder { color: var(--muted-2); }

.datepill {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2);
  font-size: 12.5px; font-weight: 500;
}
.datepill__day { font-weight: 600; color: var(--ink); }
.datepill__time { font-size: 11.5px; color: var(--muted); }

.userchip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: var(--r-full); }
.userchip:hover { background: var(--canvas); }
.userchip__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--g-100); color: var(--g-700);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  overflow: hidden; border: 2px solid var(--g-300);
}
.userchip__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.userchip__role { font-size: 11px; color: var(--muted); line-height: 1.3; }

.langpick {
  position: relative; display: flex; align-items: center; gap: 5px;
  /* 36px inalingana na `.btn--nav` — vitufe vya header vyote vinakuwa
     na urefu mmoja, jambo linalofanya mstari uonekane sawa. */
  height: 34px; padding: 0 7px 0 9px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); cursor: pointer;
  transition: border-color .18s, background .18s;
}
.langpick:hover { background: var(--canvas); }
.langpick:focus-within { border-color: var(--g-500); box-shadow: 0 0 0 3px rgba(18,134,74,.12); }
.langpick > svg:first-child { color: var(--g-500); flex: none; }
/* Droplist halisi — mwonekano wa mfumo umeondolewa ili ilingane na header */
.langpick select {
  appearance: none; -webkit-appearance: none;
  border: 0; background: none; outline: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); padding-right: 2px;
}
.langpick__caret { color: var(--muted); flex: none; pointer-events: none; }

/* --------------------------------------------------------------------------
   6. PAGE HEADER & BREADCRUMB
   -------------------------------------------------------------------------- */
.pagehead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.pagehead h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.pagehead p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pagehead__actions { display: flex; align-items: center; gap: 10px; }

.crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.crumb a:hover { color: var(--g-600); }
.crumb__sep { opacity: .5; }

/* --------------------------------------------------------------------------
   7. GRID
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.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)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.grid--2-1 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.grid--1-2 { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.grid--1-1-1 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--2-2-1 { grid-template-columns: minmax(0,2fr) minmax(0,2fr) minmax(0,1.3fr); }
.stack { display: grid; gap: var(--gap); }
.mt { margin-top: var(--gap); }

/* --------------------------------------------------------------------------
   8. CARD
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  display: flex; flex-direction: column;
  min-width: 0;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 17px 12px;
}
.card__title { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.card__title span { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.card__body { padding: 0 17px 16px; flex: 1; min-width: 0; }
.card__body--flush { padding: 0; }
.card__foot {
  padding: 11px 17px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}

.link-more {
  font-size: 12px; font-weight: 600; color: var(--g-600);
  display: inline-flex; align-items: center; gap: 5px;
}
.link-more:hover { color: var(--g-500); gap: 8px; transition: gap .15s; }

/* --------------------------------------------------------------------------
   9. KPI CARD
   -------------------------------------------------------------------------- */
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: 15px 16px;
  display: flex; align-items: flex-start; gap: 13px;
  min-width: 0;
}
.kpi__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%; display: grid; place-items: center;
}
.kpi__icon svg { width: 22px; height: 22px; }
.kpi__body { display: block; min-width: 0; flex: 1; }
.kpi__label {
  display: block;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.kpi__value {
  display: block;
  font-size: 23px; font-weight: 700; letter-spacing: -.025em;
  line-height: 1.2; margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.kpi__value--money { font-size: 19px; }
.kpi__meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11px; }
.kpi__delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.kpi__delta--up { color: var(--ok); }
.kpi__delta--down { color: var(--danger); }
.kpi__note { color: var(--muted); }

/* Icon tints */
.tint-green   { background: var(--g-50);   color: var(--g-600); }
.tint-navy    { background: var(--n-50);   color: var(--n-700); }
.tint-gold    { background: var(--gold-100); color: var(--gold-700); }
.tint-purple  { background: #f0eaff;       color: #6d28d9; }
.tint-teal    { background: #e0f5f7;       color: #0891b2; }
.tint-red     { background: var(--danger-bg); color: var(--danger); }
.tint-orange  { background: #fdf0e3;       color: #c2410c; }

/* KPI yenye progress (Hifadhi, Asilimia ya Utekelezaji) */
.kpi__bar { display: block; height: 5px; border-radius: var(--r-full); background: var(--line); margin-top: 8px; overflow: hidden; }
.kpi__bar > i { display: block; height: 100%; border-radius: inherit; background: var(--g-500); }

/* --------------------------------------------------------------------------
   10. BADGES & PILLS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap;
}
.badge--ok      { background: var(--ok-bg);     color: var(--ok); }
.badge--warn    { background: var(--warn-bg);   color: var(--warn); }
.badge--danger  { background: var(--danger-bg); color: var(--danger); }
.badge--info    { background: var(--info-bg);   color: var(--info); }
.badge--muted   { background: var(--line-soft); color: var(--muted); }

.badge--bronze   { background: var(--cat-bronze-bg);   color: var(--cat-bronze); }
.badge--silver   { background: var(--cat-silver-bg);   color: var(--cat-silver); }
.badge--gold     { background: var(--cat-gold-bg);     color: var(--cat-gold); }
.badge--diamond { background: var(--cat-diamond-bg); color: var(--cat-diamond); }
.badge--founder  { background: var(--cat-founder-bg);  color: var(--cat-founder); }
/* Tanzanite — daraja la heshima. Rangi ya jiwe la Tanzanite (bluu-zambarau). */
.badge--tanzanite { background: var(--cat-tanzanite-bg); color: var(--cat-tanzanite); }
.tier--special    { position: relative; }
.tier--special::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; box-shadow: inset 0 0 0 1px rgba(27,59,111,.12);
}

/* --------------------------------------------------------------------------
   11. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--g-500); color: #fff; }
.btn--primary:hover { background: var(--g-600); }
.btn--gold { background: var(--gold-500); color: var(--g-950); }
.btn--gold:hover { background: var(--gold-600); }
.btn--navy { background: var(--n-700); color: #fff; }
.btn--navy:hover { background: var(--n-800); }
.btn--ghost { border-color: var(--line); color: var(--ink-2); background: var(--surface); }
.btn--ghost:hover { background: var(--canvas); border-color: var(--muted-2); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   12. TABLE
   -------------------------------------------------------------------------- */
.tablewrap { overflow-x: auto; }
.table { font-size: 12.5px; }
.table th {
  text-align: left; padding: 10px 14px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--canvas); }
.table .t-num { text-align: right; font-variant-numeric: tabular-nums; }
.table .t-name { font-weight: 600; color: var(--ink); }
.table .t-mono { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-2); }
.table__actions { display: flex; align-items: center; gap: 4px; }
.table__act {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 6px; color: var(--muted);
}
.table__act:hover { background: var(--g-50); color: var(--g-600); }
.table__act--danger:hover { background: var(--danger-bg); color: var(--danger); }

/* --------------------------------------------------------------------------
   13. LIST ROWS (Usajili wa Hivi Karibuni, Matangazo, Shughuli)
   -------------------------------------------------------------------------- */
.rowlist { display: flex; flex-direction: column; }
.rowlist__item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.rowlist__item:last-child { border-bottom: 0; }
.rowlist__avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--g-50); color: var(--g-600);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  overflow: hidden;
}
.rowlist__icon {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center;
}
.rowlist__icon svg { width: 17px; height: 17px; }
.rowlist__body { display: block; flex: 1; min-width: 0; }
.rowlist__title {
  display: block;
  font-size: 12.8px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rowlist__sub {
  display: block;
  font-size: 11.5px; color: var(--muted); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rowlist__meta { display: block; flex: none; text-align: right; font-size: 11px; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. QUICK ACTIONS TILES
   -------------------------------------------------------------------------- */
.qa-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.qa-grid--6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.qa {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.qa:hover { border-color: var(--g-300); box-shadow: var(--sh-3); transform: translateY(-2px); }
.qa__icon { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; }
.qa__icon svg { width: 19px; height: 19px; }
.qa__label { font-size: 11px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   15. CHARTS
   -------------------------------------------------------------------------- */
.chartbox { position: relative; width: 100%; }
.chartbox--sm  { height: 150px; }
.chartbox--md  { height: 200px; }
.chartbox--lg  { height: 250px; }

.donutwrap { display: flex; align-items: center; gap: 16px; }
.donutwrap__chart { position: relative; width: 168px; height: 168px; flex: none; }
.donutwrap__center {
  position: absolute; inset: 0; display: grid; place-content: center;
  text-align: center; pointer-events: none;
}
.donutwrap__center b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.donutwrap__center small { font-size: 11px; color: var(--muted); }
.donutwrap__legend { flex: 1; min-width: 0; display: grid; gap: 8px; }

.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.legend-row__dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend-row__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-row__value { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend-row__pct { color: var(--muted); font-size: 11px; min-width: 42px; text-align: right; }

/* Bar list — Wanachama kwa Wilaya (Top 5) */
.barlist { display: grid; gap: 11px; }
.barlist__row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; }
.barlist__label { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist__track { height: 8px; border-radius: var(--r-full); background: var(--line-soft); overflow: hidden; }
.barlist__fill { display: block; height: 100%; border-radius: inherit; background: var(--g-500); }
.barlist__value { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   16. PROGRESS
   -------------------------------------------------------------------------- */
.prog { height: 7px; border-radius: var(--r-full); background: var(--line-soft); overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: inherit; background: var(--g-500); transition: width .5s ease; }
.prog--gold > i { background: var(--gold-500); }
.prog--navy > i { background: var(--n-700); }

.gauge { position: relative; width: 54px; height: 54px; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.gauge__track { stroke: var(--line); }
.gauge__fill { stroke: var(--g-500); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.gauge__text {
  position: absolute; inset: 0; display: grid; place-content: center;
  font-size: 12px; font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.appfoot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px; color: var(--muted);
}
.appfoot__values { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--gold-600); }
.appfoot__values span { color: var(--gold-500); opacity: .6; }
.appfoot__social { display: flex; align-items: center; gap: 8px; }
.appfoot__social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.appfoot__social a:hover { background: var(--g-50); color: var(--g-600); }

/* --------------------------------------------------------------------------
   18. DIGITAL MEMBERSHIP CARD (dashboard variant)
   -------------------------------------------------------------------------- */
.dcard {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: 18px;
  background:
    radial-gradient(120% 120% at 88% 12%, rgba(212,175,55,.16), transparent 55%),
    linear-gradient(140deg, var(--g-800) 0%, var(--g-950) 62%, var(--n-900) 100%);
  color: #fff;
  display: flex; gap: 16px;
  min-height: 200px;
}
.dcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 12px);
}
.dcard__ribbon {
  position: absolute; top: 0; right: 0; z-index: 2;
  padding: 7px 14px 8px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--g-950);
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  border-bottom-left-radius: var(--r);
  text-align: center; line-height: 1.35;
}
.dcard__left { flex: 1; min-width: 0; position: relative; z-index: 1; display: flex; flex-direction: column; }
.dcard__brand { display: flex; align-items: center; gap: 9px; }
.dcard__brand b { font-size: 20px; font-weight: 800; letter-spacing: .05em; color: var(--gold-500); }
.dcard__org { font-size: 8px; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.62); line-height: 1.5; }
.dcard__tagline { font-size: 8.5px; font-style: italic; color: var(--gold-400); margin-top: 8px; opacity: .8; }
.dcard__fields { margin-top: auto; display: grid; gap: 9px; }
.dcard__label { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.dcard__value { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.dcard__row { display: flex; gap: 22px; }
.dcard__qr {
  width: 118px; flex: none; position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.dcard__qr img, .dcard__qr svg {
  width: 118px; height: 118px; background: #fff; padding: 7px; border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   19. FILTER PANEL (System D)
   -------------------------------------------------------------------------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; align-items: end; }
.field { display: grid; gap: 5px; min-width: 0; }
.field__label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.field__label em { color: var(--danger); font-style: normal; }
.input, .select, .textarea {
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-family: inherit; width: 100%;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 76px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--g-400); box-shadow: 0 0 0 3px rgba(18,134,74,.11);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.select { appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}

/* --------------------------------------------------------------------------
   20. WIZARD / STEPPER (Usajili wa Mwanachama)
   -------------------------------------------------------------------------- */
.stepper { display: flex; align-items: flex-start; padding: 6px 0 20px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; min-width: 0; }
.step::before, .step::after {
  content: ""; position: absolute; top: 16px; height: 2px; background: var(--line);
}
.step::before { left: 0; right: 50%; margin-right: 20px; }
.step::after  { left: 50%; right: 0; margin-left: 20px; }
.step:first-child::before, .step:last-child::after { display: none; }
.step.is-done::after, .step.is-done::before, .step.is-current::before { background: var(--g-500); }
.step__num {
  width: 33px; height: 33px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.step.is-current .step__num { background: var(--g-500); border-color: var(--g-500); color: #fff; }
.step.is-done .step__num { background: var(--g-100); border-color: var(--g-500); color: var(--g-600); }
.step__label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; padding: 0 4px; }
.step.is-current .step__label { color: var(--g-600); }

/* --------------------------------------------------------------------------
   21. PAGINATION
   -------------------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 13px 17px; border-top: 1px solid var(--line-soft); }
.pager__info { font-size: 12px; color: var(--muted); }
.pager__nav { display: flex; align-items: center; gap: 5px; }
.pager__btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.pager__btn:hover { background: var(--canvas); }
.pager__btn.is-active { background: var(--g-500); border-color: var(--g-500); color: #fff; }
.pager__btn:disabled { opacity: .4; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   22. STICKY ACTION BAR
   -------------------------------------------------------------------------- */
.actionbar {
  position: sticky; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(15,23,42,.05);
}
.actionbar__title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-right: 6px; }
.actionbar__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.actionbar__btn:hover { border-color: var(--g-300); background: var(--g-50); color: var(--g-700); }
.actionbar__btn svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   23. MISC
   -------------------------------------------------------------------------- */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; }
.stat {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r);
}
.stat__icon { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.stat__icon svg { width: 17px; height: 17px; }
.stat__label { font-size: 11px; color: var(--muted); }
.stat__value { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }

.empty { text-align: center; padding: 34px 20px; }
.empty__icon { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: var(--canvas); display: grid; place-items: center; color: var(--muted-2); }
.empty__title { font-size: 14px; font-weight: 600; }
.empty__text { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

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

.hstack { display: flex; align-items: center; gap: 10px; }
.vstack { display: flex; flex-direction: column; gap: 10px; }
.push { margin-left: auto; }

/* --------------------------------------------------------------------------
   24. RESPONSIVE
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(4,35,24,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}

/* Laptop 1280-1500px: safu 5/6 zinabaki, KPI inakuwa ndogo */
@media (max-width: 1550px) {
  .kpi { padding: 13px 13px; gap: 10px; }
  .kpi__icon { width: 38px; height: 38px; }
  .kpi__icon svg { width: 18px; height: 18px; }
  .kpi__label { font-size: 11px; }
  .kpi__value { font-size: 20px; }
  .kpi__value--money { font-size: 15.5px; letter-spacing: -.03em; }
  .kpi__meta { font-size: 10.5px; }
  .grid--6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1280px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1200px) {
  .grid--4, .grid--2-2-1, .grid--1-1-1, .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--2-1, .grid--1-2 { grid-template-columns: minmax(0,1fr); }
  .qa-grid--6 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .app.is-mobileopen .sidebar { transform: none; }
  .app.is-mobileopen .scrim { opacity: 1; visibility: visible; }
  .main { margin-left: 0 !important; }
  .topbar__title p { display: none; }
  .datepill { display: none; }
}
@media (max-width: 780px) {
  .page { padding: 15px 13px 22px; }
  .grid--6, .grid--5, .grid--4, .grid--3, .grid--2, .grid--2-2-1, .grid--1-1-1 { grid-template-columns: minmax(0,1fr); }
  .qa-grid, .qa-grid--6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pagehead h2 { font-size: 20px; }
  .search { min-width: 0; }
  .userchip__name, .userchip__role { display: none; }
  .donutwrap { flex-direction: column; }
  .donutwrap__legend { width: 100%; }
  .dcard { flex-direction: column; }
  .dcard__qr { width: 100%; align-items: center; }
  .appfoot { justify-content: center; text-align: center; }
  .stepper { overflow-x: auto; padding-bottom: 14px; }
  .step { min-width: 108px; }
}
@media (max-width: 520px) {
  .qa-grid, .qa-grid--6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topbar { padding: 0 13px; gap: 8px; }
}

/* Print — kadi na ripoti */
@media print {
  .sidebar, .topbar, .actionbar, .appfoot, .scrim { display: none !important; }
  .main { margin-left: 0 !important; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ==========================================================================
   25. BACKEND-PENDING SYSTEM
   Kila kitu kinachohitaji backend kinapata ujumbe badala ya kufa kimya.
   ========================================================================== */
.toast-host {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; max-width: 380px;
}
.toast {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r); box-shadow: var(--sh-4);
  animation: toastIn .24s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: .2s; }
.toast__icon { width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; }
.toast__icon svg { width: 17px; height: 17px; }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-size: 13px; font-weight: 700; }
.toast__text { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.toast__close { flex: none; color: var(--muted-2); padding: 2px; }
.toast__close:hover { color: var(--ink); }

/* ==========================================================================
   26. PUBLIC WEBSITE
   ========================================================================== */
.pub { background: var(--surface); }
.pub-utility {
  background: var(--g-950); color: rgba(255,255,255,.82);
  font-size: 12px; padding: 8px 26px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.pub-utility a { display: inline-flex; align-items: center; gap: 6px; }
.pub-utility a:hover { color: var(--gold-400); }
.pub-utility__social { margin-left: auto; display: flex; gap: 12px; }

.pub-nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
  padding: 9px 20px; border-bottom: 1px solid var(--line);
  background: var(--surface); position: sticky; top: 0; z-index: 45;
}
/* `flex-shrink: 0` ni muhimu: bila hiyo nembo hubanwa na maandishi yake
   hupanda juu ya viungo vya menyu wakati header inajaa. */
.pub-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.pub-brand img { width: 40px; height: 40px; }
.pub-brand b { font-size: 23px; font-weight: 800; letter-spacing: .04em; color: var(--g-700); line-height: 1; }
.pub-brand small { display: block; font-size: 7.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--n-700); line-height: 1.45; margin-top: 2px; }
.pub-menu { display: flex; align-items: center; gap: 17px; margin-left: 6px; }
/* `nowrap` inazuia "Mawasiliano" kupasuka mistari miwili header ikijaa */
.pub-menu a { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 6px 0;
  position: relative; white-space: nowrap; }
.pub-menu a:hover { color: var(--g-600); }
.pub-menu a.is-active { color: var(--g-600); font-weight: 600; }
.pub-menu a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px; background: var(--g-500); border-radius: 2px; }

/* --- Vitufe vya kitendo (Changia, Lipa Ada) -------------------------------
   Dhahabu ndiyo rangi ya kitendo kwenye MUWESTA; kijani ni ya utambulisho.
   Vitufe hivi vinapaswa kuvutia jicho zaidi kuliko viungo vya kuvinjari. */
.pub-cta { display: flex; align-items: center; gap: 7px; margin-left: 12px; flex: none; }
.pub-cta__btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 36px; padding: 0 14px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0;
  background: linear-gradient(118deg, var(--gold-700), var(--gold-500) 52%, var(--gold-400));
  color: var(--g-950); font-size: 13px; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 3px 12px -4px rgba(169,129,42,.6),
              inset 0 1px 0 rgba(255,255,255,.34);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.pub-cta__btn svg { flex: none; }
/* Iliyokuwa `font-size: 13px` kwenye sheria ya awali imeondolewa juu */
.pub-cta__btn:hover {
  transform: translateY(-1px); filter: brightness(1.06); color: var(--g-950);
  box-shadow: 0 7px 18px -5px rgba(169,129,42,.66),
              inset 0 1px 0 rgba(255,255,255,.34);
}
.pub-cta__btn:active { transform: translateY(0); }
/* Kitufe cha ukurasa uliopo kinatulia — mtu tayari yupo hapo */
.pub-cta__btn.is-active {
  background: var(--g-800); color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--gold-500);
}

.pub-nav__right { margin-left: auto; display: flex; align-items: center; gap: 7px; flex: none; }

/* Vitufe vya header ni vidogo kuliko vya kawaida — nafasi ni finyu na
   vitatu vinakaa pamoja. */
.btn--nav {
  height: 34px; padding: 0 11px; font-size: 12px; white-space: nowrap; gap: 6px;
}
.btn--nav svg { width: 14px; height: 14px; }

/* Hero */
.hero {
  position: relative; min-height: 430px;
  display: grid; grid-template-columns: minmax(0,1fr) 330px;
  gap: 30px; align-items: center;
  padding: 42px 26px;
  background: linear-gradient(100deg, rgba(4,35,24,.93) 0%, rgba(6,48,31,.78) 42%, rgba(10,64,40,.30) 72%, rgba(10,64,40,.12) 100%),
              var(--hero-img, linear-gradient(120deg,#0d5433,#1ba05a));
  background-size: cover; background-position: center;
  color: #fff;
}

/* --- Slideshow ya hero (ukurasa wa nyumbani) ---------------------------
   Picha zote tatu zipo kwenye DOM mara moja; zinabadilishana kwa `opacity`.
   Kubadilisha `background-image` kungeleta mwangaza picha mpya ikiwa bado
   inapakia — kwa hiyo kila picha ni tabaka lake linalofifia taratibu. */
.hero--home { background-image: none; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.1s ease-in-out;
  /* Kusogea polepole kunatoa hisia ya uhai bila kuvuruga usomaji */
  transform: scale(1.02);
}
.hero__slide.is-on { opacity: 1; animation: heroDrift 9s ease-out forwards; }
@keyframes heroDrift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.08); }
}

/* Giza linalofanya maandishi meupe yasomeke juu ya picha yoyote */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Giza limepunguzwa (lilikuwa .94/.80) ili picha za MUWESTA zionekane.
     Upande wa kushoto unabaki mzito kidogo kwa sababu ndipo maandishi
     meupe yalipo — bila hilo, kichwa hakingesomeka juu ya picha ya watu. */
  background: linear-gradient(100deg, rgba(4,35,24,.80) 0%, rgba(6,48,31,.58) 42%,
                              rgba(10,64,40,.18) 72%, rgba(10,64,40,.06) 100%);
}
/* Maandishi na kadi ya kuingia zisogezwe juu ya tabaka za picha.
   TAHADHARI: usitumie `> *:not(...)` hapa. Uzito wake (0,3,0) unashinda
   `.hero__dots` (0,1,0) na kubadilisha `position: absolute` kuwa
   `relative` — vitone vikawa kipengele cha gridi na kusukuma maandishi
   mahali pasipo. Tunataja kila kipengele wazi badala yake. */
.hero--home > .reveal,
.hero--home > .loginpanel { position: relative; z-index: 2; }

.hero__dots {
  position: absolute; z-index: 3; left: 26px; bottom: 18px;
  display: flex; gap: 8px;
}
.hero__dot {
  width: 26px; height: 4px; padding: 0; border: 0; border-radius: var(--r-full);
  background: rgba(255,255,255,.34); cursor: pointer;
  transition: background .2s, width .2s;
}
.hero__dot:hover { background: rgba(255,255,255,.6); }
.hero__dot.is-on { width: 40px; background: var(--gold-400); }

@media (max-width: 1024px) {
  .hero__veil {
    /* Kwenye simu maandishi yanakaa juu ya picha nzima, kwa hiyo giza
       linahitajika zaidi kuliko kwenye kompyuta — lakini bado
       limepunguzwa kutoka .90/.74. */
    background: linear-gradient(180deg, rgba(4,35,24,.76) 0%, rgba(5,42,27,.60) 46%,
                                rgba(6,48,31,.52) 72%, rgba(4,35,24,.78) 100%);
  }
  .hero__dots { left: 50%; transform: translateX(-50%); bottom: 14px; }
}

/* Anayeomba mwendo mdogo apate picha tuli — bila kusogea wala kufifia */
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; animation: none !important; transform: none; }
  .hero__slide.is-on { animation: none !important; }
}
.hero__eyebrow { font-size: 15px; font-weight: 600; color: var(--gold-400); line-height: 1.5; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 12px 0 14px; }
.hero p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.86); max-width: 460px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(6px);
}
.hero-btn:hover { background: rgba(255,255,255,.22); }
.hero-btn__ico { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.hero-btn b { display: block; font-size: 13.5px; font-weight: 700; }
.hero-btn small { display: block; font-size: 11px; opacity: .78; }

/* Login panel ndani ya hero */
.loginpanel {
  background: rgba(4,35,24,.90); backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,.28); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-4);
}
.loginpanel h3 { font-size: 19px; font-weight: 700; }
.loginpanel > p { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 15px; }
.loginfield {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 13px; margin-bottom: 11px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm); color: rgba(255,255,255,.6);
}
.loginfield:focus-within { border-color: var(--gold-500); background: rgba(255,255,255,.14); }
.loginfield input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 13px; }
.loginfield input::placeholder { color: rgba(255,255,255,.5); }
.loginpanel__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 14px; }
.loginpanel__row label { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.78); cursor: pointer; }
.loginpanel__row a { color: var(--gold-400); font-weight: 600; }
.loginpanel__sep { text-align: center; font-size: 11.5px; color: rgba(255,255,255,.5); margin: 15px 0 12px; }
.rolegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rolebtn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 11px 4px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  text-align: center; transition: .15s;
}
.rolebtn:hover { border-color: var(--gold-500); background: rgba(212,175,55,.14); transform: translateY(-2px); }
.rolebtn__ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.rolebtn__ico svg { width: 15px; height: 15px; }
.rolebtn span { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,.86); line-height: 1.3; }

/* Strip ya takwimu (kijani giza) */
.statstrip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; padding: 0 26px; margin-top: -30px; position: relative; z-index: 5; }
.statstrip__item {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--g-700), var(--g-900));
  color: #fff; box-shadow: var(--sh-3);
}
.statstrip__ico { width: 34px; height: 34px; flex: none; opacity: .85; }
.statstrip__val { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.statstrip__lbl { font-size: 11px; color: rgba(255,255,255,.72); }
.statstrip__delta { font-size: 10.5px; font-weight: 600; margin-top: 2px; }

/* Bar ya huduma */
/* --- Njia za haraka (chini ya hero) ---------------------------------------
   `auto-fit` badala ya nguzo 8 zilizowekwa: idadi ya viungo inaweza
   kubadilika kwenye database, na nguzo zilizohesabiwa kwa mkono
   zingeacha nafasi tupu au kubana. */
.servicebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  margin: -22px 26px 24px; position: relative; z-index: 4;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04),
              0 16px 34px -18px rgba(4,35,24,.30);
}
.servicebar a {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 10px; text-align: center;
  border-right: 1px solid var(--line-soft);
  transition: background .16s, transform .16s;
}
.servicebar a:last-child { border-right: 0; }
.servicebar a:hover { background: var(--g-50); transform: translateY(-2px); }
.servicebar a:hover .servicebar__ico {
  background: linear-gradient(150deg, var(--g-600), var(--g-800));
  color: #fff; box-shadow: 0 4px 12px -4px rgba(13,84,51,.5);
}
.servicebar__ico {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; flex: none;
  background: linear-gradient(150deg, var(--g-100), var(--g-50));
  color: var(--g-700);
  transition: background .16s, color .16s, box-shadow .16s;
}
.servicebar__txt {
  font-size: 11.5px; font-weight: 700; color: var(--ink-2); line-height: 1.35;
}

@media (max-width: 900px) {
  .servicebar { margin: -16px 16px 20px; border-radius: 16px; }
  .servicebar a { padding: 14px 8px; gap: 7px; }
  .servicebar__ico { width: 36px; height: 36px; border-radius: 11px; }
  .servicebar__txt { font-size: 10.5px; }
}
@media (max-width: 520px) {
  .servicebar { grid-template-columns: repeat(3, minmax(0,1fr)); }
  /* Mstari wa mwisho usiwe na mstari wa kutenganisha unaoning'inia */
  .servicebar a:nth-child(3n) { border-right: 0; }
  .servicebar a { border-bottom: 1px solid var(--line-soft); }
}

/* Event list yenye block ya tarehe */
.evrow { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.evrow:last-child { border-bottom: 0; }
.evdate {
  width: 48px; flex: none; text-align: center; border-radius: var(--r-sm);
  background: var(--g-50); color: var(--g-700); padding: 6px 0;
}
.evdate b { display: block; font-size: 17px; font-weight: 800; line-height: 1; }
.evdate span { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.evdate small { display: block; font-size: 9px; opacity: .7; }
.evrow__body { flex: 1; min-width: 0; }
.evrow__title { display: block; font-size: 12.8px; font-weight: 600; }
.evrow__meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* News item yenye thumbnail */
.newsrow { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.newsrow:last-child { border-bottom: 0; }
.newsrow__thumb { width: 74px; height: 56px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--line-soft); }
.newsrow__body { flex: 1; min-width: 0; }
.newsrow__title { display: block; font-size: 12.6px; font-weight: 600; line-height: 1.4; }
.newsrow__date { display: block; font-size: 10.5px; color: var(--muted-2); margin: 3px 0; }
.newsrow__text { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.gallery__item { border-radius: var(--r); overflow: hidden; position: relative; display: block; }
.gallery__item img { width: 100%; height: 92px; object-fit: cover; background: var(--line-soft); transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap { display: block; font-size: 11.5px; font-weight: 600; margin-top: 6px; }
.gallery__meta { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* Media card (picha & video dashboard) */
.mediastrip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.mediacard { min-width: 0; }
.mediacard__frame { position: relative; border-radius: var(--r); overflow: hidden; background: var(--line-soft); }
.mediacard__frame img { width: 100%; height: 108px; object-fit: cover; }
.mediacard__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(4,35,24,.32);
}
.mediacard__play i {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; color: var(--g-700);
}
.mediacard__dur {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(4,35,24,.82); color: #fff;
  font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
}
.mediacard__title { display: block; font-size: 11.8px; font-weight: 600; margin-top: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mediacard__meta { display: flex; align-items: center; gap: 9px; font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* ==========================================================================
   27. RAMANI YA TANZANIA / MIKOA
   ========================================================================== */
.tzmap { width: 100%; height: auto; }
.tzmap path { stroke: var(--surface); stroke-width: 1.1; transition: fill .2s, opacity .2s; cursor: pointer; }
.tzmap path:hover { opacity: .82; }
.tzmap text { font-size: 5.4px; font-weight: 700; fill: var(--g-900); pointer-events: none; }
.tzmap text.sub { font-size: 4.6px; font-weight: 600; fill: var(--g-700); }
.maplegend { display: grid; gap: 6px; margin-top: 10px; }
.maplegend__row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.maplegend__sw { width: 16px; height: 10px; border-radius: 3px; flex: none; }

/* ==========================================================================
   28. RANK LIST / CAMPAIGN / FUND TILES
   ========================================================================== */
.ranklist { display: grid; gap: 10px; }
.rankrow { display: flex; align-items: center; gap: 10px; }
.rankrow__n {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  background: var(--g-500); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.rankrow__n[data-n="2"] { background: var(--n-700); }
.rankrow__n[data-n="3"] { background: var(--gold-600); }
.rankrow__n[data-n="4"] { background: var(--cat-diamond); }
.rankrow__n[data-n="5"] { background: var(--c5); }
.rankrow__body { flex: 1; min-width: 0; }
.rankrow__label { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankrow__sub { display: block; font-size: 10.5px; color: var(--muted); }
.rankrow__value { flex: none; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.campaign { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.campaign:last-child { border-bottom: 0; }
.campaign__img { width: 62px; height: 50px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--line-soft); }
.campaign__body { flex: 1; min-width: 0; }
.campaign__title { display: block; font-size: 12.4px; font-weight: 600; }
.campaign__nums { display: block; font-size: 11px; color: var(--muted); margin: 3px 0 5px; font-variant-numeric: tabular-nums; }
.campaign__side { flex: none; text-align: right; font-size: 10.5px; color: var(--muted); }
.campaign__side b { display: block; font-size: 11.5px; color: var(--warn); }

.fundgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.fund { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.fund__ico { width: 30px; height: 30px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; }
.fund__ico svg { width: 15px; height: 15px; }
.fund__lbl { display: block; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fund__val { display: block; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   29. KALENDA
   ========================================================================== */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__title { font-size: 12.5px; font-weight: 700; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal__dow { font-size: 10px; font-weight: 700; color: var(--muted); padding: 5px 0; }
.cal__day { font-size: 11.5px; padding: 6px 0; border-radius: 6px; font-variant-numeric: tabular-nums; }
.cal__day:hover { background: var(--canvas); }
.cal__day--mute { color: var(--muted-2); }
.cal__day--ev { background: var(--g-500); color: #fff; font-weight: 700; }
.cal__day--ev2 { background: var(--cat-diamond); color: #fff; font-weight: 700; }
.cal__day--ev3 { background: var(--warn); color: #fff; font-weight: 700; }

/* ==========================================================================
   30. DETAIL PANEL (Maombi ya Uanachama)
   ========================================================================== */
.detail__head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.detail__row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.detail__row svg { width: 16px; height: 16px; flex: none; color: var(--muted); margin-top: 2px; }
.detail__lbl { display: block; font-size: 10.5px; color: var(--muted); }
.detail__val { display: block; font-size: 12.5px; font-weight: 600; }

/* ==========================================================================
   31. ROLE SWITCHER CARDS
   ========================================================================== */
.rolecards { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.rolecard {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: .15s;
}
.rolecard:hover { border-color: var(--g-300); box-shadow: var(--sh-3); }
.rolecard.is-active { border-color: var(--g-500); border-width: 2px; background: var(--g-50); }
.rolecard__ico { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.rolecard__ico svg { width: 18px; height: 18px; }
.rolecard b { display: block; font-size: 12.8px; font-weight: 700; }
.rolecard small { display: block; font-size: 10.5px; color: var(--muted); }

/* ==========================================================================
   32. MISC ADDITIONS
   ========================================================================== */
.scope-pick {
  display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-size: 13px; font-weight: 600;
}
.scope-pick:hover { border-color: var(--g-300); }

.sidebar-summary {
  margin: 0 0 8px; padding: 12px;
  border: 1px solid rgba(255,255,255,.13); border-radius: var(--r);
  background: rgba(255,255,255,.045);
}
.sidebar-summary__title { font-size: 12px; font-weight: 700; color: #fff; }
.sidebar-summary__sub { font-size: 10px; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.sidebar-summary__row { display: flex; align-items: center; gap: 7px; padding: 4px 0; font-size: 11px; color: rgba(255,255,255,.72); }
.sidebar-summary__row svg { width: 13px; height: 13px; flex: none; opacity: .7; }
.sidebar-summary__row b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }

.sectionband {
  background: var(--g-500); color: #fff;
  padding: 12px 17px; display: flex; align-items: center; gap: 10px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.sectionband svg { width: 19px; height: 19px; }
.sectionband b { font-size: 14.5px; font-weight: 700; }

.photobox {
  border: 1.5px dashed var(--line); border-radius: var(--r);
  padding: 18px; text-align: center; background: var(--canvas);
}
.photobox__circle { width: 62px; height: 62px; margin: 0 auto 9px; border-radius: 50%;
  background: var(--g-50); color: var(--g-500); display: grid; place-items: center; }
.photobox__label { font-size: 12px; font-weight: 600; }
.photobox__hint { font-size: 10.5px; color: var(--muted); margin: 2px 0 10px; }

@media (max-width: 1200px) {
  .statstrip, .rolecards, .mediastrip { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .servicebar { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0,1fr); }
  .fundgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .statstrip, .rolecards, .mediastrip, .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .servicebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero h1 { font-size: 30px; }
  .pub-menu { display: none; }
  .rolegrid { grid-template-columns: repeat(2, 1fr); }
  .fundgrid { grid-template-columns: minmax(0,1fr); }
}

.langform { display: flex; }

/* ==========================================================================
   33. MODAL — ujumbe wa "backend haijawa tayari"
   ========================================================================== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 35, 24, .58);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
}
.modal-scrim.is-open { opacity: 1; visibility: visible; }

.modal {
  width: min(430px, 100%);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 70px rgba(4, 35, 24, .35);
  overflow: hidden;
  transform: translateY(22px) scale(.95);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .25s;
}
.modal-scrim.is-open .modal { transform: none; opacity: 1; }

.modal__top {
  position: relative;
  padding: 26px 24px 20px;
  text-align: center;
  background:
    radial-gradient(120% 130% at 50% -10%, rgba(212,175,55,.28), transparent 62%),
    linear-gradient(150deg, var(--g-700), var(--g-950));
  color: #fff;
  overflow: hidden;
}
.modal__top::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 13px);
}
.modal__badge {
  position: relative; z-index: 1;
  width: 62px; height: 62px; margin: 0 auto 13px;
  border-radius: 50%;
  background: rgba(212,175,55,.16);
  border: 2px solid rgba(212,175,55,.5);
  display: grid; place-items: center;
  color: var(--gold-400);
  animation: pulseRing 2.4s ease-out infinite;
}
.modal__badge svg { width: 28px; height: 28px; }
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,.42); }
  70%  { box-shadow: 0 0 0 16px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}
.modal__eyebrow {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-400);
}
.modal__title {
  position: relative; z-index: 1;
  font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-top: 5px;
}
.modal__body { padding: 20px 24px 14px; text-align: center; }
.modal__text { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.modal__chip {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 7px 13px;
  border-radius: var(--r-full);
  background: var(--g-50); color: var(--g-700);
  font-size: 11.5px; font-weight: 600;
}
.modal__chip svg { width: 14px; height: 14px; }
.modal__foot { padding: 6px 24px 22px; display: flex; gap: 10px; }
.modal__foot .btn { flex: 1; height: 42px; }
.modal__x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff;
}
.modal__x:hover { background: rgba(255,255,255,.26); }

/* ==========================================================================
   34. PUBLIC SITE — mobile drawer + sections
   ========================================================================== */
.pub-burger { display: none; }

.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 210;
  width: min(310px, 86vw);
  background: var(--g-950); color: #fff;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.3,.9,.3,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head { padding: 18px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 11px; }
.drawer__head b { font-size: 22px; font-weight: 800; letter-spacing: .05em; color: var(--gold-500); }
.drawer__x { margin-left: auto; color: rgba(255,255,255,.7); }
.drawer__nav { padding: 10px; flex: 1; }
.drawer__link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; color: #cfe3d7;
}
.drawer__link svg { width: 18px; height: 18px; opacity: .7; }
.drawer__link:hover, .drawer__link.is-active { background: rgba(255,255,255,.09); color: #fff; }
.drawer__link.is-active { background: var(--g-500); }
.drawer__foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 9px; }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 205;
  background: rgba(4,35,24,.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: .22s;
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

/* Section wrapper */
.section { padding: 46px 26px; }
.section--tint { background: var(--canvas); }
.section--dark {
  background: radial-gradient(110% 130% at 12% 0%, rgba(212,175,55,.13), transparent 60%),
              linear-gradient(150deg, var(--g-800), var(--g-950));
  color: #fff;
}
.section__head { text-align: center; max-width: 660px; margin: 0 auto 32px; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: var(--r-full);
  background: var(--g-50); color: var(--g-700);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.section--dark .section__eyebrow { background: rgba(212,175,55,.15); color: var(--gold-400); }
.section__title { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin: 13px 0 9px; }
.section__text { font-size: 14px; line-height: 1.7; color: var(--muted); }
.section--dark .section__text { color: rgba(255,255,255,.75); }

/* Feature tile */
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 20px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--sh-4); border-color: var(--g-300); }
.feature__ico {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature__ico svg { width: 24px; height: 24px; }
.feature h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.feature__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--g-600); }
.feature__link:hover { gap: 10px; transition: gap .15s; }

/* Counter block */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.counter__val { font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.counter__lbl { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 4px; }

/* Timeline */
.tline { position: relative; padding-left: 34px; }
.tline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tline__item { position: relative; padding-bottom: 24px; }
.tline__item:last-child { padding-bottom: 0; }
.tline__dot {
  position: absolute; left: -30px; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--g-500); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  box-shadow: 0 0 0 4px var(--surface);
}
.tline__year { font-size: 11.5px; font-weight: 700; color: var(--g-600); letter-spacing: .06em; }
.tline__title { font-size: 14.5px; font-weight: 700; margin: 2px 0 4px; }
.tline__text { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* Person card */
.person { text-align: center; }
.person__ph {
  width: 108px; height: 108px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(140deg, var(--g-400), var(--n-700));
  display: grid; place-items: center; color: #fff;
  font-size: 30px; font-weight: 700;
  border: 4px solid var(--surface); box-shadow: var(--sh-3);
}
.person h4 { font-size: 14.5px; font-weight: 700; }
.person span { font-size: 12px; color: var(--muted); }

/* Accordion */
.acc__item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.acc__btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 15px 17px; text-align: left; font-size: 14px; font-weight: 600;
}
.acc__btn svg { width: 18px; height: 18px; flex: none; color: var(--g-600); transition: transform .22s; }
.acc__item.is-open .acc__btn svg { transform: rotate(90deg); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc__item.is-open .acc__panel { max-height: 320px; }
.acc__inner { padding: 0 17px 16px; font-size: 13.3px; line-height: 1.7; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.tab {
  padding: 9px 17px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12.8px; font-weight: 600; color: var(--ink-2);
}
.tab:hover { border-color: var(--g-300); }
.tab.is-active { background: var(--g-500); border-color: var(--g-500); color: #fff; }

/* Pricing / membership tiers */
.tier {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 20px;
  display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--sh-4); }
.tier.is-featured { border: 2px solid var(--gold-500); box-shadow: var(--sh-3); }
.tier__flag {
  align-self: center; margin-top: -34px; margin-bottom: 12px;
  padding: 5px 14px; border-radius: var(--r-full);
  background: var(--gold-500); color: var(--g-950);
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.tier__name { font-size: 17px; font-weight: 800; text-align: center; }
.tier__price { font-size: 28px; font-weight: 800; letter-spacing: -.03em; text-align: center; margin: 8px 0 2px; }
.tier__per { font-size: 11.5px; color: var(--muted); text-align: center; }
.tier__list { margin: 18px 0; display: grid; gap: 9px; flex: 1; }
.tier__list li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.8px; line-height: 1.5; }
.tier__list svg { width: 15px; height: 15px; flex: none; color: var(--g-500); margin-top: 2px; }

/* Contact */
.contact-tile {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.contact-tile__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.contact-tile__ico svg { width: 20px; height: 20px; }
.contact-tile h4 { font-size: 13.5px; font-weight: 700; }
.contact-tile p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 3px; }

/* CTA band */
.cta-band {
  border-radius: var(--r-xl); padding: 34px 30px; text-align: center;
  background: radial-gradient(110% 140% at 50% 0%, rgba(212,175,55,.18), transparent 62%),
              linear-gradient(150deg, var(--g-700), var(--g-950));
  color: #fff;
}
.cta-band h3 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,.78); margin: 9px auto 20px; max-width: 520px; line-height: 1.7; }

/* Public footer */
.pub-foot { background: var(--g-950); color: rgba(255,255,255,.72); padding: 40px 26px 0; }
.pub-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 30px; }
.pub-foot h5 { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 13px; }
.pub-foot a { display: block; font-size: 13px; padding: 5px 0; }
.pub-foot a:hover { color: var(--gold-400); }
.pub-foot__brand b { font-size: 26px; font-weight: 800; letter-spacing: .05em; color: var(--gold-500); }
.pub-foot__brand p { font-size: 12.5px; line-height: 1.7; margin-top: 10px; max-width: 300px; }
.pub-foot__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12px;
}
.pub-foot__values { display: flex; gap: 9px; font-weight: 700; color: var(--gold-500); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   35. MOBILE — marekebisho makubwa
   ========================================================================== */
@media (max-width: 1180px) {
  /* Nafasi imeanza kubana: kaulimbiu ndiyo yenye faida ndogo zaidi */
  .pub-brand small { display: none; }
  .pub-menu { gap: 12px; }
  .pub-menu a { font-size: 12.5px; }
}
@media (max-width: 1024px) {
  .pub-burger { display: grid; }
  .pub-menu { display: none; }
  /* Vitufe vya kitendo vinabaki hata kwenye simu — ndivyo vitendo
     muhimu zaidi. Vinapungua tu ili visibane header. */
  .pub-cta { margin-left: 0; gap: 6px; }
  .pub-cta__btn { padding: 8px 12px; font-size: 12px; }
  /* Droplist ya lugha inabana header kwenye simu — tunaonyesha ikoni na
     nembo fupi ya lugha tu, bila kupoteza <select> halisi. */
  .pub-nav__right .langpick { padding: 0 6px; gap: 4px; }
  .pub-nav__right .langpick select { max-width: 34px; font-size: 11.5px; text-indent: -2px; }
  .pub-nav__right .langpick__caret { display: none; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .pub-foot__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 34px 16px; }
  .section__title { font-size: 24px; }
  .pub-utility { justify-content: center; font-size: 11px; gap: 12px; padding: 7px 14px; }
  .pub-utility span:not(.pub-utility__social) { display: none; }
  .pub-utility__social { margin-left: 0; }
  .pub-nav { padding: 10px 14px; gap: 10px; }
  .pub-brand img { width: 38px; height: 38px; }
  .pub-brand b { font-size: 21px; }
  .pub-brand small { font-size: 7.5px; }
  .hero { padding: 30px 16px; gap: 22px; min-height: 0; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 13px; }
  .hero__cta { gap: 9px; }
  .hero-btn { padding: 9px 14px; flex: 1; min-width: 0; }
  .hero-btn b { font-size: 12.5px; }
  .hero-btn small { font-size: 10px; }
  .statstrip { margin-top: 0; padding: 0 16px; }
  .servicebar { margin: 18px 16px; }
  .cta-band { padding: 26px 18px; }
  .cta-band h3 { font-size: 20px; }
  .tline { padding-left: 28px; }
}

@media (max-width: 560px) {
  .statstrip { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
  .pub-foot__grid { grid-template-columns: 1fr; gap: 22px; }
  .pub-foot { padding: 28px 16px 0; }
  .pub-foot__bottom { justify-content: center; text-align: center; }
  .hero__cta { flex-direction: column; }
  .hero-btn { width: 100%; }
  .modal__foot { flex-direction: column; }
  .section__title { font-size: 21px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .tab { flex: none; }
}

/* Dashboards kwenye simu */
@media (max-width: 780px) {
  .actionbar { overflow-x: auto; flex-wrap: nowrap; padding: 10px 13px; }
  .actionbar__title { display: none; }
  .actionbar__btn { flex: none; }
  .pager { flex-direction: column; align-items: stretch; }
  .pager__nav { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .kpi__value { font-size: 21px; }
  .kpi__value--money { font-size: 17px; }
  .stepper { gap: 4px; }
  .dcard__qr svg, .dcard__qr img { width: 100px; height: 100px; }
  .modal { width: 100%; }
}

@media (max-width: 480px) {
  .page { padding: 12px 10px 20px; }
  .card__head { padding: 13px 13px 10px; flex-wrap: wrap; }
  .card__body { padding: 0 13px 13px; }
  .table th, .table td { padding: 9px 10px; }
  .topbar { height: 58px; }
  .userchip__avatar { width: 34px; height: 34px; }
  .icon-btn { width: 34px; height: 34px; }
  .search { display: none; }
}

/* ==========================================================================
   36. MICHORO NA MAPAMBO YA KIISLAMU
   ========================================================================== */

/* Frame ya mchoro / picha */
.illus { position: relative; overflow: hidden; display: block; background: var(--g-900); }
.illus__svg { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.illus__img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 1; }
/* Kinga: kanuni za jumla kama `.gallery__item img` zisibadili urefu wa picha ya illus */
.illus > .illus__img, .illus .illus__img { width: 100%; height: 100%; object-fit: cover; }
.illus--card   { height: 150px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.illus--tall   { height: 210px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.illus--sq     { height: 170px; border-radius: var(--r-lg); }
.illus--thumb  { width: 74px; height: 56px; border-radius: var(--r-sm); flex: none; }
.illus--thumb-sm { width: 44px; height: 38px; border-radius: 6px; flex: none; }
.illus--wide   { height: 100%; min-height: 260px; }
.illus--media  { height: 108px; border-radius: var(--r); }

/* Tao la mihrab juu ya picha */
.illus--arch {
  border-radius: 130px 130px var(--r-lg) var(--r-lg);
}
.illus::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(4,35,24,.42) 100%);
}
.illus--plain::after { display: none; }

a:hover > .illus .illus__svg, a:hover > .illus .illus__img,
.card:hover .illus .illus__svg, .card:hover .illus .illus__img,
.feature:hover .illus .illus__svg, .feature:hover .illus .illus__img { transform: scale(1.05); }
.illus__svg, .illus__img { transition: transform .5s cubic-bezier(.2,.8,.3,1); }

/* Beji juu ya mchoro */
.illus__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 4px 10px; border-radius: var(--r-full);
  background: rgba(4,35,24,.72); backdrop-filter: blur(4px);
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid rgba(212,175,55,.4);
}
.illus__cap {
  position: absolute; left: 13px; right: 13px; bottom: 11px; z-index: 2;
  color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* Pattern za mandharinyuma */
.pat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%2312864a' stroke-width='1' opacity='.10'%3E%3Cpath d='M30 2 42 14 54 30 42 46 30 58 18 46 6 30 18 14z'/%3E%3Cpath d='M30 12 48 30 30 48 12 30z'/%3E%3C/g%3E%3C/svg%3E");
}
.pat--gold {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1' opacity='.16'%3E%3Cpath d='M30 2 42 14 54 30 42 46 30 58 18 46 6 30 18 14z'/%3E%3Cpath d='M30 12 48 30 30 48 12 30z'/%3E%3C/g%3E%3C/svg%3E");
}
.section--dark.pat--gold { background-blend-mode: normal; }

/* Kigawanyo chenye nyota ya pointi nane */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 auto 6px; max-width: 220px; color: var(--gold-500);
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }
.ornament svg { width: 15px; height: 15px; flex: none; }

/* Kadi yenye tao */
.arch-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .24s, box-shadow .24s, border-color .24s;
  display: flex; flex-direction: column;
}
.arch-card:hover { transform: translateY(-6px); box-shadow: var(--sh-4); border-color: var(--g-300); }
.arch-card__body { padding: 17px; flex: 1; display: flex; flex-direction: column; }
.arch-card__title { font-size: 14.8px; font-weight: 700; line-height: 1.45; }
.arch-card__meta { font-size: 11.5px; color: var(--muted-2); margin: 5px 0 8px; display: flex; align-items: center; gap: 6px; }
.arch-card__text { font-size: 12.8px; line-height: 1.68; color: var(--muted); flex: 1; }
.arch-card__foot { margin-top: 13px; }

/* Hero yenye pambo */
.hero--page {
  position: relative; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70' viewBox='0 0 70 70'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' opacity='.07'%3E%3Cpath d='M35 2 49 16 63 35 49 54 35 68 21 54 7 35 21 16z'/%3E%3Cpath d='M35 14 56 35 35 56 14 35z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(110% 130% at 8% 0%, rgba(212,175,55,.20), transparent 58%),
    linear-gradient(140deg, var(--g-700) 0%, var(--g-900) 55%, var(--n-900) 100%);
  color: #fff;
  min-height: 0;
  padding: 52px 26px;
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
  gap: 30px; align-items: center;
}
.hero--page h1 { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.14; margin: 14px 0 12px; }
.hero--page p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.82); max-width: 520px; }
.hero__art { position: relative; }
.hero__art .illus { border-radius: 150px 150px var(--r-xl) var(--r-xl); height: 250px; box-shadow: 0 20px 50px rgba(0,0,0,.3); border: 1px solid rgba(212,175,55,.3); }

/* Quote / aya block */
.ayah {
  text-align: center; padding: 30px 24px; border-radius: var(--r-xl);
  border: 1px solid rgba(212,175,55,.32);
  background: rgba(212,175,55,.05);
}
.ayah__ar { font-family: var(--font-ar); font-size: 26px; line-height: 2; color: var(--gold-500); direction: rtl; }
.ayah__tr { font-size: 14px; font-style: italic; color: var(--ink-2); margin-top: 10px; }
.section--dark .ayah__tr { color: rgba(255,255,255,.8); }
.ayah__ref { font-size: 12px; font-weight: 700; color: var(--gold-600); margin-top: 7px; }

/* Feature yenye mchoro */
.feature--illus { padding: 0; overflow: hidden; }
.feature--illus .feature__inner { padding: 20px; }
.feature__ico--float {
  margin-top: -38px; position: relative; z-index: 2;
  border: 3px solid var(--surface); box-shadow: var(--sh-3);
}

@media (max-width: 900px) {
  .hero--page { grid-template-columns: minmax(0,1fr); padding: 34px 16px; }
  .hero--page h1 { font-size: 27px; }
  /* Picha ya hero haifichwi tena kwenye simu — inashuka chini ya maandishi */
  .hero__art { display: block; margin-top: 4px; }
  .hero__art .illus { height: 190px; border-radius: 110px 110px var(--r-lg) var(--r-lg); }
  .illus--wide { min-height: 190px; }
  .ayah__ar { font-size: 21px; }
}
@media (max-width: 560px) {
  .hero__art .illus { height: 160px; border-radius: 88px 88px var(--r-lg) var(--r-lg); }
}

/* ==========================================================================
   KADI YA UANACHAMA
   Ukubwa wa CR80 (85.6 × 54 mm) — uwiano ule ule wa kadi ya benki.
   ========================================================================== */
.idcard { width: 100%; max-width: 420px; margin-inline: auto; }
.idcard__face {
  position: relative; aspect-ratio: 1.586 / 1; border-radius: 16px; overflow: hidden;
  padding: 15px 17px; display: flex; flex-direction: column; color: #fff;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(212,175,55,.20) 0%, transparent 52%),
    linear-gradient(140deg, var(--tier, #12864a) 0%, #0b2a1c 62%, #05170f 100%);
  box-shadow: 0 18px 40px -14px rgba(4,35,24,.55), 0 2px 6px rgba(4,35,24,.22);
  container-type: inline-size;
}
.idcard__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.09) 47%, transparent 56%);
}
.idcard__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

.idcard__head {
  position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 9px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(212,175,55,.32);
}
.idcard__crest { flex: none; display: grid; place-items: center; }
.idcard__org { flex: 1; min-width: 0; line-height: 1.25; }
.idcard__org b { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .01em; }
.idcard__org span {
  display: block; font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.62); margin-top: 2px;
}
.idcard__tier {
  flex: none; align-self: center; background: linear-gradient(135deg, #f0d675, #c9a227);
  color: #2b2000; font-size: 8.5px; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 99px; white-space: nowrap;
}

.idcard__body {
  position: relative; z-index: 2; flex: 1; display: flex; align-items: center;
  gap: 12px; padding-top: 11px;
}
.idcard__photo {
  flex: none; width: 62px; height: 72px; border-radius: 9px; overflow: hidden;
  background: rgba(255,255,255,.13); border: 1px solid rgba(212,175,55,.42);
  display: grid; place-items: center; font-size: 20px; font-weight: 800;
  letter-spacing: .04em;
}
.idcard__photo img { width: 100%; height: 100%; object-fit: cover; }

.idcard__fields { flex: 1; min-width: 0; }
.idcard__name {
  display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em;
  line-height: 1.2; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.idcard__no {
  display: block; font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 10.5px; letter-spacing: .04em; color: #f0d675; margin-top: 3px;
}
.idcard__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; margin-top: 9px;
}
.idcard__grid i {
  display: block; font-style: normal; font-size: 6.5px; letter-spacing: .11em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.idcard__grid b {
  display: block; font-size: 9.5px; font-weight: 700; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.idcard__qr {
  flex: none; background: #fff; padding: 4px; border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2); align-self: center;
}

.idcard__foot {
  position: relative; z-index: 2; display: flex; justify-content: space-between;
  align-items: center; gap: 10px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.idcard__serial {
  font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .07em;
  color: rgba(255,255,255,.72);
}
.idcard__motto {
  font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(212,175,55,.85);
}

/* Skrini ndogo: punguza maandishi bila kuvunja uwiano */
@container (max-width: 330px) {
  .idcard__name { font-size: 12.5px; }
  .idcard__photo { width: 52px; height: 62px; }
  .idcard__qr svg { width: 50px; height: 50px; }
  .idcard__grid { gap: 4px 8px; }
}

/* ==========================================================================
   UKURASA WA UHAKIKI WA KADI
   ========================================================================== */
.verify { min-height: 72vh; display: grid; place-items: center; }
.verify__wrap { width: min(470px, 100%); display: grid; gap: 16px; }

.verify__stamp {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px;
  border-radius: var(--r); border: 1px solid; background: #fff;
}
.verify__stamp b { display: block; font-size: 15.5px; font-weight: 800; }
.verify__stamp span span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.verify__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.verify__stamp--ok  { border-color: rgba(18,134,74,.28); }
.verify__stamp--ok  .verify__ico { background: var(--ok-bg, #e0f2e8); color: var(--ok, #12864a); }
.verify__stamp--bad { border-color: rgba(220,38,38,.26); }
.verify__stamp--bad .verify__ico { background: #fdeaea; color: var(--danger, #dc2626); }

.verify__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r); overflow: hidden;
}
.verify__facts > div { background: var(--surface, #fff); padding: 11px 14px; }
.verify__facts i {
  display: block; font-style: normal; font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.verify__facts b { display: block; font-size: 13px; font-weight: 700; margin-top: 4px; }
.verify__facts .mono { font-family: ui-monospace, monospace; font-size: 11.5px; }

.verify__warn {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  color: var(--warn, #b45309); background: #fff8ec; border: 1px solid rgba(180,83,9,.2);
  border-radius: var(--r); padding: 11px 14px; margin: 0;
}
.verify__note {
  display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px;
  color: var(--muted); line-height: 1.7; margin: 0;
}
.verify__note svg { flex: none; margin-top: 2px; opacity: .6; }

@media (max-width: 460px) { .verify__facts { grid-template-columns: 1fr; } }

/* ==========================================================================
   ORODHA YA MAHITAJI YA KUJISAJILI
   ========================================================================== */
.reqbox {
  background: var(--canvas); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 15px 17px; margin-bottom: 18px;
}
.reqbox > b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.reqbox__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; }
.reqbox__grid span {
  display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.55;
}
.reqbox__grid svg { flex: none; margin-top: 2px; color: var(--g-500); }
.reqbox__opt { grid-column: 1 / -1; color: var(--muted); }
.reqbox__opt svg { color: var(--muted); }
.reqbox__note {
  display: block; margin-top: 11px; padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12px; color: var(--muted); line-height: 1.7;
}
@media (max-width: 640px) { .reqbox__grid { grid-template-columns: 1fr; } }

/* Ujumbe wa makosa yasiyohusu field moja (mfano ombi linalorudiwa) */
.formerr {
  display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px;
  padding: 11px 14px; border-radius: var(--r);
  background: #fdeaea; border: 1px solid rgba(220,38,38,.22);
  color: var(--danger, #dc2626); font-size: 12.5px; line-height: 1.65;
}
.formerr svg { flex: none; margin-top: 2px; }

/* Maktaba ya picha ya umma */
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery__play {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 4px;
  background: rgba(4,35,24,.30); color: #fff; border-radius: inherit;
}
.gallery__play i {
  font-style: normal; font-size: 10.5px; font-family: ui-monospace, monospace;
  background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 99px;
}

/* ==========================================================================
   MAREKEBISHO — PICHA HALISI NA MOBILE RESPONSIVENESS
   ========================================================================== */

/* 1. CHIPS — vichujio vya albamu (/picha/).
   Zilikuwa hazina style kabisa, kwa hiyo zilionekana kama maandishi tu. */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 15px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--g-300); color: var(--g-600); }
.chip.is-active { background: var(--g-500); border-color: var(--g-500); color: #fff; }

/* 2. Crop ya picha.
   Mabango ya MWST yapo katikati-chini ya picha nyingi; kwenye kadi fupi
   crop ya `center` inakata maandishi katikati. Tunapandisha kidogo. */
.illus--card .illus__img,
.illus--tall .illus__img,
.illus--media .illus__img,
.illus--wide .illus__img { object-position: center 40%; }

/* 3. Thumbnails ndogo: picha yenye bango haisomeki, kwa hiyo tunaongeza
   ukubwa kidogo wa crop ili nyuso zionekane badala ya maandishi. */
.illus--thumb .illus__img,
.illus--thumb-sm .illus__img { object-position: center 42%; }

/* 4. Pager isivuke upana kwenye simu.
   `overflow-x:auto` peke yake haitoshi — flex item ina min-width:auto. */
.pager__info, .pager__nav { min-width: 0; max-width: 100%; }
@media (max-width: 780px) {
  .pager { align-items: center; text-align: center; gap: 10px; padding: 13px; }
  .pager__info { width: 100%; }
  .pager__nav {
    width: 100%; flex-wrap: wrap; justify-content: center;
    row-gap: 6px; overflow-x: visible;
  }
}
@media (max-width: 420px) {
  .pager__btn { min-width: 30px; height: 30px; padding: 0 7px; font-size: 11.5px; }
}

/* 5. Chips/tabs zisikatike kwenye skrini ndogo */
@media (max-width: 560px) {
  .chips {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding-bottom: 6px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* 6. Kinga ya jumla: hakuna kitu kinachovuja mlalo.
   `clip` badala ya `hidden` kwa sababu `hidden` inavunja `position: sticky`
   ya pub-nav (inaunda scroll container mpya). */
body { overflow-x: clip; }
img, picture, svg, video, canvas { max-width: 100%; }
.illus__pic { display: contents; }

/* ==========================================================================
   KURASA ZA KISHERIA (Sera ya Faragha / Sera ya Vidakuzi)
   ========================================================================== */
.hero--page-legal .hero__art .illus { height: 220px; }
.legal__effective {
  margin-top: 18px; font-size: 12.5px;
  color: rgba(255,255,255,.78) !important;
}
.legal__effective b { color: var(--gold-400); font-weight: 700; }

.legal__wrap { max-width: 820px; margin-inline: auto; }
.legal__switch { justify-content: center; margin-bottom: 26px; }

.legal__toc {
  background: var(--canvas); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 30px;
}
.legal__toc summary {
  cursor: pointer; font-weight: 700; font-size: 13.5px;
  color: var(--g-700); list-style: none;
}
.legal__toc summary::-webkit-details-marker { display: none; }
.legal__toc summary::after { content: " ▾"; color: var(--muted); }
.legal__toc[open] summary::after { content: " ▴"; }
.legal__toc ol {
  margin: 14px 0 4px; padding-left: 20px;
  columns: 2; column-gap: 26px;
}
.legal__toc li { font-size: 12.8px; margin-bottom: 7px; break-inside: avoid; }
.legal__toc a { color: var(--ink-2); }
.legal__toc a:hover { color: var(--g-600); text-decoration: underline; }

.legal__sec { margin-bottom: 34px; scroll-margin-top: 90px; }
.legal__sec h2 {
  display: flex; align-items: baseline; gap: 11px;
  font-size: 19px; font-weight: 800; letter-spacing: -.015em;
  color: var(--ink); margin-bottom: 12px;
}
.legal__num {
  flex: none; min-width: 30px; height: 30px; padding: 0 7px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-sm); background: var(--g-500); color: #fff;
  font-size: 13px; font-weight: 700;
}
.legal__sec p { font-size: 14px; line-height: 1.8; color: var(--ink-2); margin-bottom: 12px; }
.legal__list { margin: 0 0 14px; padding-left: 4px; list-style: none; }
.legal__list li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
}
.legal__list li::before {
  content: ""; position: absolute; left: 3px; top: 9px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--gold-500); transform: rotate(45deg);
}
.legal__sub { margin: 18px 0 18px; padding-left: 18px; border-left: 2px solid var(--line); }
.legal__sub h3 {
  font-size: 14.5px; font-weight: 700; color: var(--g-700); margin-bottom: 9px;
}
.legal__note {
  background: var(--canvas); border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 15px; font-size: 13px !important; color: var(--ink-2);
}

.legal__contact { margin-top: 14px; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.legal__contact > div { display: grid; grid-template-columns: 190px minmax(0,1fr); background: var(--surface); }
.legal__contact dt { padding: 11px 15px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.legal__contact dd { padding: 11px 15px; font-size: 13.5px; color: var(--ink); margin: 0; word-break: break-word; }

.legal__consent {
  margin-top: 10px; padding: 22px 24px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--g-700), var(--g-900)); color: #fff;
  border: 1px solid rgba(212,175,55,.3);
}
.legal__consent h3 { font-size: 16px; font-weight: 800; color: var(--gold-400); margin-bottom: 10px; }
.legal__consent p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.86); }
.legal__consent .btn { margin-top: 16px; }

@media (max-width: 700px) {
  .legal__toc ol { columns: 1; }
  .legal__sec h2 { font-size: 17px; gap: 9px; }
  .legal__contact > div { grid-template-columns: minmax(0,1fr); }
  .legal__contact dt { padding-bottom: 0; }
  .legal__contact dd { padding-top: 4px; }
  .legal__consent { padding: 18px 16px; }
}

/* Viungo vya kisheria kwenye footer */
.pub-foot__legal {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 10px;
  padding: 16px 0 0; margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 12.5px;
}
.pub-foot__legal a { color: rgba(255,255,255,.72); }
.pub-foot__legal a:hover { color: var(--gold-400); }
.pub-foot__legal span { color: rgba(255,255,255,.28); }

/* ==========================================================================
   KIDIRISHA CHA VIDAKUZI
   ========================================================================== */
.cookiebar {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 70;
  max-width: 940px; margin-inline: auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 15px 18px; border-radius: var(--r-lg);
  background: rgba(4,35,24,.97); border: 1px solid rgba(212,175,55,.32);
  box-shadow: 0 18px 44px -12px rgba(4,35,24,.55);
  color: #fff;
  opacity: 0; transform: translateY(14px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.3,1);
}
/* `display:flex` ya author stylesheet inashinda `[hidden]` ya UA stylesheet,
   kwa hiyo lazima tuizime wazi. */
.cookiebar[hidden] { display: none; }
.cookiebar.is-in { opacity: 1; transform: none; }
.cookiebar__body { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 340px; min-width: 0; }
.cookiebar__ico { flex: none; color: var(--gold-400); margin-top: 1px; }
.cookiebar p { font-size: 12.8px; line-height: 1.65; color: rgba(255,255,255,.86); margin: 0; }
.cookiebar a { color: var(--gold-400); text-decoration: underline; white-space: nowrap; }
.cookiebar__actions { display: flex; gap: 9px; flex: none; }
.cookiebar__actions .btn { font-size: 12.5px; padding: 9px 15px; }
.cookiebar__actions .btn--ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.32);
}
.cookiebar__actions .btn--ghost:hover { background: rgba(255,255,255,.10); }

@media (max-width: 640px) {
  .cookiebar { left: 10px; right: 10px; bottom: 10px; padding: 14px; gap: 13px; }
  .cookiebar__actions { width: 100%; }
  .cookiebar__actions .btn { flex: 1; justify-content: center; }
}
@media print { .cookiebar { display: none !important; } }

/* ==========================================================================
   VIFURUSHI VYA UANACHAMA
   ========================================================================== */
.pkg {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2);
}
.pkg__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pkg__table { width: 100%; min-width: 720px; border-collapse: collapse; }

.pkg__corner {
  background: var(--g-700); color: #fff;
  font-size: 12.5px; font-weight: 700; text-align: left;
  padding: 16px 18px; line-height: 1.35;
  position: sticky; left: 0; z-index: 2;
}
.pkg__tier {
  background: var(--tier, var(--g-600)); color: #fff;
  padding: 16px 14px; text-align: center; vertical-align: middle;
  border-left: 2px solid var(--surface);
}
.pkg__tiername {
  display: block; font-size: 15px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.pkg__flag {
  display: inline-block; margin-top: 6px; padding: 2px 9px;
  border-radius: var(--r-full); background: rgba(255,255,255,.22);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.pkg__table tbody th {
  text-align: left; font-size: 12.8px; font-weight: 600; color: var(--ink-2);
  padding: 11px 18px; white-space: nowrap;
  background: var(--surface); position: sticky; left: 0; z-index: 1;
  border-right: 1px solid var(--line-soft);
}
.pkg__table tbody th svg { color: var(--g-500); vertical-align: -3px; margin-right: 8px; }
.pkg__table td {
  padding: 11px 14px; text-align: center;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.pkg__table tbody tr { border-top: 1px solid var(--line-soft); }
.pkg__table tbody tr:nth-child(even) th,
.pkg__table tbody tr:nth-child(even) td { background: var(--canvas); }
.pkg__yes { color: var(--g-500); }
.pkg__no { color: var(--muted); font-weight: 700; }

.pkg__cardrow th, .pkg__cardrow td { padding-top: 14px; padding-bottom: 16px; }
.pkg__chip {
  display: inline-block; min-width: 108px; padding: 7px 14px;
  border-radius: var(--r-sm); background: var(--tier, var(--g-600));
  color: #fff; font-size: 11.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.pkg__chip--lg { min-width: 140px; padding: 10px 18px; font-size: 12.5px; }
.pkg__special { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.pkg__cta {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 18px; border-top: 1px solid var(--line); background: var(--canvas);
}

.pkg__benefits {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
}
.pkg__benefit {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 15px; text-align: center;
}
.pkg__benefit p { font-size: 12.8px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 0; }
.pkg__benefitico {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--g-50); color: var(--g-600);
}
.pkg__benefitico svg { width: 20px; height: 20px; }

.pkg__methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg__method {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--canvas);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.pkg__method svg { color: var(--g-500); }

.card--dark {
  background: linear-gradient(150deg, var(--g-700), var(--g-900));
  border-color: rgba(212,175,55,.28);
}
.card--dark .card__head { border-bottom-color: rgba(255,255,255,.12); }
.pkg__contact { display: grid; gap: 11px; }
.pkg__contact a, .pkg__contact span {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.86); word-break: break-word;
}
.pkg__contact a:hover { color: var(--gold-400); }
.pkg__contact svg { color: var(--gold-400); flex: none; }

@media (max-width: 1024px) {
  .pkg__benefits { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .pkg__benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pkg__corner, .pkg__table tbody th { position: static; }
  .pkg__table { min-width: 640px; }
}
@media (max-width: 420px) {
  .pkg__benefits { grid-template-columns: minmax(0,1fr); }
}

/* ==========================================================================
   KURASA ZA KUINGIA / KUJISAJILI
   ========================================================================== */
.auth {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%2312864a' stroke-width='1' opacity='.10'%3E%3Cpath d='M42 4 58 20 74 42 58 64 42 80 26 64 10 42 26 20z'/%3E%3Cpath d='M42 18 66 42 42 66 18 42z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 0%, rgba(212,175,55,.13), transparent 62%),
    var(--canvas);
}
.auth__wrap { max-width: 640px; margin-inline: auto; }

.auth__brand { text-align: center; margin-bottom: 26px; }
.auth__brand img { width: 92px; height: 92px; margin-bottom: 6px; }
.auth__brand b {
  display: block; font-size: 34px; font-weight: 800;
  letter-spacing: .06em; color: var(--g-700); line-height: 1;
}
.auth__brand h1 {
  font-size: 25px; font-weight: 800; letter-spacing: -.02em;
  color: var(--g-700); margin: 8px 0 6px;
}
.auth__tagline { font-size: 13px; color: var(--gold-600, #a8871f); font-style: italic; }
.auth__rule {
  display: block; margin: 14px auto 0; width: 200px; height: 14px;
  position: relative; color: var(--gold-500);
}
.auth__rule::before, .auth__rule::after {
  content: ""; position: absolute; top: 50%; width: 78px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.auth__rule::before { left: 0; }
.auth__rule::after { right: 0; transform: scaleX(-1); }
.auth__rule svg { width: 14px; height: 14px; position: absolute; left: 50%; transform: translateX(-50%); }

.auth__card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px 30px 26px;
  box-shadow: 0 22px 60px -26px rgba(4,35,24,.34);
}
.auth__head { text-align: center; margin-bottom: 24px; }
.auth__ico {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--g-50); color: var(--g-600); margin-bottom: 10px;
}
.auth__head h1, .auth__head h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--g-700);
}
.auth__head p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }

.auth__step {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 14px; color: var(--g-700);
}
.auth__step::before, .auth__step::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.auth__stepnum {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--g-500); color: #fff; font-size: 11.5px; font-weight: 800;
}
.auth__steptext { font-size: 14.5px; font-weight: 700; flex: none; }

/* --- Vigae vya majukumu --- */
.rolepick { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 9px; }
.rolepick__item {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 6px 11px; border-radius: var(--r-lg);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .18s, background .18s, transform .18s;
}
.rolepick__item:hover { border-color: var(--g-300); transform: translateY(-2px); }
.rolepick__item input { position: absolute; opacity: 0; pointer-events: none; }
.rolepick__item:has(input:checked) { border-color: var(--g-500); background: var(--g-50); }
.rolepick__item.is-on { border-color: var(--g-500); background: var(--g-50); }
.rolepick__tick {
  position: absolute; top: -7px; right: -7px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--g-500); color: #fff;
  display: grid; place-items: center; opacity: 0; transform: scale(.6);
  transition: opacity .18s, transform .18s;
}
.rolepick__item:has(input:checked) .rolepick__tick,
.rolepick__item.is-on .rolepick__tick { opacity: 1; transform: none; }
.rolepick__ico {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
}
.rolepick__ico svg { width: 21px; height: 21px; }
.rolepick__label {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  text-align: center; line-height: 1.3;
}
.rolepick__hint {
  margin-top: 11px; text-align: center;
  font-size: 12.3px; color: var(--muted); min-height: 18px;
}

/* --- Sehemu za fomu --- */
.authfield {
  display: flex; align-items: center; gap: 10px;
  padding: 0 13px; height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--r-md, 12px);
  background: var(--surface); transition: border-color .18s, box-shadow .18s;
}
.authfield:focus-within { border-color: var(--g-500); box-shadow: 0 0 0 3px rgba(18,134,74,.12); }
.authfield > svg { color: var(--g-500); flex: none; }
.authfield input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 14px; color: var(--ink); font-family: inherit;
}
.authfield input::placeholder { color: var(--muted); }
.authfield button { color: var(--muted); display: grid; place-items: center; }
.authfield button:hover { color: var(--g-600); }

.auth__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 16px 0 18px; font-size: 13px;
}
.auth__row a { color: var(--g-600); font-weight: 600; }
.checkline { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); }
.checkline input { width: 17px; height: 17px; accent-color: var(--g-500); }

.auth__submit { height: 50px; font-size: 14.5px; letter-spacing: .04em; }

/* Dokezo la uwanja wa utambulisho — hubadilika kufuata jukumu */
.field__hint[data-ident-hint] { margin-top: 7px; }

.auth__safe {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 20px; padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--g-50); font-size: 12.5px; color: var(--ink-2); text-align: center;
}
.auth__safe svg { color: var(--g-500); flex: none; }
.auth__alt, .auth__legal {
  text-align: center; margin-top: 16px; font-size: 12.8px; color: var(--muted);
}
.auth__alt a, .auth__legal a { color: var(--g-600); font-weight: 600; }
/* Mlango wa pili wa kuingia (wanachama <-> viongozi). Mstari wa juu
   unatenganisha: si mwendelezo wa fomu, ni njia nyingine kabisa. */
.auth__other {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  text-align: center;
}
.auth__otherlabel {
  display: block; margin-bottom: 9px; font-size: 12.8px; color: var(--muted);
}
.auth__gift {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px; margin-bottom: 20px; border-radius: var(--r-lg);
  background: var(--g-50); border: 1px solid var(--g-100);
  font-size: 12.8px; color: var(--ink-2);
}
.auth__gift svg { color: var(--g-500); flex: none; }

.field__hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.field__err  { display: block; font-size: 11.5px; color: var(--danger); margin-top: 5px; }

@media (max-width: 620px) {
  .rolepick { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .auth__card { padding: 22px 17px 20px; border-radius: 18px; }
  .auth__brand img { width: 74px; height: 74px; }
  .auth__brand b { font-size: 28px; }
  .auth__brand h1 { font-size: 20px; }
  .auth__head h1, .auth__head h2 { font-size: 21px; }
}
@media (max-width: 380px) {
  .rolepick { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ==========================================================================
   ASANTE BAADA YA MCHANGO
   ========================================================================== */
.thanks__wrap { max-width: 760px; margin-inline: auto; }
.thanks__card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 34px 30px; text-align: center;
  box-shadow: var(--sh-2);
}
.thanks__tick {
  width: 66px; height: 66px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--g-50); color: var(--g-500); margin-bottom: 14px;
}
.thanks__card h1 {
  font-size: 27px; font-weight: 800; letter-spacing: -.025em; color: var(--g-700);
}
.thanks__lead { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); margin-top: 10px; }
.thanks__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px; margin: 24px 0 18px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.thanks__facts > div { background: var(--surface); padding: 14px 12px; }
.thanks__facts dt { font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; }
.thanks__facts dd { margin: 6px 0 0; font-size: 13.5px; color: var(--ink); word-break: break-word; }
.thanks__note {
  font-size: 12.8px; line-height: 1.7; color: var(--ink-2);
  background: var(--canvas); border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 13px 16px; text-align: left;
}

.thanks__invite {
  display: flex; gap: 18px; margin-top: 22px;
  padding: 26px 28px; border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--g-700), var(--g-900));
  border: 1px solid rgba(212,175,55,.32); color: #fff;
}
.thanks__inviteico {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(212,175,55,.18); color: var(--gold-400);
}
.thanks__invite h2 { font-size: 19px; font-weight: 800; color: var(--gold-400); }
.thanks__invite p { font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.84); margin-top: 8px; }
.thanks__list { margin: 14px 0 0; padding: 0; list-style: none; }
.thanks__list li {
  position: relative; padding-left: 22px; margin-bottom: 7px;
  font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.84);
}
.thanks__list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--gold-500); transform: rotate(45deg);
}
.thanks__small { font-size: 11.8px; color: rgba(255,255,255,.6); margin-top: 12px; }

.steps-min { margin: 0; padding-left: 20px; }
.steps-min li { font-size: 13px; line-height: 1.7; color: var(--ink-2); margin-bottom: 9px; }

.fundline {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.fundline:last-child { border-bottom: 0; }
.fundline__dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.fundline__name { flex: 1; font-size: 13px; color: var(--ink-2); }
.fundline__amt { font-size: 13px; font-weight: 700; color: var(--ink); }

.loginpanel--welcome { text-align: center; }
.welcome__avatar {
  width: 58px; height: 58px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(212,175,55,.18); color: var(--gold-400);
  font-size: 20px; font-weight: 800; margin-bottom: 12px;
}
.drawer__who {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px; margin-bottom: 12px;
  border-radius: var(--r-lg); background: var(--canvas); border: 1px solid var(--line);
}
.drawer__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--g-500); color: #fff; font-size: 13px; font-weight: 800;
}
.drawer__who b { display: block; font-size: 13.5px; color: var(--ink); }
.drawer__who small { display: block; font-size: 11.5px; color: var(--muted); }
.drawer__out { border: 1px solid var(--line); color: var(--ink-2); }

@media (max-width: 700px) {
  .thanks__facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .thanks__invite { flex-direction: column; padding: 22px 18px; }
  .thanks__card { padding: 26px 18px; }
  .thanks__card h1 { font-size: 22px; }
}

/* ==========================================================================
   KUHUSU SISI
   ========================================================================== */
.about__wrap { max-width: 900px; margin-inline: auto; }
.about__org { font-size: 14px; font-weight: 700; color: var(--g-600); margin-top: 6px; }
.about__intro p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); margin-bottom: 16px; }

.about__vm { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.about__vmcard {
  padding: 26px 24px; border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--g-700), var(--g-900)); color: #fff;
  border: 1px solid rgba(212,175,55,.26);
}
.about__vmcard--gold { background: linear-gradient(150deg, #6b5410, #3d2f06); }
.about__vmico {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(212,175,55,.2); color: var(--gold-400); margin-bottom: 12px;
}
.about__vmcard h3 { font-size: 18px; font-weight: 800; color: var(--gold-400); margin-bottom: 9px; }
.about__vmcard p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.86); }

.about__values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.about__value {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 18px;
}
.about__valueico {
  width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--g-50); color: var(--g-600); margin-bottom: 11px;
}
.about__valueico svg { width: 20px; height: 20px; }
.about__value h4 { font-size: 15px; font-weight: 800; color: var(--g-700); margin-bottom: 6px; }
.about__value p { font-size: 12.8px; line-height: 1.7; color: var(--ink-2); }

.about__work { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.about__workitem {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.about__workitem svg { color: var(--g-500); flex: none; }

.about__mottos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 30px; }
.about__motto {
  padding: 22px 24px; border-radius: var(--r-lg); text-align: center;
  background: var(--g-50); border: 1px solid var(--g-100);
}
.about__motto--alt { background: rgba(212,175,55,.10); border-color: rgba(212,175,55,.3); }
.about__motto span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.about__motto b { font-size: 16px; font-weight: 700; color: var(--g-700); line-height: 1.6; font-style: italic; }

@media (max-width: 860px) {
  .about__values { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .about__vm, .about__mottos, .about__values { grid-template-columns: minmax(0,1fr); }
}

/* ==========================================================================
   MAWASILIANO
   ========================================================================== */
.comm__banner {
  display: flex; align-items: center; gap: 13px; justify-content: center;
  max-width: 420px; margin: 0 auto 26px; padding: 14px 20px;
  border-radius: var(--r-lg); background: var(--g-50); border: 1px solid var(--g-100);
}
.comm__bannerico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--surface); color: var(--g-600);
}
.comm__banner b { display: block; font-size: 14px; color: var(--g-700); }
.comm__banner small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }

.comm__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.comm__card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column;
}
.comm__card header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 12px; border-bottom: 2px solid var(--line-soft);
}
.comm__ico {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--g-600); color: #fff;
}
.comm__card header h3 {
  font-size: 14.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--g-700);
}
.comm__body { padding: 16px 18px 18px; flex: 1; }
.comm__strong { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.comm__addr { font-size: 13px; line-height: 1.75; color: var(--ink-2); margin-top: 8px; }
.comm__photo { display: block; height: 150px; margin-top: 14px; border-radius: var(--r-lg); }

.comm__list { list-style: none; margin: 0; padding: 0; }
.comm__list li {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.comm__list li:last-child { border-bottom: 0; }
.comm__list svg { color: var(--g-500); flex: none; }
.comm__list a { color: var(--ink); font-weight: 600; word-break: break-word; }
.comm__list a:hover { color: var(--g-600); }
.comm__list em { font-style: normal; font-size: 11.8px; color: var(--muted); margin-left: auto; }

.comm__wa {
  display: flex; align-items: center; gap: 9px; margin-top: 12px;
  padding: 11px 14px; border-radius: var(--r-lg);
  background: var(--g-50); border: 1px solid var(--g-100);
  font-size: 12.8px; font-weight: 600; color: var(--g-700);
}
.comm__wa svg { color: #25d366; }
.comm__note {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 12px;
  padding: 11px 14px; border-radius: var(--r-lg);
  background: var(--canvas); font-size: 12.3px; line-height: 1.6; color: var(--ink-2);
}
.comm__note svg { color: var(--g-500); flex: none; margin-top: 2px; }

.comm__hours { width: 100%; border-collapse: collapse; }
.comm__hours th, .comm__hours td {
  padding: 8px 0; font-size: 12.8px; border-bottom: 1px solid var(--line-soft);
}
.comm__hours th { text-align: left; font-weight: 600; color: var(--ink-2); }
.comm__hours td { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.comm__hours tr:last-child th, .comm__hours tr:last-child td { border-bottom: 0; }
.comm__hours tr.is-closed td { color: var(--danger); }

.comm__map {
  display: grid; place-items: center; gap: 8px; height: 150px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(18,134,74,.07) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(18,134,74,.07) 0 1px, transparent 1px 26px),
    var(--canvas);
}
.comm__mappin {
  width: 38px; height: 38px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  display: grid; place-items: center; background: var(--danger); color: #fff;
}
.comm__mappin svg { transform: rotate(45deg); }
.comm__maplabel { font-size: 12.5px; font-weight: 700; color: var(--g-700); text-align: center; }

.comm__socials { list-style: none; margin: 0; padding: 0; }
.comm__socials li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.8px;
}
.comm__socials li:last-child { border-bottom: 0; }
.comm__socialico {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  display: grid; place-items: center; background: var(--g-600); color: #fff;
}
.soc--facebook { background: #1877f2; }
.soc--x-social { background: #000; }
.soc--instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.soc--youtube { background: #ff0000; }
.comm__socials b { font-weight: 700; color: var(--ink); }
.comm__socials li > span:last-child {
  margin-left: auto; color: var(--muted); font-size: 11.8px;
  text-align: right; word-break: break-word;
}

.comm__ayah {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  margin-top: 22px; padding: 26px 28px; border-radius: var(--r-xl);
  background: var(--g-50); border: 1px solid var(--g-100);
}
.comm__ayahleft { display: flex; align-items: center; gap: 14px; }
.comm__ayahico {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--surface); color: var(--g-600);
}
.comm__ayahleft b { display: block; font-size: 15px; font-weight: 800; color: var(--g-700); }
.comm__ayahleft small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.comm__ayahright { text-align: center; }
.comm__ayahtx { font-size: 13.5px; font-style: italic; color: var(--ink-2); margin-top: 8px; }
.comm__ayahref { font-size: 11.8px; color: var(--muted); }

@media (max-width: 980px) { .comm__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 660px) {
  .comm__grid { grid-template-columns: minmax(0,1fr); }
  .comm__ayah { grid-template-columns: minmax(0,1fr); padding: 20px 16px; }
  .comm__list em { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   UKURASA WA UANACHAMA (muundo wa bango la MEMBERSHIP)
   ========================================================================== */
.grid--1-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 18px; }
.grid--2-1 { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 18px; }

.mem__panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
}
.mem__head {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 20px; background: var(--g-700); color: #fff;
}
.mem__head svg { color: var(--gold-400); flex: none; }
.mem__head h2 {
  font-size: 14.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.mem__head--danger { background: #7f1d1d; }
.mem__body { padding: 20px; }
.mem__body p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 12px; }

.mem__quote {
  margin: 4px 0 0; padding: 14px 16px;
  border-left: 3px solid var(--gold-500); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--canvas);
}
.mem__quote p { font-size: 12.8px; font-style: italic; margin-bottom: 6px; }
.mem__quote cite { font-size: 11.5px; color: var(--muted); font-style: normal; }

.mem__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mem__steps li {
  display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px;
  align-items: start; grid-template-rows: auto auto;
}
.mem__stepico {
  grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--g-50); color: var(--g-600);
}
.mem__stepico svg { width: 21px; height: 21px; }
.mem__steps b { font-size: 13.5px; font-weight: 700; color: var(--g-700); }
.mem__steps li > span:last-child { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }

.mem__joinnote {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 12px 15px; border-radius: var(--r-lg);
  background: var(--g-50); border: 1px solid var(--g-100);
  font-size: 12.5px; color: var(--ink-2);
}
.mem__joinnote svg { color: var(--g-500); flex: none; }
.mem__joinnote a { color: var(--g-600); font-weight: 700; text-decoration: underline; }

.mem__types { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.mem__type {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 18px;
}
.mem__typeico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
}
.mem__typeico svg { width: 20px; height: 20px; }
.mem__type h4 { font-size: 14.5px; font-weight: 800; color: var(--g-700); margin-bottom: 4px; }
.mem__type p { font-size: 12.8px; line-height: 1.65; color: var(--ink-2); }
.mem__feelink { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.mem__feelink a { color: var(--g-600); font-weight: 700; text-decoration: underline; }

.mem__benefits { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.mem__benefit {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 15px; text-align: center;
}
.mem__benefitico {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--g-50); color: var(--g-600); margin-bottom: 10px;
}
.mem__benefitico svg { width: 20px; height: 20px; }
.mem__benefit p { font-size: 12.3px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.mem__numlist { margin: 0; padding: 0; list-style: none; counter-reset: mem; }
.mem__numlist li {
  counter-increment: mem; position: relative; padding-left: 34px; margin-bottom: 11px;
  font-size: 13px; line-height: 1.65; color: var(--ink-2);
}
.mem__numlist li::before {
  content: counter(mem); position: absolute; left: 0; top: 0;
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-500); color: #fff; font-size: 11.5px; font-weight: 800;
}
.mem__numlist--danger li::before { background: #b91c1c; }
.mem__numlist b { color: var(--ink); }
.mem__panel--danger { border-color: rgba(185,28,28,.28); }
.mem__endsintro { font-weight: 700; color: #b91c1c !important; font-size: 13px !important; }
.mem__warn {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 14px;
  padding: 12px 15px; border-radius: var(--r-lg);
  background: rgba(185,28,28,.07); border: 1px solid rgba(185,28,28,.24);
  font-size: 12.3px !important; line-height: 1.6; color: #7f1d1d !important;
}
.mem__warn svg { color: #b91c1c; flex: none; margin-top: 2px; }

.mem__why {
  padding: 30px 32px; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(150deg, var(--g-700), var(--g-950));
  border: 1px solid rgba(212,175,55,.28);
}
.mem__why h3 { font-size: 19px; font-weight: 800; color: var(--gold-400); margin-bottom: 14px; }
.mem__why ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.mem__why li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: rgba(255,255,255,.88);
}
.mem__why li svg { color: var(--gold-400); flex: none; }

@media (max-width: 1024px) { .mem__benefits { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .grid--1-2, .grid--2-1, .mem__bottom { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) { .mem__benefits { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) {
  .mem__benefits { grid-template-columns: minmax(0,1fr); }
  .mem__why { padding: 22px 18px; }
}

/* Kinga: header isivuke upana kwenye simu ndogo */
@media (max-width: 480px) {
  .pub-nav__right { gap: 6px; min-width: 0; }
  .pub-nav__right .btn { padding: 0 10px; }
  .langpick { flex: none; }
}

/* --------------------------------------------------------------------------
   Vifaa vya kuficha kwa upana — `hide-xs` ilitumika kwenye base.html
   lakini haikuwahi kufafanuliwa, kwa hiyo maandishi ya kitufe cha kuingia
   yalikuwa yanabana header kwenye simu.
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .hide-xs { display: none; }
  .pub-brand small { display: none; }
  .pub-nav { padding: 10px 12px; gap: 8px; }
  .pub-nav__right { gap: 7px; }
  .pub-nav__right .btn { padding: 0 11px; }
}
@media (max-width: 400px) {
  .pub-brand b { font-size: 19px; }
}

/* ==========================================================================
   UKURASA WA MICHANGO
   Kadi moja, hatua tano, muhtasari unaonata. Aina za michango zipo kwenye
   dropdown ya kujitengenezea (`.gv__dd`) badala ya `<select>` ya kivinjari,
   kwa sababu ya kivinjari huamua yenyewe kufungua juu au chini — hii
   inafunguka chini daima.
   ========================================================================== */
.gv { max-width: 1060px; margin-inline: auto; }

.gv__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04),
              0 12px 28px -12px rgba(4, 35, 24, .18),
              0 40px 70px -40px rgba(4, 35, 24, .28);
}

/* --- Kichwa --- */
.gv__head {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 20px 26px;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(120% 180% at 8% 0%, rgba(76, 189, 131, .30), transparent 55%),
    linear-gradient(112deg, var(--g-950) 0%, var(--g-800) 46%, var(--g-600) 100%);
  color: #fff;
}
/* Mng'ao mwepesi wa dhahabu — unatoa hisia ya kadi ya thamani */
.gv__glow {
  position: absolute; inset: auto -10% -70% auto; width: 340px; height: 340px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(212, 175, 55, .26), transparent 62%);
}
.gv__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent 62%);
}
.gv__headmain { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.gv__headico {
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  display: grid; place-items: center; color: var(--gold-400);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.gv__head h1 {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.15;
}
.gv__head p { font-size: 12.5px; color: rgba(255, 255, 255, .74); margin-top: 3px; }
.gv__headbadge {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.gv__headbadge svg { color: var(--g-300); }

.gv__err {
  display: flex; gap: 10px; align-items: flex-start; margin: 18px 26px 0;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent);
  font-size: 12.5px; line-height: 1.55;
}
.gv__err svg { flex: none; margin-top: 2px; }

/* --- Mwili --- */
.gv__body {
  display: grid; grid-template-columns: minmax(0, 1fr) 314px;
  align-items: start;
}
.gv__form { padding: 26px 26px 28px; display: grid; gap: 24px; min-width: 0; }

.gv__step { min-width: 0; }
.gv__label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 11px;
  font-size: 12px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--g-800);
}
.gv__n {
  width: 23px; height: 23px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g-600), var(--g-800));
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0;
  box-shadow: 0 2px 6px -1px rgba(13, 84, 51, .45);
}

/* --- Uwanja wa aina ya mchango --- */
.gv__select { position: relative; }
.gv__select select,
.gv__dd__btn {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 0 42px 0 48px; height: 54px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); text-align: left;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: border-color .16s, box-shadow .16s, background .16s;
}
.gv__select select:hover, .gv__dd__btn:hover { border-color: var(--g-300); }
.gv__select select:focus, .gv__dd__btn:focus-visible {
  outline: none; border-color: var(--g-500);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 14%, transparent);
}
.gv__selectico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--g-600); pointer-events: none; z-index: 2;
}
.gv__chev {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; transition: transform .2s; z-index: 2;
}
.gv__select.is-open .gv__chev { transform: translateY(-50%) rotate(180deg); }
.gv__note {
  margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.55;
  min-height: 1.2em; padding-left: 2px;
}

/* --- Dropdown ya kujitengenezea (inafunguka chini daima) --- */
.gv__dd { position: relative; }
.gv__dd__btn { display: flex; align-items: center; }
.gv__dd__list {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 60;
  max-height: 306px; overflow-y: auto; overscroll-behavior: contain;
  padding: 7px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 44px -14px rgba(4, 35, 24, .34), var(--sh-2);
  animation: gvDrop .16s ease-out;
}
@keyframes gvDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.gv__dd__list[hidden] { display: none; }
.gv__dd__group {
  padding: 9px 11px 5px; font-size: 10px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2);
}
.gv__dd__opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 11px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--ink); text-align: left;
  font-family: inherit; font-size: 14px; font-weight: 600;
  transition: background .12s, color .12s;
}
.gv__dd__opt svg { flex: none; color: var(--muted-2); transition: color .12s; }
.gv__dd__opt:hover, .gv__dd__opt.is-cursor { background: var(--g-50); color: var(--g-800); }
.gv__dd__opt:hover svg, .gv__dd__opt.is-cursor svg { color: var(--g-600); }
.gv__dd__opt.is-on { background: var(--g-50); color: var(--g-800); font-weight: 700; }
.gv__dd__opt.is-on svg { color: var(--g-600); }
.gv__dd__opt.is-on::after {
  content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--g-500); flex: none;
}

/* --- Kiasi --- */
.gv__amount {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); overflow: hidden;
  transition: border-color .16s, box-shadow .16s;
}
.gv__amount:hover { border-color: var(--g-300); }
.gv__amount:focus-within {
  border-color: var(--g-500);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 14%, transparent);
}
.gv__amount select {
  appearance: none; -webkit-appearance: none; border: 0;
  padding: 0 15px; cursor: pointer;
  background: linear-gradient(180deg, var(--g-50), #fff);
  color: var(--g-800); font-family: inherit;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  border-right: 1.5px solid var(--line);
}
.gv__amount select:focus { outline: none; }
.gv__amount input {
  flex: 1; min-width: 0; border: 0; height: 54px; padding: 0 16px;
  background: transparent; color: var(--ink);
  font-family: var(--font-num); font-size: 19px; font-weight: 700;
  letter-spacing: -.01em;
}
.gv__amount input:focus { outline: none; }
.gv__amount input::-webkit-outer-spin-button,
.gv__amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gv__amount input[type="number"] { -moz-appearance: textfield; }

.gv__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.gv__chip {
  padding: 8px 15px; border-radius: var(--r-full);
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-family: var(--font-num);
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.gv__chip:hover { border-color: var(--g-300); color: var(--g-700); transform: translateY(-1px); }
.gv__chip.is-on {
  background: linear-gradient(150deg, var(--g-500), var(--g-700));
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px -3px rgba(13, 84, 51, .55);
}
.gv__fx { margin-top: 9px; font-size: 12px; font-weight: 700; color: var(--gold-700); }

/* --- Marudio --- */
.gv__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gv__pill {
  position: relative; cursor: pointer;
  padding: 9px 16px; border-radius: var(--r-full);
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.gv__pill input { position: absolute; opacity: 0; pointer-events: none; }
.gv__pill:hover { border-color: var(--g-300); transform: translateY(-1px); }
.gv__pill.is-on {
  background: var(--g-50); border-color: var(--g-500);
  color: var(--g-800); font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--g-500);
}
/* Punguzo linaonyeshwa kwenye kishikizo chenyewe ili mtu asilazimike
   kuchagua kwanza ndipo aone faida yake. */
.gv__off {
  margin-left: 6px; padding: 2px 7px; border-radius: var(--r-full);
  background: var(--gold-500); color: var(--g-950);
  font-size: 9.5px; font-weight: 800; letter-spacing: .02em;
}
.gv__pill.is-on .gv__off { background: var(--g-700); color: #fff; }
.gv__hint { margin: -4px 0 9px; font-size: 12px; color: var(--muted); line-height: 1.55; }

/* --- Njia za malipo --- */
.gv__pays { display: grid; gap: 10px; }
.gv__pay {
  position: relative; display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 14px 15px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-family: inherit; color: var(--ink);
  transition: border-color .16s, box-shadow .16s, background .16s, transform .16s;
}
.gv__pay input { position: absolute; opacity: 0; pointer-events: none; }
.gv__pay:hover { border-color: var(--g-300); transform: translateY(-1px); }
.gv__pay.is-on {
  border-color: var(--g-500);
  background: linear-gradient(120deg, var(--g-50), #fff 70%);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 12%, transparent);
}
.gv__payico {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g-100), var(--g-50));
  color: var(--g-700);
}
.gv__pay.is-on .gv__payico {
  background: linear-gradient(150deg, var(--g-600), var(--g-800)); color: #fff;
  box-shadow: 0 3px 10px -3px rgba(13, 84, 51, .5);
}
.gv__paytxt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gv__paytxt b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.gv__paytxt small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.gv__payok {
  margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--g-500); color: #fff;
  opacity: 0; transform: scale(.6); transition: opacity .16s, transform .16s;
}
.gv__pay.is-on .gv__payok { opacity: 1; transform: none; }

/* Njia zinazokuja — zinaonekana ili mtu ajue zipo njiani, lakini
   haziwezi kuchaguliwa. Seva pia inazikataa. */
.gv__pay.is-soon { background: var(--canvas); border-style: dashed; cursor: not-allowed; }
.gv__pay.is-soon:hover { border-color: var(--muted-2); transform: none; }
.gv__pay.is-soon .gv__payico { background: var(--line-soft); color: var(--muted-2); }
.gv__pay.is-soon .gv__paytxt b { color: var(--muted); }
.gv__soon {
  margin-left: auto; flex: none; padding: 4px 10px; border-radius: var(--r-full);
  background: var(--warn-bg); color: var(--warn);
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.gv__soonmsg {
  display: flex; align-items: center; gap: 9px; margin-top: 10px;
  padding: 11px 13px; border-radius: var(--r);
  background: var(--warn-bg); color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
}


/* --- Beji ya mtoa huduma wa malipo -----------------------------------------
   Inaonyesha mitandao halisi inayokubalika. Mandharinyuma ni meupe kwa
   makusudi: nembo za Visa/Airtel/Mixx zimeundwa kwa mandharinyuma meupe,
   na kuziweka juu ya rangi nyingine hupunguza uhalisia wake. */
.paybadge {
  margin-top: 12px; padding: 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  display: flex; justify-content: center;
}
.paybadge img {
  display: block; width: 100%; max-width: 400px; height: auto;
}
@media (max-width: 560px) {
  .paybadge { padding: 10px; }
  .paybadge img { max-width: 300px; }
}
/* Kwenye giza, kadi nyeupe inang'aa sana — tunaipunguzia ukali kidogo */
[data-theme="dark"] .paybadge { background: rgba(255,255,255,.92); border-color: transparent; }

/* --- Sehemu za kujaza --- */
.gv__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.gv__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gv__f label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.gv__f label em { color: var(--danger); font-style: normal; }
.gv__f label small {
  padding: 2px 7px; border-radius: var(--r-full);
  background: var(--line-soft); color: var(--muted-2);
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.gv__f input, .gv__f textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 13.5px;
  transition: border-color .16s, box-shadow .16s;
}
.gv__f textarea { resize: vertical; }
.gv__f input:hover, .gv__f textarea:hover { border-color: var(--g-300); }
.gv__f input:focus, .gv__f textarea:focus {
  outline: none; border-color: var(--g-500);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 14%, transparent);
}
.gv__f input::placeholder, .gv__f textarea::placeholder { color: var(--muted-2); }

.gv__more { margin-top: 14px; }
.gv__more summary {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 13px; border-radius: var(--r-full);
  background: var(--g-50); color: var(--g-700);
  font-size: 12.5px; font-weight: 700;
  list-style: none; user-select: none; transition: background .15s;
}
.gv__more summary:hover { background: var(--g-100); }
.gv__more summary::-webkit-details-marker { display: none; }
.gv__more summary::before { content: "+"; font-size: 15px; font-weight: 800; }
.gv__more[open] summary::before { content: "\2212"; }
.gv__check {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 12px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; line-height: 1.5;
}
.gv__check input { margin-top: 2px; accent-color: var(--g-500); flex: none; }

/* --- Muhtasari --- */
.gv__side { position: sticky; top: 84px; align-self: start; padding: 26px 26px 28px 0; }
.gv__sum {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--canvas));
  box-shadow: var(--sh-2);
}
.gv__sum h2 {
  padding: 13px 17px; color: #fff;
  background: linear-gradient(112deg, var(--g-950), var(--g-700));
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.gv__sum dl { padding: 15px 17px 0; margin: 0; }
.gv__sum dl > div {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.gv__sum dl > div:last-child { border-bottom: 0; }
.gv__sum dt { font-size: 12px; color: var(--muted); flex: none; }
.gv__sum dd {
  margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink);
  text-align: right; min-width: 0; overflow-wrap: anywhere;
}
.gv__free { color: var(--g-600) !important; }
.gv__total {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 13px 17px 0; padding: 13px 0 15px;
  border-top: 2px solid var(--g-800);
}
.gv__total span {
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-2);
}
.gv__total b {
  font-family: var(--font-num); font-size: 23px; font-weight: 800;
  color: var(--g-700); letter-spacing: -.025em; line-height: 1;
}

.gv__go {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: calc(100% - 34px); margin: 0 17px; padding: 15px;
  border: 0; border-radius: 13px; cursor: pointer;
  background: linear-gradient(115deg, var(--gold-700), var(--gold-500) 55%, var(--gold-400));
  color: var(--g-950); font-family: inherit;
  font-size: 13.5px; font-weight: 800; letter-spacing: .06em;
  box-shadow: 0 4px 14px -4px rgba(169, 129, 42, .6),
              inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.gv__go svg { transition: transform .18s; }
.gv__go:hover {
  transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: 0 8px 22px -6px rgba(169, 129, 42, .65),
              inset 0 1px 0 rgba(255, 255, 255, .35);
}
.gv__go:hover svg { transform: translateX(3px); }
.gv__go:active { transform: translateY(0); }

.gv__trust { list-style: none; margin: 15px 17px 0; padding: 0; display: grid; gap: 8px; }
.gv__trust li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: var(--muted); line-height: 1.45;
}
.gv__trust svg { flex: none; margin-top: 1px; color: var(--g-500); }
.gv__terms {
  margin: 12px 17px 0; padding-top: 11px; padding-bottom: 15px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted-2);
}
.gv__terms a { color: var(--g-600); font-weight: 700; }

/* --- Mstari wa chini --- */
.gv__foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 18px; font-size: 12px; color: var(--muted);
}
.gv__foot span { display: inline-flex; align-items: center; gap: 7px; }
.gv__foot svg { color: var(--g-500); }

/* --- Simu na tableti --- */
@media (max-width: 940px) {
  .gv__body { grid-template-columns: minmax(0, 1fr); }
  .gv__form { padding-bottom: 6px; }
  .gv__side { position: static; padding: 18px 26px 26px; }
}
@media (max-width: 580px) {
  .gv__card { border-radius: 18px; }
  .gv__head { padding: 16px 17px; border-radius: 18px 18px 0 0; }
  .gv__head h1 { font-size: 19px; }
  .gv__headbadge { display: none; }
  .gv__form { padding: 20px 17px 6px; gap: 22px; }
  .gv__side { padding: 15px 17px 22px; }
  .gv__err { margin-inline: 17px; }
  .gv__grid { grid-template-columns: minmax(0, 1fr); }
  /* 16px huzuia iOS kuvuta skrini (zoom) fomu ikiguswa */
  .gv__amount input { font-size: 17px; }
  .gv__f input, .gv__f textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .gv__dd__list { animation: none; }
}

@media print {
  .gv__side, .gv__chips, .gv__foot, .gv__more { display: none !important; }
  .gv__card { box-shadow: none; }
}





/* ==========================================================================
   MIRADI KWENYE UKURASA WA NYUMBANI
   ========================================================================== */
.homeproj .section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; text-align: left; max-width: none; margin-bottom: 20px;
}
.homeproj .section__sub {
  margin-top: 5px; font-size: 13px; color: var(--muted); line-height: 1.55;
}
.homeproj .link-more { flex: none; }

.proj {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.proj:hover {
  border-color: var(--g-300); transform: translateY(-3px);
  box-shadow: 0 16px 34px -18px rgba(4,35,24,.30);
}
/* Picha inatumia `components/illus.html`: picha halisi ikipatikana
   inaonekana, vinginevyo mchoro wa SVG unabaki. */
.proj__pic { height: 150px; border-radius: 18px 18px 0 0; }
.proj__body { display: flex; flex-direction: column; flex: 1; padding: 16px 17px 17px; }
.proj__place {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  padding: 3px 9px; border-radius: var(--r-full); margin-bottom: 9px;
  background: var(--g-50); color: var(--g-700);
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
}
.proj h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.proj p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.proj__bar {
  height: 6px; margin-top: 14px; border-radius: var(--r-full);
  background: var(--line-soft); overflow: hidden;
}
.proj__bar span {
  display: block; height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--g-600), var(--g-400));
}
.proj__figs {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin: 9px 0 15px;
}
.proj__figs b {
  font-family: var(--font-num); font-size: 15px; font-weight: 800; color: var(--g-700);
}
.proj__figs span { font-size: 11.5px; color: var(--muted); }
/* Kitufe kinabaki chini hata kadi zikiwa na urefu tofauti */
.proj__body > .btn { margin-top: auto; }

@media (max-width: 700px) {
  .homeproj .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* ==========================================================================
   UKURASA WA KUSUBIRI MALIPO (Selcom USSD push)
   Mtu anaingiza PIN kwenye simu yake; ukurasa huu unauliza hali
   kila sekunde chache hadi malipo yakamilike.
   ========================================================================== */
.wait { max-width: 520px; margin-inline: auto; }
.wait__card {
  text-align: center; padding: 34px 28px 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04),
              0 18px 40px -18px rgba(4,35,24,.24);
}
.wait__ring {
  display: grid; place-items: center; width: 76px; height: 76px;
  margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(150deg, var(--g-100), var(--g-50));
  color: var(--g-700); position: relative;
}
/* Mduara unaozunguka — unaonyesha kuwa kitu kinaendelea, si kwamba
   ukurasa umekwama. */
.wait__ring::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--g-500);
  animation: waitSpin 1.1s linear infinite;
}
@keyframes waitSpin { to { transform: rotate(360deg); } }

.wait h1 {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--g-800);
}
.wait__lead {
  margin-top: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65;
}
.wait__lead b { color: var(--g-700); }

.wait__facts {
  display: grid; gap: 1px; margin: 22px 0 0; padding: 0;
  background: var(--line); border-radius: 14px; overflow: hidden;
}
.wait__facts > div {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding: 11px 15px; background: var(--canvas);
}
.wait__facts dt { font-size: 12px; color: var(--muted); }
.wait__facts dd {
  margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink);
}

.wait__bar {
  height: 4px; margin-top: 22px; border-radius: var(--r-full);
  background: var(--line-soft); overflow: hidden;
}
.wait__bar span {
  display: block; height: 100%; width: 35%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--g-500), var(--gold-500));
  animation: waitSlide 1.6s ease-in-out infinite;
}
@keyframes waitSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
.wait__status {
  margin-top: 11px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.wait__status.is-fail { color: var(--danger); }

.wait__retry { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.wait__retry p { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

.wait__note {
  display: flex; gap: 8px; align-items: flex-start; justify-content: center;
  margin-top: 20px; font-size: 11.5px; color: var(--muted-2); line-height: 1.55;
}
.wait__note svg { flex: none; margin-top: 2px; color: var(--g-500); }

@media (prefers-reduced-motion: reduce) {
  .wait__ring::after, .wait__bar span { animation: none; }
  .wait__bar span { width: 100%; }
}
@media (max-width: 520px) {
  .wait__card { padding: 26px 18px 22px; border-radius: 18px; }
  .wait h1 { font-size: 19px; }
}


/* ==========================================================================
   POINTI ZA MUWESTA
   Kiwango, ngazi na mgawanyo wa chanzo cha pointi.
   ========================================================================== */
.ptier {
  position: relative; overflow: hidden; border-radius: 20px; color: #fff;
  background:
    radial-gradient(120% 160% at 8% 0%, rgba(76,189,131,.26), transparent 58%),
    linear-gradient(118deg, var(--g-950) 0%, var(--g-800) 52%, var(--g-700) 100%);
  box-shadow: 0 18px 44px -20px rgba(4,35,24,.5);
}
.ptier__glow {
  position: absolute; inset: auto -8% -60% auto; width: 340px; height: 340px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(212,175,55,.22), transparent 62%);
}
.ptier__main {
  position: relative; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; padding: 22px 24px 16px;
}
.ptier__badge {
  width: 56px; height: 56px; flex: none; border-radius: 16px;
  display: grid; place-items: center; color: var(--gold-400);
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.ptier__eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
.ptier h3 {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  color: #fff; line-height: 1.15; margin-top: 3px;
}
.ptier p { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 3px; }
.ptier__score { margin-left: auto; text-align: right; }
.ptier__score b {
  display: block; font-family: var(--font-num); font-size: 32px;
  font-weight: 800; color: var(--gold-400); letter-spacing: -.03em; line-height: 1;
}
.ptier__score small { font-size: 11px; color: rgba(255,255,255,.6); }

.ptier__road { position: relative; padding: 0 24px 16px; }
.ptier__bar {
  height: 7px; border-radius: var(--r-full); overflow: hidden;
  background: rgba(255,255,255,.14);
}
.ptier__bar span {
  display: block; height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width .5s ease-out;
}
.ptier__next {
  display: block; margin-top: 8px;
  font-size: 12px; color: rgba(255,255,255,.72);
}

.ptier__split {
  position: relative; display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 24px 20px; border-top: 1px solid rgba(255,255,255,.11);
}
.ptier__part {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-full);
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
}
.ptier__part svg { color: var(--gold-400); flex: none; }
.ptier__part b { font-family: var(--font-num); font-size: 14px; font-weight: 800; }
.ptier__part small { font-size: 11.5px; color: rgba(255,255,255,.66); }

/* --- Ngazi zote --- */
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.ladder__step {
  position: relative; padding: 14px 13px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .16s, background .16s;
}
.ladder__step.is-passed { border-color: var(--g-300); background: var(--g-50); }
.ladder__step.is-now {
  border-color: var(--g-600); background: var(--g-50);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-500) 15%, transparent);
}
.ladder__ico {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; margin-bottom: 9px;
  background: var(--line-soft); color: var(--muted-2);
}
.ladder__step.is-passed .ladder__ico { background: var(--g-100); color: var(--g-700); }
.ladder__step.is-now .ladder__ico {
  background: linear-gradient(150deg, var(--g-600), var(--g-800)); color: #fff;
}
.ladder__step b { display: block; font-size: 13px; font-weight: 700; }
.ladder__step small {
  display: block; margin-top: 2px;
  font-family: var(--font-num); font-size: 11.5px; color: var(--muted);
}
.ladder__note {
  display: block; margin-top: 7px;
  font-size: 11px; color: var(--muted-2); line-height: 1.45;
}

/* --- Kikomo cha pointi za fedha --- */
.pcap {
  margin-top: 18px; padding: 15px 16px; border-radius: 14px;
  background: var(--canvas); border: 1px solid var(--line);
}
.pcap__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 9px; font-size: 12.5px;
}
.pcap__head span { font-family: var(--font-num); font-weight: 700; color: var(--g-700); }
.pcap p { margin-top: 9px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.pnote {
  margin-bottom: 12px; padding: 11px 13px; border-radius: var(--r);
  background: var(--g-50); color: var(--ink-2);
  font-size: 12px; line-height: 1.6;
}

@media (max-width: 900px) { .ladder { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) {
  .ladder { grid-template-columns: minmax(0,1fr); }
  .ptier__main { padding: 18px 16px 14px; }
  .ptier h3 { font-size: 20px; }
  .ptier__score { margin-left: 0; text-align: left; width: 100%; }
  .ptier__road, .ptier__split { padding-inline: 16px; }
}


/* ==========================================================================
   MHISANI — shughuli za kuchangia na mwaliko wa uanachama
   ========================================================================== */
.causes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cause {
  display: block; padding: 15px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.cause:hover {
  border-color: var(--g-300); transform: translateY(-2px); box-shadow: var(--sh-2);
}
.cause__bar {
  display: block; height: 5px; border-radius: var(--r-full);
  background: var(--line-soft); overflow: hidden; margin-bottom: 12px;
}
.cause__fill { display: block; height: 100%; background: var(--c, var(--g-500)); }
.cause__title { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.cause__text { margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cause__meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px;
  font-size: 11.5px; font-weight: 600; color: var(--g-600);
}

.joincta {
  position: relative; overflow: hidden; margin-top: 22px;
  border-radius: 20px; color: #fff;
  background:
    radial-gradient(120% 160% at 6% 0%, rgba(76, 189, 131, .26), transparent 58%),
    linear-gradient(118deg, var(--g-950) 0%, var(--g-800) 52%, var(--g-700) 100%);
  box-shadow: 0 18px 44px -20px rgba(4, 35, 24, .5);
}
.joincta__glow {
  position: absolute; inset: auto -8% -60% auto; width: 360px; height: 360px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(212, 175, 55, .24), transparent 62%);
}
.joincta__body { position: relative; padding: 26px; max-width: 660px; }
.joincta__eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}
.joincta h3 {
  margin-top: 13px; font-size: 23px; font-weight: 800;
  letter-spacing: -.02em; color: #fff; line-height: 1.2;
}
.joincta p { margin-top: 9px; font-size: 13.5px; color: rgba(255, 255, 255, .78); line-height: 1.65; }
.joincta__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.joincta__list li {
  position: relative; padding-left: 25px;
  font-size: 13px; color: rgba(255, 255, 255, .88); line-height: 1.5;
}
.joincta__list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(212, 175, 55, .22);
  box-shadow: inset 0 0 0 1.5px var(--gold-400);
}
.joincta__price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.joincta__amt {
  font-family: var(--font-num); font-size: 27px; font-weight: 800;
  color: var(--gold-400); letter-spacing: -.025em;
}
.joincta__price small {
  display: block; margin-top: 2px;
  font-size: 12px; color: rgba(255, 255, 255, .66);
}
.joincta__reg { font-size: 12px; color: rgba(255, 255, 255, .66); }
.joincta__small { margin-top: 14px; font-size: 11.5px; color: rgba(255, 255, 255, .55); }

@media (max-width: 700px) {
  .causes { grid-template-columns: minmax(0, 1fr); }
  .joincta__body { padding: 20px 17px; }
  .joincta h3 { font-size: 20px; }
}


/* ==========================================================================
   LIPA ADA YA UANACHAMA
   ========================================================================== */
.pay__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pay__head h1 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pay__head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.pay__steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pay__steps li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted); position: relative; padding: 0 12px;
}
.pay__steps li::after {
  content: ""; position: absolute; top: 14px; right: -8px; width: 16px;
  border-top: 1px dashed var(--line);
}
.pay__steps li:last-child::after { display: none; }
.pay__steps span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--canvas); border: 1px solid var(--line);
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.pay__steps li.is-on { color: var(--g-700); font-weight: 700; }
.pay__steps li.is-on span { background: var(--g-500); border-color: var(--g-500); color: #fff; }

.pay__cols { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; align-items: start; }
.pay__main { display: grid; gap: 16px; min-width: 0; }
.pay__box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 20px;
}
.pay__box h2 {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 14px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--g-700);
}
.pay__num {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--g-500); color: #fff; font-size: 12px; font-weight: 800;
}
.pay__sub {
  font-size: 13px; font-weight: 700; color: var(--ink); margin: 20px 0 11px;
}
/* Dokezo la usalama chini ya njia za malipo (lipa.html) */
.pay__note {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 12px;
  padding: 11px 13px; border-radius: var(--r);
  background: var(--g-50); color: var(--ink-2);
  font-size: 12px; line-height: 1.55;
}
.pay__note svg { flex: none; margin-top: 2px; color: var(--g-600); }

/* --- Kadi za vifurushi --- */
.pay__packs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.pay__pack {
  position: relative; cursor: pointer; text-align: center;
  padding: 16px 11px 13px; border-radius: var(--r-lg);
  border: 1.5px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pay__pack:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.pay__pack input { position: absolute; opacity: 0; pointer-events: none; }
.pay__pack.is-on {
  border-color: var(--tier); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 16%, transparent);
}
.pay__flag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 11px; border-radius: var(--r-full);
  background: var(--g-600); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.pay__shield {
  width: 52px; height: 52px; margin: 0 auto 9px;
  display: grid; place-items: center;
  border-radius: 14px 14px 26px 26px;
  background: var(--tier); color: #fff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.32);
}
.pay__shield svg { width: 24px; height: 24px; }
.pay__packname {
  display: block; font-size: 13px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--tier);
}
.pay__packprice { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); margin-top: 5px; }
.pay__pack > small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.pay__pack ul { list-style: none; margin: 0 0 12px; padding: 0; text-align: left; flex: 1; }
.pay__pack li {
  display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px;
  font-size: 10.8px; line-height: 1.45; color: var(--ink-2);
}
.pay__pack li svg { color: var(--tier); flex: none; margin-top: 2px; }
.pay__select {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px; border-radius: var(--r-sm); border: 1px solid var(--tier);
  font-size: 11.5px; font-weight: 700; color: var(--tier);
}
.pay__dot {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--tier); position: relative;
}
.pay__pack.is-on .pay__select { background: var(--tier); color: #fff; }
.pay__pack.is-on .pay__dot { border-color: #fff; }
.pay__pack.is-on .pay__dot::after {
  content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: #fff;
}

/* --- Vipindi --- */
.pay__periods { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.pay__period {
  position: relative; cursor: pointer; text-align: center;
  padding: 14px 10px; border-radius: var(--r-lg);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .18s, background .18s;
}
.pay__period:hover { border-color: var(--g-300); }
.pay__period input { position: absolute; opacity: 0; pointer-events: none; }
.pay__period.is-on { border-color: var(--g-500); background: var(--g-50); }
.pay__period b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.pay__period small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pay__periodprice {
  display: block; margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--g-600);
}
.pay__save {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: var(--r-full);
  background: rgba(212,175,55,.18); color: #8a6d11;
  font-size: 10px; font-weight: 700; font-style: normal;
}
.pay__reg { margin-top: 14px; font-size: 12.8px; }

.pay__fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.pay__fields input, .pay__fields select, .pay__fields textarea {
  width: 100%; padding: 11px 13px; font-family: inherit; font-size: 13.5px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
}
.pay__fields input:focus, .pay__fields select:focus, .pay__fields textarea:focus {
  outline: none; border-color: var(--g-500); box-shadow: 0 0 0 3px rgba(18,134,74,.12);
}

.pay__side { display: grid; gap: 14px; position: sticky; top: 84px; }
.pay__safe {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 15px 17px; border-radius: var(--r-lg);
  background: var(--g-50); border: 1px solid var(--g-100);
}
.pay__safe svg { color: var(--g-600); flex: none; }
.pay__safe p { font-size: 12.3px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.pay__trust {
  display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.pay__trust > span { display: flex; align-items: center; gap: 10px; }
.pay__trust svg { color: var(--g-500); flex: none; }
.pay__trust b { display: block; font-size: 12.3px; color: var(--ink); }
.pay__trust small { display: block; font-size: 11.3px; color: var(--muted); }

@media (max-width: 1080px) {
  .pay__cols { grid-template-columns: minmax(0,1fr); }
  .pay__side { position: static; }
  .pay__packs { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .pay__periods { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pay__packs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pay__steps { width: 100%; justify-content: space-between; }
}
@media (max-width: 520px) {
  .pay__packs { grid-template-columns: minmax(0,1fr); }
  .pay__fields { grid-template-columns: minmax(0,1fr); }
  .pay__box { padding: 16px 14px; }
  .pay__head h1 { font-size: 21px; }
  .pay__steps li { padding: 0 4px; font-size: 10.5px; }
}

/* ==========================================================================
   UBORESHAJI WA MUONEKANO — safu ya mwisho
   ==========================================================================
   Hii ni safu ya kuboresha, si kuandika upya. Inaboresha vipimo vya
   msingi (herufi, kivuli, mwendo) ili mfumo mzima ubadilike kwa pamoja
   badala ya kurekebisha ukurasa mmoja mmoja.
   -------------------------------------------------------------------------- */
:root {
  /* --- Herufi ---
     Archivo kwa vichwa: grotesque yenye mwonekano wa kitaasisi, inakaa
     vizuri kwenye maandishi makubwa ya herufi kubwa yanayotumika sana
     kwenye mabango ya MWST. Inter inabaki kwa maandishi ya kawaida. */
  --font-display: 'Archivo', 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* --- Mizani ya ukubwa wa herufi ---
     Uwiano wa 1.2 kwa maandishi madogo, 1.25 kwa vichwa. */
  --t-2xs: 10.5px;
  --t-xs:  11.5px;
  --t-sm:  12.5px;
  --t-md:  13.5px;
  --t-lg:  15px;
  --t-xl:  19px;
  --t-2xl: 24px;
  --t-3xl: 31px;
  --t-4xl: 40px;

  /* --- Kivuli chenye rangi ya kijani ---
     Kivuli cha kijivu kinaonekana kama chaguo-msingi. Kivuli chenye
     mguso wa kijani cha brand kinaunganisha kadi na rangi ya shirika. */
  --sh-1: 0 1px 2px rgba(4,35,24,.05);
  --sh-2: 0 1px 2px rgba(4,35,24,.05), 0 2px 6px -1px rgba(4,35,24,.06);
  --sh-3: 0 2px 4px rgba(4,35,24,.04), 0 8px 20px -6px rgba(4,35,24,.10);
  --sh-4: 0 4px 8px rgba(4,35,24,.05), 0 20px 44px -12px rgba(4,35,24,.16);
  --sh-ring: 0 0 0 3px rgba(18,134,74,.13);

  --ease: cubic-bezier(.2,.8,.3,1);
}

/* --- Vichwa vyote vinatumia herufi ya kuonyesha --------------------------- */
h1, h2, h3,
.section__title, .pay__head h1, .gv__head h1, .auth__head h2, .auth__brand h1,
.thanks__card h1, .kpi__value, .pkg__tiername, .pay__packname {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
.section__title { font-size: var(--t-3xl); line-height: 1.18; }
.section__text { font-size: var(--t-md); line-height: 1.75; }

/* Eyebrow: herufi kubwa zenye nafasi — inaakisi mabango ya MWST */
.section__eyebrow {
  font-family: var(--font-display);
  font-size: var(--t-2xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}

/* --- Vitufe: kina kidogo na mrejesho wa kubonyeza ------------------------- */
.btn {
  font-weight: 600; letter-spacing: .01em;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary, .btn--gold { box-shadow: var(--sh-2); }
.btn--primary:hover, .btn--gold:hover { box-shadow: var(--sh-3); }

/* --- Kadi: mpaka laini, kivuli chenye tabaka --------------------------- */
.card, .pkg, .gv__card, .pay__box, .mem__panel, .comm__card,
.auth__card, .thanks__card, .legal__toc {
  box-shadow: var(--sh-2);
}
.card { transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }

/* --- Sehemu za fomu: mrejesho wa kugusa unaofanana kila mahali ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="date"], select, textarea {
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--g-500) !important;
  box-shadow: var(--sh-ring);
  outline: none;
}

/* --- Focus inayoonekana kwa kibodi ---
   Dhahabu inaonekana wazi juu ya kijani na juu ya nyeupe pia. */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.pub-nav a:focus-visible, .drawer a:focus-visible { outline-offset: 4px; }

/* --- Jedwali: nafasi bora na safu inayong'aa ---------------------------- */
.table th {
  font-family: var(--font-display);
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.table td { font-size: var(--t-md); }
.table tbody tr { transition: background .14s var(--ease); }
.table tbody tr:hover { background: var(--g-50); }

/* --- Nembo ya kichwa ---------------------------------------------------- */
.pub-brand b { font-family: var(--font-display); letter-spacing: -.01em; }

/* --- Ornament ya sehemu: tao la mihrab badala ya nyota tu ---------------- */
.pkg__tiername, .pay__packname { letter-spacing: .07em; }

/* --- Heshimu mapendeleo ya mwendo mdogo ---
   `.reveal` ilikuwa haifuati mapendeleo haya; mtu mwenye usikivu wa mwendo
   angeona kila sehemu ikitembea. Sasa inaonekana moja kwa moja. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:active { transform: none; }
  .pay__pack:hover, .gv__pay:hover, .gv__go:hover,
  .rolepick__item:hover { transform: none; }
}

/* --- Mizani ya vichwa kwenye simu --------------------------------------- */
@media (max-width: 700px) {
  .section__title { font-size: var(--t-2xl); }
  .pay__head h1, .gv__head h1 { font-size: 21px; }
}

/* --- Uchapishaji: kurasa za kisheria na risiti zitoke safi -------------- */
@media print {
  .pub-nav, .pub-foot, .drawer, .cookiebar, .pub-util,
  .btn, .langform, .gv__side, .pay__side { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 0 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
}

/* ==========================================================================
   NUKUU ZINAZOTELEZA (mara baada ya hero)
   --------------------------------------------------------------------------
   Hero iliyo juu yake ni kijani kizito. Sehemu hii ikawa nayo nzito,
   ukurasa ungeonekana mzito mno — kwa hiyo ni krimu nyepesi yenye tao la
   mihrab la dhahabu. Inasoma kama ukurasa wa msahafu ulioangaziwa, si
   kadi ya tovuti.
   -------------------------------------------------------------------------- */
.verses {
  position: relative; overflow: hidden;
  padding: 0 26px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%2312864a' stroke-width='1' opacity='.09'%3E%3Cpath d='M32 2 46 16 62 32 46 48 32 62 18 48 2 32 18 16z'/%3E%3Cpath d='M32 14 50 32 32 50 14 32z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(90% 70% at 50% 0%, rgba(212,175,55,.16), transparent 60%),
    linear-gradient(180deg, #fdfaf3 0%, #faf6ec 100%);
}
.verses__inner {
  position: relative; z-index: 2;
  max-width: 1000px; margin-inline: auto;
  /* Ilikuwa 52px juu / 30px chini. Sehemu hii ilichukua skrini nzima
     kwenye laptop, ikimlazimu mgeni kusogeza kabla ya kuona chochote
     kingine. Nusu inatosha kuipa nukuu heshima bila kuzuia njia. */
  padding: 26px 34px 18px; text-align: center;
}

/* --- Tao la mihrab linalozunguka nukuu --- */
.verses__arch {
  position: absolute; z-index: 1;
  left: 50%; transform: translateX(-50%);
  top: 18px; bottom: 58px; width: min(1040px, calc(100% - 40px));
  border: 1.5px solid rgba(212,175,55,.45);
  border-radius: 190px 190px 18px 18px;
  pointer-events: none;
}
.verses__arch::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(212,175,55,.26);
  border-radius: 182px 182px 12px 12px;
}
/* Pambo la pembeni — linaonyesha ni sehemu ya heshima */
.verses__corner {
  position: absolute; z-index: 1; width: 46px; height: 46px;
  border: 2px solid rgba(212,175,55,.5); pointer-events: none;
}
.verses__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.verses__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }

/* Nyota ya dhahabu juu ya tao */
.verses__mark {
  display: block; width: 19px; height: 19px; margin: 0 auto 12px;
  color: var(--gold-500);
}
.verses__mark svg { width: 100%; height: 100%; }

/* Slaidi zimewekwa juu ya nyingine; urefu unatoka kwa ndefu zaidi. */
.verses__track { display: grid; }
.verse {
  grid-area: 1 / 1; align-self: center; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), visibility .55s;
}
.verse.is-on { opacity: 1; visibility: visible; transform: none; }

.verse__label {
  display: inline-block; padding: 5px 15px; border-radius: var(--r-full);
  font-family: var(--font-display); font-size: var(--t-2xs); font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--g-700); color: var(--gold-400);
}
.verse__label--campaign { background: var(--gold-500); color: #3d2f06; }
.verse__source {
  display: block; margin-top: 7px;
  font-size: var(--t-xs); letter-spacing: .06em; color: #9a8248;
}

.verse__ar {
  font-family: var(--font-ar); direction: rtl;
  font-size: clamp(19px, 2.8vw, 27px); line-height: 1.85;
  color: var(--g-700); margin: 14px auto 4px; max-width: 42ch;
}
.verse__intro {
  margin-top: 12px; font-size: var(--t-sm); font-style: italic; color: #8a7a5c;
}
.verse__text {
  margin: 10px auto 0; max-width: 56ch;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15.5px, 1.8vw, 19px); line-height: 1.65;
  letter-spacing: -.012em; color: var(--g-900);
}
.verse__ref {
  display: block; margin-top: 10px; font-style: normal;
  font-size: var(--t-sm); color: #9a8248;
}

/* --- Vidhibiti --- */
.verses__nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 14px 0 20px;
}
.verses__arrow {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(212,175,55,.55); color: var(--g-700);
  background: rgba(255,255,255,.7);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.verses__arrow:hover { background: var(--g-700); border-color: var(--g-700); color: var(--gold-400); }
.verses__dots { display: flex; align-items: center; gap: 8px; }
.verses__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  background: rgba(154,130,72,.35);
  transition: width .3s var(--ease), background .3s var(--ease);
}
.verses__dot:hover { background: rgba(154,130,72,.6); }
.verses__dot.is-on { width: 28px; border-radius: var(--r-full); background: var(--gold-500); }

/* --- Poster kando ya nukuu --------------------------------------------
   Kila nukuu ina poster ya MUWESTA yenye maandishi yote ndani yake.
   Maandishi hayo hayasomeki kwa ukubwa huu, na hayatafsiriwi — kwa hiyo
   poster ni kionjo kinachobofywa, si mbadala wa maandishi ya kushoto. */
.verse--img {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px; align-items: center; text-align: left;
}
.verse--img .verse__body { min-width: 0; }
.verse--img .verse__ar,
.verse--img .verse__text { margin-inline: 0; }

.verse__shot {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; background: none; cursor: zoom-in;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(20, 46, 33, .10),
              0 18px 38px -18px rgba(20, 46, 33, .45);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.verse__shot::after {
  /* Mstari mwembamba wa dhahabu — unaifunga poster kwenye mtindo wa tao */
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, .55); pointer-events: none;
}
.verse__shot img { display: block; width: 100%; height: auto; }
.verse__shot:hover, .verse__shot:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(20, 46, 33, .12),
              0 26px 50px -20px rgba(20, 46, 33, .55);
}
.verse__shot:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.verse__zoom {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-full);
  background: rgba(4, 35, 24, .78); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(4px);
  transition: opacity .22s, transform .22s;
}
.verse__shot:hover .verse__zoom,
.verse__shot:focus-visible .verse__zoom { opacity: 1; transform: none; }

/* --- Dirisha la picha kubwa --- */
.vlb {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 22px;
  background: rgba(4, 20, 13, .93);
  animation: vlbIn .2s ease-out;
}
.vlb[hidden] { display: none; }
@keyframes vlbIn { from { opacity: 0; } to { opacity: 1; } }
.vlb__img {
  max-width: min(1180px, 100%); max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.vlb__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .10); color: #fff;
  transition: background .16s, transform .16s;
}
.vlb__close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }

/* Mwonekano wa giza: krimu ingeng'aa sana usiku */
[data-theme="dark"] .verses {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(180deg, var(--g-950), #06241a);
}
[data-theme="dark"] .verse__ar { color: var(--gold-400); }
[data-theme="dark"] .verse__text { color: rgba(255,255,255,.92); }
[data-theme="dark"] .verses__arrow { background: rgba(255,255,255,.06); color: var(--gold-400); }

@media (max-width: 700px) {
  .verses { padding-inline: 14px; }
  .verses__inner { padding: 38px 20px 20px; }
  .verses__arch { top: 12px; bottom: 50px; border-radius: 130px 130px 16px 16px; }
  .verses__arch::before { border-radius: 124px 124px 10px 10px; }
  .verses__corner { width: 30px; height: 30px; }
  .verse__ar { line-height: 1.95; }
  /* Maandishi kwanza, poster chini yake — ndivyo mtu anavyosoma. */
  .verse--img { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: center; }
  .verse--img .verse__ar, .verse--img .verse__text { margin-inline: auto; }
  .verse__shot { max-width: 420px; margin-inline: auto; }
  /* Kwenye simu hakuna hover — kionyeshe daima. */
  .verse__zoom { opacity: 1; transform: none; }
  .vlb { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .verse, .verses__dot, .verse__shot, .verse__zoom { transition: none; }
  .vlb { animation: none; }
}

/* ==========================================================================
   UKANDA WA MATANGAZO (juu ya ukurasa wa mwanzo)
   --------------------------------------------------------------------------
   Ukanda huu lazima uonekane. Umewekwa kwa rangi nyekundu ya tahadhari juu
   ya msingi wa krimu — inatofautiana wazi na kijani cha shirika kilicho
   pande zote mbili, kwa hiyo jicho linaisimamia.

   Mwendo: ikoni inaruka juu-chini na kitufe cha "SOMA" kinapiga taratibu.
   MAANDISHI HAYAMEREMETI — maandishi yanayozimika na kuwaka ni magumu
   kusoma, na kumeremeta zaidi ya mara 3 kwa sekunde kunaweza kusababisha
   kifafa cha mwanga (WCAG 2.3.1). Mwendo wote uko chini ya kiwango hicho.
   -------------------------------------------------------------------------- */
.alertbar {
  --alert: #dc2626;
  --alert-dark: #991b1b;
  display: flex; align-items: stretch;
  background:
    linear-gradient(100deg, #fff1f1 0%, #fff7ed 45%, #fffaf3 100%);
  border-top: 1px solid rgba(220,38,38,.30);
  border-bottom: 2px solid var(--alert);
  box-shadow: 0 4px 14px -6px rgba(220,38,38,.35);
  overflow: hidden; position: relative;
}
/* Mstari wa mwanga unaopita taratibu — unaonyesha ukanda ni "hai" */
.alertbar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(220,38,38,.10) 45%,
                              transparent 70%);
  transform: translateX(-100%);
  animation: alertsweep 5.5s var(--ease) infinite;
}
@keyframes alertsweep {
  0%, 55% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

.alertbar__tag {
  display: flex; align-items: center; gap: 9px; flex: none;
  padding: 13px 17px; background: var(--alert); color: #fff;
  font-family: var(--font-display); font-size: var(--t-2xs); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; z-index: 1;
}
/* Ikoni inaruka — ndiyo inayovuta jicho, si maandishi */
.alertbar__tag svg {
  flex: none; animation: alertbounce 1.6s var(--ease) infinite;
}
@keyframes alertbounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-2px); }
}
.alertbar__pulse {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #fff; position: relative;
}
.alertbar__pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  animation: alertpulse 1.8s var(--ease) infinite;
}
@keyframes alertpulse {
  0%   { transform: scale(.5); opacity: 1; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.alertbar__view { flex: 1; min-width: 0; display: grid; position: relative; z-index: 1; }
.alertbar__item {
  grid-area: 1 / 1; align-self: center;
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 18px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.alertbar__item.is-on { opacity: 1; visibility: visible; transform: none; }

.alertbar__urgent {
  flex: none; padding: 4px 10px; border-radius: var(--r-full);
  background: var(--alert-dark); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
}
.alertbar__title {
  flex: 1; min-width: 0;
  font-family: var(--font-display);
  font-size: var(--t-lg); font-weight: 700; letter-spacing: -.01em;
  color: var(--alert-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alertbar__item:hover .alertbar__title { text-decoration: underline; }

/* Kitufe cha kusoma — kinapiga taratibu ili kionekane kinabonyezwa */
.alertbar__go {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 15px; border-radius: var(--r-full);
  background: var(--alert); color: #fff;
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(220,38,38,.55);
  animation: alertcta 2.2s var(--ease) infinite;
}
@keyframes alertcta {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
.alertbar__item:hover .alertbar__go { background: var(--alert-dark); }

.alertbar__side {
  display: flex; align-items: center; gap: 13px; flex: none;
  padding: 12px 17px; border-left: 1px solid rgba(220,38,38,.20);
  position: relative; z-index: 1;
}
.alertbar__count {
  font-size: var(--t-xs); font-weight: 700; color: var(--alert-dark);
  font-variant-numeric: tabular-nums;
}
.alertbar__all {
  font-size: var(--t-xs); font-weight: 800; color: var(--alert-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
.alertbar__all:hover { color: var(--alert); }

/* Mwonekano wa giza: krimu ingeng'aa sana, kwa hiyo tunaingiza nyekundu nzito */
[data-theme="dark"] .alertbar {
  background: linear-gradient(100deg, #2a1113 0%, #331416 45%, #2a1113 100%);
  border-bottom-color: #ef4444;
}
[data-theme="dark"] .alertbar__title,
[data-theme="dark"] .alertbar__count,
[data-theme="dark"] .alertbar__all { color: #fca5a5; }

@media (max-width: 760px) {
  .alertbar__tag b, .alertbar__side { display: none; }
  .alertbar__tag { padding: 11px 13px; }
  .alertbar__item { padding: 11px 13px; gap: 9px; }
  .alertbar__title { font-size: var(--t-md); white-space: normal;
                     display: -webkit-box; -webkit-line-clamp: 2;
                     -webkit-box-orient: vertical; }
  .alertbar__go { padding: 6px 11px; font-size: 10px; }
}

/* Mtu aliyeomba mwendo mdogo hapati mwendo wowote — rangi pekee ndiyo
   inayobaki kuvuta jicho. */
@media (prefers-reduced-motion: reduce) {
  .alertbar::after,
  .alertbar__tag svg,
  .alertbar__pulse::after,
  .alertbar__go { animation: none; }
  .alertbar__item { transition: none; }
}

/* ==========================================================================
   KURASA ZA MATANGAZO
   ========================================================================== */
.anc__wrap { max-width: 760px; margin-inline: auto; }
.anc__back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: var(--t-sm); font-weight: 600; color: var(--muted);
}
.anc__back:hover { color: var(--g-600); }
.anc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2);
}
.anc__head {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 26px; border-bottom: 1px solid var(--line-soft);
}
.anc__ico {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
}
.anc__urgent {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px;
  border-radius: var(--r-full); background: #b91c1c; color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
}
.anc__head h1 { font-size: var(--t-2xl); line-height: 1.25; color: var(--ink); }
.anc__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px;
  font-size: var(--t-sm); color: var(--muted);
}
.anc__meta svg { color: var(--g-500); }
.anc__body { padding: 24px 26px; }
.anc__body p { font-size: var(--t-lg); line-height: 1.85; color: var(--ink-2); margin-bottom: 14px; }
.anc__foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 18px 26px; border-top: 1px solid var(--line-soft); background: var(--canvas);
}

.anc__morehead {
  font-size: var(--t-xl); font-weight: 800; color: var(--ink); margin: 30px 0 14px;
}
.anc__more { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.anc__card {
  display: block; padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.anc__card:hover { border-color: var(--g-300); box-shadow: var(--sh-3); }
.anc__cardico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 10px;
}
.anc__card b { display: block; font-size: var(--t-md); color: var(--ink); line-height: 1.45; }
.anc__card small { display: block; font-size: var(--t-xs); color: var(--muted); margin-top: 6px; }

.anc__row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; margin-bottom: 10px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.anc__row:hover { border-color: var(--g-300); box-shadow: var(--sh-3); }
.anc__rowbody { flex: 1; min-width: 0; }
.anc__rowbody b { display: block; font-size: var(--t-lg); color: var(--ink); }
.anc__rowbody small { display: block; font-size: var(--t-sm); color: var(--muted); margin-top: 5px; line-height: 1.6; }
.anc__rowdate { flex: none; font-size: var(--t-xs); color: var(--muted); }

@media (max-width: 700px) {
  .anc__more { grid-template-columns: minmax(0,1fr); }
  .anc__head, .anc__body, .anc__foot { padding-inline: 18px; }
  .anc__rowdate { display: none; }
}

/* Picha ya ofisi kwenye kadi ya anwani */
.comm__figure { margin: 14px 0 0; }
.comm__figure picture { display: block; }
.comm__figure img {
  display: block; width: 100%; height: 165px; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--line);
}
.comm__figure figcaption {
  margin-top: 8px; font-size: var(--t-xs); color: var(--muted);
  line-height: 1.5; font-style: italic;
}

/* --------------------------------------------------------------------------
   Vitufe viwili kwenye header: "Jiunge Sasa" (dhahabu, lengo kuu) na
   "Ingia" (tulivu). Kitufe cha pili kikiwa na rangi sawa, vyote viwili
   vingepoteza nguvu — kimoja lazima kiongoze.
   -------------------------------------------------------------------------- */
.btn--quiet {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn--quiet:hover { background: var(--canvas); border-color: var(--g-300); color: var(--g-700); }
.btn--quiet svg { color: var(--g-500); }

/* `hide-sm` = inafichwa pale menyu ya juu inapokunjwa (chini ya 900px).
   Drawer ina "Jiunge Sasa" wazi, kwa hiyo hakuna kinachopotea. */
@media (max-width: 900px) {
  .hide-sm { display: none !important; }
}

/* ==========================================================================
   MAREKEBISHO YA JUMLA YA SIMU
   --------------------------------------------------------------------------
   Sehemu hii inarekebisha matatizo yanayogusa mfumo MZIMA, si ukurasa mmoja.
   Imewekwa mwishoni kwa makusudi ili ishinde sheria za awali bila kutumia
   `!important` kila mahali.
   ========================================================================== */

/* --- 1. iOS kuvuta skrini (zoom) fomu ikiguswa ---------------------------
   Safari ya iPhone huvuta skrini yenyewe pale mtu anapogusa sehemu ya
   kujaza yenye font chini ya 16px. Mtu anajaza jina, ukurasa unaruka na
   kukuzwa, kisha analazimika kubana kwa vidole kurudi. Inaonekana kama
   tovuti imeharibika.

   16px ndiyo kikomo hasa cha Safari — si pendekezo. Hii inagusa sehemu
   ZOTE za kujaza: kuingia, kujiunga, mawasiliano, malipo, utafutaji wa
   paneli ya usimamizi. Kwenye kompyuta hakuna tatizo hili, ndiyo maana
   imefungwa kwenye simu pekee. */
@media (max-width: 820px) {
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="password"], input[type="number"], input[type="search"],
  input[type="url"], input[type="date"], input[type="time"],
  input[type="datetime-local"], input[type="month"], input[type="week"],
  select, textarea,
  .input, .select, .textarea,
  .search input, .loginfield input, .authfield input,
  .langpick select,
  .pay__select, .pay__fields input, .pay__fields select, .pay__fields textarea,
  .gv__dd__btn, .gv__amount select, .gv__amount input,
  .gv__f input, .gv__f textarea {
    font-size: 16px;
  }
  /* Lebo na madokezo si sehemu za kujaza — hayasababishi zoom, na
     yakikuzwa yangevuruga mpangilio. */
  .field__label, .field__hint, .field__err { font-size: 12px; }
}

/* --- 2. Vitu vya kugusa ------------------------------------------------
   Kidole si kishale. Kitufe cha 28px kinamlazimu mtu kulenga kwa
   uangalifu, na mara nyingi anakosa. 44px ndicho kipimo cha Apple na
   Google. Tunapanua eneo la kugusa bila kupanua kinachoonekana —
   `::after` inanyoosha eneo nje ya mipaka ya kitufe. */
@media (pointer: coarse) {
  .icon-btn, .table__act, .verses__arrow, .vlb__close {
    min-width: 44px; min-height: 44px;
  }
  .table__act { position: relative; }
  .verses__dot, .gv__chip, .gv__pill, .chip, .tabs a, .tabs button {
    position: relative;
  }
  /* Nukta za slider ni ndogo kwa makusudi (ni mapambo), kwa hiyo
     tunapanua eneo la kugusa tu, si ukubwa wake. */
  .verses__dot::after {
    content: ""; position: absolute; inset: -14px;
  }
  .tabs a::after, .tabs button::after {
    content: ""; position: absolute; inset: -6px -2px;
  }
}

/* --- 3. Jedwali --------------------------------------------------------
   Jedwali lolote linaweza kuwa pana kuliko simu. `.tablewrap` ipo tayari,
   lakini si kila jedwali limevikwa. Hii ni kinga ya mwisho: jedwali
   likizidi, linateleza lenyewe badala ya kusukuma ukurasa mzima. */
@media (max-width: 700px) {
  table { max-width: 100%; }
  .tablewrap, .pkg__scroll {
    -webkit-overflow-scrolling: touch;
    /* Kivuli kidogo kinaonyesha kuna zaidi upande wa kulia */
    background:
      linear-gradient(90deg, var(--surface) 30%, transparent),
      linear-gradient(270deg, var(--surface) 30%, transparent) right,
      radial-gradient(farthest-side at 0 50%, rgba(20,46,33,.16), transparent),
      radial-gradient(farthest-side at 100% 50%, rgba(20,46,33,.16), transparent) right;
    background-repeat: no-repeat;
    background-size: 36px 100%, 36px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}

/* --- 4. Maandishi marefu yasivunje mpangilio ---------------------------
   Barua pepe, viungo na namba za kumbukumbu hazina nafasi za kuvunjika.
   Kwenye skrini ya 360px zinasukuma ukurasa mlalo. */
@media (max-width: 700px) {
  .table td, .table th, .rowlist__title, .rowlist__sub,
  .comm__addr, .kpi__label, dd, .gv__sum dd {
    overflow-wrap: anywhere;
  }
  /* Namba za simu na barua pepe zisikatike katikati ya namba */
  a[href^="tel:"], a[href^="mailto:"] { overflow-wrap: break-word; }
}

/* --- 5. Nafasi za pembeni ---------------------------------------------
   Chini ya 400px, padding ya 20px pande zote inameza sehemu kubwa ya
   skrini. Simu ndogo (iPhone SE, Tecno, Itel) ni nyingi Tanzania. */
@media (max-width: 400px) {
  .section { padding-inline: 14px; }
  .card, .pay__box, .mem__panel, .comm__card { padding: 15px 13px; }
  .btn { padding-inline: 14px; }
}

/* --- 6. Skrini fupi zilizolala ----------------------------------------
   Simu ikilazwa, urefu unakuwa ~360px. Sehemu zenye urefu wa skrini
   nzima zinamzuia mtu kuona chochote kingine. */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: 40px; }
  .vlb { padding: 8px; }
  .vlb__close { top: 8px; right: 8px; width: 36px; height: 36px; }
}

/* --- 7. Upau wa kuchuja (paneli ya usimamizi) --------------------------
   Ulikuwa umeandikwa kwa `style="width:170px;font-size:12.5px"` moja kwa
   moja kwenye HTML. Inline style inashinda stylesheet, kwa hiyo hata
   marekebisho ya iOS hapo juu yasingefika hapa. Sasa ni darasa. */
.filterbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.filterbar__f {
  height: 32px; font-size: 12.5px; width: 150px; min-width: 0;
}
.filterbar__f[type="date"] { width: 140px; }
.filterbar__f[name="q"] { width: 170px; }

@media (max-width: 820px) {
  /* Sehemu za kuchuja zinajaa upana wote badala ya kubanana. Mbili kwa
     mstari kwenye tableti, moja kwenye simu. */
  .filterbar { width: 100%; }
  .filterbar__f,
  .filterbar__f[type="date"],
  .filterbar__f[name="q"] {
    flex: 1 1 160px; width: auto; height: 40px; font-size: 16px;
  }
  .filterbar .btn { flex: 1 1 auto; justify-content: center; height: 40px; }
}
@media (max-width: 480px) {
  .filterbar__f,
  .filterbar__f[type="date"],
  .filterbar__f[name="q"] { flex: 1 1 100%; }
}

/* --- 8. Header isiyotoka nje ya skrini ---------------------------------
   TATIZO: `.pub-nav` ina `flex-wrap: nowrap`. Kwenye simu ya 360px,
   vilivyomo ndani yake vinahitaji ~494px:

     nembo 145 + Changia 85 + Lipa 62 + lugha 60 + Ingia 40
     + menyu 38 + nafasi 40 + padding 24  =  494px

   Vinazidi kwa 134px. Ukurasa MZIMA unakuwa mpana kuliko skrini, na
   kivinjari kinamruhusu mtu kusogeza kando — ndiyo maana kila kitu
   kinaonekana kimekatwa upande wa kushoto, si header pekee.

   SULUHISHO: kuondoa vitufe vya Changia/Lipa kwenye header ya simu.
   Havipotei — drawer ina menyu kamili ikiwemo vyote viwili. Kitufe cha
   menyu ndicho muhimu zaidi hapa, na ndicho kilikuwa hatarini. */
@media (max-width: 680px) {
  .pub-cta { display: none; }

  /* Nembo ipewe ruhusa ya kubanwa. `flex-shrink: 0` ilikuwa sahihi
     kwenye kompyuta (kuzuia maandishi kupanda juu ya menyu), lakini
     kwenye simu ndiyo inayolazimisha ukurasa kutanuka. */
  .pub-brand { min-width: 0; flex-shrink: 1; }
  .pub-brand span { min-width: 0; }
  .pub-brand b {
    display: block; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
  }

  .pub-nav { gap: 8px; }
  .pub-nav__right { flex: none; }

  /* Sasa kuna nafasi — chagua lugha inaweza kuwa 16px bila kubana,
     kwa hiyo iOS haitavuta skrini mtu akiigusa. */
  .pub-nav__right .langpick select {
    max-width: none; width: auto; font-size: 16px; text-indent: 0;
  }
}

/* Simu ndogo kabisa: kaulimbiu ya nembo inaondoka pia */
@media (max-width: 380px) {
  .pub-brand img { width: 34px; height: 34px; }
  .pub-brand b { font-size: 17px; }
  .pub-nav { padding: 9px 10px; gap: 6px; }
}

/* --- 9. Kinga ya mwisho dhidi ya kusogea kando ------------------------
   `body { overflow-x: clip }` ipo tayari, lakini haitoshi peke yake:
   thamani ya body huhamishiwa kwenye viewport tu ikiwa `html` ni
   `visible`. Kuiweka kwenye vyote viwili kunaifanya iwe ya uhakika.

   Hii ni KINGA, si suluhisho. Chochote kinachotoka nje kinapaswa
   kurekebishwa mahali pake — vinginevyo kitakatwa kimya kimya na mtu
   hataona sehemu ya ukurasa. */
html { overflow-x: clip; }

/* ==========================================================================
   KUCHAGUA MIEZI (ukurasa wa kulipa ada)
   Ada ni ya mwezi. Badala ya vifurushi vilivyopangwa, mtu anaandika
   miezi anayoweza kulipia. Vifungo ni njia ya mkato tu.
   ========================================================================== */
.mo { display: grid; gap: 12px; }

.mo__pick {
  display: flex; align-items: stretch; max-width: 320px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); overflow: hidden;
  transition: border-color .16s, box-shadow .16s;
}
.mo__pick:focus-within {
  border-color: var(--g-500);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 14%, transparent);
}
.mo__step {
  flex: none; width: 52px; border: 0; cursor: pointer;
  background: var(--g-50); color: var(--g-700);
  font-size: 22px; font-weight: 700; line-height: 1;
  transition: background .15s, color .15s;
}
.mo__step:hover { background: var(--g-100); }
.mo__step:active { background: var(--g-500); color: #fff; }
.mo__pick input {
  flex: 1; min-width: 0; border: 0; height: 54px; padding: 0 6px 0 14px;
  background: transparent; color: var(--ink); text-align: center;
  font-family: var(--font-num); font-size: 21px; font-weight: 800;
}
.mo__pick input:focus { outline: none; }
.mo__pick input::-webkit-outer-spin-button,
.mo__pick input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mo__pick input[type="number"] { -moz-appearance: textfield; }
.mo__unit {
  display: grid; place-items: center; padding-right: 12px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}

.mo__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mo__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-full); cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-family: inherit;
  font-size: 12.5px; font-weight: 700;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.mo__chip:hover { border-color: var(--g-300); color: var(--g-700); transform: translateY(-1px); }
.mo__chip.is-on {
  background: linear-gradient(150deg, var(--g-500), var(--g-700));
  border-color: transparent; color: #fff;
  box-shadow: 0 3px 10px -3px rgba(13, 84, 51, .55);
}
.mo__chip em {
  font-style: normal; font-size: 10.5px; font-weight: 800;
  padding: 2px 6px; border-radius: var(--r-full);
  background: var(--gold-100, #f7efd4); color: var(--gold-700);
}
.mo__chip.is-on em { background: rgba(255, 255, 255, .22); color: #fff; }

.mo__out {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px;
  padding: 12px 15px; border-radius: var(--r-lg);
  background: var(--g-50); border: 1px solid var(--line);
}
.mo__out span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.mo__out b {
  font-family: var(--font-num); font-size: 19px; font-weight: 800;
  color: var(--g-700); letter-spacing: -.02em;
}
.mo__out em[hidden] { display: none; }

@media (max-width: 560px) {
  .mo__pick { max-width: none; }
  /* 16px huzuia iOS kuvuta skrini kisanduku kikiguswa */
  .mo__pick input { font-size: 19px; }
  .mo__step { width: 46px; }
}

/* ==========================================================================
   AINA YA MALIPO (mchango wa mwezi / kuhuisha uanachama)
   Tofauti hii lazima ionekane wazi. Mtu asidhani anajinunulia miaka ya
   uanachama kwa kuchangia kila mwezi.
   ========================================================================== */
.kind { display: grid; gap: 10px; margin-bottom: 18px; }
.kind__opt {
  position: relative; display: flex; align-items: center; gap: 13px;
  cursor: pointer; padding: 14px 15px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .16s, box-shadow .16s, background .16s, transform .16s;
}
.kind__opt input { position: absolute; opacity: 0; pointer-events: none; }
.kind__opt:hover { border-color: var(--g-300); transform: translateY(-1px); }
.kind__opt.is-on {
  border-color: var(--g-500);
  background: linear-gradient(120deg, var(--g-50), #fff 70%);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 12%, transparent);
}
.kind__ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g-100), var(--g-50));
  color: var(--g-700);
}
.kind__opt.is-on .kind__ico {
  background: linear-gradient(150deg, var(--g-600), var(--g-800)); color: #fff;
}
.kind__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kind__txt b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.kind__txt small { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.kind__ok {
  margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--g-500); color: #fff;
  opacity: 0; transform: scale(.6); transition: opacity .16s, transform .16s;
}
.kind__opt.is-on .kind__ok { opacity: 1; transform: none; }

.kind__note {
  display: flex; gap: 9px; align-items: flex-start; margin-bottom: 18px;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--g-50); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
}
.kind__note svg { flex: none; margin-top: 2px; color: var(--g-600); }
[data-kind-renew][hidden], [data-kind-dues][hidden] { display: none !important; }

/* ==========================================================================
   RANGI ZA AWALI — Changia, Lipa Ada na Ingia
   --------------------------------------------------------------------------
   Kurasa hizi tatu zinabaki na rangi zilizokuwepo kabla ya palette mpya.
   Badala ya kuandika upya kila sheria, tunaweka thamani za zamani kwenye
   `<body>` — kila sheria ndani ya ukurasa inazitumia zenyewe.

   Faida ya kufanya hivi kwa `--variables` badala ya kunakili sheria:
   marekebisho yoyote ya baadaye kwenye muundo yanaenea kurasa zote,
   na rangi pekee ndizo zinatofautiana.
   ========================================================================== */
.pg-changia,
.pg-lipa,
.pg-ingia {
  --g-950: #042318;
  --g-900: #06301f;
  --g-800: #0a4028;
  --g-700: #0d5433;
  --g-600: #106b40;
  --g-500: #12864a;
  --g-400: #1ba05a;
  --g-300: #4cbd83;
  --g-100: #d6f0e1;
  --g-50:  #eef9f2;
  --ink:   #0f172a;
  --ink-2: #334155;
  --ok:    #12864a;
}

/* ==========================================================================
   HUDUMA ZA NDANI YA MTOA HUDUMA
   Mtu akichagua Selcom au Pesapal, anaona kinachomsubiri ndani yake.
   Orodha ni ya kueleza, si ya kuchagua — ndiyo maana ni <ul>, si radio.
   ========================================================================== */
.gv__inner {
  margin: -2px 0 2px; padding: 13px 15px;
  border: 1.5px solid var(--g-500); border-top: 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, var(--g-50), var(--surface));
  animation: gvInner .18s ease-out;
}
.gv__inner[hidden] { display: none; }
@keyframes gvInner {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.gv__innernote {
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 11px;
  font-size: 12px; color: var(--ink-2); line-height: 1.55;
}
.gv__innernote svg { flex: none; margin-top: 2px; color: var(--g-600); }

.gv__methods {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
}
.gv__methods li {
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
  padding: 8px 10px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line);
}
.gv__methods b {
  font-size: 12px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gv__methods small { font-size: 10.5px; color: var(--muted-2); }

/* Kadi ya mtoa huduma iliyochaguliwa inaungana na paneli yake */
.gv__pay.is-on:has(+ .gv__inner:not([hidden])) {
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  box-shadow: none;
}

@media (max-width: 560px) {
  .gv__methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   UKURASA WA CODE (SMS)
   ========================================================================== */
.otp { display: grid; place-items: center; }
.otp__card {
  width: 100%; max-width: 420px; text-align: center;
  padding: 32px 26px 26px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}
.otp__ico {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--g-600), var(--g-800));
  box-shadow: 0 6px 16px -6px rgba(13, 84, 51, .55);
}
.otp__card h1 { font-size: 20px; font-weight: 800; color: var(--g-800); }
.otp__lead { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.otp__to {
  margin-top: 6px; font-family: var(--font-num);
  font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .04em;
}
.otp__code {
  width: 100%; margin: 20px 0 4px; padding: 14px 10px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--canvas); color: var(--ink);
  font-family: var(--font-num); font-size: 30px; font-weight: 800;
  letter-spacing: .34em; text-align: center; text-indent: .34em;
  transition: border-color .16s, box-shadow .16s;
}
.otp__code:focus {
  outline: none; border-color: var(--g-500); background: var(--surface);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 14%, transparent);
}
.otp__code::placeholder { color: var(--muted-2); font-weight: 600; }
.otp__go { margin-top: 14px; }
.otp__hint { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.otp__resend {
  margin-top: 10px; padding: 8px 14px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  color: var(--g-700); font-family: inherit; font-size: 12.5px; font-weight: 700;
  transition: background .15s, border-color .15s;
}
.otp__resend:hover { background: var(--g-50); border-color: var(--g-300); }
.otp__back {
  display: block; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--muted);
}
@media (max-width: 480px) {
  .otp__card { padding: 26px 18px 22px; }
  .otp__code { font-size: 26px; letter-spacing: .26em; text-indent: .26em; }
}

/* ==========================================================================
   MAOMBI YA UANACHAMA
   --------------------------------------------------------------------------
   Ukurasa huu ulikuwa na jedwali la safu tisa. Safu ya "Hatua" ikiwa ya
   mwisho, ilitoka nje ya skrini kwenye upana wowote usio mkubwa, na
   vitufe vya kuidhinisha vilijificha. Kadi hazitelezi kando — kila kitu
   kinaonekana kwenye upana wowote.
   ========================================================================== */
.applayout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px; align-items: start;
}

/* --- Kichujio kinachokunjwa --- */
.appf { padding: 0; }
.appf__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none;
  user-select: none;
}
.appf__head::-webkit-details-marker { display: none; }
.appf__head::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.appf[open] .appf__head::after { transform: rotate(-135deg); }
.appf__head .card__title { display: flex; align-items: center; gap: 8px; }
.appf__count {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted);
}
.appf__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; align-items: end;
}
.appf__grid .field--wide { grid-column: span 2; }
.appf__go { display: flex; gap: 8px; align-items: center; }

/* --- Orodha ya kadi --- */
.applist { list-style: none; margin: 0; padding: 0; }
.appcard {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
  transition: background .14s;
}
.appcard:last-child { border-bottom: 0; }
.appcard:hover { background: var(--canvas); }
.appcard.is-on {
  background: var(--g-50);
  box-shadow: inset 3px 0 0 var(--g-500);
}
.appcard--empty { display: block; padding: 8px; }

.appcard__main {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 320px; min-width: 0; color: inherit;
}
.appcard__av {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g-100), var(--g-50));
  color: var(--g-700); font-size: 13px; font-weight: 800;
}
.appcard__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.appcard__top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.appcard__name {
  font-size: 14px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appcard__meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted);
}
.appcard__meta svg { color: var(--muted-2); vertical-align: -1px; }
.appcard__dot { color: var(--line); }
.appcard__ok { color: var(--ok); }

/* --- Hatua: daima zinaonekana --- */
.appcard__acts {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  flex: 0 0 auto; margin-left: auto;
}
.appcard__acts form { display: inline; }
.appcard__due {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-full);
  background: var(--warn-bg); color: var(--warn);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.appcard__done { font-size: 12px; color: var(--muted-2); }

/* --- Paneli ya maelezo --- */
.appdet { position: sticky; top: 84px; }
.appdet__ok {
  margin-left: 6px; padding: 2px 7px; border-radius: var(--r-full);
  background: var(--g-50); color: var(--g-700);
  font-family: var(--font); font-size: 9.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.appdet__pay {
  display: grid; gap: 9px; margin-top: 14px; padding: 13px;
  border-radius: var(--r); background: var(--warn-bg);
  border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
}
.appdet__pay b { font-size: 12.5px; color: var(--warn); }
.appdet__pay code {
  font-size: 10.5px; color: var(--ink-2); overflow-wrap: anywhere;
  background: var(--surface); padding: 7px 9px; border-radius: 7px;
  border: 1px solid var(--line);
}

/* --- Tableti --- */
@media (max-width: 1100px) {
  .applayout { grid-template-columns: minmax(0, 1fr); }
  .appdet { position: static; }
}

/* --- Simu --- */
@media (max-width: 640px) {
  .appcard { padding: 13px 14px; }
  .appcard__main { flex: 1 1 100%; }
  .appcard__acts {
    margin-left: 0; width: 100%;
    padding-top: 11px; border-top: 1px dashed var(--line);
  }
  /* Vitufe vinajaza upana — kidole kinalenga rahisi kuliko kitufe
     kidogo kilichobanwa pembeni. */
  .appcard__acts .btn { flex: 1 1 auto; justify-content: center; }
  .appcard__acts form { flex: 1 1 auto; display: flex; }
  .appcard__acts form .btn { width: 100%; }
  .appf__grid { grid-template-columns: minmax(0, 1fr); }
  .appf__grid .field--wide { grid-column: span 1; }
  .appf__go .btn { flex: 1 1 auto; justify-content: center; }
  .appf__head { padding: 13px 14px; }
}

/* ==========================================================================
   TOPBAR — kuzuia kujibana
   --------------------------------------------------------------------------
   TATIZO: `.topbar` ni `flex` yenye urefu uliopangwa (68px) na vitu tisa
   ndani yake: menyu, kichwa, tarehe, lugha, mwonekano, arifa, ujumbe,
   jina la mtumiaji, na kutoka. Hakuna kilichokuwa na kikomo cha upana,
   kwa hiyo kichwa na jina vilivunjika mistari miwili na kutoka nje ya
   urefu wa 68px.

   SULUHISHO: kila kitu kinakatwa kwa ellipsis badala ya kuvunjika, na
   vitu vinapotea kwa mpangilio wa umuhimu skrini inapopungua. Cha
   mwisho kubaki ni menyu, kichwa na kutoka.
   ========================================================================== */
.topbar { min-height: var(--topbar-h); height: auto; }

/* Kichwa kinakatwa, hakivunjiki */
.topbar__title { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.topbar__title h1 {
  font-size: 15px; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar__title p {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Vitu vya kulia havibanwi */
.topbar .icon-btn,
.topbar .langpick,
.topbar .datepill,
.topbar .userchip { flex: none; }

.userchip__name, .userchip__role {
  display: block; max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.datepill__day, .datepill__time { white-space: nowrap; }

/* --- Kupunguza kwa mpangilio wa umuhimu --- */

/* Tarehe ni ya mapambo zaidi kuliko matumizi */
@media (max-width: 1280px) {
  .topbar .datepill { display: none; }
}

/* Jina linabaki kama herufi za mwanzo pekee. Aikoni ya kutoka
   inabaki — ndiyo maana ya kitufe hiki. */
@media (max-width: 1080px) {
  .topbar .userchip span:not(.userchip__avatar) { display: none; }
  .topbar .userchip { padding: 4px; gap: 0; }
  .topbar .userchip svg { display: none; }
}

@media (max-width: 900px) {
  .topbar { gap: 10px; padding: 0 14px; }
  .topbar__title h1 { font-size: 14px; }
  .topbar__title p { display: none; }
}

/* Kwenye simu: menyu, kichwa, lugha na mtumiaji pekee. Arifa na ujumbe
   vipo kwenye menyu ya pembeni. */
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar .icon-btn[href] { display: none; }
  .topbar .langpick select { max-width: 62px; }
}

@media (max-width: 420px) {
  .topbar__title h1 { font-size: 13px; }
  .topbar .langpick { display: none; }
}

/* ==========================================================================
   KPI — vichwa vinasomeka
   `white-space: nowrap` ilikuwa ikikata "Maombi Yaliyopitishwa" kuwa
   "Maombi Yaliyopitish...". Kichwa kilichokatwa hakina maana; ni bora
   kivunjike mistari miwili.
   ========================================================================== */
.kpi__label {
  white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.35; min-height: 2.7em;
}

/* KPI tano hazitoshei chini ya 1200px — tatu kisha mbili */
@media (max-width: 1200px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .grid--5 { grid-template-columns: minmax(0, 1fr); }
  .kpi__label { min-height: 0; }
}

/* ==========================================================================
   UJUMBE WA MFUMO
   Ulikuwa `.card` kamili kwa kila ujumbe — mitatu ilichukua sehemu
   kubwa ya skrini kabla mtu hajaona kazi yenyewe.
   ========================================================================== */
.msgs { display: grid; gap: 8px; margin-bottom: 16px; }
.msg {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--r);
  border: 1px solid var(--line); border-left-width: 3px;
  background: var(--surface); font-size: 12.5px; line-height: 1.55;
}
.msg__ico {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
}
.msg__text {
  flex: 1; min-width: 0; color: var(--ink-2);
  /* Viungo virefu (mfano /lipa/?ombi=...) vinakatika badala ya
     kusukuma ukurasa mlalo. */
  overflow-wrap: anywhere;
}
.msg__x {
  flex: none; width: 24px; height: 24px; border: 0; cursor: pointer;
  border-radius: 6px; background: transparent; color: var(--muted-2);
  font-size: 19px; line-height: 1; transition: background .14s, color .14s;
}
.msg__x:hover { background: var(--line-soft); color: var(--ink); }

.msg--ok     { border-left-color: var(--ok); }
.msg--ok     .msg__ico { background: var(--g-50); color: var(--ok); }
.msg--info   { border-left-color: var(--n-700); }
.msg--info   .msg__ico { background: var(--n-50, #eef2f8); color: var(--n-700); }
.msg--warn   { border-left-color: var(--warn); }
.msg--warn   .msg__ico { background: var(--warn-bg); color: var(--warn); }
.msg--danger { border-left-color: var(--danger); }
.msg--danger .msg__ico { background: var(--danger-bg); color: var(--danger); }

@media (max-width: 560px) {
  .msg { padding: 9px 10px; font-size: 12px; }
}

/* ==========================================================================
   SEHEMU YA UONGOZI
   Inatumia `.applist` na `.appcard` za maombi — kadi badala ya jedwali,
   kwa sababu ile ile: jedwali hutelezi kando na hatua hujificha.
   ========================================================================== */
.ldr__hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 18px 22px;
  background: linear-gradient(112deg, var(--g-950), var(--g-700));
  border: 0; color: #fff;
}
.ldr__hero h2 { font-size: 19px; font-weight: 800; color: #fff; }
.ldr__hero p { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.75); }

.ldr__two {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  align-items: start;
}
.ldr__case {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px; align-items: start;
}

.ldr__hint {
  display: flex; gap: 9px; align-items: flex-start; margin-bottom: 14px;
  padding: 11px 13px; border-radius: var(--r);
  background: var(--g-50); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
}
.ldr__hint svg { flex: none; margin-top: 2px; color: var(--g-600); }

.ldr__body {
  margin-top: 14px; padding: 13px 15px; border-radius: var(--r);
  background: var(--canvas); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.65; color: var(--ink);
}
.ldr__solved {
  margin-top: 12px; padding: 13px 15px; border-radius: var(--r);
  background: var(--g-50); border-left: 3px solid var(--ok);
}
.ldr__solved b { font-size: 12px; color: var(--g-700); }
.ldr__solved p { margin-top: 5px; font-size: 13px; line-height: 1.6; }

.ldr__form { display: grid; gap: 12px; }
.ldr__form textarea { resize: vertical; }
.ldr__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ldr__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }

/* --- Hatua za tatizo --- */
.ldr__trail { list-style: none; margin: 0 0 18px; padding: 0 0 0 20px;
              border-left: 2px solid var(--line); }
.ldr__step { position: relative; padding: 0 0 16px 14px; }
.ldr__step:last-child { padding-bottom: 4px; }
.ldr__dot {
  position: absolute; left: -27px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--g-400);
}
.ldr__step--escalated .ldr__dot,
.ldr__step--auto_escalated .ldr__dot { border-color: var(--gold-500); }
.ldr__step--resolved .ldr__dot { border-color: var(--ok); background: var(--ok); }
.ldr__stepbody b { font-size: 13px; font-weight: 700; }
.ldr__stepbody small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ldr__stepbody p { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }

/* --- Mazungumzo --- */
.chat { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.chat__msg {
  max-width: 78%; padding: 10px 13px; border-radius: 14px 14px 14px 4px;
  background: var(--canvas); border: 1px solid var(--line);
}
.chat__msg--me {
  margin-left: auto; border-radius: 14px 14px 4px 14px;
  background: var(--g-50); border-color: var(--g-300);
}
.chat__body { display: block; font-size: 13px; line-height: 1.6; color: var(--ink); }
.chat__meta { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted-2); }

@media (max-width: 1000px) {
  .ldr__two, .ldr__case { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ldr__hero { padding: 15px 16px; }
  .ldr__row { grid-template-columns: minmax(0, 1fr); }
  .chat__msg { max-width: 92%; }
  .ldr__btns .btn { flex: 1 1 auto; justify-content: center; }
}

/* Onyo la eneo linalosuasua — kiongozi wa ngazi ya juu aanze hapa,
   si kwa kusoma orodha ndefu. */
.ldr__alert {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; border-radius: var(--r-lg);
  background: var(--warn-bg); border: 1px solid var(--warn);
  border-left-width: 4px; font-size: 13px; color: var(--ink);
}
.ldr__alert svg { flex: none; color: var(--warn); }
.ldr__alert span { flex: 1; min-width: 0; }
.appcard.is-warn { background: var(--warn-bg); }
.appcard.is-warn:hover { background: var(--warn-bg); }
@media (max-width: 560px) {
  .ldr__alert { align-items: flex-start; }
  .ldr__alert .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   MAZUNGUMZO YA VIONGOZI
   --------------------------------------------------------------------------
   Muundo ni wa programu ya ujumbe: kichwa kilichoshikamana juu, sehemu
   ya ujumbe inayoteleza katikati, na sehemu ya kuandika chini
   isiyosogea. Urefu unapimwa kwa `dvh` badala ya `vh` — kwenye simu,
   `vh` haihesabu upau wa kivinjari na sehemu ya kuandika hujificha.
   ========================================================================== */
.chatbox {
  display: flex; flex-direction: column;
  height: calc(100dvh - var(--topbar-h) - 48px);
  min-height: 420px; max-height: 780px;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}

/* --- Kichwa --- */
.chatbox__head {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 12px 16px;
  background: linear-gradient(120deg, var(--g-800), var(--g-600));
  color: #fff;
}
.chatbox__back, .chatbox__call {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .14);
  transition: background .16s;
}
.chatbox__back:hover, .chatbox__call:hover { background: rgba(255, 255, 255, .26); }
.chatbox__back svg { transform: rotate(180deg); }
.chatbox__call { margin-left: auto; }
.chatbox__av {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
}
.chatbox__who { min-width: 0; line-height: 1.3; }
.chatbox__who b {
  display: block; font-size: 14px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chatbox__who small { font-size: 11.5px; color: rgba(255, 255, 255, .72); }

/* --- Sehemu ya ujumbe --- */
.chatbox__body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--g-500) 5%, transparent), transparent 42%),
    radial-gradient(circle at 82% 82%, color-mix(in srgb, var(--n-700) 5%, transparent), transparent 42%),
    var(--canvas);
}
.chatbox__day { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.chatbox__day::before, .chatbox__day::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.chatbox__day span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted-2);
}

/* --- Kiputo cha ujumbe --- */
.bubble { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.bubble--me { margin-left: auto; flex-direction: row-reverse; }
.bubble__av {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--g-100); color: var(--g-700);
  font-size: 10px; font-weight: 800;
}
.bubble__wrap {
  padding: 9px 13px 7px; border-radius: 16px 16px 16px 4px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  animation: bubbleIn .2s ease-out;
}
.bubble--me .bubble__wrap {
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(150deg, var(--g-600), var(--g-700));
  border-color: transparent; color: #fff;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.bubble__body {
  display: block; font-size: 13.5px; line-height: 1.55; color: var(--ink);
  overflow-wrap: anywhere;
}
.bubble--me .bubble__body { color: #fff; }
.bubble__time {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  margin-top: 3px; font-size: 10px; color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.bubble--me .bubble__time { color: rgba(255, 255, 255, .7); }
.bubble__tick { opacity: .55; }
.bubble__tick.is-read { opacity: 1; color: #7ee2b8; }

.chatbox__empty {
  margin: auto; display: grid; justify-items: center; gap: 6px;
  text-align: center; color: var(--muted);
}
.chatbox__emptyico {
  width: 56px; height: 56px; border-radius: 18px; margin-bottom: 6px;
  display: grid; place-items: center;
  background: var(--g-50); color: var(--g-600);
}
.chatbox__empty b { font-size: 14px; color: var(--ink); }
.chatbox__empty span { font-size: 12.5px; }

/* --- Kuandika --- */
.chatbox__foot {
  display: flex; align-items: flex-end; gap: 10px; flex: none;
  padding: 12px 14px; background: var(--surface);
  border-top: 1px solid var(--line);
}
.chatbox__foot textarea {
  flex: 1; resize: none; max-height: 130px;
  padding: 11px 15px; border-radius: 22px;
  border: 1.5px solid var(--line); background: var(--canvas);
  color: var(--ink); font-family: inherit; font-size: 14px; line-height: 1.5;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.chatbox__foot textarea:focus {
  outline: none; border-color: var(--g-500); background: var(--surface);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 12%, transparent);
}
.chatbox__send {
  width: 44px; height: 44px; flex: none; border: 0; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--g-500), var(--g-700));
  box-shadow: 0 4px 12px -4px rgba(13, 84, 51, .55);
  transition: transform .14s, box-shadow .14s;
}
.chatbox__send:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -5px rgba(13, 84, 51, .6); }
.chatbox__send:active { transform: none; }

@media (max-width: 640px) {
  .chatbox { height: calc(100dvh - var(--topbar-h) - 20px); border-radius: var(--r); }
  .bubble { max-width: 88%; }
  .chatbox__body { padding: 14px 12px; }
}

/* ==========================================================================
   UKANDA WA MATANGAZO (unaoteleza)
   Tangazo lililofichwa ndani ya menyu halisomwi. Hili linamfuata
   kiongozi kwenye ukurasa wa kwanza, likionyesha nani alilituma na lini.
   ========================================================================== */
.tick {
  display: flex; align-items: stretch; gap: 0; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--sh-1);
}
.tick__tag {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 0 16px; color: #fff;
  background: linear-gradient(150deg, var(--gold-500), #b8912b);
  font-size: 12px; font-weight: 800; letter-spacing: .03em;
}
.tick__pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .8);
  animation: tickPulse 2.2s infinite;
}
@keyframes tickPulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.tick__view { flex: 1; min-width: 0; position: relative; }
.tick__item {
  display: none; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
}
.tick__item.is-on { display: flex; animation: tickIn .32s ease-out; }
@keyframes tickIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
.tick__av {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g-100), var(--g-50));
  color: var(--g-700); font-size: 12px; font-weight: 800;
}
.tick__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tick__subject {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tick__text {
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tick__meta {
  margin-top: 2px; font-size: 10.5px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.tick__dot { color: var(--line); }

.tick__nav {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding: 0 12px; border-left: 1px solid var(--line-soft);
}
.tick__arrow {
  width: 26px; height: 26px; border: 1px solid var(--line); cursor: pointer;
  border-radius: 50%; background: transparent; color: var(--muted);
  display: grid; place-items: center;
  transition: background .14s, color .14s, border-color .14s;
}
.tick__arrow:hover { background: var(--g-50); color: var(--g-700); border-color: var(--g-300); }
.tick__arrow[data-tick-prev] svg { transform: rotate(180deg); }
.tick__dots { display: flex; gap: 5px; }
.tick__d {
  width: 6px; height: 6px; padding: 0; border: 0; cursor: pointer;
  border-radius: 50%; background: var(--line);
  transition: background .16s, width .16s;
}
.tick__d.is-on { width: 16px; border-radius: 3px; background: var(--gold-500); }

@media (max-width: 760px) {
  .tick { flex-wrap: wrap; }
  .tick__tag { width: 100%; padding: 9px 14px; }
  .tick__view { flex: 1 1 100%; order: 2; }
  .tick__nav { order: 3; width: 100%; justify-content: center;
               padding: 0 0 12px; border-left: 0; }
  .tick__item { padding: 12px 14px; }
}

/* ==========================================================================
   KADI ZA VIONGOZI (orodha ya wenzangu)
   ========================================================================== */
.peeps {
  display: grid; gap: 11px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.peep {
  display: grid; justify-items: center; gap: 3px; text-align: center;
  padding: 18px 14px 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  color: inherit; transition: transform .16s, box-shadow .16s, border-color .16s;
}
.peep:hover {
  transform: translateY(-3px); border-color: var(--g-300);
  box-shadow: 0 10px 22px -12px rgba(13, 84, 51, .4);
}
.peep__av {
  width: 52px; height: 52px; margin-bottom: 7px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g-600), var(--g-800));
  color: #fff; font-size: 16px; font-weight: 800;
}
.peep__name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.peep__post { font-size: 11.5px; font-weight: 600; color: var(--g-600); }
.peep__area { font-size: 11px; color: var(--muted); }
.peep__go {
  margin-top: 9px; padding: 6px 14px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g-50); color: var(--g-700);
  font-size: 11.5px; font-weight: 700;
  transition: background .14s, color .14s;
}
.peep:hover .peep__go { background: var(--g-500); color: #fff; }

@media (max-width: 460px) {
  .peeps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .peep { padding: 14px 10px 12px; }
  .peep__av { width: 44px; height: 44px; font-size: 14px; }
}

/* ==========================================================================
   DASHIBODI — MWONEKANO WA KISASA
   --------------------------------------------------------------------------
   Kanuni tatu:
     1. KILA JUKUMU LINA RANGI YAKE. Afisa akifungua akaunti isiyo yake
        anaigundua mara moja kwa rangi, kabla hajasoma menyu.
     2. HAKUNA KITU KINACHOSOGEA BILA SABABU. Uhuishaji ni wa kuingia
        pekee, si wa kudumu — unaovutia mara ya kwanza huchosha mara ya
        mia.
     3. KUGUSA KUNAJIBU. Kila kadi inayobofyeka inainuka kidogo.
   ========================================================================== */

/* --- KPI: kadi zenye uhai --- */
.kpi {
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kpi::after {
  /* Mstari mwembamba wa rangi juu — unatoa utambulisho bila kelele. */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--g-500), var(--g-300));
  opacity: .9;
}
.kpi.tint-navy::after  { background: linear-gradient(90deg, var(--n-700), #4a7ab8); }
.kpi.tint-gold::after  { background: linear-gradient(90deg, var(--gold-500), #e8cf7a); }
.kpi.tint-red::after   { background: linear-gradient(90deg, var(--danger), #e8817a); }
.kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -14px rgba(13, 84, 51, .42);
  border-color: var(--g-300);
}
.kpi__value {
  font-variant-numeric: tabular-nums;
  animation: kpiRise .45s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes kpiRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
/* Kila kadi inaingia kwa zamu — inaonekana hai bila kuchosha. */
.grid--5 > *:nth-child(1) .kpi__value { animation-delay: .02s; }
.grid--5 > *:nth-child(2) .kpi__value { animation-delay: .06s; }
.grid--5 > *:nth-child(3) .kpi__value { animation-delay: .10s; }
.grid--5 > *:nth-child(4) .kpi__value { animation-delay: .14s; }
.grid--5 > *:nth-child(5) .kpi__value { animation-delay: .18s; }

/* --- Kichwa cha dashibodi kwa kila jukumu --- */
.ldr__hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
}
.ldr__hero::before {
  /* Muundo wa kijiometri hafifu — unatoa kina bila picha nzito. */
  content: ""; position: absolute; inset: 0; opacity: .16;
  background:
    radial-gradient(circle at 88% 18%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 78%, #fff 0 1px, transparent 1.6px);
  background-size: 34px 34px, 22px 22px;
  pointer-events: none;
}
.ldr__hero > * { position: relative; z-index: 1; }

/* Rangi kwa jukumu. Chaguo-msingi ni kijani cha uongozi (kwenye
   `.ldr__hero` yenyewe); haya yanaipindua kwa makundi mengine. */
.app-taifa .ldr__hero {
  background: linear-gradient(112deg, #0b2545, var(--n-700));
}
.app-fedha .ldr__hero {
  background: linear-gradient(112deg, #5c4610, #a8842a);
}
.app-afisa .ldr__hero {
  background: linear-gradient(112deg, #123a26, #1c6b47);
}

/* Aikoni ya menyu iliyochaguliwa inafuata rangi ya jukumu. */
.app-taifa .nav-link.is-active { box-shadow: inset 3px 0 0 var(--n-700); }
.app-fedha .nav-link.is-active { box-shadow: inset 3px 0 0 var(--gold-500); }

/* --- Kadi za orodha: kuinuka kunapoguswa --- */
.appcard { transition: background .14s, transform .14s, box-shadow .14s; }
.appcard:has(.appcard__main[href]):hover {
  transform: translateX(2px);
  box-shadow: inset 3px 0 0 var(--g-300);
}

/* --- Kadi kuu --- */
.card { transition: box-shadow .18s ease; }
.card:hover { box-shadow: var(--sh-2); }

/* --- Sehemu tupu: si ukurasa uliokufa --- */
.empty__icon {
  animation: emptyFloat 3.6s ease-in-out infinite;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* --- Mtu asiyependa msogeo --- */
@media (prefers-reduced-motion: reduce) {
  .kpi__value, .empty__icon, .bubble__wrap, .tick__item {
    animation: none !important;
  }
  .kpi:hover, .appcard:hover, .peep:hover { transform: none; }
}

@media (max-width: 640px) {
  /* Kwenye simu, kuinuka kunachanganya kugusa. */
  .kpi:hover, .peep:hover { transform: none; }
}

/* ==========================================================================
   MICHANGO — hatua tatu, beji ya mradi, na mradi uliotimia
   ========================================================================== */

/* Kichwa kidogo ndani ya hatua. Hatua tano zilipunguzwa kuwa tatu, kwa hiyo
   "Kiasi" na "Marudio" si hatua tena — ni sehemu za swali moja. Zinatofautiana
   na `gv__label` kwa kukosa namba na kuwa nyepesi. */
.gv__sub {
  display: block; margin: 20px 0 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-2);
}
.gv__sub:first-child { margin-top: 0; }

/* --- Beji ya mradi anaochangia --- */
.gv__proj {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--g-100); background: var(--g-50);
}
.gv__projico {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--g-600);
}
.gv__projtxt { flex: 1; min-width: 0; }
.gv__projtxt b {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--g-800);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gv__projtxt small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.gv__projx {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted); font-size: 17px; line-height: 1; text-decoration: none;
  transition: background .16s, color .16s;
}
.gv__projx:hover { background: var(--surface); color: var(--danger); }

/* --- Mradi uliotimia lengo --- */
.proj--full { border-color: var(--g-300); }
.proj--full .proj__bar span { background: linear-gradient(90deg, var(--g-500), var(--gold-500)); }
.proj__stamp {
  position: absolute; z-index: 3; top: 11px; right: 11px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--r-full);
  background: var(--g-700); color: var(--gold-400);
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  box-shadow: 0 4px 12px -3px rgba(4,35,24,.5);
}
.proj__stamp svg { flex: none; }
/* Mradi uliokamilika: alama ya EXPIRED juu ya picha, na kitufe kilichozimwa */
.proj__stamp--expired { background: #9b1c1c; color: #fff; }
.proj--full .btn:disabled {
  cursor: not-allowed; opacity: .75;
  background: var(--line-soft); color: var(--muted); border-color: transparent;
}

/* Bar za michango: zinaanza 0 na kujaa MARA MOJA hadi kiwango halisi
   (JS inaweka upana kadi inapoonekana). Si mzunguko usio na mwisho. */
[data-fill] { transition: width 1.6s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) { [data-fill] { transition: none; } }

/* --------------------------------------------------------------------------
   Hatua ya malipo ilikuwa 829px — karibu nusu ya fomu nzima. Vipengele vya
   KUELEZA (orodha ya mitandao, beji ya Pesapal) vimebanwa; vya KUCHAGUA
   (kadi za watoa huduma) vimeachwa kama vilivyo.
   -------------------------------------------------------------------------- */

/* Mitandao ndani ya paneli: vigae 6 vya safu mbili -> mstari mmoja wa maandishi.
   Ni orodha ya kueleza tu — mtu hachagui hapa, kwa hiyo haihitaji nafasi ya kadi. */
.gv__methods {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.gv__methods li {
  flex-direction: row; align-items: baseline; gap: 5px;
  padding: 5px 10px; border-radius: var(--r-full);
}
.gv__methods b { font-size: 11.5px; }
.gv__methods small { font-size: 10px; }

/* Beji ya Pesapal: 234px -> ~96px. Bado inaonekana, lakini haitawali. */
.paybadge { margin-top: 10px; padding: 9px; }
.paybadge img { max-width: 250px; }
@media (max-width: 560px) { .paybadge img { max-width: 210px; } }

/* Njia zinazokuja bado zinaonekana ili mtu ajue zipo, lakini kwa unyenyekevu —
   hazina uzito sawa na zinazofanya kazi leo. */
.gv__pay.is-soon { padding-block: 9px; opacity: .72; }
.gv__pay.is-soon .gv__payico { transform: scale(.88); }
.gv__pay.is-soon .gv__paytxt small { display: none; }

/* ==========================================================================
   KADI YA KUINGIA — HATUA MBILI
   --------------------------------------------------------------------------
   Hatua 1: mtu anachagua yeye ni nani.
   Hatua 2: fomu inayolingana na chaguo lake.

   Sababu ya kugawa: mwanachama huingia kwa NAMBA YA UANACHAMA, kiongozi
   kwa JINA LA MTUMIAJI. Fomu moja yenye "Namba / Barua pepe / Jina"
   iliwachanganya wote wawili, na milango yenyewe ni miwili tofauti.
   ========================================================================== */
.loginpanel--wizard { position: relative; overflow: hidden; }

/* Kuficha kunafanywa na sifa ya `hidden` ya HTML, si CSS.
   SABABU: CSS ikichelewa kufika (au `collectstatic` ikisahaulika),
   ukurasa ulikuwa ukionyesha hatua zote tatu kwa pamoja. Sifa ya
   `hidden` inaheshimiwa na kivinjari hata bila stylesheet yoyote. */
.lw__step[hidden] { display: none; }
.lw__step { animation: lwIn .26s cubic-bezier(.22, 1, .36, 1); }
@keyframes lwIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* --- Nembo ya juu --- */
.lw__crest {
  width: 46px; height: 46px; margin: 0 auto 13px; border-radius: 15px;
  display: grid; place-items: center; color: var(--gold-500);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
}
.lw__crest--green { color: #7ee2b8; }
.lw__crest--gold  { color: var(--gold-500); }

.lw__lead {
  margin-top: 3px; font-size: 12.5px; line-height: 1.5;
  color: rgba(255, 255, 255, .68);
}

/* --- Machaguo mawili --- */
.lw__picks { display: grid; gap: 10px; margin: 20px 0 16px; }

.lwpick {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 15px; cursor: pointer; text-align: left;
  border-radius: 15px; color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  transition: background .16s, border-color .16s, transform .16s;
}
.lwpick:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .26);
  transform: translateY(-2px);
}
.lwpick:active { transform: none; }

.lwpick__ico {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
}
.lwpick__ico--green {
  background: linear-gradient(150deg, #17a674, #0c563a); color: #fff;
}
.lwpick__ico--gold {
  background: linear-gradient(150deg, var(--gold-500), #a8842a); color: #fff;
}

.lwpick__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lwpick__txt b { font-size: 13.5px; font-weight: 700; color: #fff; }
.lwpick__txt small {
  font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .6);
}
.lwpick__go { flex: none; color: rgba(255, 255, 255, .45); transition: transform .16s, color .16s; }
.lwpick:hover .lwpick__go { color: var(--gold-500); transform: translateX(3px); }

/* --- Kiungo cha kujiunga --- */
.lw__join {
  display: block; text-align: center; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; color: rgba(255, 255, 255, .62);
}
.lw__join b { color: var(--gold-500); }
.lw__join:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* --- Kurudi --- */
.lw__back {
  position: absolute; top: 0; left: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px 6px 8px; cursor: pointer;
  border-radius: var(--r-full); border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .78);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  transition: background .15s, color .15s;
}
.lw__back:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lw__back svg { transform: rotate(180deg); }

/* --- Dokezo chini ya fomu --- */
.lw__hint {
  display: flex; align-items: flex-start; gap: 7px; margin-top: 13px;
  padding: 9px 11px; border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .6);
}
.lw__hint svg { flex: none; margin-top: 2px; color: var(--gold-500); }

@media (max-width: 560px) {
  .lwpick { padding: 12px 13px; gap: 10px; }
  .lwpick__ico { width: 38px; height: 38px; }
  .lwpick:hover { transform: none; }
}

/* ==========================================================================
   KUCHAGUA KIKUNDI KWENYE UKURASA WA KUINGIA
   --------------------------------------------------------------------------
   Kinaonekana kwenye mlango wa VIONGOZI pekee, ambako sehemu ya kujaza
   inatofautiana kweli: kiongozi wa kuchaguliwa ana namba ya uanachama,
   afisa wa ofisi ana jina la mtumiaji.

   Mlango wa wanachama hauna hiki — hapo kuchagua hakubadilishi lolote.
   ========================================================================== */
.authpick { display: grid; gap: 9px; margin-bottom: 20px; }

.authpick__opt {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; cursor: pointer;
  border-radius: 14px; background: var(--surface);
  border: 1.5px solid var(--line);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.authpick__opt:hover { border-color: var(--g-300); background: var(--g-50); }
.authpick__opt.is-on {
  border-color: var(--g-500); background: var(--g-50);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 11%, transparent);
}
.authpick__opt input { position: absolute; opacity: 0; pointer-events: none; }

.authpick__ico {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--canvas); color: var(--muted);
  transition: background .16s, color .16s;
}
.authpick__opt.is-on .authpick__ico {
  background: linear-gradient(150deg, var(--g-500), var(--g-700)); color: #fff;
}

.authpick__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.authpick__txt b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.authpick__txt small { font-size: 11.5px; line-height: 1.45; color: var(--muted); }

.authpick__tick {
  width: 21px; height: 21px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--surface);
  color: transparent; transition: background .16s, border-color .16s, color .16s;
}
.authpick__opt.is-on .authpick__tick {
  background: var(--g-500); border-color: var(--g-500); color: #fff;
}

/* Fomu yenyewe inapumua zaidi baada ya kuondoa hatua za uongo. */
.authform .field { margin-bottom: 15px; }

@media (max-width: 480px) {
  .authpick__opt { padding: 11px 12px; gap: 10px; }
  .authpick__ico { width: 36px; height: 36px; }
}

/* ==========================================================================
   KITUFE CHA KULIPA (badala ya orodha ya njia za malipo)
   Orodha ya mitandao haikumsaidia mtu — hachagui pale, na huchagua
   akiwa kwenye ukurasa wa malipo. Kitufe kimoja kinamfikisha
   anapotaka kwenda.
   ========================================================================== */
.card--pay { border-color: var(--g-300); background: var(--g-50); }
.pkg__pay {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.pkg__payico {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--g-500), var(--g-700));
  box-shadow: 0 6px 16px -8px rgba(13, 84, 51, .55);
}
.pkg__paytxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pkg__paytxt b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.pkg__paytxt span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 520px) {
  .pkg__pay { gap: 11px; }
  .pkg__pay .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   AINA YA UANACHAMA — kadi kwenye kompyuta, orodha kunjuzi kwenye simu
   --------------------------------------------------------------------------
   Kadi nne kwenye `grid--4` zilibanana kwenye simu: jina na bei
   zilikatika, na kugusa kulikuwa kugumu. Kichagua cha mfumo ni rahisi
   kuliko chochote tunachoweza kujenga kwa skrini ndogo.
   ========================================================================== */
.catpick__cards {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.catpick__sel { display: none; }

.catcard {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  padding: 13px 14px; cursor: pointer;
  border-radius: 14px; background: var(--surface);
  border: 1.5px solid var(--line);
  transition: border-color .16s, background .16s, box-shadow .16s, transform .16s;
}
.catcard:hover { border-color: var(--g-300); transform: translateY(-2px); }
.catcard.is-on {
  border-color: var(--g-500); background: var(--g-50);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 11%, transparent);
}
.catcard input { position: absolute; opacity: 0; pointer-events: none; }

.catcard__top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.catcard__top b {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.catcard__tick {
  width: 19px; height: 19px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--surface);
  color: transparent; transition: background .16s, border-color .16s, color .16s;
}
.catcard.is-on .catcard__tick {
  background: var(--g-500); border-color: var(--g-500); color: #fff;
}
.catcard__fee {
  font-family: var(--font-num); font-size: 15px; font-weight: 800;
  color: var(--g-700);
}
.catcard__fee small {
  font-family: var(--font); font-size: 10.5px; font-weight: 600;
  color: var(--muted);
}

@media (max-width: 640px) {
  /* Kwenye simu: orodha kunjuzi pekee. */
  .catpick__cards { display: none; }
  .catpick__sel { display: block; }
}

/* ==========================================================================
   FOMU YA USAJILI — muonekano
   ========================================================================== */
.stepper { gap: 6px; }
.step {
  transition: color .16s;
}
.step.is-current .step__num {
  background: linear-gradient(150deg, var(--g-500), var(--g-700)); color: #fff;
  box-shadow: 0 4px 12px -5px rgba(13, 84, 51, .5);
}

/* Sehemu za kujaza zinaguswa kwa upole */
.card .field input:not([type=checkbox]):not([type=radio]),
.card .field select,
.card .field textarea {
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.card .field input:focus,
.card .field select:focus,
.card .field textarea:focus {
  border-color: var(--g-500); background: var(--surface);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--g-500) 12%, transparent);
  outline: none;
}

/* Kikasha cha masharti kinaonekana kama sehemu ya fomu, si kiambatisho */
.reqbox { border-left: 3px solid var(--g-500); }

@media (max-width: 640px) {
  /* iOS huvuta skrini font ikiwa chini ya 16px */
  .catpick__sel { font-size: 16px; height: 46px; }
}

/* Bango la bei za majaribio (`bei_za_majaribio --washa`) */
.test-prices {
  padding: 8px 16px; text-align: center;
  background: #9b1c1c; color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}

/* Ukurasa wa "Ombi Limepokelewa" (/jiunge/tayari/) — unatumia kadi ya .otp */
.done__ref { font-size: 18px; color: var(--g-800); user-select: all; }
.done__phone {
  margin-top: 14px; padding: 9px 12px; border-radius: 12px;
  background: var(--canvas); color: var(--muted); font-size: 12.5px;
}
.done__phone.is-ok { background: var(--g-50); color: var(--g-700); font-weight: 600; }
.done__steps {
  margin: 18px 0 4px; padding-left: 20px; text-align: left;
  font-size: 12.5px; color: var(--ink); line-height: 1.65;
}
.done__steps li + li { margin-top: 6px; }
