/* ================================================================
   ABKdata VTU Platform - Main Stylesheet
   Mobile-first, #2d6cdf blue theme
   ================================================================ */

/* ── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --blue:        #2d6cdf;
  --blue-dark:   #1a4aad;
  --blue-light:  #eff6ff;
  --blue-mid:    #dbeafe;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --orange:      #ea580c;
  --orange-light:#fff7ed;
  --yellow:      #d97706;
  --yellow-light:#fefce8;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
}

/* ── 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);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--gray-900);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}
.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.sidebar-logo .tagline { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* Wallet card in sidebar */
.sidebar-wallet {
  margin: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-md);
  padding: 16px;
}
.sidebar-wallet .label { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }
.sidebar-wallet .balance { font-size: 22px; font-weight: 800; color: var(--white); font-family: var(--font-mono); margin-top: 4px; }

.sidebar-nav { padding: 8px 0; flex: 1; overflow-y: auto; }
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 20px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--white); }
.nav-item.active { background: rgba(45,108,223,.2); color: var(--white); border-left-color: var(--blue); }
.nav-item .icon { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-footer .user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--white); }
.user-role { font-size: 11px; color: var(--gray-400); }

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 90;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.hamburger-btn {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  color: var(--gray-600);
}
.page-title { font-size: 18px; font-weight: 700; color: var(--gray-800); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  transition: all .2s;
}
.btn-icon:hover { background: var(--blue-light); color: var(--blue); }

.content-area { padding: 24px; flex: 1; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }

/* ── Stats Cards ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.stat-icon.blue   { background: var(--blue-light); color: var(--blue); }
.stat-icon.green  { background: var(--green-light); color: var(--green); }
.stat-icon.red    { background: var(--red-light); color: var(--red); }
.stat-icon.orange { background: var(--orange-light); color: var(--orange); }
.stat-label { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--gray-800); font-family: var(--font-mono); letter-spacing: -0.5px; }
.stat-sub { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* ── Services Grid ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: var(--gray-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.service-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-card .svc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.service-card .svc-name { font-size: 13px; font-weight: 600; }

/* Service icon colors */
.svc-icon.airtime     { background: #fef3c7; }
.svc-icon.data        { background: #dbeafe; }
.svc-icon.electricity { background: #fef9c3; }
.svc-icon.cable       { background: #f3e8ff; }
.svc-icon.exam        { background: #dcfce7; }
.svc-icon.id          { background: #fee2e2; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,108,223,.1);
}
.form-control.error { border-color: var(--red); }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* Input with prefix */
.input-group { display: flex; }
.input-prefix {
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 11px 12px;
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 600;
  white-space: nowrap;
  display: flex; align-items: center;
}
.input-group .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Network/Provider selector */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.provider-btn {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}
.provider-btn:hover, .provider-btn.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
.provider-btn img { width: 32px; height: 32px; border-radius: 6px; margin: 0 auto 4px; object-fit: contain; }

/* Amount quick-select */
.amount-presets {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.preset-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--gray-600);
  transition: all .2s;
}
.preset-btn:hover, .preset-btn.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(45,108,223,.3);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(45,108,223,.4); color: var(--white); }
.btn-primary:active { transform: none; }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: #15803d; color: var(--white); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #b91c1c; color: var(--white); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }
.btn-ghost { background: var(--gray-100); color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn .spinner { animation: spin .7s linear infinite; }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
}
.badge-success { background: var(--green-light); color: var(--green); }
.badge-warning { background: var(--yellow-light); color: var(--yellow); }
.badge-danger  { background: var(--red-light);   color: var(--red); }
.badge-info    { background: var(--blue-light);  color: var(--blue); }
.badge-secondary { background: var(--gray-100); color: var(--gray-500); }

/* ── Tables ─────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  white-space: nowrap;
}
.table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--gray-50); }
.table .ref { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); }

/* ── Transaction list ───────────────────────────────────────────── */
.txn-list { }
.txn-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.txn-item:last-child { border-bottom: none; }
.txn-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.txn-info { flex: 1; min-width: 0; }
.txn-desc { font-size: 14px; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-date { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.txn-amount { font-size: 15px; font-weight: 700; font-family: var(--font-mono); text-align: right; }
.txn-amount.debit  { color: var(--red); }
.txn-amount.credit { color: var(--green); }

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-light); color: #14532d; border-color: #bbf7d0; }
.alert-error   { background: var(--red-light);   color: #7f1d1d; border-color: #fecaca; }
.alert-info    { background: var(--blue-light);  color: #1e3a5f; border-color: var(--blue-mid); }
.alert-warning { background: var(--yellow-light);color: #78350f; border-color: #fde68a; }
.alert-close { margin-left: auto; cursor: pointer; background: none; border: none; font-size: 16px; opacity: .6; padding: 0; }

/* ── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
}
.modal-overlay.open .modal { transform: none; }
.modal-header {
  padding: 20px 24px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-title { font-size: 18px; font-weight: 800; color: var(--gray-800); }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--gray-400); padding: 0; margin-left: 16px; }
.modal-body { padding: 16px 24px 24px; }
.modal-footer { padding: 0 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }

/* ── Auth pages ─────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a6e 0%, #2d6cdf 50%, #1a4aad 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-container {
  width: 100%; max-width: 420px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo h1 { font-size: 32px; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.auth-logo p  { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 4px; }

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.auth-card h2 { font-size: 22px; font-weight: 800; color: var(--gray-800); margin-bottom: 6px; }
.auth-card .subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.auth-footer-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-500); }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination-nav { display: flex; justify-content: center; margin-top: 20px; }
.pagination { display: flex; gap: 4px; align-items: center; }
.pagination li a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all .2s;
}
.pagination li a:hover { border-color: var(--blue); color: var(--blue); }
.pagination li.active a { background: var(--blue); color: white; border-color: var(--blue); }

/* ── Loading spinner ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Toast notifications ────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: slideInRight .3s ease;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.info    { background: var(--blue); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── Wallet card (dashboard) ────────────────────────────────────── */
.wallet-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.wallet-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.wallet-hero .wh-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }
.wallet-hero .wh-balance { font-size: 36px; font-weight: 900; letter-spacing: -1px; font-family: var(--font-mono); margin: 8px 0; }
.wallet-hero .wh-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.wh-btn {
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.wh-btn-primary { background: var(--white); color: var(--blue); }
.wh-btn-primary:hover { background: var(--blue-light); color: var(--blue); }
.wh-btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.wh-btn-ghost:hover { background: rgba(255,255,255,.25); color: var(--white); }

/* ── Data plans grid ────────────────────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.plan-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
}
.plan-card:hover, .plan-card.selected {
  border-color: var(--blue); background: var(--blue-light);
}
.plan-card .plan-data { font-size: 18px; font-weight: 800; color: var(--gray-800); }
.plan-card .plan-validity { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.plan-card .plan-price { font-size: 14px; font-weight: 700; color: var(--blue); margin-top: 8px; }

/* ── Electricity token display ──────────────────────────────────── */
.token-box {
  background: #f0fdf4;
  border: 2px dashed var(--green);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}
.token-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 4px;
  word-break: break-all;
}
.token-label { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main-content { margin-left: 0; }
  .hamburger-btn { display: flex; }
  .content-area { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 18px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .wallet-hero .wh-balance { font-size: 28px; }
  .auth-card { padding: 24px; }
  .table th, .table td { padding: 10px 12px; }
}

@media (max-width: 380px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── Sidebar overlay (mobile) ───────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}
.sidebar-overlay.show { display: block; }

/* ── Admin specific ─────────────────────────────────────────────── */
.admin-sidebar { background: #0f172a; }
.admin-sidebar .sidebar-logo h1 { color: #60a5fa; }
.admin-topbar-badge {
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ── Utility ─────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-400); }
.text-small  { font-size: 12px; }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.fw-700 { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
