/* ============================================================
   PayNaira — Bill Payment Platform
   Theme: Dark Blue & White with floating design elements
   ============================================================ */

:root {
  --bg-deep: #050b1c;
  --bg: #081226;
  --bg-soft: #0c1a36;
  --surface: #0f2142;
  --surface-2: #122852;
  --surface-3: #16305f;
  --border: rgba(122, 156, 255, 0.16);
  --border-strong: rgba(122, 156, 255, 0.32);

  --white: #ffffff;
  --text: #e8eefc;
  --text-2: #b6c4e6;
  --text-muted: #7e91bd;

  --primary: #4f7cff;
  --primary-2: #6ea8ff;
  --primary-dark: #2f56cc;
  --cyan: #38d3f2;
  --green: #2dd4a7;
  --red: #ff6b7a;
  --amber: #ffc36b;

  --gradient: linear-gradient(135deg, #4f7cff 0%, #6ea8ff 50%, #38d3f2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79, 124, 255, 0.16), rgba(56, 211, 242, 0.10));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow: 0 24px 60px -24px rgba(2, 8, 26, 0.8);
  --shadow-glow: 0 20px 60px -20px rgba(79, 124, 255, 0.55);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 { color: var(--white); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }

::selection { background: rgba(79, 124, 255, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1d3a6e; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #2a4f92; }

/* ---------- Floating background elements ---------- */

.float-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb-1 { width: 480px; height: 480px; top: -140px; left: -120px; background: radial-gradient(circle, #4f7cff, transparent 65%); }
.orb-2 { width: 420px; height: 420px; top: 30%; right: -160px; background: radial-gradient(circle, #38d3f2, transparent 65%); animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; bottom: -140px; left: 28%; background: radial-gradient(circle, #7c4dff, transparent 65%); animation-delay: -12s; opacity: 0.4; }

@keyframes orb-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(60px, 40px, 0) scale(1.08); }
  100% { transform: translate3d(-40px, -30px, 0) scale(0.96); }
}

.float-shape {
  position: absolute;
  opacity: 0.18;
  animation: float-y 9s ease-in-out infinite;
}

.shape-1 { top: 18%; left: 8%; width: 70px; height: 70px; border-radius: 18px; background: var(--primary); transform: rotate(24deg); }
.shape-2 { top: 62%; right: 12%; width: 44px; height: 44px; border-radius: 50%; background: var(--cyan); animation-delay: -3s; }
.shape-3 { top: 30%; right: 30%; width: 26px; height: 26px; border-radius: 8px; background: var(--white); transform: rotate(45deg); animation-delay: -6s; }
.shape-4 { bottom: 16%; left: 20%; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--primary-2); background: transparent; animation-delay: -1.5s; }
.shape-5 { top: 8%; left: 42%; width: 18px; height: 18px; background: var(--amber); border-radius: 4px; transform: rotate(20deg); animation-delay: -4.5s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-26px) rotate(12deg); }
}

.float-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 156, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 156, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Layout helpers ---------- */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

.center { text-align: center; }
.hidden { display: none !important; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }

.btn-white {
  background: #fff;
  color: var(--bg-deep);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 255, 255, 0.5); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--border-strong); }

.btn-danger {
  background: rgba(255, 107, 122, 0.14);
  border-color: rgba(255, 107, 122, 0.35);
  color: #ff9aa5;
}

.btn-danger:hover { background: rgba(255, 107, 122, 0.24); }

.btn-success {
  background: rgba(45, 212, 167, 0.14);
  border-color: rgba(45, 212, 167, 0.35);
  color: #7fe7cd;
}

.btn-success:hover { background: rgba(45, 212, 167, 0.24); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.card-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-float:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.glass {
  background: rgba(15, 33, 66, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}

/* ---------- Badges / pills ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-success { background: rgba(45, 212, 167, 0.16); color: #5fe2c2; }
.badge-pending { background: rgba(255, 195, 107, 0.16); color: #ffd08a; }
.badge-failed { background: rgba(255, 107, 122, 0.16); color: #ff9aa5; }
.badge-processing { background: rgba(110, 168, 255, 0.16); color: #9cc2ff; }
.badge-refunded { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
.badge-info { background: rgba(110, 168, 255, 0.16); color: #9cc2ff; }
.badge-white { background: #fff; color: var(--bg-deep); }

/* ---------- Forms ---------- */

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-control,
.form-select,
textarea.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.form-control.is-invalid { border-color: var(--red); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237e91bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.form-select option { background: var(--surface); color: var(--text); }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .input-affix {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(79, 124, 255, 0.16);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--primary-2);
  font-weight: 700;
}

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 6px; }
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.checkbox input { accent-color: var(--primary); width: 16px; height: 16px; }

/* ---------- Alerts / flash ---------- */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: rgba(45, 212, 167, 0.12); border-color: rgba(45, 212, 167, 0.35); color: #6fe8ca; }
.alert-error, .alert-danger { background: rgba(255, 107, 122, 0.12); border-color: rgba(255, 107, 122, 0.35); color: #ff9aa5; }
.alert-info { background: rgba(110, 168, 255, 0.12); border-color: rgba(110, 168, 255, 0.35); color: #9cc2ff; }
.alert-warning { background: rgba(255, 195, 107, 0.12); border-color: rgba(255, 195, 107, 0.35); color: #ffd08a; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }

.table thead th {
  text-align: left;
  padding: 14px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(122, 156, 255, 0.08);
  color: var(--text-2);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: rgba(79, 124, 255, 0.05); }

.table .strong { color: var(--white); font-weight: 700; }

/* ---------- Pagination ---------- */

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.pagination a:hover { border-color: var(--primary); color: var(--white); }
.pagination .active span { background: var(--gradient); color: #fff; border-color: transparent; }
.pagination .disabled span { opacity: 0.4; }

/* ---------- Guest layout (landing / auth) ---------- */

.guest-wrap { min-height: 100vh; position: relative; }

.guest-nav {
  position: relative;
  z-index: 10;
  padding: 22px 0;
}

.guest-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.brand-name { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.brand-name span { color: var(--primary-2); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: all 0.2s; }
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }

/* Hero */

.hero { position: relative; z-index: 2; padding: 70px 0 60px; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.14);
  border: 1px solid rgba(79, 124, 255, 0.35);
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 900px;
  margin: 0 auto 22px;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--text-2);
  font-size: 17px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 46px;
  margin-top: 58px;
  flex-wrap: wrap;
}

.stat .num { font-size: 28px; font-weight: 900; color: var(--white); }
.stat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Services grid */

.services-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.services-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); }

/* Providers strip */

.providers-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s;
}

.provider-chip:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.provider-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

/* How it works */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step-card { text-align: center; padding: 34px 26px; }

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
}

.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* Feature list */

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.feature {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.feature:hover { border-color: var(--border-strong); }

.feature-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(79, 124, 255, 0.16);
  color: var(--primary-2);
}

.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-muted); }

/* CTA banner */

.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  background: linear-gradient(135deg, #1a3a7a 0%, #0f2142 60%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(79, 124, 255, 0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(56, 211, 242, 0.3), transparent 50%);
}

.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta-banner p { color: var(--text-2); max-width: 520px; margin: 0 auto 28px; }

/* Footer */

.guest-footer { position: relative; z-index: 2; padding: 48px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 300px; }
.footer-col h4 { font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- Auth pages ---------- */

.auth-shell { min-height: 100vh; display: grid; place-items: center; position: relative; padding: 40px 24px; z-index: 2; }

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--gradient-soft);
  pointer-events: none;
}

.auth-card > * { position: relative; }

.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .brand-mark { margin: 0 auto 18px; }
.auth-head h1 { font-size: 24px; margin-bottom: 6px; }
.auth-head p { font-size: 14px; color: var(--text-muted); }

.auth-alt { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 20px; }
.auth-alt a { color: var(--primary-2); font-weight: 700; }

/* ---------- App layout (user dashboard) ---------- */

.app-shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.sidebar-brand { padding: 22px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

.sidebar-nav { padding: 16px 12px; flex: 1; overflow-y: auto; }

.sidebar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 14px 12px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
  margin-bottom: 2px;
}

.sidebar-link svg { width: 19px; height: 19px; flex-shrink: 0; opacity: 0.85; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }

.sidebar-link.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.sidebar-link.active svg { opacity: 1; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-user .meta { min-width: 0; }
.sidebar-user .name { font-size: 13px; font-weight: 700; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .sub { font-size: 11px; color: var(--text-muted); }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 18, 38, 0.7);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.topbar-title { font-size: 18px; font-weight: 800; color: var(--white); }
.topbar-sub { font-size: 12px; color: var(--text-muted); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.14);
  border: 1px solid rgba(79, 124, 255, 0.35);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.wallet-chip .naira { color: var(--primary-2); }

.app-content { padding: 28px; flex: 1; }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 26px; margin-bottom: 6px; }
.page-head p { color: var(--text-muted); font-size: 14px; }

/* Dashboard widgets */

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }

.stat-card { padding: 22px; position: relative; overflow: hidden; }

.stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-soft);
  opacity: 0.8;
}

.stat-card .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 700; }
.stat-card .stat-value { font-size: 26px; font-weight: 900; color: var(--white); margin-top: 6px; }
.stat-card .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-icon { position: absolute; right: 20px; top: 20px; color: var(--primary-2); }
.stat-icon svg { width: 22px; height: 22px; }

/* Quick action tiles */

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }

.quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.25s ease;
}

.quick-tile:hover { transform: translateY(-5px); border-color: var(--border-strong); color: var(--white); box-shadow: var(--shadow); }

.quick-tile .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  color: var(--primary-2);
}

.quick-tile .icon svg { width: 24px; height: 24px; }

.quick-tile:hover .icon { background: var(--gradient); color: #fff; }

/* Two column layouts */

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.card-title { font-size: 16px; font-weight: 800; color: var(--white); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title .link { font-size: 12px; color: var(--primary-2); font-weight: 700; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; opacity: 0.6; }

/* Bill service forms */

.service-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }

.pick-item {
  padding: 18px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.pick-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.pick-item.selected {
  border-color: var(--primary);
  background: rgba(79, 124, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.2);
}

.pick-item .pick-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

.pick-item .pick-name { font-size: 13px; font-weight: 700; color: var(--white); }
.pick-item .pick-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.amount-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.amount-preset {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
}

.amount-preset:hover { border-color: var(--border-strong); color: var(--white); }

.amount-preset.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.plan-group { margin-bottom: 22px; }
.plan-group-title { font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

.plan-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.plan-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s ease;
}

.plan-item:hover { border-color: var(--border-strong); }

.plan-item.selected {
  border-color: var(--primary);
  background: rgba(79, 124, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.18);
}

.plan-item .plan-name { font-size: 13px; font-weight: 700; color: var(--white); }
.plan-item .plan-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.plan-item .plan-price { font-size: 14px; font-weight: 800; color: var(--primary-2); margin-top: 6px; }

/* Summary panel */

.summary-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); }
.summary-row .val { font-weight: 700; color: var(--white); }
.summary-row.total { padding-top: 12px; border-top: 1px dashed var(--border); font-weight: 800; color: var(--white); font-size: 16px; }
.summary-row.total .val { color: var(--primary-2); font-size: 20px; }

/* Transaction rows */

.tx-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(122, 156, 255, 0.08);
}

.tx-row:last-child { border-bottom: none; }

.tx-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  color: var(--primary-2);
}

.tx-icon svg { width: 20px; height: 20px; }

.tx-meta { flex: 1; min-width: 0; }
.tx-meta .tx-title { font-size: 14px; font-weight: 700; color: var(--white); }
.tx-meta .tx-sub { font-size: 12px; color: var(--text-muted); }
.tx-amount { font-weight: 800; text-align: right; }
.tx-amount.credit { color: var(--green); }
.tx-amount.debit { color: var(--white); }
.tx-amount .ref { display: block; font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* Filter bar */

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-bar .form-control, .filter-bar .form-select { width: auto; min-width: 160px; }
.filter-bar .search { flex: 1; min-width: 220px; }

/* Toggle switch */

.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.switch .track::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: #fff;
  transition: all 0.2s;
}
.switch input:checked + .track { background: var(--gradient); border-color: transparent; }
.switch input:checked + .track::before { transform: translateX(18px); }

/* Admin dashboard */

.chart-card { padding: 22px; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; margin-top: 14px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-col .bar { width: 100%; border-radius: 6px 6px 0 0; min-height: 3px; transition: height 0.4s ease; }
.chart-col .bar.fund { background: var(--primary); opacity: 0.85; }
.chart-col .bar.spend { background: var(--cyan); opacity: 0.85; }
.chart-col .day { font-size: 10px; color: var(--text-muted); }
.chart-legend { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.chart-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

.kpi-mini { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.kpi-mini .label { font-size: 12px; color: var(--text-muted); }
.kpi-mini .value { font-size: 17px; font-weight: 800; color: var(--white); }

/* Forms side-by-side */

.form-section { margin-bottom: 34px; }
.form-section-title { font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.form-section-title .hint { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-grid .full { grid-column: 1 / -1; }

/* Secret input reveal */

.password-reveal-wrap { position: relative; }
.password-reveal-wrap .form-control { padding-right: 46px; }
.password-reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  display: grid;
  place-items: center;
}
.password-reveal:hover { color: var(--white); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-list { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-1-1 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
    width: 280px;
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 22, 0.7);
    backdrop-filter: blur(3px);
    z-index: 25;
  }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .service-picker { grid-template-columns: repeat(2, 1fr); }
  .app-content { padding: 20px; }
  .app-topbar { padding: 14px 20px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .plan-list { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .nav-links .nav-cta { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-banner { padding: 40px 24px; }
  .wallet-chip .lbl { display: none; }
}
