/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary:     #0052CC;
  --primary-dark:#003D99;
  --primary-light:#EBF2FF;
  --accent:      #00C896;
  --accent-dark: #00A67A;
  --dark:        #0A0F1E;
  --dark2:       #141929;
  --surface:     #1C2337;
  --surface2:    #242C44;
  --text:        #E8EBF4;
  --text-muted:  #8892AA;
  --border:      #2A3350;
  --danger:      #FF4757;
  --warning:     #FFA502;
  --success:     #00C896;
  --mtn:         #FFCC00;
  --airtel:      #FF0000;
  --glo:         #00A650;
  --nmobile:     #006633;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.4);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

h1,h2,h3,h4,h5 { font-family: 'Space Grotesk', sans-serif; }

a { text-decoration: none; color: inherit; }

/* ── NAVBAR ─────────────────────────── */
.navbar {
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.navbar-brand span { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface); border-color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── HERO ─────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0,82,204,0.3) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,200,150,0.15) 0%, transparent 60%),
              var(--dark);
  padding: 4rem 2rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230052CC' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.3);
  color: var(--accent); padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title span { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; }
.hero-stat-value { font-size: 1.6rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.hero-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text-muted); }

/* ── NETWORK BADGES ─────────────────── */
.network-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.network-card {
  padding: 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer; transition: all 0.2s;
}
.network-card:hover { border-color: var(--primary); background: var(--surface2); transform: translateY(-2px); }
.network-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.network-card .name { font-weight: 600; font-size: 0.9rem; }
.network-card .price { font-size: 0.75rem; color: var(--text-muted); }

/* ── FEATURES ─────────────────────────── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); font-size: 1rem; max-width: 520px; line-height: 1.7; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
.feature-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* ── DASHBOARD LAYOUT ─────────────────── */
.dash-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo {
  padding: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar-logo span { -webkit-text-fill-color: var(--accent); }
.sidebar-menu { padding: 1rem 0.75rem; flex: 1; }
.sidebar-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; padding: 0.5rem 0.75rem; margin-top: 1rem; }
.sidebar-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s; margin-bottom: 0.25rem;
  cursor: pointer;
}
.sidebar-item:hover, .sidebar-item.active { background: var(--surface); color: var(--text); }
.sidebar-item.active { color: var(--primary); border-left: 3px solid var(--primary); }
.sidebar-item i { width: 20px; text-align: center; }
.sidebar-bottom { padding: 1rem 0.75rem; border-top: 1px solid var(--border); }

.dash-main { flex: 1; overflow-y: auto; }
.dash-topbar {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark2);
  position: sticky; top: 0; z-index: 50;
}
.dash-topbar-title { font-size: 1.1rem; font-weight: 600; }
.dash-content { padding: 2rem; }

/* ── CARDS ─────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card-title { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.5rem; }

/* ── WALLET CARD ─────────────────────── */
.wallet-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0066FF 50%, var(--accent-dark) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative; overflow: hidden;
  color: #fff;
}
.wallet-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.wallet-card::after {
  content: '';
  position: absolute;
  bottom: -60px; right: 60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.wallet-label { font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.5rem; }
.wallet-amount { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; }
.wallet-account { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); }
.wallet-account-label { font-size: 0.75rem; opacity: 0.7; margin-bottom: 0.25rem; }
.wallet-account-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.1em; }
.wallet-account-bank { font-size: 0.8rem; opacity: 0.8; }

/* ── STATS GRID ─────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.stat-card .change { font-size: 0.75rem; color: var(--accent); margin-top: 0.25rem; }

/* ── QUICK ACTIONS ─────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.qa-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  cursor: pointer; transition: all 0.2s; color: var(--text);
  font-family: inherit;
}
.qa-btn:hover { border-color: var(--primary); background: var(--surface2); transform: translateY(-2px); }
.qa-icon { font-size: 1.5rem; width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.qa-label { font-size: 0.8rem; font-weight: 600; text-align: center; }

/* ── FORM ─────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.form-control {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,82,204,0.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--dark2); }

/* ── MODAL ─────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%; max-width: 480px;
  padding: 2rem;
  transform: scale(0.95); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.1rem; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }

/* ── TABLE ─────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
tbody td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }

/* ── BADGE ─────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 100px; font-size: 0.7rem; font-weight: 700;
}
.badge-success { background: rgba(0,200,150,0.15); color: var(--success); }
.badge-danger  { background: rgba(255,71,87,0.15); color: var(--danger); }
.badge-warning { background: rgba(255,165,2,0.15); color: var(--warning); }
.badge-info    { background: rgba(0,82,204,0.15); color: #66A3FF; }

/* ── AUTH ─────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,82,204,0.25) 0%, transparent 70%), var(--dark);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.auth-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 0.25rem; background: linear-gradient(135deg, #fff 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--text-muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-link { color: var(--primary); font-weight: 600; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }

/* ── TOAST ─────────────────────────── */
.toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  min-width: 280px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── NETWORK SELECTOR ─────────────────── */
.network-selector { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.net-btn {
  flex: 1; min-width: 80px;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--dark);
  color: var(--text);
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.net-btn:hover { border-color: var(--primary); }
.net-btn.active { border-color: currentColor; background: rgba(currentColor, 0.1); }
.net-btn.mtn    { color: var(--mtn); }
.net-btn.airtel { color: var(--airtel); }
.net-btn.glo    { color: var(--glo); }
.net-btn.mobile9 { color: #006633; }
.net-btn.active.mtn    { background: rgba(255,204,0,0.1); border-color: var(--mtn); }
.net-btn.active.airtel { background: rgba(255,0,0,0.1); border-color: var(--airtel); }
.net-btn.active.glo    { background: rgba(0,166,80,0.1); border-color: var(--glo); }
.net-btn.active.mobile9{ background: rgba(0,102,51,0.1); border-color: #006633; }

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card { display: none; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .sidebar { display: none; }
  .dash-content { padding: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar { padding: 0 1rem; }
}

/* ── UTILITY ─────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.fw-600 { font-weight: 600; }
.fs-sm { font-size: 0.85rem; }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
