/* ── RedLogi — Design System v4 ───────────────────────────────────────────── */
/* RedCup Logistics — Courier-first platform for Nairobi                      */
/* Palette: #16610E · #F97A00 · #FED16A · #FFF4A4                            */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

:root {
  --primary: #16610E;
  --primary-dark: #0d4008;
  --primary-light: #1e7a14;
  --accent: #F97A00;
  --accent-light: #FF9933;
  --accent-glow: rgba(249, 122, 0, 0.18);
  --gold: #FED16A;
  --gold-light: #FFE08A;
  --gold-glow: rgba(254, 209, 106, 0.18);
  --bg: #FFFDF5;
  --bg-warm: #FFF9E6;
  --card: #ffffff;
  --card-warm: #FFFCF0;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text: #1a2e1a;
  --text-muted: #6b7a6b;
  --border: #dde5dd;
  --success: #16610E;
  --success-bg: #e8f5e0;
  --warning: #FED16A;
  --warning-bg: #fef8e1;
  --danger: #c0392b;
  --danger-bg: #fde8e8;
  --info: #2980b9;
  --info-bg: #e1f0fa;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 50px;
  --shadow: 0 2px 16px rgba(22, 97, 14, 0.06);
  --shadow-lg: 0 8px 32px rgba(22, 97, 14, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --grad-primary: linear-gradient(135deg, #16610E 0%, #1e7a14 60%, #28a018 100%);
  --grad-gold: linear-gradient(135deg, #FED16A 0%, #FFE08A 50%, #FFF4A4 100%);
  --grad-hero: linear-gradient(135deg, #0d4008 0%, #16610E 40%, #1e7a14 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #FFFDF5 100%);
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,253,245,0.5) 100%);
  --grad-dark: linear-gradient(135deg, #1a2e1a 0%, #16610E 100%);
  --grad-warm: linear-gradient(135deg, #FFFCF0 0%, #FFFDF5 100%);
  --grad-accent: linear-gradient(135deg, #F97A00 0%, #FF9933 60%, #FFB366 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ── ANIMATED MESH BACKGROUND ────────────────────────────────────────────── */
.animated-bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1; overflow: hidden; background: var(--bg);
}
.animated-bg::before, .animated-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; will-change: transform;
}
.animated-bg::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249, 122, 0, 0.4), transparent 70%);
  top: -10%; left: -5%; animation: blobDrift1 18s ease-in-out infinite alternate;
}
.animated-bg::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(254, 209, 106, 0.35), transparent 70%);
  bottom: -10%; right: -5%; animation: blobDrift2 22s ease-in-out infinite alternate;
}
.animated-bg__orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.2; will-change: transform; }
.animated-bg__orb--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22, 97, 14, 0.5), transparent 70%);
  top: 40%; left: 50%; animation: blobDrift3 25s ease-in-out infinite alternate;
}
@keyframes blobDrift1 { 0%{transform:translate(0,0)scale(1)} 50%{transform:translate(100px,80px)scale(1.1)} 100%{transform:translate(120px,60px)scale(1.05)} }
@keyframes blobDrift2 { 0%{transform:translate(0,0)scale(1)} 50%{transform:translate(-80px,-60px)scale(1.08)} 100%{transform:translate(-60px,-80px)scale(1.03)} }
@keyframes blobDrift3 { 0%{transform:translate(-50%,-50%)scale(1)} 50%{transform:translate(-30%,-40%)scale(1.15)} 100%{transform:translate(-60%,-55%)scale(.9)} }
@media (prefers-reduced-motion: reduce) { .animated-bg::before, .animated-bg::after, .animated-bg__orb { animation: none; } }

/* ── UNIFIED NAV BAR ────────────────────────────────────────────────────── */
.nav {
  background: linear-gradient(180deg, rgba(13,64,8,0.92) 0%, rgba(22,97,14,0.85) 60%, rgba(30,122,20,0.6) 100%);
  color: #fff; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1000; height: 48px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
}
.nav__logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: 3px; font-style: italic;
  background: linear-gradient(90deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav__truck {
  width: 40px; height: auto; display: block; flex-shrink: 0;
}
.nav__links {
  display: flex; align-items: center; gap: 6px;
}
.nav__link {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}
.nav__link:hover {
  color: #fff; background: rgba(255,255,255,0.1);
}
.nav__link--active {
  color: #fff; background: rgba(255,255,255,0.18);
}
.nav__logout {
  background: none; border: none; color: rgba(255,255,255,0.55);
  font-size: 0.68rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.5px; padding: 6px 10px; border-radius: var(--radius-pill);
  font-family: inherit; transition: color 0.2s var(--ease);
}
.nav__logout:hover { color: #fff; }

/* ── LEGACY HEADER (kept for non-nav pages) ──────────────────────────────── */
.header {
  background: var(--grad-hero); color: #fff; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header h1 {
  font-size: 1.3rem; font-weight: 800; letter-spacing: 3px; font-style: italic;
  background: linear-gradient(90deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header .badge {
  background: var(--grad-gold); color: var(--primary-dark);
  padding: 4px 14px; border-radius: var(--radius-pill);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 1.5px;
  box-shadow: 0 2px 8px rgba(254, 209, 106, 0.3);
}

/* ── TRUCK ANIMATION ─────────────────────────────────────────────────────── */
.truck-loader { display: flex; align-items: center; justify-content: center; width: fit-content; margin: 0 auto; }
.truck-wrapper { width: 160px; height: 68px; display: flex; flex-direction: column; position: relative; align-items: center; justify-content: flex-end; overflow-x: hidden; }
.truck-body { width: 110px; height: fit-content; margin-bottom: 4px; animation: truckBounce 1s linear infinite; }
.truck-body svg { width: 100%; height: auto; }
@keyframes truckBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(2px)} }
.truck-tires { width: 110px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 12px; position: absolute; bottom: 0; }
.truck-tires svg { width: 20px; height: 20px; }
.truck-road { width: 100%; height: 1.5px; background: var(--primary); position: relative; bottom: 0; align-self: flex-end; border-radius: 3px; }
.truck-road::before { content: ''; position: absolute; width: 16px; height: 100%; background: var(--primary); right: -50%; border-radius: 3px; animation: roadScroll 1.4s linear infinite; border-left: 8px solid var(--bg); }
.truck-road::after { content: ''; position: absolute; width: 8px; height: 100%; background: var(--primary); right: -65%; border-radius: 3px; animation: roadScroll 1.4s linear infinite; border-left: 4px solid var(--bg); }
@keyframes roadScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-280px)} }
.header .truck-loader { margin: 0; }
.header .truck-wrapper { width: 100px; height: 42px; }
.header .truck-body { width: 68px; margin-bottom: 2px; }
.header .truck-tires { width: 68px; }
.header .truck-tires svg { width: 14px; height: 14px; }
.header .truck-road { background: rgba(255,255,255,0.3); }
.header .truck-road::before { border-left-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.3); }
.header .truck-road::after { border-left-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.3); }

/* ── BENTO GRID LAYOUT ──────────────────────────────────────────────────── */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.bento-dash {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  grid-template-rows: 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  padding: 10px;
  min-height: 0;
  overflow: hidden;
}

.t-map {
  grid-column: 1;
  grid-row: 1 / 6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  min-height: 0;
  border: 1px solid var(--glass-border);
}
.t-map #map { width: 100%; height: 100%; }

/* Middle col tiles */
.t-pickup  { grid-column: 2; grid-row: 1; }
.t-dropoff { grid-column: 2; grid-row: 2; }
.t-vehicle { grid-column: 2; grid-row: 3; }
.t-info    { grid-column: 2; grid-row: 4; }

/* Right col: tall form card + scroll */
.t-form {
  grid-column: 3;
  grid-row: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.t-form .form-group { margin-bottom: 0; }
.t-form .form-group label { font-size: 0.65rem; }
.t-form .form-group input, .t-form .form-group textarea { padding: 10px 12px; font-size: 0.88rem; }
.t-form .tile { flex-shrink: 0; }

/* Bottom action row */
.t-action-l { grid-column: 2; grid-row: 5; display: flex; align-items: center; }
.t-action-r { grid-column: 3; grid-row: 5; display: flex; align-items: center; }
.t-action-r .btn { height: auto; max-height: 52px; }

/* Confirmed/tracking views fill the grid */
.view-alt {
  grid-column: 1 / -1;
  grid-row: 1 / 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.view-alt__inner {
  max-width: 480px;
  width: 100%;
}

/* Mobile: single column scrollable */
@media (max-width: 768px) {
  html, body { overflow: auto !important; }
  .app { height: auto !important; min-height: auto; }

  .bento-dash {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    overflow: visible;
    min-height: auto;
  }

  .t-map {
    height: 35vh;
    min-height: 200px;
    max-height: 280px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  .t-pickup, .t-dropoff { flex-shrink: 0; }

  .t-vehicle { flex-shrink: 0; }
  .t-vehicle .vehicle-select { gap: 6px; }

  .t-info { flex-shrink: 0; }

  .t-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
  }

  .t-action-l, .t-action-r { flex-shrink: 0; }
  .t-action-r .btn { padding: 12px 20px; height: auto !important; }

  .view-alt {
    min-height: 70vh;
    padding: 16px;
  }

  .nav__logo { font-size: 0.95rem; letter-spacing: 2px; }
  .nav__link { font-size: 0.7rem; padding: 5px 10px; }
  .nav { height: 44px; padding: 0 12px; }
}

/* ── MAP ─────────────────────────────────────────────────────────────────── */
#map { width: 100%; height: 44vh; min-height: 280px; z-index: 1; }
.map-mode-bar { position: absolute; top: 14px; left: 0; right: 0; z-index: 999; text-align: center; pointer-events: none; }
.map-mode-pill {
  display: inline-block; padding: 10px 24px; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.3px; pointer-events: auto;
  backdrop-filter: blur(12px); animation: pulseGlow 1.5s ease-in-out infinite;
}
.map-mode-pill--pickup { background: linear-gradient(135deg, rgba(249,122,0,0.95), rgba(255,153,51,0.85)); color: #fff; box-shadow: 0 4px 20px rgba(249, 122, 0, 0.4); }
.map-mode-pill--dropoff { background: linear-gradient(135deg, rgba(254,209,106,0.95), rgba(255,224,138,0.85)); color: var(--primary-dark); box-shadow: 0 4px 20px rgba(254, 209, 106, 0.4); }
@keyframes pulseGlow { 0%,100%{transform:scale(1)} 50%{transform:scale(1.03);box-shadow:0 6px 28px rgba(249,122,0,0.5)} }

/* ── CARDS ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--grad-card); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card--warm { background: var(--grad-warm); }
.card--active { border-left: 4px solid var(--accent); }
.card--hero { background: var(--grad-hero); color: #fff; padding: 32px 28px; border: none; }
.card--hero .text-muted { color: rgba(255,255,255,0.6); }
.card--gold { background: var(--grad-gold); color: var(--primary-dark); padding: 32px 28px; border: none; }

/* ── TILE (bento) ────────────────────────────────────────────────────────── */
.tile {
  background: var(--grad-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center;
  min-height: 0; position: relative; transition: all 0.35s var(--ease);
}
.tile--click { cursor: pointer; }
.tile--click:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(249,122,0,0.2); }
.tile--active { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-lg); background: linear-gradient(135deg, rgba(249,122,0,0.05) 0%, rgba(255,255,255,0.9) 100%); }
.tile--set { border: 2px solid var(--accent); background: linear-gradient(135deg, rgba(249,122,0,0.04) 0%, rgba(255,255,255,0.95) 100%); }
.tile--set-gold { border: 2px solid var(--gold); background: linear-gradient(135deg, rgba(254,209,106,0.06) 0%, rgba(255,255,255,0.95) 100%); }
.tile__label { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 4px; }
.tile__value { font-size: 0.95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__big { font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.tile__sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.tile__clear { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--danger-bg); color: var(--danger); font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s var(--ease); }
.tile__clear:hover { transform: scale(1.15); }

/* ── VEHICLE SELECTOR ────────────────────────────────────────────────────── */
.vehicle-select { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vehicle-card { padding: 14px 10px; border-radius: var(--radius-sm); border: 2px solid var(--border); cursor: pointer; text-align: center; transition: all 0.3s var(--ease); background: var(--card); }
.vehicle-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.vehicle-card--active { border-color: var(--accent); background: linear-gradient(135deg, rgba(249,122,0,0.08) 0%, rgba(255,255,255,1) 100%); box-shadow: 0 0 0 4px var(--accent-glow); }
.vehicle-card__icon { font-size: 1.6rem; margin-bottom: 4px; }
.vehicle-card__name { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.vehicle-card__info { font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }

/* ── PARCEL SIZE SELECTOR ────────────────────────────────────────────────── */
.size-select { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.size-btn { padding: 10px 4px; border-radius: var(--radius-sm); border: 2px solid var(--border); cursor: pointer; text-align: center; transition: all 0.3s var(--ease); background: var(--card); }
.size-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.size-btn--active { border-color: var(--gold); background: linear-gradient(135deg, rgba(254,209,106,0.1) 0%, rgba(255,255,255,1) 100%); box-shadow: 0 0 0 3px var(--gold-glow); }
.size-btn__label { font-size: 0.9rem; font-weight: 800; display: block; }
.size-btn__weight { font-size: 0.55rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* ── MODE TOGGLE ─────────────────────────────────────────────────────────── */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-pill); overflow: hidden; border: 2px solid var(--border); background: var(--card); }
.mode-toggle__btn { padding: 10px; text-align: center; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.3s var(--ease); border: none; background: transparent; font-family: inherit; color: var(--text-muted); }
.mode-toggle__btn--active { background: var(--grad-primary); color: #fff; }

/* ── DEMAND BANNER ───────────────────────────────────────────────────────── */
.demand-banner { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 999; padding: 8px 20px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px; backdrop-filter: blur(12px); pointer-events: none; white-space: nowrap; }
.demand-banner--available { background: rgba(22,97,14,0.9); color: #fff; box-shadow: 0 2px 12px rgba(22,97,14,0.3); }
.demand-banner--busy { background: rgba(254,209,106,0.92); color: var(--primary-dark); }
.demand-banner--none { background: rgba(192,57,43,0.85); color: #fff; }

/* ── PRICE DISPLAY ───────────────────────────────────────────────────────── */
.price-display { text-align: center; }
.price-display__amount { font-size: 1.6rem; font-weight: 800; background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-display__label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── FORMS ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.68rem; font-weight: 800; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; background: var(--card); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: none; border-radius: var(--radius-pill); font-size: 0.95rem; font-weight: 700; font-family: inherit; cursor: pointer; text-align: center; width: 100%; letter-spacing: 0.3px; transition: transform 0.2s var(--ease-spring), box-shadow 0.3s var(--ease); position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 0; left: -100%; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s var(--ease); }
.btn:hover::before { left: 100%; }
.btn:active { transform: scale(0.96); }
.btn--primary { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 18px rgba(22, 97, 14, 0.35); }
.btn--primary:hover { box-shadow: 0 8px 30px rgba(22, 97, 14, 0.45); transform: translateY(-2px); }
.btn--accent { background: var(--grad-accent); color: #fff; box-shadow: 0 4px 18px rgba(249, 122, 0, 0.35); }
.btn--accent:hover { box-shadow: 0 8px 30px rgba(249, 122, 0, 0.45); transform: translateY(-2px); }
.btn--gold { background: var(--grad-gold); color: var(--primary-dark); box-shadow: 0 4px 18px rgba(254, 209, 106, 0.35); }
.btn--gold:hover { box-shadow: 0 8px 30px rgba(254, 209, 106, 0.45); transform: translateY(-2px); }
.btn--success { background: linear-gradient(135deg, var(--success), var(--primary-light)); color: #fff; }
.btn--danger { background: linear-gradient(135deg, var(--danger), #e74c3c); color: #fff; }
.btn--outline { background: var(--glass); backdrop-filter: blur(8px); border: 2px solid var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.btn--sm { padding: 9px 20px; font-size: 0.85rem; width: auto; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn:disabled::before { display: none; }

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes tileEnter { from{opacity:0;transform:translateY(16px)scale(.96)} to{opacity:1;transform:translateY(0)scale(1)} }
.tile-enter { animation: tileEnter 0.5s var(--ease) both; }
.tile-enter:nth-child(1){animation-delay:.04s} .tile-enter:nth-child(2){animation-delay:.08s}
.tile-enter:nth-child(3){animation-delay:.12s} .tile-enter:nth-child(4){animation-delay:.16s}
.tile-enter:nth-child(5){animation-delay:.20s} .tile-enter:nth-child(6){animation-delay:.24s}
.tile-enter:nth-child(7){animation-delay:.28s} .tile-enter:nth-child(8){animation-delay:.32s}
.view-enter { animation: viewSlideIn 0.45s var(--ease) both; }
@keyframes viewSlideIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ── STATUS BADGES ───────────────────────────────────────────────────────── */
.status { display: inline-block; padding: 4px 14px; border-radius: var(--radius-pill); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.status--requested { background: var(--warning-bg); color: #8a6d1b; }
.status--assigned { background: var(--info-bg); color: #1d4e8a; }
.status--accepted { background: var(--success-bg); color: var(--primary); }
.status--en_route_to_pickup { background: linear-gradient(135deg, rgba(249,122,0,0.12), rgba(255,153,51,0.08)); color: #b35a00; }
.status--parcel_collected { background: var(--success-bg); color: var(--primary); }
.status--en_route_to_delivery { background: linear-gradient(135deg, rgba(249,122,0,0.15), rgba(254,209,106,0.1)); color: #b35a00; }
.status--delivered { background: linear-gradient(135deg, var(--success-bg), #d4edcc); color: var(--primary); }
.status--delivery_failed { background: var(--danger-bg); color: var(--danger); }
.status--cancelled { background: var(--danger-bg); color: var(--danger); }

/* ── TABLE ────────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }
tr:hover { background: var(--card-warm); }

/* ── OTP ──────────────────────────────────────────────────────────────────── */
.otp-display { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.otp-digit { width: 48px; height: 56px; border-radius: var(--radius-sm); background: var(--card); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: var(--primary); box-shadow: 0 2px 8px var(--accent-glow); }
.otp-input { display: flex; justify-content: center; gap: 8px; }
.otp-input input { width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 800; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; }
.otp-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── UTILITY ─────────────────────────────────────────────────────────────── */
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}
.text-center{text-align:center} .text-muted{color:var(--text-muted)} .text-sm{font-size:.85rem}
.text-xs{font-size:.75rem} .text-lg{font-size:1.2rem} .text-bold{font-weight:700}
.text-gold{color:var(--gold)} .hidden{display:none!important}
.flex{display:flex} .flex-between{display:flex;justify-content:space-between;align-items:center}
.flex-col{display:flex;flex-direction:column} .gap-1{gap:8px} .gap-2{gap:14px}
.container{max-width:480px;margin:0 auto;padding:0 20px} .container--wide{max-width:960px}
