/* ============================================================
   ZoneTracker Design System
   ============================================================ */

/* -- Fonts -- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* -- Variables -- */
:root {
  --primary:        #0A2463;
  --primary-light:  #1a3a7a;
  --primary-dark:   #061640;
  --accent:         #00B4D8;
  --accent-light:   #90E0EF;
  --accent-dark:    #0096B7;
  --success:        #10B981;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --info:           #3B82F6;
  --dark:           #0F172A;
  --dark-2:         #1E293B;
  --dark-3:         #334155;
  --gray:           #64748B;
  --gray-light:     #94A3B8;
  --border:         #E2E8F0;
  --bg:             #F8FAFC;
  --white:          #FFFFFF;
  --text:           #0F172A;
  --text-muted:     #64748B;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18);

  --transition: all .2s ease;
  --font-head:  'Inter', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-mono:  'Space Grotesk', monospace;
}

/* -- Reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select, textarea { font-family: var(--font-body); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p  { line-height: 1.7; color: var(--text-muted); }

.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.text-success  { color: var(--success) !important; }
.text-warning  { color: var(--warning) !important; }
.text-danger   { color: var(--danger) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-dark     { color: var(--dark) !important; }
.text-white    { color: var(--white) !important; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.fw-400        { font-weight: 400; }
.fw-500        { font-weight: 500; }
.fw-600        { font-weight: 600; }
.fw-700        { font-weight: 700; }
.fw-800        { font-weight: 800; }
.font-mono     { font-family: var(--font-mono); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg  { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-sm  { max-width: 800px;  margin: 0 auto; padding: 0 24px; }

.row           { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col           { flex: 1; padding: 0 12px; }
.col-2         { flex: 0 0 16.666%; max-width: 16.666%; padding: 0 12px; }
.col-3         { flex: 0 0 25%;     max-width: 25%;     padding: 0 12px; }
.col-4         { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 12px; }
.col-5         { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 12px; }
.col-6         { flex: 0 0 50%;     max-width: 50%;     padding: 0 12px; }
.col-7         { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 12px; }
.col-8         { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 12px; }
.col-12        { flex: 0 0 100%;    max-width: 100%;    padding: 0 12px; }

.d-flex        { display: flex; }
.d-grid        { display: grid; }
.align-center  { align-items: center; }
.align-start   { align-items: flex-start; }
.justify-center{ justify-content: center; }
.justify-between{justify-content: space-between; }
.justify-end   { justify-content: flex-end; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.gap-4         { gap: 4px; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.gap-16        { gap: 16px; }
.gap-20        { gap: 20px; }
.gap-24        { gap: 24px; }
.gap-32        { gap: 32px; }
.gap-40        { gap: 40px; }

.grid-2        { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3        { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4        { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5        { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.section       { padding: 80px 0; }
.section-sm    { padding: 48px 0; }
.section-lg    { padding: 120px 0; }

.mt-4  { margin-top: 4px; }  .mb-4  { margin-bottom: 4px; }
.mt-8  { margin-top: 8px; }  .mb-8  { margin-bottom: 8px; }
.mt-12 { margin-top: 12px; } .mb-12 { margin-bottom: 12px; }
.mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; }
.mt-24 { margin-top: 24px; } .mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; } .mb-32 { margin-bottom: 32px; }
.mt-40 { margin-top: 40px; } .mb-40 { margin-bottom: 40px; }
.mt-48 { margin-top: 48px; } .mb-48 { margin-bottom: 48px; }
.mt-64 { margin-top: 64px; } .mb-64 { margin-bottom: 64px; }

.p-8   { padding: 8px; }
.p-12  { padding: 12px; }
.p-16  { padding: 16px; }
.p-20  { padding: 20px; }
.p-24  { padding: 24px; }
.p-32  { padding: 32px; }
.p-40  { padding: 40px; }

.w-full        { width: 100%; }
.h-full        { height: 100%; }
.overflow-hidden { overflow: hidden; }
.relative      { position: relative; }
.absolute      { position: absolute; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover { background: var(--bg); }

.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-danger  { background: var(--danger);  color: var(--white); border-color: var(--danger);  }
.btn-warning { background: var(--warning); color: var(--white); border-color: var(--warning); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-xl { padding: 18px 40px; font-size: 17px; border-radius: var(--radius); }

.btn-icon { padding: 10px; border-radius: var(--radius-sm); }
.btn-icon-sm { padding: 7px; }
.btn-icon-lg { padding: 14px; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-body   { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); }
.card-shadow { box-shadow: var(--shadow); }
.card-shadow:hover { box-shadow: var(--shadow-lg); }

/* Stat Cards */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.stat-icon.primary { background: rgba(10,36,99,.1);  color: var(--primary); }
.stat-icon.accent  { background: rgba(0,180,216,.1); color: var(--accent); }
.stat-icon.success { background: rgba(16,185,129,.1);color: var(--success); }
.stat-icon.warning { background: rgba(245,158,11,.1); color: var(--warning); }
.stat-icon.danger  { background: rgba(239,68,68,.1);  color: var(--danger); }
.stat-info .stat-value { font-size: 28px; font-weight: 800; font-family: var(--font-head); color: var(--dark); line-height: 1; }
.stat-info .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,180,216,.12); }
.form-control::placeholder { color: var(--gray-light); }
.form-control-lg { padding: 14px 20px; font-size: 16px; border-radius: var(--radius); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,180,216,.12); }

.form-hint   { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error  { font-size: 12px; color: var(--danger); margin-top: 4px; }

.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-light); pointer-events: none; }
.input-group-icon + .form-control { padding-left: 42px; }

/* Track form — hero */
.track-form-hero {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 640px;
}
.track-form-hero input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
}
.track-form-hero input::placeholder { color: var(--gray-light); }
.track-form-hero button {
  padding: 18px 28px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.track-form-hero button:hover { background: var(--accent-dark); }

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-primary { background: rgba(10,36,99,.1);   color: var(--primary); }
.badge-accent  { background: rgba(0,180,216,.12); color: var(--accent-dark); }
.badge-success { background: rgba(16,185,129,.1); color: #059669; }
.badge-warning { background: rgba(245,158,11,.1); color: #D97706; }
.badge-danger  { background: rgba(239,68,68,.1);  color: #DC2626; }
.badge-secondary{background: rgba(100,116,139,.1);color: var(--gray); }
.badge-info    { background: rgba(59,130,246,.1); color: #2563EB; }

.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg); }
thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: 14px 16px; font-size: 14px; color: var(--text); vertical-align: middle; }
.table-sm thead th { padding: 10px 14px; }
.table-sm tbody td { padding: 10px 14px; }

/* ============================================================
   NAVBAR — Public
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,36,99,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 68px;
  display: flex;
  align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.3px;
}
.navbar-brand .logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,.75);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); background: rgba(255,255,255,.1); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.navbar-toggle  { display: none; background: none; color: var(--white); font-size: 22px; }
.page-top-pad   { padding-top: 68px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0e3080 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-bg-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,180,216,.2) 0%, transparent 70%);
  right: -100px; top: -100px;
  pointer-events: none;
}
.hero-bg-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,180,216,.1) 0%, transparent 70%);
  left: -50px; bottom: -50px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,180,216,.15);
  border: 1px solid rgba(0,180,216,.3);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,.72); font-size: 17px; max-width: 560px; margin-bottom: 36px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; }
.hero-stat .value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--white); }
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-header h2 { color: var(--dark); margin-bottom: 16px; }
.section-header p  { font-size: 16px; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(0,180,216,.1), rgba(10,36,99,.08));
  color: var(--accent);
}
.feature-card h4 { margin-bottom: 10px; color: var(--dark); }
.feature-card p  { font-size: 14px; }

/* ============================================================
   TRACKING TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -26px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.timeline-dot.active    { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-light), 0 0 12px rgba(0,180,216,.4); }
.timeline-dot.completed { background: var(--success); box-shadow: 0 0 0 2px rgba(16,185,129,.3); }
.timeline-dot.exception { background: var(--danger);  box-shadow: 0 0 0 2px rgba(239,68,68,.3); }
.timeline-time  { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-label { font-weight: 600; font-size: 14px; color: var(--dark); margin-bottom: 2px; }
.timeline-location { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dash-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.dash-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: var(--transition);
}
.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
}
.sidebar-brand .logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.35);
  padding: 12px 8px 6px;
  margin-top: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  position: relative;
}
.sidebar-link:hover  { background: rgba(255,255,255,.08); color: var(--white); }
.sidebar-link.active { background: var(--accent); color: var(--white); font-weight: 600; }
.sidebar-link .icon  { font-size: 16px; width: 20px; text-align: center; }
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--danger);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,.08); }
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user-name  { font-size: 13px; font-weight: 600; color: var(--white); }
.sidebar-user-role  { font-size: 11px; color: rgba(255,255,255,.45); }
.sidebar-company-badge {
  margin: 0 12px 12px;
  background: rgba(0,180,216,.12);
  border: 1px solid rgba(0,180,216,.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.sidebar-company-badge .company-name { font-size: 12px; font-weight: 600; color: var(--accent-light); }
.sidebar-company-badge .company-plan { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .5px; }

/* Main content */
.dash-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.dash-topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0; z-index: 50;
}
.dash-topbar-left { display: flex; align-items: center; gap: 16px; }
.dash-topbar-title { font-size: 18px; font-weight: 700; color: var(--dark); font-family: var(--font-head); }
.dash-topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 17px;
  transition: var(--transition);
  position: relative;
}
.topbar-icon-btn:hover { background: var(--border); color: var(--dark); }
.topbar-icon-btn .notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
}
.dash-content { padding: 28px; flex: 1; }
.dash-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dash-page-header h1 { font-size: 22px; font-weight: 700; color: var(--dark); font-family: var(--font-head); }
.dash-page-header p  { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(16,185,129,.08);  border-color: rgba(16,185,129,.25); color: #065F46; }
.alert-danger  { background: rgba(239,68,68,.08);   border-color: rgba(239,68,68,.25);  color: #991B1B; }
.alert-warning { background: rgba(245,158,11,.08);  border-color: rgba(245,158,11,.25); color: #92400E; }
.alert-info    { background: rgba(59,130,246,.08);  border-color: rgba(59,130,246,.25); color: #1E40AF; }
.alert-close   { margin-left: auto; cursor: pointer; opacity: .5; }
.alert-close:hover { opacity: 1; }

/* ============================================================
   MAP CONTAINER
   ============================================================ */
.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-2);
  position: relative;
}
.map-overlay {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(10,36,99,.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: 13px;
  z-index: 10;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.auth-left {
  width: 45%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
}
.auth-left-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.auth-left .auth-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.auth-left h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 16px; position: relative; z-index: 1; }
.auth-left p  { color: rgba(255,255,255,.65); font-size: 16px; position: relative; z-index: 1; }
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
}
.auth-box {
  width: 100%;
  max-width: 440px;
}
.auth-box h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-box .auth-sub { color: var(--text-muted); margin-bottom: 32px; }
.auth-divider { text-align: center; position: relative; margin: 24px 0; }
.auth-divider::before,
.auth-divider::after { content: ''; position: absolute; top: 50%; width: 45%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span { position: relative; background: var(--bg); padding: 0 12px; font-size: 13px; color: var(--text-muted); }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: .4; }
.empty-state h3   { font-size: 18px; margin-bottom: 8px; color: var(--dark-3); }
.empty-state p    { font-size: 14px; color: var(--text-muted); max-width: 360px; margin: 0 auto 24px; }

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton { background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: 4px; }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
  display: none;
}
.dropdown-menu.show { display: block; animation: dropdown-in .15s ease; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-item.danger:hover { background: rgba(239,68,68,.06); color: var(--danger); }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown-label { padding: 8px 16px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text-muted); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,36,99,.5);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modal-slide .2s ease;
}
@keyframes modal-slide { from { transform: translateY(20px); } to { transform: translateY(0); } }
.modal-header { padding: 24px 28px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 18px; }
.modal-close { font-size: 20px; color: var(--gray); cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body   { padding: 24px 28px; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }
.modal-lg { max-width: 760px; }
.modal-xl { max-width: 1000px; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  cursor: pointer;
}
.tab-btn:hover  { color: var(--primary); }
.tab-btn.active { color: var(--accent); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   FOOTER — Public
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 260px; }
.footer-col h5 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.footer-col a  { display: block; font-size: 14px; color: rgba(255,255,255,.5); padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ============================================================
   UTILITIES
   ============================================================ */
.rounded    { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 100px; }
.shadow    { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.border    { border: 1px solid var(--border); }
.bg-white  { background: var(--white); }
.bg-primary{ background: var(--primary); }
.bg-accent { background: var(--accent); }
.bg-dark   { background: var(--dark); }
.bg-gray   { background: var(--bg); }

.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .dash-main { margin-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 32px; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .col-3, .col-4, .col-6, .col-7, .col-8 { flex: 0 0 100%; max-width: 100%; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .dash-content { padding: 16px; }
  .modal { border-radius: var(--radius); }
}
@media (max-width: 480px) {
  .track-form-hero { flex-direction: column; }
  .track-form-hero button { border-radius: 0 0 var(--radius) var(--radius); }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn-xl { padding: 14px 28px; font-size: 15px; }
}
