@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* Brand Palette: White, Royal Blue, Emerald Green */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --brand-blue: #1D4ED8;
  --brand-blue-hover: #1E40AF;
  --brand-blue-soft: #EFF6FF;
  --brand-blue-border: #BFDBFE;
  
  --brand-green: #059669;
  --brand-green-hover: #047857;
  --brand-green-soft: #ECFDF5;
  --brand-green-border: #A7F3D0;
  
  --ink-primary: #0F172A;
  --ink-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  
  --border-light: #E2E8F0;
  --border-hover: #CBD5E1;
  
  --whatsapp: #16A34A;
  --danger: #DC2626;
  
  --display-font: 'Outfit', 'Inter', sans-serif;
  --body-font: 'Inter', sans-serif;
  --mono-font: 'IBM Plex Mono', monospace;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 24px -4px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 40px -12px rgba(29, 78, 216, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--body-font);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Subtle Radial Gradients on Light Background */
body::before {
  content: ""; position: fixed; top: -12%; right: -8%; width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.06) 0%, rgba(5, 150, 105, 0.02) 50%, transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: ""; position: fixed; bottom: -10%; left: -8%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, rgba(29, 78, 216, 0.02) 50%, transparent 70%);
  pointer-events: none; z-index: 0;
}

#root { position: relative; z-index: 1; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ---- Clean Topbar Navigation ---- */
header.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-minimal { padding: 14px 0; }
.back-arrow-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); text-decoration: none;
  font-size: 14.5px; font-weight: 600; padding: 8px 14px 8px 10px; border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.back-arrow-link:hover { background: var(--bg-subtle); color: var(--brand-blue); }
.logo {
  display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 16px;
  background: #FFFFFF; border: 1px solid var(--brand-blue-border); box-shadow: var(--shadow-md);
}
.logo img { display: block; height: 26px; width: auto; }
.logo-plain { padding: 0; border: none; background: none; box-shadow: none; border-radius: 0; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--ink-secondary); text-decoration: none; font-size: 14.5px; font-weight: 600;
  transition: color 0.15s ease; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  transition: right 0.2s ease;
}
.nav-links a:hover { color: var(--brand-blue); }
.nav-links a:hover::after { right: 0; }
@media (max-width: 860px) { .nav-links { display: none; } }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--brand-blue); font-family: var(--mono-font); background: var(--brand-blue-soft);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--brand-blue-border);
}
.header-badge .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}
@media (max-width: 640px) { .header-badge { display: none; } }

.btn-cta-sm {
  padding: 10px 20px; border-radius: 10px; background: var(--brand-blue);
  color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25); transition: all 0.15s ease;
}
.btn-cta-sm:hover { background: var(--brand-blue-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35); }

.btn-nav-outline {
  padding: 9px 18px; border-radius: 10px; border: 1.5px solid var(--border-light);
  background: #FFFFFF; color: var(--ink-primary); text-decoration: none; font-size: 13.5px; font-weight: 600;
  transition: all 0.15s ease;
}
.btn-nav-outline:hover { background: var(--bg-subtle); border-color: var(--border-hover); }

/* ---- Clean Cards & Panels ---- */
.glass-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

/* ---- Centered Hero Section ---- */
.landing-hero-centered {
  padding: 96px 0 80px; text-align: center; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
}
@media (max-width: 640px) { .landing-hero-centered { padding: 56px 0 48px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono-font); font-size: 12.5px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-blue);
  background: var(--brand-blue-soft); border: 1px solid var(--brand-blue-border);
  padding: 8px 16px; border-radius: 999px;
}
.status-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--brand-green); box-shadow: 0 0 6px var(--brand-green); }

.hero-title-large {
  font-family: var(--display-font); font-weight: 800; font-size: 58px; line-height: 1.1;
  letter-spacing: -0.025em; color: var(--ink-primary); margin: 0 0 24px;
}
.hero-title-large em {
  color: var(--brand-blue); font-style: normal;
}
@media (max-width: 640px) { .hero-title-large { font-size: 40px; } }

.hero-sub-large {
  font-size: 19px; line-height: 1.65; color: var(--text-muted); max-width: 48ch; margin: 0 auto 36px;
}
@media (max-width: 640px) { .hero-sub-large { font-size: 16.5px; } }

.landing-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 36px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), #2563EB); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: none;
  font-family: inherit; box-shadow: 0 10px 28px rgba(29, 78, 216, 0.35); transition: all 0.15s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(29, 78, 216, 0.45); }

.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 32px; border-radius: 14px;
  border: 1.5px solid var(--border-light); background: #FFFFFF; color: var(--ink-primary);
  font-weight: 600; font-size: 16px; text-decoration: none; font-family: inherit; transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.btn-cta-outline:hover { background: var(--bg-subtle); border-color: var(--border-hover); }

.hero-trust-metrics {
  display: flex; align-items: center; gap: 20px; font-size: 14.5px; color: var(--text-muted); flex-wrap: wrap;
}
.hero-trust-metrics strong { color: var(--ink-primary); }
.metric-item { display: inline-flex; align-items: center; gap: 6px; }
.metric-divider { width: 5px; height: 5px; border-radius: 999px; background: var(--text-dim); flex-shrink: 0; }

/* ---- Logo Strip ---- */
.logo-strip { padding: 40px 0; background: #FFFFFF; border-bottom: 1px solid var(--border-light); }
.logo-strip .caption {
  text-align: center; font-family: var(--mono-font); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px;
}
.logo-strip-row { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }

/* ---- Features Grid ---- */
.features-section { padding: 90px 0; }
.section-band-alt { background: var(--bg-subtle); }
.section-band-alt .features-section { padding: 84px 0; }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.features-title { font-family: var(--display-font); font-weight: 800; font-size: 36px; color: var(--ink-primary); margin: 0 0 14px; }
.features-sub { color: var(--text-muted); font-size: 17px; margin: 0; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #FFFFFF; border: 1.5px solid var(--border-light); border-radius: 20px;
  padding: 36px; transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  border-color: var(--brand-blue-border); transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.feature-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-blue-soft); color: var(--brand-blue); margin-bottom: 24px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; color: var(--ink-primary); margin: 0 0 12px; }
.feature-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ---- How It Works ---- */
.steps-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .steps-wrapper { grid-template-columns: 1fr; } }
.step-card { background: #FFFFFF; border: 1.5px solid var(--border-light); border-radius: 20px; padding: 36px; position: relative; box-shadow: var(--shadow-sm); }
.step-badge { font-family: var(--mono-font); font-size: 14px; font-weight: 700; color: var(--brand-green); background: var(--brand-green-soft); border: 1px solid var(--brand-green-border); padding: 6px 14px; border-radius: 999px; display: inline-block; margin-bottom: 20px; }
.step-card h3 { font-size: 19px; font-weight: 700; color: var(--ink-primary); margin: 0 0 12px; }
.step-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ---- Security Section ---- */
.security-section { padding: 40px 0; }
.security-box { display: flex; align-items: center; gap: 32px; padding: 40px; background: var(--brand-blue-soft); border: 1.5px solid var(--brand-blue-border); }
@media (max-width: 640px) { .security-box { flex-direction: column; text-align: center; } }
.security-icon-large { width: 68px; height: 68px; border-radius: 20px; background: #FFFFFF; color: var(--brand-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.security-text h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: var(--ink-primary); }
.security-text p { margin: 0; font-size: 15.5px; color: var(--ink-secondary); line-height: 1.65; }

/* ---- CTA Banner ---- */
.cta-banner-section { padding: 60px 0 90px; }
.cta-banner-card { text-align: center; padding: 64px 32px; background: linear-gradient(135deg, var(--brand-blue-soft), var(--brand-green-soft)); border: 1.5px solid var(--brand-blue-border); }
.cta-banner-card h2 { font-family: var(--display-font); font-size: 38px; font-weight: 800; color: var(--ink-primary); margin: 0 0 14px; }
.cta-banner-card p { font-size: 17.5px; color: var(--text-muted); max-width: 52ch; margin: 0 auto; }

/* ---- Footer ---- */
.footer {
  background: var(--ink-primary); border-top: none; padding: 64px 0 32px; margin-top: 60px; position: relative;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col-main { max-width: 340px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 16px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h5 { font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a, .footer-links span { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--brand-green); }
.footer-bottom { text-align: center; padding-top: 32px; font-size: 13.5px; color: rgba(255,255,255,0.4); }

/* ---- Form Elements for Register Page ---- */
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-primary); margin-bottom: 8px; }
input, select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--border-light);
  background: #FFFFFF; color: var(--ink-primary); font-size: 14.5px; outline: none; font-family: inherit;
  transition: all 0.15s ease;
}
input:focus, select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1); }
input::placeholder { color: var(--text-dim); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }

/* Country & Method Pickers */
.country-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.country-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px;
  border-radius: 16px; border: 1.5px solid var(--border-light); background: #FFFFFF;
  cursor: pointer; font-family: inherit; text-align: center; transition: all 0.15s ease;
}
.country-card:hover { border-color: var(--border-hover); background: var(--bg-subtle); }
.country-card.active { border-color: var(--brand-blue); background: var(--brand-blue-soft); box-shadow: 0 4px 16px rgba(29, 78, 216, 0.15); }
.country-card .flag {
  display: flex; align-items: center; justify-content: center; padding: 8px 10px;
  border-radius: 8px; background: var(--bg-subtle); border: 1px solid var(--border-light);
  margin-bottom: 2px; box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}
.country-card .label { font-weight: 700; font-size: 15px; color: var(--ink-primary); }
.country-card .note { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.method-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.method-card {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px;
  border: 1.5px solid var(--border-light); background: #FFFFFF; cursor: pointer; text-align: left;
  width: 100%; font-family: inherit; transition: all 0.15s ease;
}
.method-card:hover { border-color: var(--border-hover); }
.method-card.active { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.method-card .icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--brand-blue); flex-shrink: 0;
}
.method-card.active .icon { background: var(--brand-blue); color: #fff; }
.method-card .title { font-weight: 700; font-size: 14.5px; color: var(--ink-primary); }
.method-card .desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.method-card .radio { margin-left: auto; width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--border-light); flex-shrink: 0; }
.method-card.active .radio { border-color: var(--brand-blue); background: radial-gradient(var(--brand-blue) 0 40%, transparent 42%); }

/* Register Page Layout */
.register-section { padding: 40px 0 80px; }
.order-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; } }

.form-card {
  background: #FFFFFF; border: 1.5px solid var(--border-light); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow-md);
}
.form-card .section-label {
  display: flex; align-items: center; gap: 8px; font-family: var(--mono-font); font-size: 12px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-blue);
  margin: 28px 0 16px; padding-left: 10px; border-left: 3px solid var(--brand-blue);
}
.form-card .section-label:first-child { margin-top: 0; }

/* Receipt Preview Stub */
.receipt {
  background: #FFFFFF; border: 1.5px solid var(--border-light); border-radius: 20px;
  padding: 28px; font-family: var(--mono-font); position: relative;
  box-shadow: var(--shadow-md);
}
.receipt-head { text-align: center; border-bottom: 1px dashed var(--border-light); padding-bottom: 16px; margin-bottom: 16px; }
.receipt-head .brand { font-weight: 800; font-size: 14px; letter-spacing: 0.08em; color: var(--ink-primary); }
.receipt-head .tag { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; color: var(--ink-primary); }
.receipt-row .k { color: var(--text-muted); }
.receipt-row .v { font-weight: 600; text-align: right; }
.receipt-row .v.placeholder { color: var(--text-dim); }
.receipt-divider { border-top: 1px dashed var(--border-light); margin: 16px 0; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; }
.receipt-total .k { font-size: 13px; font-weight: 700; color: var(--ink-primary); }
.receipt-total .v { font-size: 22px; font-weight: 800; color: var(--brand-blue); }
.receipt-barcode {
  margin-top: 20px; height: 32px; background-image: repeating-linear-gradient(90deg, var(--ink-primary) 0 2px, transparent 2px 5px);
  opacity: 0.85;
}

.order-right { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .order-right { position: static; } }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-secondary);
  background: #FFFFFF; border: 1.5px solid var(--border-light); padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.trust-chip svg { color: var(--brand-green); }

.btn-primary {
  padding: 16px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--brand-blue), #2563EB); color: #fff;
  font-size: 15.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.3); transition: all 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(29, 78, 216, 0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.wa-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 12px;
  background: var(--whatsapp); color: #fff; font-weight: 700; text-decoration: none; font-size: 15px;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3); transition: all 0.15s ease;
}
.wa-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(22, 163, 74, 0.4); }

.success-check {
  width: 72px; height: 72px; border-radius: 999px; background: var(--brand-green-soft); color: var(--brand-green);
  display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 16px;
  border: 1px solid var(--brand-green-border);
}

.hint { font-size: 13px; color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* =====================================================================
   Restored for pay.html (the live STK Push payment page) and a couple of
   other spots — these classes were relied on by existing markup but
   dropped in the light-theme rewrite. Redone to match the new
   white/royal-blue/emerald palette instead of the old dark theme.
   ===================================================================== */

.page-head { padding: 32px 0 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.page-title { font-family: var(--display-font); font-size: 26px; font-weight: 800; margin: 0; color: var(--ink-primary); }

.panel {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.panel-dark {
  background: linear-gradient(160deg, var(--ink-primary), var(--brand-blue-hover));
  border-radius: 16px; padding: 28px; color: #fff; box-shadow: var(--shadow-lg);
}

.amount-hero { text-align: center; padding: 8px 0 4px; }
.amount-hero .val { font-family: var(--display-font); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.amount-hero .sub { font-size: 13px; opacity: 0.75; margin-top: 4px; }
.amount-input-wrap { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border-radius: 12px; padding: 4px 4px 4px 16px; }
.amount-input-wrap span { color: rgba(255,255,255,0.75); font-weight: 700; font-size: 15px; }
.amount-input-wrap input {
  border: none; font-size: 26px; font-weight: 800; color: #fff; padding: 12px 8px; background: transparent;
}
.amount-input-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.amount-input-wrap input:focus { box-shadow: none; }

.empty { text-align: center; padding: 48px 24px; color: var(--text-muted); font-size: 14px; }

.register-heading { text-align: center; }
.security-text { flex: 1; min-width: 0; }

.btn-verify-daraja {
  width: 100%; padding: 12px; border-radius: 10px; border: 1.5px solid var(--brand-blue-border);
  background: var(--brand-blue-soft); color: var(--brand-blue); font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: inherit; margin-top: 4px; transition: all 0.15s ease;
}
.btn-verify-daraja:hover:not(:disabled) { background: var(--brand-blue); color: #fff; }
.btn-verify-daraja:disabled { opacity: 0.45; cursor: not-allowed; }

.verify-result {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  margin-top: 12px; padding: 10px 14px; border-radius: 10px;
}
.verify-ok { background: var(--brand-green-soft); color: var(--brand-green); border: 1px solid var(--brand-green-border); }
.verify-fail { background: rgba(220,38,38,0.08); color: var(--danger); border: 1px solid rgba(220,38,38,0.2); }

.safe-banner {
  display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 22px 26px;
  background: linear-gradient(135deg, var(--brand-blue-soft), var(--brand-green-soft));
  border: 1.5px solid var(--brand-blue-border); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.safe-banner .shield {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-hover)); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -4px rgba(29,78,216,0.45);
}
.safe-banner h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink-primary); }
.safe-banner p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 480px) { .safe-banner { flex-direction: column; text-align: center; } }

.payment-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 1px solid var(--border-light); border-radius: 12px;
  padding: 14px 22px; min-width: 96px; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.payment-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.payment-badge-md { font-size: 15px; }
.payment-badge-sm { font-size: 12px; padding: 9px 14px; min-width: 0; }

/* =====================================================================
   Registration wizard — step-by-step "slide" flow (country → business →
   payment method → Daraja creds → delivery → review/payment).
   ===================================================================== */

.wizard-progress {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 32px; flex-wrap: wrap;
}
.wizard-dot {
  width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono-font); font-size: 13px; font-weight: 700;
  background: #fff; border: 2px solid var(--border-light); color: var(--text-dim);
  transition: all 0.2s ease;
}
.wizard-dot.active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-hover));
  border-color: transparent; color: #fff; box-shadow: 0 6px 16px -4px rgba(29,78,216,0.5);
  transform: scale(1.1);
}
.wizard-dot.done { background: var(--brand-green-soft); border-color: var(--brand-green-border); color: var(--brand-green); }
.wizard-line { width: 28px; height: 2px; background: var(--border-light); transition: background 0.2s ease; }
.wizard-line.done { background: var(--brand-green-border); }
@media (max-width: 560px) { .wizard-line { width: 14px; } }

.wizard-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.wizard-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
}
@media (max-width: 560px) { .wizard-card { padding: 26px 20px; } }

@keyframes wizardSlideIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
.wizard-step-content { animation: wizardSlideIn 0.28s ease; min-height: 120px; }

.wizard-step-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.wizard-step-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-blue-soft), var(--brand-green-soft));
  color: var(--brand-blue); display: flex; align-items: center; justify-content: center;
}
.wizard-step-heading h2 { font-family: var(--display-font); font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--ink-primary); }
.wizard-step-heading p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.55; }

.wizard-nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light);
}
.btn-wizard-back {
  background: none; border: none; color: var(--text-muted); font-weight: 600; font-size: 14.5px;
  cursor: pointer; font-family: inherit; padding: 10px 4px; transition: color 0.15s ease;
}
.btn-wizard-back:hover { color: var(--brand-blue); }
.btn-wizard-next {
  width: auto; margin-left: auto; padding: 15px 30px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
}
.btn-wizard-next:hover { background: linear-gradient(135deg, var(--brand-blue-hover), var(--brand-green-hover)); }

.country-cards-lg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .country-cards-lg { grid-template-columns: 1fr; } }
.country-cards-lg .country-card { padding: 28px 16px; }
.country-cards-lg .flag { padding: 12px 16px; }
.country-cards-lg .label { font-size: 17px; }

.flag-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(15,23,42,0.08);
  vertical-align: middle; margin: 0 2px;
}

/* =====================================================================
   Admin dashboard
   ===================================================================== */

.admin-stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 28px; }

/* ---- Sidebar shell ---- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; flex-shrink: 0; background: var(--ink-primary); color: #fff;
  display: flex; flex-direction: column; padding: 24px 18px; position: sticky; top: 0; height: 100vh;
}
.admin-sidebar-logo { padding: 6px 10px 28px; }
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  background: none; border: none; color: rgba(255,255,255,0.65); font-size: 14.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-align: left; text-decoration: none; transition: all 0.15s ease;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-item.active { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-hover)); color: #fff; box-shadow: 0 6px 16px -6px rgba(29,78,216,0.6); }
.admin-sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.admin-nav-exit { color: rgba(255,255,255,0.45); }
.admin-profile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.admin-profile-avatar {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; flex-shrink: 0;
}
.admin-profile-name { font-size: 13px; font-weight: 700; color: #fff; }
.admin-profile-role { font-size: 11.5px; color: rgba(255,255,255,0.45); }

.admin-main { flex: 1; padding: 36px 40px; min-width: 0; background: var(--bg-page); }
@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 14px 18px; }
  .admin-sidebar-logo { padding: 4px 10px 4px 0; }
  .admin-sidebar-nav { flex-direction: row; flex: none; overflow-x: auto; }
  .admin-sidebar-footer { border-top: none; margin: 0 0 0 auto; padding: 0; flex-direction: row; align-items: center; }
  .admin-profile { display: none; }
  .admin-main { padding: 24px 18px; }
}

.admin-panel-card { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.admin-panel-title { font-weight: 700; font-size: 15px; color: var(--ink-primary); margin-bottom: 14px; }
.admin-recent-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border-light); }
.admin-recent-row:first-of-type { border-top: none; }

.admin-merchant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.admin-merchant-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm);
  text-align: left; cursor: pointer; font-family: inherit; width: 100%; transition: all 0.15s ease;
}
.admin-merchant-card:hover { border-color: var(--brand-blue-border); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.admin-view-hint { font-size: 11.5px; font-weight: 700; color: var(--brand-blue); }

.admin-qr-frame { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); }

.admin-print-card {
  background: linear-gradient(160deg, var(--ink-primary), var(--brand-blue-hover));
  border-radius: 20px; padding: 28px 24px 24px; text-align: center; margin-bottom: 14px; position: relative; overflow: hidden;
}
.admin-print-card-brand { margin-bottom: 14px; opacity: 0.95; display: flex; justify-content: center; }
.admin-print-card-divider {
  height: 3px; border-radius: 999px; margin: 4px auto 22px; width: 70%; max-width: 220px;
  background: linear-gradient(90deg, transparent, var(--brand-green), var(--brand-blue-border), transparent);
}
.admin-print-card-cols { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 20px; }
.admin-print-col { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.admin-print-col-label { color: rgba(255,255,255,0.8); font-size: 12.5px; font-weight: 700; }
.admin-print-or { color: rgba(255,255,255,0.4); font-size: 12px; font-weight: 700; padding-top: 20px; }
.admin-print-tap-glyph { color: #fff; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.admin-print-card-qr { display: inline-block; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.4); }
.admin-print-card-qr img { display: block; }
.admin-print-card-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff; font-weight: 700; font-size: 12.5px; padding: 9px 18px; border-radius: 999px;
}
.admin-print-card-name { color: rgba(255,255,255,0.85); font-weight: 700; font-size: 14.5px; margin-top: 16px; }

.admin-download-qr-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; padding: 11px; }

.admin-detail-grid { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.admin-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 13.5px; }
.admin-detail-row:last-child { border-bottom: none; }
.admin-detail-row .k { color: var(--text-muted); font-weight: 500; }
.admin-detail-row .v { color: var(--ink-primary); font-weight: 600; display: flex; align-items: center; gap: 6px; }

.admin-link-box {
  display: flex; align-items: center; gap: 10px; background: var(--bg-subtle); border-radius: 10px;
  padding: 10px 12px;
}
.admin-link-text { flex: 1; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-merchant-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-merchant-avatar {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand-blue-soft); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.admin-merchant-detail { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 5px; }
@media (max-width: 900px) { .admin-stats-row { grid-template-columns: repeat(2, 1fr); } }
.admin-stat-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.admin-stat-value { font-family: var(--display-font); font-size: 26px; font-weight: 800; color: var(--ink-primary); }
.admin-view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }

.admin-filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-sm);
}
.admin-search-box {
  display: flex; align-items: center; gap: 10px; background: var(--bg-subtle); border: 1px solid transparent;
  border-radius: 10px; padding: 10px 14px; flex: 1; min-width: 220px; transition: border-color 0.15s ease;
}
.admin-search-box:focus-within { border-color: var(--brand-blue-border); background: #fff; }
.admin-search-box input { border: none; padding: 0; font-size: 14px; background: transparent; }
.admin-search-box input:focus { box-shadow: none; }

.admin-segmented { display: inline-flex; background: var(--bg-subtle); border-radius: 10px; padding: 3px; gap: 2px; }
.admin-segment {
  padding: 8px 14px; border-radius: 8px; border: none; background: none;
  font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; font-family: inherit;
  transition: all 0.15s ease; white-space: nowrap;
}
.admin-segment:hover { color: var(--ink-primary); }
.admin-segment.active { background: #fff; color: var(--brand-blue); box-shadow: var(--shadow-sm); }

.admin-row-actions { display: flex; align-items: center; gap: 6px; }
.btn-icon-action {
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--border-light); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted);
  font-size: 13px; transition: all 0.15s ease; flex-shrink: 0;
}
.btn-icon-action:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-icon-action.danger:hover { border-color: var(--danger); color: var(--danger); background: rgba(220,38,38,0.06); }

.btn-danger {
  padding: 10px 20px; border-radius: 10px; border: none; background: var(--danger); color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
}
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.admin-modal-card {
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 18px;
  padding: 26px 28px; box-shadow: var(--shadow-lg);
}
.admin-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-modal-header h2 { font-family: var(--display-font); font-size: 19px; font-weight: 700; margin: 0; color: var(--ink-primary); }
.admin-modal-close {
  width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--bg-subtle); cursor: pointer;
  font-size: 14px; color: var(--text-muted);
}
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.admin-stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

.admin-table-wrap {
  background: #fff; border: 1px solid var(--border-light); border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden; overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th {
  text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); padding: 14px 18px; background: var(--bg-subtle); border-bottom: 1px solid var(--border-light);
}
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-subtle); }
.order-row-name { font-weight: 700; font-size: 14px; color: var(--ink-primary); }
.order-row-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.order-row-method { font-size: 13.5px; font-weight: 600; color: var(--ink-primary); }
.mono { font-family: var(--mono-font); }

.order-status-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
}
.order-status-badge.pending { background: var(--brand-blue-soft); color: var(--brand-blue); }
.order-status-badge.pending .status-dot { background: var(--brand-blue); }
.order-status-badge.delivered { background: var(--brand-green-soft); color: var(--brand-green); }

.btn-mini-toggle {
  padding: 8px 13px; border-radius: 8px; border: 1.5px solid var(--border-light); background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--ink-primary); cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: all 0.15s ease;
}
.btn-mini-toggle:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.btn-mini-check {
  padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--brand-blue-border); background: var(--brand-blue-soft);
  font-size: 12px; font-weight: 600; color: var(--brand-blue); cursor: pointer; font-family: inherit;
}
.btn-mini-check:hover { background: var(--brand-blue); color: #fff; }
.btn-mini-check:disabled { opacity: 0.55; cursor: not-allowed; }

.api-status-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
}
.api-status-pill.ok { background: var(--brand-green-soft); color: var(--brand-green); }
.api-status-pill.fail { background: rgba(220,38,38,0.08); color: var(--danger); cursor: help; }

.admin-login-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-page); padding: 24px;
}
.admin-login-card {
  width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border-light);
  border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow-lg); text-align: center; position: relative;
}
.admin-login-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
}
.admin-login-card .field { text-align: left; }

/* =====================================================================
   Pay page — professional unified card layout
   ===================================================================== */

.pay-shell { max-width: 460px; margin: 0 auto; padding: 56px 20px 80px; }

.pay-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: 24px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}

.pay-merchant-header {
  display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--border-light);
}
.pay-merchant-avatar {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  font-family: var(--display-font);
}
.pay-merchant-name { font-weight: 700; font-size: 16px; color: var(--ink-primary); line-height: 1.25; }
.pay-merchant-method { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pay-secure-tag {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  color: var(--brand-green); background: var(--brand-green-soft); padding: 5px 10px; border-radius: 999px; flex-shrink: 0;
}

.pay-panel { padding: 26px 24px 28px; }
.pay-card .panel-dark { border-radius: 0; box-shadow: none; }

.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.quick-amount-chip {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.15s ease;
}
.quick-amount-chip:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.quick-amount-chip.active { background: #fff; color: var(--brand-blue); border-color: #fff; }

.pay-spinner {
  width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff; margin: 0 auto 18px; animation: paySpin 0.8s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }

.pay-footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px;
  font-size: 12px; color: var(--text-dim); font-weight: 600;
}

.btn-pay-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto;
  padding: 15px 44px; border-radius: 999px; border: none; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green)); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: 0 10px 26px -8px rgba(5,150,105,0.5); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-pay-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(5,150,105,0.6); }
.btn-pay-cta:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-pay-cta-row { display: flex; justify-content: center; margin-top: 16px; }

.amount-custom-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); text-align: center; margin: 4px 0 8px;
}
