/* ============================================================
   SPEEDCOURRIER MARKETPLACE — Global Design System
   Color Palette: Royal Blue + Yolk Orange
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --blue-950: #0a1628;
  --blue-900: #0f2044;
  --blue-800: #142a5e;
  --blue-700: #1a3478;
  --blue-600: #1e3a8a;   /* Royal Blue Primary */
  --blue-500: #2563b0;
  --blue-400: #3b82d4;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --orange-600: #d97706;
  --orange-500: #f59e0b;  /* Yolk Orange Primary */
  --orange-400: #fbbf24;
  --orange-300: #fcd34d;
  --orange-100: #fef3c7;
  --orange-50:  #fffbeb;

  /* Neutrals */
  --gray-950: #0a0a0f;
  --gray-900: #111118;
  --gray-800: #1e1e2e;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  /* Semantic */
  --primary:       var(--blue-600);
  --primary-dark:  var(--blue-700);
  --primary-light: var(--blue-100);
  --accent:        var(--orange-500);
  --accent-dark:   var(--orange-600);
  --accent-light:  var(--orange-100);
  --success:  #10b981;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  --info:     #3b82f6;

  /* Typography */
  --font-sans:    'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Sizes */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-md:  0 8px 28px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.16);
  --shadow-blue: 0 8px 32px rgba(30,58,138,.25);
  --shadow-orange: 0 8px 32px rgba(245,158,11,.30);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --container: 1280px;
  --nav-height: 72px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ── Typography ────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { line-height: 1.7; color: var(--gray-600); }

.text-xs   { font-size: .75rem; }
.text-sm   { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }

.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold{ font-weight: 800; }

.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--gray-500); }
.text-white   { color: var(--white); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.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; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue-500) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  font-weight: 900;
  font-family: var(--font-display);
  box-shadow: var(--shadow-blue);
}

.navbar__logo-text { line-height: 1.1; }
.navbar__logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}
.navbar__logo-sub {
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.navbar__search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.navbar__search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--gray-50);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.navbar__search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
  background: var(--white);
}

.navbar__search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .85rem;
  transition: background var(--transition);
}
.navbar__search-btn:hover { background: var(--blue-700); }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar__link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition), background var(--transition);
}
.navbar__link:hover, .navbar__link.active {
  color: var(--primary);
  background: var(--blue-50);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}
.navbar__cart:hover { background: var(--gray-100); color: var(--primary); }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: white;
  font-size: .6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__hamburger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 1.2rem;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(30,58,138,.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-orange);
}
.btn-accent:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(245,158,11,.4);
}

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

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-200); }

.btn-sm  { padding: 7px 16px; font-size: .8rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-xl  { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-icon { padding: 10px; }
.btn-full { width: 100%; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-body { padding: 20px; }
.card-header { padding: 20px; border-bottom: 1px solid var(--gray-100); }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ── PRODUCT CARD ──────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--gray-100);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-new    { background: var(--primary); color: white; }
.badge-hot    { background: var(--accent); color: white; }
.badge-sale   { background: var(--danger); color: white; }

.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  box-shadow: var(--shadow);
  transition: color var(--transition), transform var(--transition);
}
.product-card__wishlist:hover { color: var(--danger); transform: scale(1.1); }

.product-card__body { padding: 16px; }

.product-card__seller {
  font-size: .75rem;
  color: var(--gray-500);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card__seller span { color: var(--primary); font-weight: 600; }

.product-card__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.stars { color: var(--accent); font-size: .85rem; letter-spacing: 1px; }
.rating-count { font-size: .75rem; color: var(--gray-500); }

.product-card__price { margin-bottom: 12px; }
.price-ngn { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); font-family: var(--font-display); }
.price-xaf { font-size: .8rem; color: var(--gray-500); margin-top: 2px; }
.price-shipping { font-size: .75rem; color: var(--success); display: flex; align-items: center; gap: 3px; }

.product-card__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 8px;
}
.product-card__footer .btn { flex: 1; font-size: .8rem; padding: 8px; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(245,158,11,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 5% 80%, rgba(30,58,138,.4) 0%, transparent 50%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 24px;
  color: var(--orange-300);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero h1 {
  color: white;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 span { color: var(--accent); }

.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.hero__stat-label { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 4px; }

.hero__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}

.hero__card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 20px;
  color: white;
  transition: transform var(--transition-slow);
}
.hero__card:hover { transform: translateY(-4px); }
.hero__card:nth-child(2) { margin-top: 24px; }
.hero__card:nth-child(4) { margin-top: -24px; }

.hero__card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.hero__card-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.hero__card-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.hero__card-sub { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ── SECTION HEADER ────────────────────────────────────────── */
.section-header { text-align: center; max-width: 600px; margin-inline: auto; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block;
  background: var(--blue-50);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid var(--blue-100);
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--gray-500); }

/* ── CATEGORY PILLS ────────────────────────────────────────── */
.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  transition: all var(--transition);
}
.category-pill:hover, .category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}
.category-pill .pill-icon { font-size: 1rem; }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}
.badge-primary { background: var(--blue-100); color: var(--primary); }
.badge-accent  { background: var(--orange-100); color: var(--orange-600); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: var(--orange-100); color: var(--orange-600); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .9rem;
  color: var(--gray-800);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control.error { border-color: var(--danger); }

.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: 5px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 5px; }

/* ── TABLE ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.table { width: 100%; border-collapse: collapse; background: white; }
.table th {
  padding: 14px 16px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.table td {
  padding: 14px 16px;
  font-size: .875rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-50); }

/* ── AVATAR ────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}
.avatar-sm  { width: 32px; height: 32px; font-size: .8rem; }
.avatar-md  { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg  { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar-xl  { width: 90px; height: 90px; font-size: 1.8rem; }

/* ── STAT CARDS ────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transform: translate(30px, -30px);
  opacity: .08;
}
.stat-card.blue::before { background: var(--primary); }
.stat-card.orange::before { background: var(--accent); }
.stat-card.green::before { background: var(--success); }
.stat-card.red::before { background: var(--danger); }

.stat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.stat-card.blue .stat-card__icon { background: var(--blue-50); color: var(--primary); }
.stat-card.orange .stat-card__icon { background: var(--orange-50); color: var(--orange-600); }
.stat-card.green .stat-card__icon { background: #d1fae5; color: #065f46; }
.stat-card.red .stat-card__icon { background: #fee2e2; color: #991b1b; }

.stat-card__value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-card__label { font-size: .8rem; color: var(--gray-500); margin-top: 4px; font-weight: 500; }
.stat-card__change { 
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; margin-top: 10px;
  padding: 3px 8px; border-radius: var(--radius-full);
}
.stat-card__change.up   { background: #d1fae5; color: #065f46; }
.stat-card__change.down { background: #fee2e2; color: #991b1b; }

/* ── SIDEBAR / DASHBOARD LAYOUT ────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--gray-50);
}

.sidebar {
  background: var(--blue-950);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar__head {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar__logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--orange-600) 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: white;
  font-family: var(--font-display);
}

.sidebar__logo-name { font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: white; }
.sidebar__logo-role { font-size: .7rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.sidebar__nav { padding: 16px 12px; flex: 1; }

.sidebar__section-title {
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 12px 10px 6px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all var(--transition);
  position: relative;
}
.sidebar__link:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); }
.sidebar__link.active {
  background: rgba(245,158,11,.15);
  color: var(--orange-300);
}
.sidebar__link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.sidebar__link-icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar__link-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar__footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar__user-name { font-size: .85rem; font-weight: 600; color: white; }
.sidebar__user-email { font-size: .72rem; color: rgba(255,255,255,.4); }
.sidebar__logout {
  margin-left: auto;
  color: rgba(255,255,255,.4);
  font-size: 1rem;
  transition: color var(--transition);
}
.sidebar__logout:hover { color: var(--danger); }

.dashboard-content { padding: 32px; overflow-y: auto; }
.dashboard-header { margin-bottom: 32px; }
.dashboard-title { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); }
.dashboard-subtitle { color: var(--gray-500); margin-top: 4px; }

/* ── TOAST ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--gray-900);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight .3s ease;
  min-width: 260px;
  border-left: 4px solid var(--success);
}
.toast.error { border-left-color: var(--danger); }
.toast.info  { border-left-color: var(--info); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-300); }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--blue-950);
  color: rgba(255,255,255,.7);
  padding-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 4px;
}
.footer__brand-sub { color: var(--accent); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.footer__brand-desc { font-size: .875rem; line-height: 1.7; margin-top: 16px; max-width: 280px; }

.footer__heading {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  font-size: .8rem;
}

.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--accent); color: white; }

/* ── ROUTE BANNER ──────────────────────────────────────────── */
.route-banner {
  background: linear-gradient(90deg, var(--primary) 0%, var(--blue-500) 100%);
  color: white;
  padding: 12px 0;
}
.route-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: .85rem;
  font-weight: 600;
}
.route-stop {
  display: flex;
  align-items: center;
  gap: 6px;
}
.route-flag { font-size: 1.1rem; }
.route-arrow { color: var(--accent); font-size: .8rem; font-weight: 900; }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.animate-fadeUp  { animation: fadeUp .6s ease forwards; }
.animate-fadeIn  { animation: fadeIn .6s ease forwards; }
.animate-float   { animation: float 3s ease-in-out infinite; }
.animate-pulse   { animation: pulse 2s ease infinite; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.sticky-top { position: sticky; top: 0; z-index: 100; }

.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.p-4   { padding: 16px; }
.p-6   { padding: 24px; }
.p-8   { padding: 32px; }

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

.bg-white   { background: white; }
.bg-primary { background: var(--primary); }
.bg-accent  { background: var(--accent); }
.bg-gray-50 { background: var(--gray-50); }

.currency-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
}
.currency-toggle button {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: all var(--transition);
}
.currency-toggle button.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(30,58,138,.2);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__grid { gap: 40px; }
}

@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .navbar__search { display: none; }
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-content { padding: 20px; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 56px; }
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
