/* ============================================================
   Load4Setu — Main Stylesheet
   Connecting Loads · Empowering Roads
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --primary:       #1a3fa8;
  --primary-dark:  #122e85;
  --primary-light: #e8efff;
  --orange:        #f97316;
  --orange-dark:   #ea6c0a;
  --orange-light:  #fff4ed;

  /* Status */
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;

  /* Grays */
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --white:     #ffffff;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow:    0 1px 4px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --shadow-orange: 0 4px 20px rgba(249,115,22,.3);
  --shadow-blue:   0 4px 20px rgba(26,63,168,.25);

  /* Zone colours */
  --north: #2563eb; --north-bg: #eff6ff; --north-text: #1d4ed8;
  --east:  #059669; --east-bg:  #ecfdf5; --east-text:  #065f46;
  --west:  #d97706; --west-bg:  #fffbeb; --west-text:  #92400e;
  --south: #dc2626; --south-bg: #fef2f2; --south-text: #991b1b;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
  background: #f0f4ff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, #0f2470 0%, #1a3fa8 60%, #1e4db7 100%);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 20px rgba(26,63,168,.4);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 66px;
}

/* Logo */
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--white);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.brand-logo-wrap img {
  width: 40px; height: 40px; object-fit: contain;
}
.brand-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-name {
  font-size: 1.15rem; font-weight: 800; color: var(--white);
  letter-spacing: .5px;
}
.brand-name span { color: var(--orange); }
.brand-tagline {
  font-size: 0.62rem; color: rgba(255,255,255,.65);
  letter-spacing: .8px; text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}
.nav-links li a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: rgba(255,255,255,.85); font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.nav-links li a:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  text-decoration: none;
}
.nav-links li a.nav-admin { color: #fbbf24; }
.nav-links li a.nav-admin:hover { background: rgba(251,191,36,.15); }

.nav-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,.75);
}
.btn-logout {
  padding: 5px 12px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm); font-size: 0.8rem;
  color: #fca5a5; transition: all .15s;
}
.btn-logout:hover { background: #ef4444; color: var(--white); text-decoration: none; }

.btn-nav-login {
  background: rgba(255,255,255,.12) !important;
  border: 1.5px solid rgba(255,255,255,.3) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm);
}
.btn-nav-login:hover { background: rgba(255,255,255,.22) !important; }

.btn-nav-register {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-orange);
}
.btn-nav-register:hover {
  background: var(--orange-dark) !important;
  text-decoration: none !important;
}

.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--white);
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }

/* ── Flash messages ───────────────────────────────────────── */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; font-size: 0.9rem; font-weight: 500;
  border-left: 4px solid transparent;
}
.flash-success { background: #ecfdf5; border-color: var(--success); color: #065f46; }
.flash-error   { background: #fef2f2; border-color: var(--danger);  color: #991b1b; }
.flash-warning { background: #fffbeb; border-color: var(--warning); color: #92400e; }
.flash-info    { background: #eff6ff; border-color: var(--primary); color: #1d4ed8; }
.flash-close   { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .6; }

/* ── Main content wrapper ─────────────────────────────────── */
.main-content { flex: 1; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius-sm); font-size: 0.875rem;
  font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: all .18s; text-decoration: none; line-height: 1.4;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, #0d2168 100%); }
.btn-orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white); border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}
.btn-orange:hover { background: linear-gradient(135deg, var(--orange-dark) 0%, #d45f07 100%); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #c01a1a; }
.btn-sm  { padding: 5px 12px; font-size: 0.8rem; }
.btn-lg  { padding: 13px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn-hero {
  background: var(--white); color: var(--primary);
  padding: 14px 32px; font-size: 1rem; border-radius: 50px;
  box-shadow: var(--shadow-md); font-weight: 700;
}
.btn-hero:hover { background: #f0f4ff; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.form-group .optional { font-weight: 400; color: var(--gray-500); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 0.9rem;
  font-family: var(--font); background: var(--white); color: var(--gray-900);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,63,168,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-eye { position: relative; }
.input-eye input { padding-right: 44px; }
.eye-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .5;
}
.eye-toggle:hover { opacity: 1; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.88rem; }
.alert p { margin-bottom: 2px; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 66px); display: flex;
  align-items: center; justify-content: center; padding: 32px 16px;
  background: linear-gradient(135deg, #0f2470 0%, #1a3fa8 50%, #f97316 150%);
}
.auth-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 40px;
  width: 100%; max-width: 420px;
}
.auth-card-wide { max-width: 600px; }
.auth-logo { font-size: 2.5rem; text-align: center; margin-bottom: 12px; }
.auth-logo-img {
  width: 80px; height: 80px; object-fit: contain;
  display: block; margin: 0 auto 12px;
}
.auth-title { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); text-align: center; }
.auth-sub { color: var(--gray-500); font-size: 0.9rem; text-align: center; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-footer { text-align: center; font-size: 0.85rem; color: var(--gray-500); margin-top: 16px; }

/* ── Page container ───────────────────────────────────────── */
.page-container { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.page-header-inline {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-header-inline h1 { font-size: 1.6rem; color: var(--gray-900); font-weight: 800; }
.page-header-inline p  { color: var(--gray-500); margin-top: 4px; }

/* ── Filter bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--white); padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--gray-200); margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.filter-bar input, .filter-bar select {
  padding: 9px 12px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 0.88rem; min-width: 160px;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: var(--primary);
}
.filter-bar-prominent { flex-direction: row; gap: 12px; }
.search-wrap {
  position: relative; flex: 1; min-width: 220px;
}
.search-wrap .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 1rem;
}
.search-wrap input {
  width: 100%; padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.92rem;
}
.search-wrap input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,63,168,.1); }

/* ── Zone pills ───────────────────────────────────────────── */
.zone-pill {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.badge-north  { background: var(--north-bg);  color: var(--north-text);  }
.badge-east   { background: var(--east-bg);   color: var(--east-text);   }
.badge-west   { background: var(--west-bg);   color: var(--west-text);   }
.badge-south  { background: var(--south-bg);  color: var(--south-text);  }
.badge-default{ background: var(--gray-100);  color: var(--gray-700);    }

.zone-quick-links {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.zone-label { font-size: 0.82rem; font-weight: 600; color: var(--gray-500); }
.zone-quick-links .zone-pill { cursor: pointer; border: 1.5px solid transparent; transition: all .15s; }
.zone-quick-links .zone-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.zone-active { border-color: currentColor !important; box-shadow: var(--shadow) !important; }

/* ── Result meta ──────────────────────────────────────────── */
.result-count { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 16px; }
.results-meta { margin-bottom: 20px; }
.results-meta p { font-size: 0.9rem; color: var(--gray-600); }
mark, .kw-tag {
  background: #fef9c3; color: #713f12;
  padding: 1px 4px; border-radius: 3px; font-weight: 600;
}

/* ── Supplier Grid ────────────────────────────────────────── */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px; margin-bottom: 32px;
}
.supplier-grid-sm { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.supplier-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  gap: 12px; transition: box-shadow .2s, transform .2s;
  position: relative; overflow: hidden;
}
.supplier-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--primary), var(--orange));
}
.supplier-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.supplier-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.supplier-zone-badge {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px;
}
.supplier-vtype { font-size: 0.8rem; color: var(--gray-500); }
.supplier-name  { font-size: 1rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; }

.supplier-meta  { display: flex; gap: 12px; flex-wrap: wrap; }
.supplier-meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--gray-500); }
.meta-icon { font-size: 0.9rem; }

.supplier-area { font-size: 0.85rem; }
.meta-label { font-weight: 600; color: var(--gray-500); font-size: 0.78rem; display: block; margin-bottom: 3px; }
.supplier-area p { color: var(--gray-700); line-height: 1.5; }

.supplier-contacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 12px; border-radius: var(--radius-sm); font-size: 0.8rem;
  font-weight: 600; text-decoration: none; transition: all .15s;
}
.contact-primary { background: var(--primary-light); color: var(--primary); }
.contact-primary:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.contact-alt { background: var(--gray-100); color: var(--gray-700); }
.contact-alt:hover { background: var(--gray-200); text-decoration: none; }
.contact-wa { background: #dcfce7; color: #166534; }
.contact-wa:hover { background: #22c55e; color: var(--white); text-decoration: none; }

.review-notice {
  font-size: 0.78rem; color: var(--warning); background: #fffbeb;
  padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid #fde68a;
}
.matched-label { font-size: 0.78rem; color: var(--success); font-weight: 600; }

/* ── Inquiry Banner ───────────────────────────────────────── */
.inquiry-banner {
  background: var(--primary-light); border: 1px solid #bfdbfe;
  border-radius: var(--radius); padding: 14px 20px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; font-size: 0.9rem; color: var(--primary-dark);
}

/* ── Empty state ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 32px; color: var(--gray-500); font-size: 0.9rem; }
.empty-results { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-results h3 { font-size: 1.2rem; color: var(--gray-900); margin-bottom: 8px; }
.empty-results p  { color: var(--gray-500); margin-bottom: 20px; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 24px 0;
}
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--gray-700); transition: all .15s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ── Status Badges ────────────────────────────────────────── */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }
.status-pending   { background: #fef9c3; color: #713f12; }
.status-matched   { background: #dbeafe; color: #1e40af; }
.status-contacted { background: #d1fae5; color: #065f46; }
.status-closed    { background: var(--gray-200); color: var(--gray-700); }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--white); }
.data-table th {
  background: var(--gray-50); padding: 12px 14px;
  text-align: left; font-weight: 700; color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200); white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.data-table tbody tr:hover { background: #f0f4ff; }
.data-table tbody tr:last-child td { border-bottom: none; }
.area-cell { max-width: 220px; font-size: 0.82rem; color: var(--gray-600); }
.action-col { white-space: nowrap; }
.mini-select { padding: 4px 8px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.82rem; }

/* ── Admin Layout ─────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 66px); }
.admin-sidebar {
  width: 220px;
  background: linear-gradient(180deg, #0f2470 0%, #1a3fa8 100%);
  color: var(--white); padding: 20px 0; flex-shrink: 0;
  position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto;
}
.sidebar-brand { padding: 0 20px 16px; font-weight: 800; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 8px; }
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-nav a {
  padding: 10px 20px; font-size: 0.88rem; color: rgba(255,255,255,.75);
  transition: all .15s; display: block;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.sidebar-nav a.active { background: var(--orange); color: var(--white); }
.sidebar-sep { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 8px 0; }
.sidebar-logout { color: #fca5a5 !important; }

.admin-main { flex: 1; padding: 28px 32px; overflow-x: hidden; }
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); }
.page-header p  { color: var(--gray-500); font-size: 0.9rem; }

/* Stat Grid */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow); border-left: 4px solid transparent;
}
.stat-blue   { border-color: var(--primary); }
.stat-green  { border-color: var(--success); }
.stat-orange { border-color: var(--orange);  }
.stat-red    { border-color: var(--danger);  }
.stat-icon { font-size: 2rem; }
.stat-num  { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label{ font-size: 0.82rem; color: var(--gray-500); margin-top: 2px; }

.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 14px; }

.mini-bar { height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; min-width: 60px; }
.mini-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--orange)); border-radius: 4px; transition: width .4s; }

.badge-num {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
  border-radius: 50px; padding: 2px 8px; font-size: 0.82rem; font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   BOOKING / INQUIRY FORM  — Load4Setu style
   ───────────────────────────────────────────────────────────── */
.booking-page {
  background: #f0f4ff;
  min-height: calc(100vh - 66px);
  padding: 0 0 60px;
}

/* Top bar */
.booking-topbar {
  background: linear-gradient(135deg, #0f2470 0%, #1a3fa8 100%);
  padding: 20px 24px;
  color: var(--white);
}
.booking-topbar-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
}
.booking-topbar h1 {
  font-size: 1.25rem; font-weight: 800; color: var(--white);
}
.booking-topbar p {
  font-size: 0.82rem; color: rgba(255,255,255,.7); margin-top: 2px;
}

/* Route Card */
.booking-section {
  max-width: 680px; margin: 0 auto; padding: 0 16px;
}
.booking-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-top: 16px;
  border: 1px solid var(--gray-200);
}
.booking-card-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray-500); margin-bottom: 14px;
}

/* Route row */
.route-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden;
}
.route-field {
  padding: 14px 16px; position: relative;
}
.route-field label {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--gray-400); margin-bottom: 4px;
}
.route-field input {
  border: none; outline: none; font-size: 1rem; font-weight: 700;
  color: var(--gray-900); width: 100%; background: transparent;
  padding: 0;
}
.route-field input::placeholder { color: var(--gray-300); font-weight: 400; }
.route-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px; background: var(--gray-50);
  border-left: 1.5px solid var(--gray-200);
  border-right: 1.5px solid var(--gray-200);
}
.route-divider-icon {
  width: 32px; height: 32px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.9rem;
}

/* GPS button */
.gps-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 600; color: var(--orange);
  background: var(--orange-light); border: 1px solid #fed7aa;
  border-radius: 50px; padding: 4px 10px; cursor: pointer;
  transition: all .15s; margin-top: 8px;
  width: fit-content;
}
.gps-btn:hover { background: #ffe4cc; }
.gps-btn.loading { opacity: .7; pointer-events: none; }
.gps-status {
  font-size: 0.78rem; color: var(--gray-500); margin-top: 6px;
  min-height: 18px;
}
.gps-status.success { color: var(--success); }
.gps-status.error   { color: var(--danger); }

/* Material + Weight row */
.material-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden;
  margin-top: 12px;
}
.material-field {
  padding: 12px 16px;
}
.material-field:first-child {
  border-right: 1.5px solid var(--gray-200);
}
.material-field label {
  display: block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--gray-400); margin-bottom: 4px;
}
.material-field select,
.material-field input {
  border: none; outline: none; font-size: 0.95rem; font-weight: 600;
  color: var(--gray-900); background: transparent; width: 100%; padding: 0;
  cursor: pointer;
}

/* Truck type section */
.truck-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 700; color: var(--gray-900);
  margin: 6px 0 12px;
}
.truck-section-icon { font-size: 1.1rem; }

.truck-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.truck-chip {
  padding: 7px 14px; border-radius: 50px;
  border: 1.5px solid var(--gray-300); background: var(--white);
  font-size: 0.82rem; font-weight: 500; color: var(--gray-700);
  cursor: pointer; transition: all .15s; user-select: none;
  white-space: nowrap;
}
.truck-chip:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light);
}
.truck-chip.selected {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,63,168,.3);
}
.truck-chip input[type="radio"] { display: none; }

/* Notes field */
.notes-field {
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  margin-top: 12px;
}
.notes-field label {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--gray-400); margin-bottom: 6px;
}
.notes-field-inner {
  display: flex; align-items: flex-start; gap: 10px;
}
.notes-field-inner .notes-icon { font-size: 1rem; opacity: .5; margin-top: 2px; }
.notes-field textarea {
  border: none; outline: none; font-size: 0.9rem;
  color: var(--gray-900); background: transparent; width: 100%;
  resize: none; font-family: var(--font); padding: 0;
}

/* Book button */
.book-btn-wrap { padding: 0 16px; margin-top: 20px; }
.book-btn {
  width: 100%; padding: 16px; font-size: 1.05rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, #0f2470 100%);
  color: var(--white); border: none; border-radius: var(--radius);
  cursor: pointer; transition: all .2s;
  box-shadow: var(--shadow-blue); letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.book-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,63,168,.4); }

/* ── Old inquiry form (keep for compatibility) ─────────────── */
.inquiry-form { display: flex; flex-direction: column; gap: 24px; }
.form-section {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 24px; box-shadow: var(--shadow);
}
.section-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 18px; }
.form-section .form-group { margin-bottom: 0; }
.form-section .form-row { margin-bottom: 16px; }
.form-section .form-row:last-child { margin-bottom: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* ── My Inquiries ─────────────────────────────────────────── */
.inquiry-list { display: flex; flex-direction: column; gap: 16px; }
.inquiry-row {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.inquiry-row::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--primary), var(--orange));
}
.inq-route { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.inq-from  { font-weight: 600; color: var(--gray-900); }
.inq-arrow { color: var(--gray-400); font-size: 1.2rem; }
.inq-to    { font-weight: 700; color: var(--primary); font-size: 1.05rem; }
.inq-details { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.83rem; color: var(--gray-600); }
.inq-notes { font-size: 0.83rem; color: var(--gray-500); background: var(--gray-50); padding: 8px 12px; border-radius: var(--radius-sm); }
.inq-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inq-date   { font-size: 0.8rem; color: var(--gray-400); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a1a5c 0%, #1a3fa8 45%, #1e55c4 70%, #f97316 150%);
  color: var(--white); padding: 80px 24px 90px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(249,115,22,.18) 0%, transparent 60%);
}
.hero-content { max-width: 720px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: 5px 14px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 20px; color: rgba(255,255,255,.9);
}
.hero-badge-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }

.hero-title { font-size: 2.6rem; font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.hero-title span { color: var(--orange); }
.hero-sub   { font-size: 1.05rem; opacity: .9; margin-bottom: 36px; }

.hero-search {
  display: flex; gap: 0; background: var(--white); border-radius: 50px;
  overflow: hidden; max-width: 580px; margin: 0 auto 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.hero-search input {
  flex: 1; border: none; padding: 15px 22px; font-size: 0.95rem;
  color: var(--gray-900); outline: none;
}
.hero-search .btn-hero {
  border-radius: 0 50px 50px 0; padding: 15px 26px; white-space: nowrap;
  background: var(--orange); color: var(--white); font-weight: 700;
}
.hero-search .btn-hero:hover { background: var(--orange-dark); }

.hero-stats { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat strong { font-size: 1.7rem; font-weight: 900; color: var(--white); }
.hero-stat span   { font-size: 0.8rem; opacity: .75; margin-top: 2px; }

/* ── Sections ─────────────────────────────────────────────── */
.section-container { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
.section-heading { font-size: 1.8rem; font-weight: 900; color: var(--gray-900); text-align: center; margin-bottom: 8px; }
.section-heading span { color: var(--orange); }
.section-sub { color: var(--gray-500); text-align: center; margin-bottom: 40px; }
.section-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header-row .section-heading { margin-bottom: 0; text-align: left; }

/* Zone section */
.zone-section { background: var(--white); }
.zone-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.zone-card {
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  text-decoration: none; transition: all .2s; border: 2px solid transparent;
}
.zone-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; }
.badge-north.zone-card { background: var(--north-bg); border-color: #bfdbfe; }
.badge-east.zone-card  { background: var(--east-bg);  border-color: #a7f3d0; }
.badge-west.zone-card  { background: var(--west-bg);  border-color: #fde68a; }
.badge-south.zone-card { background: var(--south-bg); border-color: #fca5a5; }
.zone-card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.zone-card h3   { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.badge-north.zone-card h3 { color: var(--north-text); }
.badge-east.zone-card  h3 { color: var(--east-text); }
.badge-west.zone-card  h3 { color: var(--west-text); }
.badge-south.zone-card h3 { color: var(--south-text); }
.zone-card p    { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 12px; }
.zone-card-count { font-size: 0.85rem; font-weight: 700; opacity: .8; }

/* How it works */
.how-section { background: linear-gradient(135deg, #f0f4ff 0%, #fff4ed 100%); }
.steps-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 20px;
  text-align: center; box-shadow: var(--shadow); position: relative;
  transition: all .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--orange) 0%, #ea6c0a 100%);
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; box-shadow: 0 2px 8px rgba(249,115,22,.4);
}
.step-icon { font-size: 2.2rem; margin-bottom: 12px; }
.step-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.step-card p  { font-size: 0.85rem; color: var(--gray-600); }

/* Vehicle cards */
.vehicle-section { background: var(--white); }
.vehicle-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vehicle-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 36px 28px;
  text-align: center; transition: all .2s; background: var(--white);
}
.vehicle-card:hover { border-color: var(--orange); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.vehicle-icon { font-size: 3.2rem; margin-bottom: 16px; }
.vehicle-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.vehicle-card p  { color: var(--gray-600); margin-bottom: 20px; }

/* Featured */
.featured-section { background: #f0f4ff; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #0a1a5c 0%, #1a3fa8 50%, #f97316 150%);
  color: var(--white); text-align: center; padding: 80px 24px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(249,115,22,.2) 0%, transparent 60%);
}
.cta-content { max-width: 580px; margin: 0 auto; position: relative; }
.cta-section h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: 12px; }
.cta-section p  { opacity: .9; font-size: 1.05rem; margin-bottom: 32px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0d1e5c 0%, #0a1540 100%);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}
.footer-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 44px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-logo {
  width: 48px; height: 48px; object-fit: contain;
  background: var(--white); border-radius: 10px; padding: 4px;
}
.footer-brand-name {
  font-size: 1.2rem; font-weight: 900; color: var(--white);
}
.footer-brand-name span { color: var(--orange); }
.footer-brand-tag {
  font-size: 0.68rem; color: rgba(255,255,255,.5);
  letter-spacing: 1px; text-transform: uppercase; margin-top: 2px;
}
.footer-col h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 14px; letter-spacing: .5px; text-transform: uppercase; }
.footer-col p  { font-size: 0.85rem; line-height: 1.75; color: rgba(255,255,255,.65); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.85rem; color: rgba(255,255,255,.65);
  transition: color .15s; display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a::before { content: '→'; font-size: 0.7rem; opacity: .5; }
.footer-col ul li a:hover { color: var(--orange); text-decoration: none; }
.footer-col ul li .zone-pill { margin-bottom: 2px; opacity: .9; }

/* Social icons */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,.7); transition: all .15s;
}
.footer-social a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); text-decoration: none; }

/* Contact info */
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px;
}
.footer-contact-item .fc-icon { font-size: 0.9rem; opacity: .6; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item span { font-size: 0.83rem; color: rgba(255,255,255,.65); }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
}
.footer-bottom-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom-inner p { font-size: 0.82rem; opacity: .55; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,.45); }
.footer-bottom-links a:hover { color: var(--orange); text-decoration: none; }

/* ── Mobile Bottom Nav ────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  border-top: 1px solid var(--gray-200);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav ul {
  display: flex; list-style: none;
  justify-content: space-around; align-items: center;
}
.mobile-bottom-nav ul li a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  color: var(--gray-500); transition: all .15s; text-decoration: none;
  min-width: 56px; text-align: center;
}
.mobile-bottom-nav ul li a .mnav-icon { font-size: 1.35rem; line-height: 1; }
.mobile-bottom-nav ul li a .mnav-label { font-size: 0.65rem; font-weight: 600; }
.mobile-bottom-nav ul li a:hover,
.mobile-bottom-nav ul li a.active {
  color: var(--primary); text-decoration: none;
}
.mobile-bottom-nav ul li a.mnav-book {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2470 100%);
  color: var(--white) !important; border-radius: var(--radius);
  padding: 8px 16px;
  box-shadow: var(--shadow-blue);
}
.mobile-bottom-nav ul li a.mnav-book .mnav-label { color: rgba(255,255,255,.85); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .zone-cards   { grid-template-columns: repeat(2, 1fr); }
  .steps-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-grid    { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col{ grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 66px; left: 0; right: 0;
    background: linear-gradient(180deg, #0f2470 0%, #1a3fa8 100%);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px 0; box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { padding: 11px 24px; border-radius: 0; }
  .nav-toggle { display: block; }
  .navbar { position: relative; }

  /* Hero */
  .hero { padding: 56px 20px 64px; }
  .hero-title { font-size: 1.75rem; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search .btn-hero { border-radius: 0 0 var(--radius) var(--radius); }

  /* Layout */
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; height: auto; position: static;
    display: flex; flex-wrap: wrap; align-items: center; padding: 12px;
  }
  .sidebar-brand { padding: 4px 12px; border-bottom: none; margin-bottom: 0; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav a { padding: 6px 12px; }
  .admin-main { padding: 16px; }

  /* Sections */
  .zone-cards    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .steps-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vehicle-cards { grid-template-columns: 1fr; }
  .stat-grid     { grid-template-columns: 1fr 1fr; }
  .supplier-grid { grid-template-columns: 1fr; }
  .page-header-inline { flex-direction: column; }

  /* Footer */
  .footer-container { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  /* Show mobile bottom nav */
  .mobile-bottom-nav { display: block; }
  /* Add padding to body so content isn't hidden behind bottom nav */
  .site-footer { padding-bottom: 80px; }
  .main-content { padding-bottom: 60px; }

  /* Booking page mobile */
  .booking-topbar { padding: 16px; }
  .route-row { grid-template-columns: 1fr auto 1fr; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .page-container { padding: 16px; }
  .hero-title { font-size: 1.5rem; }
  .zone-cards { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .route-row { grid-template-columns: 1fr; }
  .route-divider { display: none; }
  .material-row { grid-template-columns: 1fr; }
  .material-field:first-child { border-right: none; border-bottom: 1.5px solid var(--gray-200); }
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; opacity: .6; }
.modal-close:hover { opacity: 1; }
.modal-form { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; border-top: 1px solid var(--gray-100); }

/* ── Utility ──────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.divider-line {
  width: 60px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  margin: 0 auto 20px;
}

/* ============================================================
   ANIMATIONS & NEW SECTIONS — Load4Setu
   ============================================================ */

/* ── Core animation keyframes ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes floatYSlow {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(8deg); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulseBig {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.08); opacity: .85; }
}
@keyframes slideInBar {
  from { width: 0; }
  to   { width: var(--bar-w, 100%); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reveal on scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1),
              transform .55s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero enhancements ────────────────────────────────────── */
.hero-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 0;
  min-height: 540px;
  overflow: hidden;
  position: relative;
}
.hero-img .hero-content {
  padding: 70px 48px 70px 60px;
  z-index: 2; position: relative;
}
.hero-truck-img {
  position: relative; height: 100%; min-height: 540px;
  overflow: hidden;
}
.hero-truck-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.hero-img:hover .hero-truck-img img { transform: scale(1.04); }
.hero-truck-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #0a1a5c 0%, transparent 40%);
}

/* Hero search icon */
.hero-search { position: relative; }
.hero-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.1rem; z-index: 1; pointer-events: none;
}
.hero-search input { padding-left: 44px !important; }

/* Hero stat divider */
.hero-stat-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* Hero floating bg icons */
.hero-bg-icons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.hbi {
  position: absolute; font-size: 2rem; opacity: .06;
  animation: floatYSlow linear infinite;
}
.hbi-1 { top: 15%; left: 5%;  font-size:3rem; animation-duration:7s; }
.hbi-2 { top: 60%; left: 10%; font-size:1.8rem; animation-duration:9s; animation-delay:-3s; }
.hbi-3 { top: 20%; left: 45%; font-size:2.5rem; animation-duration:6s; animation-delay:-1s; }
.hbi-4 { top: 70%; left: 42%; font-size:1.5rem; animation-duration:8s; animation-delay:-5s; }
.hbi-5 { top: 40%; left: 3%;  font-size:1.2rem; animation-duration:11s; animation-delay:-2s; }

/* Hero fade-in */
.animate-fadein-up {
  animation: fadeInUp .75s cubic-bezier(.22,1,.36,1) both;
}

/* ── Trust strip ──────────────────────────────────────────── */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.trust-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 20px; font-size: .85rem; font-weight: 600;
  color: var(--gray-700);
}
.trust-icon { font-size: 1rem; }
.trust-sep {
  width: 1px; height: 20px; background: var(--gray-200); flex-shrink: 0;
}

/* ── Section eyebrow ──────────────────────────────────────── */
.section-eyebrow {
  font-size: .75rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 6px; display: block; text-align: center;
}

/* ── Zone IMAGE cards ─────────────────────────────────────── */
.zone-img-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.zone-img-card {
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform .25s cubic-bezier(.22,1,.36,1),
              box-shadow .25s;
  border: 1px solid var(--gray-200);
}
.zone-img-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.zone-img-card-thumb {
  position: relative; height: 160px; overflow: hidden;
}
.zone-img-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.zone-img-card:hover .zone-img-card-thumb img { transform: scale(1.08); }
.zone-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5) 100%);
}
.zone-img-badge {
  position: absolute; bottom: 12px; left: 12px;
  font-size: 1.8rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.zone-img-body {
  padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.zone-img-body h3 {
  font-size: .95rem; font-weight: 800; color: var(--gray-900);
}
.zone-img-body p {
  font-size: .8rem; color: var(--gray-500); line-height: 1.5; flex: 1;
}
.zone-img-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
.zone-arrow {
  font-size: .9rem; color: var(--orange); font-weight: 700;
  transition: transform .2s;
}
.zone-img-card:hover .zone-arrow { transform: translateX(4px); }

/* ── How It Works — new layout ────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.how-img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.how-img-wrap img {
  width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover;
}
.how-img-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--white); border-radius: var(--radius);
  padding: 12px 18px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: flex-start;
  animation: pulseBig 3s ease-in-out infinite;
}
.how-img-badge-num {
  font-size: 1.8rem; font-weight: 900; color: var(--primary); line-height: 1;
}
.how-img-badge-num span { color: var(--orange); }
.how-img-badge-label {
  font-size: .75rem; font-weight: 600; color: var(--gray-500); margin-top: 2px;
}
.how-img-tag {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  border-radius: 50px; padding: 5px 14px;
  font-size: .78rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 5px;
  box-shadow: var(--shadow);
}
.how-steps-col .section-heading {
  font-size: 1.6rem; text-align: left; margin-bottom: 24px;
}

/* Step list */
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: all .2s;
}
.step-item:last-child { border-bottom: none; }
.step-item:hover { transform: translateX(6px); }
.step-item-num {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 900; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(26,63,168,.3);
}
.step-item-body h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.step-item-body p  { font-size: .85rem; color: var(--gray-600); line-height: 1.55; }

/* ── Vehicle IMAGE cards ──────────────────────────────────── */
.vehicle-img-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.vehicle-img-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.vehicle-img-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.vehicle-img-thumb {
  position: relative; height: 200px; overflow: hidden;
}
.vehicle-img-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.vehicle-img-card:hover .vehicle-img-thumb img { transform: scale(1.06); }
.vehicle-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,36,112,.7) 100%);
}
.vehicle-img-badge {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 2rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.vehicle-img-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.vehicle-img-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--gray-900); }
.vehicle-img-body p  { font-size: .85rem; color: var(--gray-600); line-height: 1.55; }
.vehicle-chips-mini {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.vehicle-chips-mini span {
  font-size: .73rem; font-weight: 600;
  background: var(--primary-light); color: var(--primary);
  padding: 3px 9px; border-radius: 50px;
}

/* ── Stats banner ─────────────────────────────────────────── */
.stats-banner {
  background: linear-gradient(135deg, #0a1a5c 0%, #1a3fa8 50%, #f97316 150%);
  padding: 48px 24px;
  position: relative; overflow: hidden;
}
.stats-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(249,115,22,.2) 0%, transparent 60%);
}
.stats-banner-inner {
  max-width: 1100px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-banner-item {
  text-align: center; padding: 16px;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: transform .2s;
}
.stat-banner-item:last-child { border-right: none; }
.stat-banner-item:hover { transform: translateY(-4px); }
.stat-banner-icon { font-size: 2rem; margin-bottom: 10px; opacity: .9; }
.stat-banner-num {
  font-size: 2.4rem; font-weight: 900; color: var(--white); line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, #ffd4a8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-banner-label {
  font-size: .8rem; color: rgba(255,255,255,.7); font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-section {
  background: #f0f4ff;
  padding: 0;
}
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 28px;
}
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
  position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: -8px; left: 16px;
  font-size: 6rem; font-weight: 900; line-height: 1;
  color: var(--primary-light); z-index: 0;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.testimonial-stars {
  color: #f59e0b; font-size: 1rem; letter-spacing: 2px; position: relative; z-index: 1;
}
.testimonial-card > p {
  font-size: .9rem; color: var(--gray-700); line-height: 1.7;
  font-style: italic; position: relative; z-index: 1;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--gray-100);
  position: relative; z-index: 1;
}
.testimonial-author img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--primary-light);
}
.testimonial-author strong { display: block; font-size: .9rem; color: var(--gray-900); }
.testimonial-author span   { font-size: .78rem; color: var(--gray-500); }

/* ── CTA with background image ────────────────────────────── */
.cta-img-section {
  position: relative; overflow: hidden;
  padding: 90px 24px;
}
.cta-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.cta-img-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(10,26,92,.92) 0%, rgba(26,63,168,.85) 50%, rgba(249,115,22,.55) 150%);
}
.cta-img-section .cta-content { position: relative; z-index: 2; }
.cta-logo-wrap { margin-bottom: 20px; }
.cta-logo {
  height: 70px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .9;
  animation: floatY 4s ease-in-out infinite;
}

/* ── Responsive additions ─────────────────────────────────── */
@media (max-width: 1024px) {
  .zone-img-cards      { grid-template-columns: repeat(2, 1fr); }
  .vehicle-img-cards   { grid-template-columns: 1fr 1fr; }
  .stats-banner-inner  { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid    { grid-template-columns: 1fr 1fr; }
  .how-grid            { grid-template-columns: 1fr; gap: 36px; }
  .how-img-col         { max-width: 500px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  /* Hero stacked */
  .hero-img {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-img .hero-content {
    padding: 56px 24px 40px;
    order: 1;
  }
  .hero-truck-img {
    order: 0; min-height: 220px; height: 220px;
  }
  .hero-truck-overlay {
    background: linear-gradient(180deg, rgba(10,26,92,.6) 0%, transparent 60%);
  }
  .hero-stat-divider { display: none; }
  .hero-stats { gap: 16px; }

  .zone-img-cards    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vehicle-img-cards { grid-template-columns: 1fr; }
  .stats-banner-inner{ grid-template-columns: 1fr 1fr; }
  .testimonial-grid  { grid-template-columns: 1fr; }
  .trust-strip-inner { gap: 0; }
  .trust-item        { padding: 6px 12px; font-size: .78rem; }
  .trust-sep         { display: none; }
  .stat-banner-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-banner-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .zone-img-cards { grid-template-columns: 1fr; }
  .stats-banner-inner { grid-template-columns: 1fr 1fr; }
  .hero-img .hero-content { padding: 40px 16px 28px; }
}

/* ── Auth logo size fix ───────────────────────────────────── */
.auth-logo-img {
  width: 110px; height: auto; max-height: 80px;
  object-fit: contain;
  display: block; margin: 0 auto 12px;
}

/* ── Brand logo wrap (navbar) ─────────────────────────────── */
.brand-logo-wrap {
  width: 44px; height: 44px;
  border-radius: 10px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-logo-wrap img {
  width: 44px; height: 44px; object-fit: contain;
}

/* ── Counter animation ────────────────────────────────────── */
.counter { display: inline-block; animation: countUp .4s ease both; }

/* ============================================================
   SUPPLIER DIRECTORY — Load4Setu style
   ============================================================ */

/* ── Directory page shell ─────────────────────────────────── */
.dir-page { background: var(--gray-50); min-height: calc(100vh - 66px); }

/* ── Directory hero ───────────────────────────────────────── */
.dir-hero {
  background: linear-gradient(135deg, #0f2470 0%, #1a3fa8 100%);
  padding: 40px 0 32px;
  border-bottom: 3px solid var(--orange);
}
.dir-hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.dir-hero-title {
  font-size: 2.2rem; font-weight: 900; color: var(--white);
  margin: 4px 0 10px; line-height: 1.1;
}
.dir-hero-sub {
  font-size: .9rem; color: rgba(255,255,255,.75); max-width: 640px; line-height: 1.6;
}

/* ── Body layout ──────────────────────────────────────────── */
.dir-body {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 60px;
}

/* ── Filter panel ─────────────────────────────────────────── */
.dir-filter-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.dir-filter-inner { padding: 24px; }
.dir-filter-eyebrow {
  font-size: .7rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 4px; display: block;
}
.dir-filter-title {
  font-size: 1.2rem; font-weight: 800; color: var(--gray-900);
  margin-bottom: 20px;
}
.dir-filter-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px;
}
.dir-filter-field { display: flex; flex-direction: column; gap: 5px; }
.dir-filter-field label {
  font-size: .82rem; font-weight: 700; color: var(--gray-700);
}
.dir-filter-field input {
  padding: 11px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.dir-filter-field input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,63,168,.1);
}
.dir-filter-field small { font-size: .75rem; color: var(--gray-400); }
.dir-filter-vtype { margin-bottom: 20px; display: flex; flex-direction: column; gap: 5px; }
.dir-filter-vtype label { font-size: .82rem; font-weight: 700; color: var(--gray-700); }
.dir-filter-vtype select {
  padding: 11px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: .95rem;
  max-width: 320px; background: var(--white);
  transition: border-color .15s;
}
.dir-filter-vtype select:focus { outline: none; border-color: var(--primary); }
.dir-filter-vtype small { font-size: .75rem; color: var(--gray-400); }
.dir-filter-actions {
  display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px;
}

/* ── Results meta row ─────────────────────────────────────── */
.dir-results-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: .88rem; color: var(--gray-600);
  margin-bottom: 16px;
}
.dir-login-notice {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-sm); padding: 6px 12px;
  font-size: .82rem; color: #92400e;
}
.dir-login-notice a { color: var(--primary); font-weight: 700; }

/* ── Subscription badges ──────────────────────────────────── */
.badge-verified {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: .65rem; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; background: #dbeafe; color: #1e40af;
  border: 1px solid #bfdbfe;
}
.badge-subscribed {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: .65rem; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; background: #d1fae5; color: #065f46;
  border: 1px solid #6ee7b7;
}
.badge-subscribed-demo {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  font-size: .7rem; font-weight: 800; background: #d1fae5;
  color: #065f46; border: 1px solid #6ee7b7;
}

/* ── Locked contacts (guests) ─────────────────────────────── */
.supplier-contacts-locked {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; background: var(--gray-50);
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius-sm);
  margin-top: 4px;
}
.contact-locked-row {
  display: flex; align-items: center; gap: 8px;
}
.contact-locked-icon { font-size: 1rem; opacity: .5; }
.contact-locked-num {
  font-size: .9rem; font-weight: 600;
  color: transparent;
  text-shadow: 0 0 8px rgba(0,0,0,.35);
  user-select: none; letter-spacing: 2px;
  background: linear-gradient(90deg, var(--gray-300) 25%, var(--gray-200) 50%, var(--gray-300) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}
.contact-unlock-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-size: .82rem; font-weight: 700;
  text-decoration: none; transition: all .15s;
  box-shadow: var(--shadow-blue);
  margin-top: 4px;
}
.contact-unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,63,168,.4);
  text-decoration: none;
}

/* ── Explore section ──────────────────────────────────────── */
.dir-explore-section {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.dir-explore-title {
  font-size: 1.5rem; font-weight: 800; color: var(--gray-900);
  margin-bottom: 6px;
}
.dir-explore-sub { font-size: .88rem; color: var(--gray-500); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .dir-filter-row { grid-template-columns: 1fr; }
  .dir-filter-vtype select { max-width: 100%; }
  .dir-filter-actions .btn { flex: 1; justify-content: center; }
  .dir-hero-title { font-size: 1.6rem; }
}

/* ============================================================
   ADMIN PANEL — Full rebuild
   ============================================================ */

/* Admin sidebar brand */
.admin-sidebar .sidebar-brand-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 6px;
}
.admin-sidebar .sidebar-brand-logo {
  width: 36px; height: 36px; object-fit: contain;
  background: var(--white); border-radius: 8px; padding: 2px;
}
.admin-sidebar .sidebar-brand-text { font-size: .9rem; font-weight: 800; color: var(--white); }
.admin-sidebar .sidebar-brand-text span { color: var(--orange); }
.admin-sidebar .sidebar-brand-sub { font-size: .62rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .8px; }

/* Sidebar nav groups */
.sidebar-group-label {
  font-size: .62rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  padding: 12px 20px 4px; display: block;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 20px; font-size: .875rem;
  color: rgba(255,255,255,.72);
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); text-decoration: none; }
.sidebar-nav a.active {
  background: rgba(249,115,22,.15); color: var(--orange);
  border-left-color: var(--orange);
}
.sidebar-nav a .s-icon { font-size: 1rem; flex-shrink: 0; }
.sidebar-nav a .s-badge {
  margin-left: auto; background: var(--orange); color: var(--white);
  border-radius: 50px; padding: 1px 7px; font-size: .68rem; font-weight: 700;
}

/* Admin main */
.admin-main { flex: 1; padding: 28px 32px; overflow-x: hidden; min-width: 0; }

/* Page header */
.admin-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.admin-page-header-left h1 {
  font-size: 1.4rem; font-weight: 900; color: var(--gray-900); margin-bottom: 2px;
}
.admin-page-header-left p { font-size: .85rem; color: var(--gray-500); }

/* Stat grid v2 */
.stat-grid-v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
.stat-card-v2 {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.stat-card-v2::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.stat-card-v2.sc-blue::after   { background: var(--primary); }
.stat-card-v2.sc-green::after  { background: var(--success); }
.stat-card-v2.sc-orange::after { background: var(--orange); }
.stat-card-v2.sc-red::after    { background: var(--danger); }
.stat-card-v2.sc-purple::after { background: #8b5cf6; }
.stat-card-v2:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-v2-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-v2-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.sc-blue   .stat-v2-icon { background: var(--primary-light); }
.sc-green  .stat-v2-icon { background: #d1fae5; }
.sc-orange .stat-v2-icon { background: var(--orange-light); }
.sc-red    .stat-v2-icon { background: #fee2e2; }
.sc-purple .stat-v2-icon { background: #ede9fe; }
.stat-v2-num {
  font-size: 1.9rem; font-weight: 900; color: var(--gray-900); line-height: 1;
  margin-bottom: 3px;
}
.stat-v2-label { font-size: .8rem; color: var(--gray-500); font-weight: 500; }
.stat-v2-delta {
  font-size: .75rem; display: flex; align-items: center; gap: 3px; margin-top: 2px;
}
.stat-v2-delta.up   { color: var(--success); }
.stat-v2-delta.down { color: var(--danger); }

/* Admin two-col */
.admin-two-col-v2 {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px;
}
.admin-card-v2 {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-card-v2-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
}
.admin-card-v2-header h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); }
.admin-card-v2-body { padding: 0; }

/* Data table v2 */
.data-table-v2 { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table-v2 th {
  padding: 11px 16px; text-align: left;
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--gray-500); background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.data-table-v2 td {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  vertical-align: top; color: var(--gray-700);
}
.data-table-v2 tbody tr:last-child td { border-bottom: none; }
.data-table-v2 tbody tr:hover { background: #f0f4ff; }

/* Inline actions */
.tbl-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 8px; }
.toggle {
  position: relative; display: inline-block; width: 40px; height: 22px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--gray-300); border-radius: 22px; transition: .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; left: 3px; bottom: 3px;
  background: var(--white); border-radius: 50%; transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--success); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Quick stats list in card */
.quick-stats-list { list-style: none; padding: 0; }
.quick-stats-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px; border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
}
.quick-stats-list li:last-child { border-bottom: none; }
.qs-left { display: flex; align-items: center; gap: 10px; }
.qs-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.qs-num { font-weight: 700; color: var(--gray-900); }

/* Activity feed */
.activity-feed { list-style: none; padding: 0; }
.activity-feed li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--gray-100);
  font-size: .85rem;
}
.activity-feed li:last-child { border-bottom: none; }
.af-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.af-body { flex: 1; }
.af-body strong { color: var(--gray-900); }
.af-time { font-size: .75rem; color: var(--gray-400); margin-top: 1px; }

/* Search input in admin */
.admin-search-wrap {
  position: relative; display: inline-flex; align-items: center;
}
.admin-search-wrap input {
  padding: 9px 12px 9px 36px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: .88rem; min-width: 220px;
}
.admin-search-wrap input:focus { outline: none; border-color: var(--primary); }
.admin-search-wrap .si {
  position: absolute; left: 10px; font-size: .95rem; pointer-events: none;
}

/* Inline form row in filter bar */
.admin-filter-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 20px;
  background: var(--white); padding: 14px 16px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-filter-bar select,
.admin-filter-bar input {
  padding: 8px 12px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: .875rem;
}
.admin-filter-bar select:focus,
.admin-filter-bar input:focus { outline: none; border-color: var(--primary); }

/* Responsive admin */
@media (max-width: 1024px) {
  .stat-grid-v2 { grid-template-columns: repeat(2,1fr); }
  .admin-two-col-v2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .admin-main { padding: 16px; }
  .stat-grid-v2 { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .admin-page-header { flex-direction: column; gap: 12px; }
}

/* ── Quick action buttons (admin dashboard) ───────────────── */
.quick-action-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px; background: var(--gray-50);
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  text-decoration: none; color: var(--gray-700); font-size: .875rem; font-weight: 600;
  transition: all .18s;
}
.quick-action-btn:hover {
  background: var(--primary-light); border-color: var(--primary);
  color: var(--primary); transform: translateY(-2px);
  box-shadow: var(--shadow-md); text-decoration: none;
}
.qa-icon { font-size: 1.4rem; }

/* ── Admin sidebar flex fix ───────────────────────────────── */
.admin-sidebar {
  display: flex; flex-direction: column;
}
.admin-sidebar .sidebar-nav { flex: 1; overflow-y: auto; }

/* ── Sidebar sticky bottom ────────────────────────────────── */
@media (min-width: 769px) {
  .admin-sidebar {
    position: sticky; top: 66px;
    height: calc(100vh - 66px);
    overflow-y: auto;
  }
}
