/* =========================================================
   Numbly — Global Theme (matches reference design)
   Light sidebar, clean white cards, modern professional UI
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

@import url('./brand.css');

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors — Forest Green & Cream Palette */
  --brand-forest: #0E3B2C;
  --brand-forest-dark: #0A291E;
  --brand-forest-light: #165B44;
  --brand-forest-hover: #1D7257;
  --brand-cream: #FAF7F2;
  --brand-cream-deep: #F3ECE0;
  --brand-cream-card: #FFFFFF;
  --brand-cream-border: #E8E1D3;
  --brand-emerald: #10B981;
  --brand-emerald-glow: rgba(16, 185, 129, 0.25);
  --brand-gold: #D4AF37;
  --brand-gold-light: #FDF6E2;

  /* Legacy Color mappings tailored to Forest Green & Cream */
  --brand-blue: #165B44;
  --brand-indigo: #0E3B2C;
  --brand-cyan: #10B981;
  --brand-green: #10B981;
  --brand-orange: #D97706;
  --brand-red: #EF4444;
  --brand-purple: #0E3B2C;

  /* Primary gradient (Forest Green & Gold Glow) */
  --grad-start: #0E3B2C;
  --grad-end: #165B44;

  /* Surface Colors */
  --bg-page: #FAF7F2;
  --bg-sidebar: #0A291E;
  --bg-header: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-input: #F7F4ED;
  --bg-hover: #F0EAE0;
  --bg-active: #E4DACB;

  /* Text Colors */
  --text-primary: #0A241B;
  --text-secondary: #3D544B;
  --text-muted: #768D84;
  --text-accent: #165B44;

  /* Borders */
  --border-base: #E8E1D3;
  --border-focus: #165B44;
  --border-card: #EFE8DA;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 41, 30, 0.05), 0 1px 2px rgba(10, 41, 30, 0.03);
  --shadow-md: 0 4px 16px rgba(10, 41, 30, 0.06);
  --shadow-lg: 0 12px 36px rgba(10, 41, 30, 0.09);
  --shadow-card: 0 4px 20px rgba(14, 59, 44, 0.06);
  --shadow-forest: 0 10px 25px -5px rgba(14, 59, 44, 0.3);

  /* Spacing */
  --sidebar-w: 240px;
  --header-h: 68px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.font-title {
  font-family: 'Space Grotesk', sans-serif;
}

/* =========================================================
   APP SHELL LAYOUT
   ========================================================= */
.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}


/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.25s ease;
  z-index: 40;
}

/* Sidebar Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  padding: 24px 24px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

/* Sidebar Nav Section Label */
.nav-section-label {
  padding: 20px 26px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A1B8AD;
}

/* Sidebar Nav Item */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 14px;
  margin: 3px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #D5E0D9;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item:hover {
  background: rgba(250, 247, 242, 0.07);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.12);
  transform: none;
}

.nav-item:hover svg {
  opacity: 1;
  transform: none;
}

.nav-item.active,
.nav-item.active:hover {
  background: var(--brand-forest-light);
  color: var(--brand-cream);
  font-weight: 600;
  border-color: rgba(250, 247, 242, 0.16);
  box-shadow: none;
}

.nav-item.active svg {
  color: var(--brand-cream);
  opacity: 1;
}

.sidebar .nav-item:focus-visible {
  outline: 3px solid var(--brand-cream);
  outline-offset: 3px;
}



/* =========================================================
   TOP HEADER
   ========================================================= */
.top-header {
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-base);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 9px 14px 9px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.header-search .shortcut-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--border-base);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Wallet badge in header */
.wallet-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.wallet-badge:hover {
  background: var(--bg-hover);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.wallet-badge svg {
  width: 16px;
  height: 16px;
  color: var(--brand-blue);
}

/* Notification bell */
.notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-base);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.notif-btn:hover {
  background: var(--bg-hover);
  color: var(--brand-blue);
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* User profile button */
.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.18s ease;
}

.user-profile-btn:hover {
  background: var(--bg-hover);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info .user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
}

.user-info .user-role {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 39;
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
}

/* Custom scrollbar */
.page-body::-webkit-scrollbar {
  width: 5px;
}

.page-body::-webkit-scrollbar-track {
  background: transparent;
}

.page-body::-webkit-scrollbar-thumb {
  background: var(--border-base);
  border-radius: 4px;
}

.page-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* =========================================================
   PAGE HEADER (inside main content)
   ========================================================= */
.page-header {
  margin-bottom: 24px;
}

.page-header .greeting {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.page-header .subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

.page-header .date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--brand-blue);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.08);
}

/* =========================================================
   STAT / KPI CARDS
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.stats-grid> :nth-child(1) {
  animation-delay: 0.1s;
}

.stats-grid> :nth-child(2) {
  animation-delay: 0.2s;
}

.stats-grid> :nth-child(3) {
  animation-delay: 0.3s;
}

.stats-grid> :nth-child(4) {
  animation-delay: 0.4s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12);
}

.stat-card .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-card .stat-change {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--brand-green);
}

.stat-card .stat-change.negative {
  color: var(--brand-red);
}

.stat-card .stat-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stat-icon.blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.stat-icon.green {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: var(--brand-green);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.stat-icon.orange {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.stat-icon.purple {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: var(--brand-purple);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.stat-icon.red {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.stat-icon.cyan {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: var(--brand-cyan);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

/* =========================================================
   SECTION CARDS (containers for content)
   ========================================================= */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  overflow: hidden;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 0.3s;
}

.section-card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}

.section-card-body {
  padding: 20px;
}

/* View All link */
.view-all-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.view-all-link:hover {
  opacity: 0.75;
}

/* =========================================================
   QUICK ACTIONS
   ========================================================= */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: var(--bg-hover);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* =========================================================
   WALLET PROMO BANNER
   ========================================================= */
/* =========================================================
   WALLET PROMO BANNER
   ========================================================= */
.wallet-promo {
  background: linear-gradient(135deg, #0A291E 0%, #165B44 55%, #10B981 100%);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 0.5s;
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(14, 59, 44, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.wallet-promo h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  font-family: 'Space Grotesk', sans-serif;
  color: #FAF7F2;
}

.wallet-promo p {
  font-size: 12.5px;
  margin: 0 0 16px;
  opacity: 0.9;
  line-height: 1.5;
  color: #E2ECE8;
}

/* =========================================================
   DATA TABLES
   ========================================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead tr {
  background: var(--bg-input);
  border-bottom: 1px solid var(--border-base);
}

.data-table th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-base);
  transition: background 0.15s;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
}

.data-table td .text-muted {
  color: var(--text-muted);
  font-size: 11px;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-success {
  background: #E6F7F0;
  color: #0E6B4B;
  border: 1px solid #BCE8D5;
}

.badge-warning {
  background: #FDF6E2;
  color: #92700C;
  border: 1px solid #F5E5B8;
}

.badge-error {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.badge-info {
  background: #E8F4F0;
  color: #165B44;
  border: 1px solid #C4E2D7;
}

.badge-neutral {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-base);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0E3B2C 0%, #165B44 100%);
  color: #FAF7F2;
  box-shadow: 0 4px 14px rgba(14, 59, 44, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #124937 0%, #1D7257 100%);
  box-shadow: 0 6px 20px rgba(14, 59, 44, 0.35);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-base);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
}

/* Full-width button */
.btn-block {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #fff;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control-icon {
  position: relative;
}

.form-control-icon .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.form-control-icon .form-control {
  padding-left: 40px;
}

.form-control-icon .toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.form-control-icon .toggle-eye:hover {
  color: var(--brand-blue);
}

/* =========================================================
   AUTH PAGES (Login / Register)
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-container {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.auth-left {
  padding-right: 32px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.auth-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  animation: pulse 2s infinite;
}

.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 16px;
}

.auth-title .highlight {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 28px;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.auth-features li .check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.auth-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.auth-stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Auth card (right panel) */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  margin-left: auto;
}

.auth-card .logo-area {
  margin-bottom: 24px;
}

.auth-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.auth-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.auth-divider {
  height: 1px;
  background: var(--border-base);
  margin: 20px 0;
}

/* =========================================================
   SERVICE / APP CARDS (buy number page)
   ========================================================= */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border: 1.5px solid var(--border-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-card);
  text-align: center;
  gap: 6px;
}

.service-card:hover {
  border-color: var(--brand-blue);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.service-card.selected {
  border-color: var(--brand-blue);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.service-card .service-emoji {
  font-size: 22px;
}

.service-card .service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #EDF3EE;
  border: 1px solid #E8E1D3;
  color: #0E3B2C;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.service-card .service-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Popular badge on service */
.service-popular-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  background: #fef3c7;
  color: #d97706;
  border-radius: 100px;
}

/* Country card */
.country-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-card);
}

.country-card:hover {
  border-color: var(--brand-blue);
  background: var(--bg-hover);
}

.country-flag {
  font-size: 22px;
}

.country-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.country-price {
  font-size: 12px;
  color: var(--text-secondary);
}

/* =========================================================
   RESPONSIVE — Tablet & Mobile
   ========================================================= */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .auth-left {
    display: none;
  }

  .auth-card {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  /* Sidebar becomes drawer */
  .sidebar {
    position: fixed;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-search {
    display: none;
  }

  .page-body {
    padding: 16px 16px calc(100px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  /* Mobile bottom nav */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--brand-cream);
    border-top: 1px solid var(--border-base);
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    box-shadow: 0 -2px 14px rgba(10, 36, 27, 0.05);
    /* Ensure it sits above content on iOS */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-nav-item {
    flex: 1;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 600;
    transition: color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0 4px;
    position: relative;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mobile-nav-item.active {
    color: var(--brand-forest);
    background: #EDF3EE;
  }

  .mobile-nav-item:focus-visible {
    outline-offset: -4px;
  }

  /* Active indicator dot above mobile nav icon */
  .mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    background: var(--brand-forest);
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card .stat-value {
    font-size: 20px;
  }

  .stat-card .stat-label span {
    font-size: 11px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .quick-action-btn {
    padding: 12px 6px;
  }

  .quick-action-icon {
    width: 36px;
    height: 36px;
  }

  .quick-action-label {
    font-size: 10px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }

  .page-header .greeting {
    font-size: 22px;
  }

  .user-info .user-name {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-info .user-role {
    display: none;
  }

  .header-right {
    gap: 6px;
  }

  .wallet-badge {
    padding: 6px 8px;
    font-size: 12px;
    gap: 4px;
  }

  .user-profile-btn {
    padding: 4px 6px 4px 4px;
    gap: 6px;
  }

  .top-header {
    padding: 0 14px;
    gap: 10px;
  }

  .section-card-header {
    padding: 14px 16px 12px;
  }

  .section-card-body {
    padding: 14px 16px;
  }
}

/* Tiny phones (≤ 380px) */
@media (max-width: 380px) {
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quick-action-btn {
    padding: 14px 8px;
  }

  .wallet-badge span {
    display: none;
  }

  .wallet-badge {
    padding: 6px 8px;
    min-width: unset;
  }

  .user-info .user-name {
    max-width: 55px;
  }
}

/* =========================================================
   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;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 4px;
}

.mt-2 {
  margin-top: 8px;
}

.mb-0 {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

/* Pulse animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.fade-in {
  animation: fadeIn 0.25s ease forwards;
}

/* =========================================================
   DROPDOWN MENUS
   ========================================================= */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 9999;
  padding: 6px;
  animation: fadeIn 0.15s ease;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--bg-hover);
}

.dropdown-item.danger:hover {
  background: #fef2f2;
  color: var(--brand-red);
}

.dropdown-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* =========================================================
   PROFILE DROPDOWN MENU (alpine-driven)
   ========================================================= */
[x-cloak] {
  display: none !important;
}

/* =========================================================
   TOAST / NOTIFICATION STYLES
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  animation: fadeIn 0.2s ease;
}

.toast.success {
  border-left: 3px solid var(--brand-green);
}

.toast.error {
  border-left: 3px solid var(--brand-red);
}

.toast.info {
  border-left: 3px solid var(--brand-blue);
}

/* =========================================================
   FOREST GREEN & CREAM OVERRIDES & TAILWIND COMPATIBILITY
   ========================================================= */

/* Backgrounds */
.bg-indigo-600, .bg-blue-600, .bg-indigo-700, .bg-blue-700, .bg-purple-600, .bg-indigo-500 {
  background-color: #0E3B2C !important;
}

.hover\:bg-indigo-700:hover, .hover\:bg-blue-700:hover, .hover\:bg-indigo-800:hover, .hover\:bg-blue-800:hover {
  background-color: #165B44 !important;
}

.bg-indigo-50, .bg-blue-50, .bg-purple-50, .bg-slate-50, .bg-gray-50 {
  background-color: #FAF7F2 !important;
}

.bg-indigo-100, .bg-blue-100 {
  background-color: #F3ECE0 !important;
}

/* Text Colors */
.text-indigo-600, .text-blue-600, .text-purple-600, .text-indigo-500, .text-blue-500 {
  color: #0E3B2C !important;
}

.text-indigo-700, .text-blue-700 {
  color: #0A291E !important;
}

.hover\:text-indigo-600:hover, .hover\:text-blue-600:hover {
  color: #165B44 !important;
}

/* Borders */
.border-indigo-600, .border-blue-600, .border-indigo-500, .border-blue-500 {
  border-color: #0E3B2C !important;
}

.focus\:border-indigo-500:focus, .focus\:border-blue-500:focus, .focus\:border-indigo-600:focus {
  border-color: #165B44 !important;
  box-shadow: 0 0 0 3px rgba(22, 91, 68, 0.15) !important;
}

.focus\:ring-indigo-500:focus, .focus\:ring-blue-500:focus {
  --tw-ring-color: rgba(22, 91, 68, 0.3) !important;
}

/* Gradients */
.from-indigo-600, .from-blue-600, .from-purple-600 {
  --tw-gradient-from: #0E3B2C !important;
  --tw-gradient-to: rgba(14, 59, 44, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-indigo-600, .to-blue-600, .to-purple-600, .to-indigo-700, .to-indigo-800 {
  --tw-gradient-to: #165B44 !important;
}

.to-purple-700, .to-pink-600 {
  --tw-gradient-to: #10B981 !important;
}

/* Forest Green Glow Accent */
.forest-glow {
  box-shadow: 0 8px 25px -4px rgba(14, 59, 44, 0.3);
}

.emerald-badge {
  background: #E6F7F0;
  color: #0E6B4B;
  border: 1px solid #BCE8D5;
}

.gold-badge {
  background: #FDF6E2;
  color: #92700C;
  border: 1px solid #F5E5B8;
}
