/* ============================================================
   Qevranoxa - Enterprise Fintech Design System
   Production Edition - Fast, Responsive, Accessible
   ============================================================ */

:root {
  /* Core Palette */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-deep: #047857;
  --primary-light: #34d399;
  --primary-soft: #ecfdf5;
  --primary-faint: #f2fbf7;
  --primary-glow: rgba(16, 185, 129, 0.22);

  --ink: #0b132b;
  --ink-soft: #334155;
  --ink-light: #475569;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --bg: #f8fafc;
  --card: #ffffff;
  --navy: #0f172a;
  --navy-dark: #090e1a;
  --navy-surface: #1e293b;
  --navy-border: rgba(255, 255, 255, 0.1);

  /* Status */
  --success: #10b981;
  --success-soft: #ecfdf5;
  --success-text: #065f46;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --danger-text: #991b1b;
  --warn: #f59e0b;
  --warn-soft: #fffbeb;
  --warn-text: #92400e;
  --info: #3b82f6;
  --info-soft: #eff6ff;
  --info-text: #1e40af;

  /* Network Brand Colors */
  --mtn: #f59e0b;
  --mtn-soft: #fef3c7;
  --mtn-dark: #b45309;
  --airtel: #ef4444;
  --airtel-soft: #fee2e2;
  --airtel-dark: #b91c1c;
  --glo: #10b981;
  --glo-soft: #d1fae5;
  --glo-dark: #047857;
  --nine-mobile: #0d9488;
  --nine-mobile-soft: #ccfbf1;
  --nine-mobile-dark: #0f766e;

  /* Geometry & Elevation */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 10px 25px -5px var(--primary-glow);

  /* Typography */
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================
   Base & Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand, .btn, .font-display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: var(--primary);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Buttons & Interactive Elements
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
  background: #ffffff;
  color: var(--ink) !important;
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
  background: var(--line-light);
  border-color: var(--muted-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark) !important;
  background: var(--primary-faint);
}

.btn-dark {
  background: var(--navy);
  color: #ffffff !important;
  box-shadow: var(--shadow);
}
.btn-dark:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-block {
  display: flex;
  width: 100%;
  text-align: center;
}

/* ============================================================
   Header & Public Navigation
   ============================================================ */
.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 99999;
  transition: all 0.2s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
}

.brand {
  font-weight: 800;
  font-size: 21px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-lockup {
  flex-shrink: 0;
  line-height: 0;
}
.brand-lockup-image {
  display: block;
  height: 48px;
  object-fit: contain;
  width: 180px;
}
.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  flex-shrink: 0;
}
.brand .mark img {
  width: 36px;
  height: 36px;
  object-fit: cover;
}
.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-text {
  line-height: 1;
}
.brand-tagline {
  color: var(--primary-dark);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand em {
  color: var(--primary);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links > a,
.dropdown > button {
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-links > a:hover,
.nav-links > a.active,
.dropdown:hover > button,
.dropdown.open > button {
  color: var(--primary-dark);
  background: var(--primary-faint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* Nav Dropdown */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  display: none;
  z-index: 60;
  animation: dropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.dropdown-menu a:hover {
  background: var(--primary-faint);
  color: var(--primary-dark);
}
.dropdown-chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.dropdown.open .dropdown-chev {
  transform: rotate(180deg);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 9px;
  box-shadow: var(--shadow-xs);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 10px 20px 18px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-light);
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu-group {
  border-bottom: 1px solid var(--line-light);
}
.mobile-menu-group > summary {
  align-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: space-between;
  list-style: none;
  padding: 12px 10px;
}
.mobile-menu-group > summary::-webkit-details-marker {
  display: none;
}
.mobile-menu-group > summary:focus-visible {
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
  outline: none;
}
.mobile-menu-group[open] > summary {
  color: var(--primary-dark);
}
.mobile-menu-chevron {
  height: 16px;
  transition: transform .2s ease;
  width: 16px;
}
.mobile-menu-group[open] .mobile-menu-chevron {
  transform: rotate(180deg);
}
.mobile-menu-submenu {
  border-left: 2px solid var(--primary-soft);
  margin: 0 10px 10px;
  padding-left: 8px;
}
.mobile-menu-submenu a {
  border-bottom: 0;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
}
.mobile-menu .mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(16, 185, 129, 0.12), transparent 70%),
    radial-gradient(800px 400px at 10% 30%, rgba(59, 130, 246, 0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.tag-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 span.highlight {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  color: var(--ink-light);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13.5px;
}
.avatars {
  display: flex;
}
.avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin-left: -8px;
  box-shadow: var(--shadow-xs);
}
.avatars span:first-child { margin-left: 0; }
.hero-proof b { color: var(--ink); }

/* Hero Interactive / Mockup Card */
.hero-widget-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.hw-header {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hw-header .pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.hw-body {
  padding: 24px;
}
.hw-wallet-preview {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hw-wallet-preview::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
}
.hw-wallet-preview small {
  font-size: 11.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.hw-wallet-preview b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: #ffffff;
}

/* Stats Strip */
.stats-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.stat-item:first-child {
  border-left: none;
  padding-left: 0;
}
.stat-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-item span {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   Sections & Layout
   ============================================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-head {
  margin-bottom: 40px;
}
.section-head.text-center {
  text-align: center;
}
.section-head.text-center .lead {
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.section h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.section .lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================================
   Cards & Product Showcases
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.35);
}
.feature-card .ico {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card .ico svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.feature-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

/* Product Cards */
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.3);
}
.product-art-wrap {
  background: #f8fafc;
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--line-light);
}
.product-art {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.product-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  flex: 1;
}

/* Price Cards */
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.4);
}
.price-card .net-pill {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.price-card .net-pill.mtn { background: var(--mtn-soft); color: var(--mtn-dark); }
.price-card .net-pill.airtel { background: var(--airtel-soft); color: var(--airtel-dark); }
.price-card .net-pill.glo { background: var(--glo-soft); color: var(--glo-dark); }
.price-card .net-pill.ninemobile { background: var(--nine-mobile-soft); color: var(--nine-mobile-dark); }

.price-card .p {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 2px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.price-card small {
  color: var(--muted);
  font-size: 13px;
  display: block;
}

/* Network Switcher Pills */
.network-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.net-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.net-btn img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.net-btn:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.net-btn.active {
  border-color: transparent;
  color: #ffffff;
}
.net-btn.active.mtn { background: #d97706; box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35); }
.net-btn.active.airtel { background: #dc2626; box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35); }
.net-btn.active.glo { background: #059669; box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35); }
.net-btn.active.ninemobile { background: #0d9488; box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35); }

/* Provider Logo Grid */
.provider-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.provider-brand-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.provider-brand-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.provider-brand-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.provider-brand-card span {
  font-size: 13px;
  font-weight: 700;
}

/* Quick Amount Chips (for Airtime / Wallet) */
.amount-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
}
.chip.active {
  background: var(--primary-deep);
  color: #ffffff;
  border-color: var(--primary-deep);
}

/* ============================================================
   Forms & Controls
   ============================================================ */
.form-card {
  max-width: 480px;
  margin: 54px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-xl);
}
.form-card h1 {
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.form-card .sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14.5px;
}

.field {
  margin-bottom: 20px;
  position: relative;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: inherit;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field input:disabled {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-action input {
  padding-right: 48px;
}
.input-action-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.input-action-btn:hover {
  color: var(--ink);
}

.hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* ============================================================
   Alerts & Notifications
   ============================================================ */
.flashes {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: alertSlide 0.25s ease forwards;
}
@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--success-soft); color: var(--success-text); border: 1px solid #a7f3d0; }
.alert-error { background: var(--danger-soft); color: var(--danger-text); border: 1px solid #fecaca; }
.alert-info { background: var(--info-soft); color: var(--info-text); border: 1px solid #bfdbfe; }
.alert-warning { background: var(--warn-soft); color: var(--warn-text); border: 1px solid #fde68a; }

/* ============================================================
   User & Admin Dashboard Layout
   ============================================================ */
.dash {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 260px;
  background: var(--navy);
  color: #94a3b8;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid var(--navy-border);
}
.sidebar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sidebar .brand {
  color: #ffffff;
  font-size: 19px;
  padding-left: 4px;
  margin-bottom: 0;
}
.sidebar-close-btn {
  display: none;
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sidebar-close-btn svg {
  width: 16px;
  height: 16px;
}
.mobile-top-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.mobile-top-header .brand {
  color: #ffffff;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-top-brand { color: #fff; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; text-decoration: none; }
.mobile-top-brand-mark { border-radius: 8px; height: 28px; object-fit: cover; width: 28px; }
.mobile-menu-btn {
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}
.mobile-top-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.open {
  display: block;
  opacity: 1;
}
.sidebar-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--navy-surface);
  border-radius: var(--radius);
  margin-bottom: 18px;
  border: 1px solid var(--navy-border);
}
.sidebar-user-pill .avatar-init {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.sidebar-user-pill .name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.sidebar-user-pill .tier-tag {
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 600;
}

.sidebar a {
  color: #94a3b8;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
}
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.sidebar .nav-link-btn {
  width: 100%;
  text-align: left;
  color: #94a3b8;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.sidebar .nav-link-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.sidebar a.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-weight: 700;
}
.sidebar a.active svg {
  color: #34d399;
}
.sidebar .sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.main {
  flex: 1;
  padding: 32px 40px;
  max-width: 100%;
  overflow-x: hidden;
}
.main h1 {
  margin: 0 0 4px;
  font-size: 28px;
  letter-spacing: -0.025em;
}
.main .crumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}

/* Customer workspace presentation. */
.customer-shell .main { padding-top: 0; }
.customer-shell .dashboard-hero h1 { letter-spacing: -.035em; }
.customer-shell .funding-card { box-shadow: 0 18px 38px rgba(15,23,42,.2) !important; }
.customer-shell .stat-row { gap: 14px; margin-bottom: 24px; }
.customer-shell .stat-tile { border-radius: 16px; background: rgba(255,255,255,.9); }
.customer-shell .stat-tile .label { font-size: 11px; letter-spacing: .045em; text-transform: uppercase; }
.customer-shell .stat-tile .value { font-size: 24px; }
.customer-shell .dashboard-columns { align-items: flex-start; gap: 22px; }
.customer-shell .service-panel { min-width: 0; }
.customer-shell .dashboard-sidepanels { min-width: 280px; }
.customer-shell .feature-card { min-height: 126px; border-radius: 15px; border-color: #e5eaf1; box-shadow: 0 6px 18px rgba(15,23,42,.035); }
.customer-shell .feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,23,42,.08); }
.customer-shell .card { border-color: #e5eaf1; box-shadow: 0 8px 24px rgba(15,23,42,.045); }

/* Stat Tiles */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-tile .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.stat-tile .value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-tile.green .value {
  color: var(--primary-deep);
}
.stat-tile.orange .value {
  color: #d97706;
}
.stat-tile.blue .value {
  color: #2563eb;
}

/* Wallet Banner Bar for Purchase pages */
.wallet-banner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}
.wallet-banner-bar .bal-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-banner-bar .bal-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--primary-deep);
}

/* ============================================================
   Tables & Badges
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dashboard-recent-table {
  min-width: 760px;
}
.dashboard-recent-table .transaction-description {
  min-width: 220px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
.dashboard-recent-table .transaction-amount {
  white-space: nowrap;
  word-break: normal;
}
.gateway-choice {
  min-height: 88px;
  touch-action: manipulation;
}
.gateway-choice input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.gateway-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 38px;
  overflow: hidden;
}
.gateway-mark-flutterwave { background: #ef4444; }
.gateway-mark-flutterwave img { width: 100%; height: 100%; object-fit: cover; }
.gateway-mark-paystack { position: relative; background: #0b6bcb; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.gateway-mark-paystack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.table th {
  text-align: left;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tbody tr {
  transition: background 0.12s ease;
}
.table tbody tr:hover {
  background: #f8fafc;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.badge-success { background: var(--success-soft); color: var(--success-text); }
.badge-success .badge-dot { background: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger-text); }
.badge-danger .badge-dot { background: var(--danger); }
.badge-pending { background: var(--warn-soft); color: var(--warn-text); }
.badge-pending .badge-dot { background: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info-text); }
.badge-info .badge-dot { background: var(--info); }

/* ============================================================
   Recharge Card / ePin Slip Printing
   ============================================================ */
.epin-slip {
  background: #ffffff;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  max-width: 440px;
  margin: 0 auto;
}
.epin-slip .vendor-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.epin-slip .pin-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font-family: monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary-deep);
  margin: 14px 0;
}

/* ============================================================
   Mobile Bottom Navigation Bar (PWA Experience)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 99;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.mobile-bottom-nav a svg {
  width: 20px;
  height: 20px;
}
.mobile-bottom-nav a.active {
  color: var(--primary-deep);
  font-weight: 700;
}
.mobile-bottom-nav a.active svg {
  color: var(--primary);
}

/* ============================================================
   Opportunity Carousel
   ============================================================ */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide {
  min-width: 100%;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.slide .slide-copy {
  flex: 1;
  min-width: 260px;
}
.slide h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}
.slide p {
  margin: 0 0 24px;
  max-width: 480px;
  font-size: 15.5px;
  line-height: 1.6;
}
.slide.dark {
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  color: #ffffff;
}
.slide.dark h2 { color: #ffffff; }
.slide.dark p { color: #94a3b8; }
.slide.mint {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}
.slide.mint h2 { color: #ffffff; }
.slide.mint p { color: #d1fae5; }
.slide.light {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.slide.light p { color: var(--muted); }
.slide .slide-art {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-lg);
  margin: auto;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 2;
  transition: all 0.15s ease;
}
.carousel-nav:hover {
  background: var(--primary-faint);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: none;
  background: #cbd5e1;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.carousel-dots button.on {
  background: var(--primary);
  width: 28px;
}
/* ============================================================
   Interactive FAQ Accordion
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease;
}
.faq-item.open {
  border-color: var(--primary);
}
.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.faq-trigger svg {
  transition: transform 0.2s ease;
}
.faq-item.open .faq-trigger svg {
  transform: rotate(180deg);
}
.faq-content {
  padding: 0 22px 18px;
  color: var(--ink-light);
  font-size: 14.5px;
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-content {
  display: block;
}

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  background: var(--navy);
  color: #94a3b8;
  font-size: 14px;
  padding: 56px 24px 36px;
  border-top: 1px solid var(--navy-border);
}
.site-foot a {
  color: #cbd5e1;
  font-weight: 500;
}
.site-foot a:hover {
  color: var(--primary-light);
}
.site-foot .brand {
  color: #ffffff;
}
.site-foot .brand-tagline {
  color: #94a3b8;
}
.foot-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.foot-col h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.foot-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.foot-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

/* Security Trust Badges Strip */
.trust-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: #94a3b8;
}

/* Utility Helpers */
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 24px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 240px; }

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .mobile-top-header { display: flex; }
  .sidebar-close-btn { display: flex; }
  .dash { display: block; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 86vw;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 88px;
    border-right: 1px solid var(--navy-border);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar a, .sidebar .sep {
    display: flex;
  }
  .sidebar-user-pill {
    margin-bottom: 18px;
    width: 100%;
  }
  .dash .main { padding: 0 14px 84px; }
  .customer-shell .main { padding: 0 14px 84px; }
  .customer-shell .dashboard-columns { display: block; }
  .customer-shell .dashboard-sidepanels { max-width: none !important; min-width: 0; }
  .customer-shell .service-panel { margin-bottom: 18px; }
  .customer-shell .funding-card { padding: 18px !important; }
  .mobile-bottom-nav { display: flex; }
  .carousel { padding: 0 10px; }
  .carousel-nav { display: none; }
  .slide { padding: 28px 18px; }
  .slide .slide-art { width: 120px; height: 120px; }
  .wallet-banner-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .network-selector { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .network-selector .net-btn { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 540px) {
  .brand-lockup-image { height: 42px; width: 158px; }
  .public { padding-bottom: 72px; }
  .hero-h1 { font-size: 30px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .form-card { padding: 24px 18px; margin: 24px auto; }
  .grid { grid-template-columns: 1fr; }
  .hero-widget-card { margin-inline: 2px; }
  .hw-header { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .hw-header > div:first-child { min-width: 0; flex: 1 1 140px; }
  .hw-header > div:first-child > span:last-child { display: inline-block; max-width: 112px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
  .hw-header .pill { margin-left: auto; }
  .hw-body { padding: 16px; }
  .hw-wallet-preview { padding: 16px; }
  .hw-wallet-preview > div { align-items: flex-start !important; flex-direction: column; gap: 8px; justify-content: flex-start !important; }
  .carousel { padding: 0 10px; }
  .slide { align-items: stretch; flex-direction: column; gap: 18px; padding: 24px 18px 28px; }
  .slide .slide-copy { flex: 0 0 auto; min-width: 0; width: 100%; }
  .slide .slide-art { align-self: center; height: 112px; margin: 0 auto; order: -1; width: 112px; }

  .network-selector {
    overflow: visible;
    flex-wrap: wrap;
    gap: 8px;
  }
  .network-selector .net-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    justify-content: center;
    padding: 8px 9px;
    font-size: 12px;
    gap: 6px;
  }
  .network-selector .net-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }
  .pricing-table { min-width: 0; }
  .pricing-table thead { display: none; }
  .pricing-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .pricing-table tbody tr:last-child { border-bottom: none; }
  .pricing-table tbody td {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border: none;
    min-width: 0;
  }
  .pricing-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .pricing-table tbody td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 2px;
  }
  .pricing-table tbody td:first-child::before { display: none; }
  .pricing-table tbody td:last-child { justify-content: flex-start; }
  .pricing-table tbody td:last-child .btn { margin-left: auto; }
}

/* ============================================================
   Qevranoxa AI Live Chat - Production Enterprise Edition
   ============================================================ */
.ai-launcher-tooltip {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: 9989;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  animation: tooltipFloat 3s infinite ease-in-out;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-launcher-tooltip:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}
.ai-launcher-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 32px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
@keyframes tooltipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

body.nav-open .ai-chat-launcher,
body.nav-open .ai-launcher-tooltip,
body.sidebar-open .ai-chat-launcher,
body.sidebar-open .ai-launcher-tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(24px) !important;
  transition: all 0.2s ease !important;
}

/* ============================================================
   Exact Flutterwave-Style AI Assistant & Live Support Dock
   ============================================================ */
.flw-ai-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.flw-ai-launcher:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.52);
}
.flw-ai-launcher .flw-pulse-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: #34d399;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.4);
  animation: flwPulse 2s infinite;
}
@keyframes flwPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

body.nav-open .flw-ai-launcher,
body.sidebar-open .flw-ai-launcher {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

.flw-ai-card {
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: 330px;
  max-width: calc(100vw - 32px);
  height: 440px;
  max-height: calc(100vh - 110px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18), 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.95);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.flw-ai-card.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 640px) {
  .has-bottom-nav .flw-ai-launcher {
    right: 16px !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    width: 46px !important;
    height: 46px !important;
  }
  .has-bottom-nav .flw-ai-card {
    right: 14px !important;
    bottom: calc(130px + env(safe-area-inset-bottom)) !important;
    width: 310px !important;
    max-width: calc(100vw - 28px) !important;
    height: 400px !important;
    max-height: calc(100vh - 120px) !important;
  }
}

.flw-ai-head {
  background: #0a1020;
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.flw-ai-head-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.flw-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.flw-avatar svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
}
.flw-online-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  background: #34d399;
  border: 1.5px solid #0a1020;
  border-radius: 50%;
}
.flw-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  line-height: 1.2;
}
.flw-sub {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
}

.flw-head-tools {
  display: flex;
  align-items: center;
  gap: 3px;
}
.flw-btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}
.flw-btn-icon svg {
  width: 13px;
  height: 13px;
}
.flw-btn-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.flw-ai-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.flw-hero-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}
.flw-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.flw-topic-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}
.flw-topic-card:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
  transform: translateY(-1px);
}
.flw-topic-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.flw-topic-card b {
  display: block;
  font-size: 11px;
  line-height: 1.1;
  color: #1e293b;
}
.flw-topic-card .muted-sub {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.1;
}

.flw-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flw-msg {
  display: flex;
  animation: flwFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes flwFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.flw-msg.user {
  justify-content: flex-end;
}
.flw-msg.bot {
  justify-content: flex-start;
}
.flw-msg-bubble {
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.44;
  max-width: 88%;
  word-break: break-word;
}
.flw-msg.bot .flw-msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.flw-msg.bot .flw-msg-bubble a {
  color: #059669;
  font-weight: 700;
  text-decoration: underline;
}
.flw-msg.user .flw-msg-bubble {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}
.flw-msg-meta {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 2px;
  text-align: right;
}
.flw-msg.user .flw-msg-meta {
  color: rgba(255, 255, 255, 0.7);
}

.flw-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
}
.flw-typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  animation: flwDot 1.2s infinite ease-in-out;
}
.flw-typing span:nth-child(2) { animation-delay: 0.2s; }
.flw-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes flwDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.flw-ai-foot {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 6px 10px 4px;
}
.flw-dock-form {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 2px 4px 2px 9px;
}
.flw-dock-form:focus-within {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}
.flw-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 11.5px;
  color: #0f172a;
  outline: none;
  padding: 4px 2px;
  width: 100%;
}
.flw-input::placeholder {
  color: #94a3b8;
  font-size: 11px;
}
.flw-send-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.flw-send-btn svg {
  width: 11px;
  height: 11px;
}
.flw-foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9px;
  color: #94a3b8;
  margin-top: 3px;
}


.typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 15px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.typing-bubble span {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 768px) {
  .ai-launcher-tooltip {
    display: none;
  }
  .ai-chat-launcher {
    bottom: 84px;
    right: 18px;
    padding: 9px 16px 9px 12px;
    font-size: 12.5px;
  }
  .ai-chat-drawer {
    bottom: 140px;
    right: 14px;
    width: calc(100vw - 28px);
    height: 500px;
  }
}
