/* =========================================
   SmartSpend Ghana - Main Stylesheet
   Dark Navy Theme
   ========================================= */

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

:root {
  --bg-primary:   #0a1628;
  --bg-secondary: #0d2040;
  --bg-card:      #112240;
  --bg-card-alt:  #162d50;
  --bg-input:     #0d1f3c;
  --border:       #1e3a5a;
  --border-light: #254872;

  --cyan:         #00d4ff;
  --cyan-dark:    #00a8cc;
  --teal:         #00c4b4;
  --green:        #4ade80;
  --green-dark:   #22c55e;
  --orange:       #ff7043;
  --pink:         #e91e63;
  --purple:       #9c27b0;
  --gold:         #fbbf24;

  --text-primary:   #ffffff;
  --text-secondary: #8899bb;
  --text-muted:     #4a5e7a;

  --success-bg:   #0a2e1a;
  --error-bg:     #2e0a0a;
  --warning-bg:   #2e1f0a;

  --nav-height:   70px;
  --sidebar-w:    260px;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;

  --shadow:       0 4px 20px rgba(0,0,0,0.4);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.3);
  --glow-cyan:    0 0 20px rgba(0,212,255,0.2);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; }
input, textarea, select { font-family: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ── Typography ── */
h1 { font-size: 1.8rem; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; }
p  { color: var(--text-secondary); }

/* =========================================
   LAYOUT
   ========================================= */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (desktop) */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .3s;
}
.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
}
.sidebar-logo .logo-text span { color: var(--cyan); }
.sidebar-logo small { color: var(--text-muted); font-size: .7rem; letter-spacing: 2px; display: block; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .9rem;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.nav-item:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-item.active { color: var(--cyan); border-left-color: var(--cyan); background: rgba(0,212,255,.05); }
.nav-item .nav-icon { font-size: 1.2rem; width: 24px; text-align: center; }

.sidebar-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #0a1628;
  flex-shrink: 0;
}
.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-role { font-size: .7rem; color: var(--text-muted); }

/* Main content area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page inner */
.page-inner {
  flex: 1;
  padding: 28px 32px 100px;
  max-width: 900px;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header-back {
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-btn {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all .2s;
}
.back-btn:hover { background: var(--bg-card-alt); color: var(--text-primary); }

/* ── Bottom Navigation (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 100;
}
.bottom-nav-inner {
  display: flex;
  height: 100%;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 500;
  transition: color .2s;
}
.bottom-nav-item.active { color: var(--cyan); }
.bottom-nav-item .icon { font-size: 1.4rem; }

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card-sm { padding: 14px 16px; border-radius: var(--radius-sm); }
.card-lg { padding: 24px 28px; border-radius: var(--radius-lg); }

/* Credit Card */
.credit-card {
  background: linear-gradient(135deg, #0d2d5a 0%, #1a3d70 50%, #0d3060 100%);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.credit-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(0,212,255,.06);
  border-radius: 50%;
}
.credit-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: 60px;
  width: 100px; height: 100px;
  background: rgba(0,196,180,.05);
  border-radius: 50%;
}
.credit-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.credit-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}
.credit-amount .currency {
  font-size: 1.1rem;
  color: var(--cyan);
  font-weight: 700;
  margin-right: 4px;
}
.credit-amount .decimals {
  font-size: 1.2rem;
  color: var(--text-secondary);
}
.credit-available {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 8px;
}
.credit-bar {
  height: 5px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.credit-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-radius: 3px;
  transition: width .6s ease;
}
.credit-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.credit-tag {
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.3);
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* =========================================
   QUICK ACCESS GRID
   ========================================= */
.section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.quick-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.quick-item:hover {
  border-color: var(--cyan);
  background: var(--bg-card-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.quick-item .qi-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.quick-item .qi-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.qi-fuel   { background: rgba(255,112,67,.15); }
.qi-food   { background: rgba(76,175,80,.15); }
.qi-health { background: rgba(233,30,99,.15); }
.qi-travel { background: rgba(156,39,176,.15); }

/* =========================================
   VENDOR LIST
   ========================================= */
.vendor-list { display: flex; flex-direction: column; gap: 10px; }
.vendor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .2s;
  cursor: pointer;
}
.vendor-card:hover, .vendor-card.selected {
  border-color: var(--cyan);
  background: var(--bg-card-alt);
}
.vendor-card.selected { box-shadow: 0 0 0 2px rgba(0,212,255,.2); }
.vendor-logo {
  width: 52px; height: 52px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.vendor-info { flex: 1; min-width: 0; }
.vendor-name { font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.vendor-loc {
  font-size: .75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.vendor-loc::before { content: '📍'; font-size: .7rem; }
.vendor-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 4px;
}
.vendor-meta { text-align: right; flex-shrink: 0; }
.vendor-dist { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; }
.verified-badge {
  font-size: .65rem;
  color: var(--teal);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
}
.vendor-rating { display: flex; align-items: center; gap: 3px; font-size: .75rem; color: var(--gold); }

/* =========================================
   VENDOR DETAIL / AMOUNT INPUT
   ========================================= */
.vendor-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.vendor-hero .hero-icon { font-size: 3rem; margin-bottom: 12px; }
.vendor-hero h2 { margin-bottom: 4px; }
.vendor-hero p { font-size: .8rem; color: var(--text-secondary); }

.amount-section { margin-bottom: 20px; }
.amount-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.amount-display {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .2s;
  margin-bottom: 8px;
}
.amount-display:focus-within { border-color: var(--cyan); }
.amount-currency { font-size: 1.1rem; font-weight: 700; color: var(--cyan); }
.amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
}
.amount-input::placeholder { color: var(--text-muted); }
.amount-hint {
  text-align: right;
  font-size: .75rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.preset-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all .2s;
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(0,212,255,.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Numpad */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.numpad-key {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all .15s;
  text-align: center;
}
.numpad-key:hover { background: var(--bg-card-alt); border-color: var(--border-light); }
.numpad-key:active { transform: scale(.95); }
.numpad-key.del { color: var(--text-secondary); }
.numpad-key.zero { }

/* =========================================
   ORDER SUMMARY
   ========================================= */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.order-summary h3 { margin-bottom: 16px; font-size: 1rem; }
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.order-row:last-child { border-bottom: none; }
.order-row .label { color: var(--text-secondary); }
.order-row .value { font-weight: 600; }
.order-row.total-row { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.order-row.total-row .label { color: var(--text-primary); font-weight: 600; }
.order-row.total-row .value { color: var(--gold); font-size: 1rem; }
.order-row .value.cyan { color: var(--cyan); }
.order-row .value.monthly { color: var(--text-secondary); font-size: .8rem; }

/* Provider Selection */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.provider-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.provider-card.selected { border-color: var(--gold); background: rgba(251,191,36,.05); }
.provider-card .p-icon { font-size: 1.6rem; margin-bottom: 6px; }
.provider-card .p-name { font-size: .7rem; font-weight: 600; color: var(--text-secondary); }
.provider-card.selected .p-name { color: var(--gold); }

/* =========================================
   CONFIRMATION / SUCCESS
   ========================================= */
.confirm-screen { text-align: center; padding: 20px 0; }
.confirm-icon-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 0 30px rgba(74,222,128,.25);
}
.confirm-icon-inner {
  width: 72px; height: 72px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.confirm-screen h2 { font-size: 1.6rem; margin-bottom: 10px; }
.confirm-screen p { font-size: .9rem; max-width: 300px; margin: 0 auto 24px; }

.confirm-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  margin-bottom: 16px;
}
.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.confirm-detail-row:last-child { border-bottom: none; }
.confirm-detail-row .dl { color: var(--text-secondary); }
.confirm-detail-row .dv { font-weight: 600; }
.confirm-detail-row .dv.green { color: var(--green); }
.confirm-detail-row .dv.cyan  { color: var(--cyan); }
.confirm-detail-row .dv.gold  { color: var(--gold); }

.credit-update-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.credit-update-icon { font-size: 1.8rem; }
.credit-update-info { flex: 1; }
.credit-update-label { font-size: .75rem; color: var(--text-secondary); margin-bottom: 4px; }
.credit-update-amount { font-size: 1.4rem; font-weight: 800; color: var(--cyan); }
.credit-update-old { font-size: .75rem; color: var(--text-muted); text-decoration: line-through; }

/* =========================================
   TRANSACTIONS / ACTIVITY
   ========================================= */
.tx-list { display: flex; flex-direction: column; gap: 2px; }
.tx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 44px; height: 44px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.tx-info { flex: 1; min-width: 0; }
.tx-name { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.tx-meta { font-size: .75rem; color: var(--text-secondary); }
.tx-amount { font-weight: 700; font-size: .95rem; color: #f87171; white-space: nowrap; }
.tx-amount.positive { color: var(--green); }

/* =========================================
   REPAYMENT PLAN CARDS
   ========================================= */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}
.plan-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.plan-icon {
  width: 40px; height: 40px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.plan-title { font-weight: 600; font-size: .95rem; }
.plan-sub { font-size: .75rem; color: var(--text-secondary); }
.plan-monthly { margin-left: auto; text-align: right; }
.plan-monthly-amount { font-weight: 700; color: var(--cyan); font-size: .9rem; }
.plan-monthly-label { font-size: .65rem; color: var(--text-muted); }
.plan-progress { margin-top: 10px; }
.plan-progress-bar {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.plan-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-radius: 2px;
}
.plan-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--text-muted);
}

/* =========================================
   FORM ELEMENTS
   ========================================= */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
.form-input:focus { border-color: var(--cyan); }
.form-input::placeholder { color: var(--text-muted); }
.form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.form-select:focus { border-color: var(--cyan); }
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: .75rem; color: #f87171; margin-top: 6px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all .3s;
}
.step-dot.active { background: var(--cyan); width: 24px; border-radius: 4px; }
.step-dot.done { background: var(--green); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan);
  color: #0a1628;
}
.btn-primary:hover { background: var(--cyan-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-light); }
.btn-success {
  background: var(--green);
  color: #0a1628;
}
.btn-success:hover { background: var(--green-dark); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover { background: rgba(0,212,255,.08); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: .8rem; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* =========================================
   BADGES / STATUS
   ========================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
}
.badge-success { background: rgba(74,222,128,.15); color: var(--green); border: 1px solid rgba(74,222,128,.3); }
.badge-cyan    { background: rgba(0,212,255,.1); color: var(--cyan); border: 1px solid rgba(0,212,255,.3); }
.badge-warning { background: rgba(251,191,36,.1); color: var(--gold); border: 1px solid rgba(251,191,36,.3); }
.badge-danger  { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.badge-muted   { background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border); }

/* =========================================
   ALERTS
   ========================================= */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-warning {
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.25);
  color: var(--gold);
}
.alert-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  color: #f87171;
}
.alert-success {
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.25);
  color: var(--green);
}
.alert-info {
  background: rgba(0,212,255,.05);
  border: 1px solid rgba(0,212,255,.2);
  color: var(--cyan);
}

/* =========================================
   STATS CARDS (Admin)
   ========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-label { font-size: .75rem; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.stat-value { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.stat-change { font-size: .75rem; color: var(--text-muted); }
.stat-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  opacity: .2;
}

/* =========================================
   TABLE
   ========================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.data-table td {
  padding: 14px 16px;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* =========================================
   LANDING PAGE
   ========================================= */
.landing-wrapper {
  min-height: 100vh;
  background: var(--bg-primary);
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.landing-nav .logo {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
}
.landing-nav .logo span { color: var(--cyan); }
.landing-nav-links { display: flex; align-items: center; gap: 24px; }
.landing-nav-links a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; transition: color .2s; }
.landing-nav-links a:hover { color: var(--text-primary); }

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.hero-left { }
.hero-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title span { color: var(--cyan); }
.hero-desc { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 460px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-right { position: relative; }
.phone-mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 20px;
  max-width: 280px;
  margin: 0 auto;
  box-shadow: var(--shadow), 0 0 60px rgba(0,212,255,.08);
}
.phone-screen {
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
}

.features-section {
  padding: 80px 40px;
  background: var(--bg-secondary);
}
.features-section .section-tag {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.features-section h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .2s;
}
.feature-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.feature-num { font-size: 2rem; font-weight: 900; color: var(--cyan); opacity: .4; margin-bottom: 8px; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }

.steps-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  position: relative;
}
.step-item { text-align: center; }
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 12px;
  color: #fff;
}
.step-title { font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: .7rem; color: var(--text-secondary); line-height: 1.5; }

.footer-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px;
  text-align: center;
}
.footer-logo { font-size: 1.4rem; font-weight: 900; letter-spacing: 3px; margin-bottom: 8px; }
.footer-logo span { color: var(--cyan); }
.footer-text { font-size: .8rem; color: var(--text-muted); }

/* Auth forms on landing */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 100%;
}
.auth-card h2 { margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-secondary); font-size: .88rem; margin-bottom: 28px; }
.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  border: none;
  background: transparent;
}
.auth-tab.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-card); }
.auth-divider { text-align: center; color: var(--text-muted); font-size: .8rem; margin: 16px 0; }
.auth-link { font-size: .85rem; text-align: center; color: var(--text-secondary); margin-top: 16px; }
.auth-link a { color: var(--cyan); font-weight: 600; }

/* =========================================
   UTILITIES
   ========================================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .75rem; }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Loading overlay */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}
.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  box-shadow: var(--shadow);
  animation: slideIn .3s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid #ef4444; }
.toast.info    { border-left: 3px solid var(--cyan); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Active plan summary */
.plans-summary {
  background: rgba(233,30,99,.06);
  border: 1px solid rgba(233,30,99,.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.plans-summary-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e91e63;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-summary-row { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.plan-summary-row .ps-label { color: var(--text-secondary); }
.plan-summary-row .ps-value { font-weight: 600; }
.plan-summary-total { display: flex; justify-content: space-between; font-size: .95rem; font-weight: 700; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.plan-summary-total .pt-total { color: #f87171; font-size: 1.1rem; }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .bottom-nav { display: flex; }
  .page-inner { padding: 20px 16px 90px; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-section { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
  .hero-title { font-size: 2.2rem; }
  .hero-right { display: none; }
}
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-item { padding: 14px 6px; }
  .quick-item .qi-icon { width: 40px; height: 40px; font-size: 1.3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.9rem; }
  .landing-nav { padding: 16px 20px; }
  .landing-nav-links { gap: 12px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
  .provider-grid { }
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}
@media (max-width: 1024px) { .menu-toggle { display: flex; align-items: center; } }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}
.sidebar-overlay.show { display: block; }

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #0a1628;
  flex-shrink: 0;
}
.profile-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.profile-email { font-size: .85rem; color: var(--text-secondary); }
.profile-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.profile-section { margin-bottom: 24px; }
.profile-section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.profile-item:last-child { border-bottom: none; }
.profile-item-label { font-size: .85rem; color: var(--text-secondary); }
.profile-item-value { font-size: .88rem; font-weight: 500; }

/* Search bar */
.search-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: .9rem;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-icon { color: var(--text-muted); font-size: 1rem; }

/* Agreement checkbox */
.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}
.agree-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.agree-text { font-size: .82rem; color: var(--text-secondary); line-height: 1.5; }
.agree-text span { color: var(--cyan); font-weight: 600; }

/* Admin sidebar */
.admin-sidebar { width: var(--sidebar-w); background: #080f1e; }
.admin-main { margin-left: var(--sidebar-w); }
