/* ============================================================
   SWAT RIDES — Main Stylesheet
   ============================================================ */

:root {
  --primary: #1a6b3c;
  --primary-dark: #145530;
  --primary-light: #2d9b5e;
  --accent: #f5a623;
  --accent-dark: #e08c0a;
  --danger: #dc3545;
  --warning: #ffc107;
  --success: #28a745;
  --info: #17a2b8;
  --dark: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all .2s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--dark); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: .75rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.col { flex: 1; min-width: 0; }
.col-auto { flex: 0 0 auto; }

/* ===== CARD ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
}
.card-body { padding: 1.25rem; }
.card-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b02a37; color: var(--white); }
.btn-warning { background: var(--warning); color: var(--dark); }
.btn-success { background: var(--success); color: var(--white); }
.btn-info { background: var(--info); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; color: var(--gray-700); }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,107,60,.12); }
.form-control.is-invalid { border-color: var(--danger); }
.form-hint { font-size: .8rem; color: var(--gray-500); margin-top: .2rem; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .2rem; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ===== ALERTS ===== */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-error, .alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--info); }

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: #cce5ff; color: #004085; }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }
.badge-dark { background: var(--gray-800); color: var(--white); }

/* Status-specific badges */
.badge-requested { background: #e3f2fd; color: #0d47a1; }
.badge-searching { background: #fff9c4; color: #f57f17; }
.badge-accepted, .badge-driver_assigned { background: #e8f5e9; color: #1b5e20; }
.badge-driver_arriving { background: #f3e5f5; color: #4a148c; }
.badge-driver_arrived { background: #e0f7fa; color: #006064; }
.badge-trip_started { background: #e8eaf6; color: #1a237e; }
.badge-completed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-no_driver { background: var(--gray-200); color: var(--gray-600); }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.badge-suspended { background: #f8d7da; color: #721c24; }
.badge-blocked { background: #343a40; color: #fff; }
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: var(--gray-200); color: var(--gray-600); }
.badge-online { background: #d4edda; color: #155724; }
.badge-offline { background: var(--gray-200); color: var(--gray-600); }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { background: var(--gray-100); font-weight: 700; color: var(--gray-700); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; padding: .75rem 1rem; text-align: left; border-bottom: 2px solid var(--gray-300); white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.table tbody tr:hover { background: var(--gray-100); }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== STATS ===== */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon-primary { background: rgba(26,107,60,.12); color: var(--primary); }
.stat-icon-accent { background: rgba(245,166,35,.15); color: var(--accent-dark); }
.stat-icon-danger { background: rgba(220,53,69,.1); color: var(--danger); }
.stat-icon-info { background: rgba(23,162,184,.1); color: var(--info); }
.stat-icon-success { background: rgba(40,167,69,.1); color: var(--success); }
.stat-icon-warning { background: rgba(255,193,7,.15); color: #d4920a; }
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--dark); }
.stat-label { font-size: .8rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: .15rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.page-btn {
  padding: .35rem .7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: .85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}
.page-btn:hover { background: var(--gray-100); border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.disabled { opacity: .5; pointer-events: none; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform .25s;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-weight: 700; font-size: 1.1rem; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: .85rem 1.25rem; border-top: 1px solid var(--gray-200); display: flex; gap: .5rem; justify-content: flex-end; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--gray-500); padding: .2rem; }
.modal-close:hover { color: var(--gray-800); }

/* ===== TOASTS ===== */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .85rem 1.1rem;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  border-left: 4px solid var(--primary);
  animation: slideIn .3s ease;
}
.toast.toast-success { border-color: var(--success); }
.toast.toast-error { border-color: var(--danger); }
.toast.toast-warning { border-color: var(--warning); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.toast-text { flex: 1; font-size: .9rem; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray-500); padding: 0; font-size: 1.1rem; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== LOADING ===== */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 60px;
  padding: 0 1.25rem;
}
.navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.navbar-brand span { color: var(--accent); }
.navbar-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--gray-100); color: var(--primary); }
.nav-notif { position: relative; }
.notif-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* ===== BOTTOM NAV (Mobile) ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  z-index: 200;
  height: 64px;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
  padding: .5rem;
  transition: var(--transition);
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item .icon { font-size: 1.3rem; }

/* ===== PAGE HEADERS ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.page-title { font-size: 1.4rem; font-weight: 800; }
.page-subtitle { font-size: .85rem; color: var(--gray-500); font-weight: 400; margin-top: .15rem; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--gray-500); margin-bottom: .5rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-400); }

/* ===== SEARCH BOX ===== */
.search-box { position: relative; }
.search-box .form-control { padding-left: 2.5rem; }
.search-box-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { color: var(--gray-700); margin-bottom: .5rem; }

/* ===== RIDE STATUS INDICATOR ===== */
.status-track {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.25rem 0;
  overflow-x: auto;
  padding-bottom: .5rem;
}
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex: 1;
  min-width: 60px;
  position: relative;
}
.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--gray-300);
}
.status-step.done::after { background: var(--primary); }
.status-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  z-index: 1;
}
.status-step.done .status-dot { background: var(--primary); border-color: var(--primary); color: var(--white); }
.status-step.active .status-dot { border-color: var(--primary); color: var(--primary); animation: pulse 1.5s infinite; }
.status-label { font-size: .65rem; color: var(--gray-500); font-weight: 600; text-align: center; }
.status-step.active .status-label { color: var(--primary); }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(26,107,60,.4)} 50%{box-shadow:0 0 0 6px rgba(26,107,60,0)} }

/* ===== STAR RATING ===== */
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--gray-300); font-size: 1.2rem; cursor: pointer; transition: color .1s; }
.star.filled, .star:hover { color: var(--accent); }
.star-display { color: var(--accent); font-size: .9rem; }
.star-display.empty { color: var(--gray-300); }

/* ===== UTILITY ===== */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent-dark) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: #d4920a !important; }
.text-muted { color: var(--gray-500) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: .5rem; }
.gap-md { gap: 1rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: .5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius); }
.w-100 { width: 100%; }
.img-circle { border-radius: 50%; object-fit: cover; }
.divider { height: 1px; background: var(--gray-200); margin: 1rem 0; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.vis-hidden { visibility: hidden; }
.small { font-size: .85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1rem; }

/* ===== ADMIN SIDEBAR LAYOUT ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--dark);
  color: #c8d3df;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform .3s;
}
.sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-brand .accent { color: var(--accent); }
.sidebar-nav { padding: .75rem 0; flex: 1; }
.sidebar-section { padding: .5rem 1rem .2rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #6c7a8b; margin-top: .5rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 1.25rem;
  font-size: .875rem;
  color: #c8d3df;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: rgba(255,255,255,.06); color: var(--white); }
.sidebar-link.active { background: rgba(26,107,60,.25); color: var(--primary-light); border-left-color: var(--primary-light); }
.sidebar-link .icon { width: 18px; text-align: center; font-size: 1rem; }
.sidebar-badge {
  margin-left: auto;
  background: var(--danger);
  color: var(--white);
  font-size: .7rem;
  padding: .1rem .45rem;
  border-radius: 20px;
  font-weight: 700;
}
.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 56px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.admin-content { padding: 1.5rem; flex: 1; }

/* ===== DRIVER DASHBOARD ===== */
.driver-action-btn {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.1rem;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: .5rem;
}
.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
}
.online-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.online-dot.online { background: var(--success); animation: blink 1.5s infinite; }
.online-dot.offline { background: var(--gray-400); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ===== RIDE REQUEST POPUP ===== */
.ride-request-popup {
  position: fixed;
  bottom: 80px; left: 1rem; right: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  border: 2px solid var(--primary);
  overflow: hidden;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }
.ride-request-header { background: var(--primary); color: var(--white); padding: .85rem 1.25rem; }
.ride-request-body { padding: 1.1rem 1.25rem; }
.ride-request-timer {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-top: .75rem;
  overflow: hidden;
}
.ride-request-timer-bar { height: 100%; background: var(--accent); transition: width 1s linear; border-radius: 3px; }

/* ===== LOCATION MAP PLACEHOLDER ===== */
.location-map-placeholder {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--primary);
  border: 2px dashed var(--primary-light);
}

/* ===== LANDING PAGE ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; }
.hero h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.2); color: var(--white); }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.feature-title { font-weight: 700; margin-bottom: .4rem; }
.feature-desc { color: var(--gray-600); font-size: .9rem; }

.locations-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: .75rem; }
.location-chip {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.location-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(26,107,60,.04); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 3.5rem 1rem; }
  .navbar-nav { gap: 0; }
  .nav-link span { display: none; }
  body { padding-bottom: 70px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .btn-xl { padding: .85rem 1.5rem; font-size: 1rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stat-card { flex-direction: column; text-align: center; }
}

/* ===== PRINT ===== */
@media print {
  .navbar, .bottom-nav, .admin-sidebar, .no-print { display: none !important; }
  .admin-main { margin-left: 0 !important; }
  body { background: white; }
}
