/* LSC Courier — Custom Styles */
/* Loaded alongside Tailwind CDN */

:root {
  --lsc-blue:    #1a56db;
  --lsc-dark:    #0f172a;
  --lsc-mid:     #1e3a5f;
  --lsc-light:   #f0f6ff;
  --lsc-border:  #e2e8f0;
  --lsc-text:    #1e293b;
  --lsc-muted:   #64748b;
  --lsc-success: #16a34a;
  --lsc-warn:    #d97706;
  --lsc-danger:  #dc2626;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--lsc-text);
  background: #f8fafc;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────────── */
.lsc-heading {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--lsc-dark);
}
.lsc-subtext { color: var(--lsc-muted); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--lsc-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lsc-text);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.nav-link:hover  { background: var(--lsc-light); color: var(--lsc-blue); }
.nav-link.active { background: var(--lsc-light); color: var(--lsc-blue); font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary  { background: var(--lsc-blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #1648c0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,86,219,0.3); }
.btn-outline  { background: transparent; color: var(--lsc-blue); border: 1.5px solid var(--lsc-blue); }
.btn-outline:hover:not(:disabled) { background: var(--lsc-light); }
.btn-ghost    { background: transparent; color: var(--lsc-muted); }
.btn-ghost:hover { background: #f1f5f9; color: var(--lsc-text); }
.btn-danger   { background: var(--lsc-danger); color: #fff; }
.btn-success  { background: var(--lsc-success); color: #fff; }
.btn-sm       { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg       { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full     { width: 100%; justify-content: center; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--lsc-border);
  border-radius: 12px;
  overflow: hidden;
}
.card-body    { padding: 1.5rem; }
.card-header  { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--lsc-border); background: #fafbfc; }
.card-footer  { padding: 1rem 1.5rem; border-top: 1px solid var(--lsc-border); background: #fafbfc; }
.card-shadow  { box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04); }

/* ── Form controls ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lsc-text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.form-label .req { color: var(--lsc-danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--lsc-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--lsc-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus { border-color: var(--lsc-blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.12); }
.form-control.error { border-color: var(--lsc-danger); }
.form-error { font-size: 0.78rem; color: var(--lsc-danger); margin-top: 0.3rem; }
.form-hint  { font-size: 0.78rem; color: var(--lsc-muted); margin-top: 0.3rem; }
select.form-control { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 1.2em; padding-right: 2.5rem; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-received  { background: #dbeafe; color: #1e40af; }
.badge-transit   { background: #e0e7ff; color: #3730a3; }
.badge-hub       { background: #ede9fe; color: #5b21b6; }
.badge-ofd       { background: #fce7f3; color: #9d174d; }
.badge-delivered { background: #dcfce7; color: #14532d; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-paid      { background: #dcfce7; color: #14532d; }
.badge-unpaid    { background: #fee2e2; color: #991b1b; }
.badge-default   { background: #f1f5f9; color: #475569; }

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.spinner-lg { width: 2.5rem; height: 2.5rem; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton loader ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-anim 1.4s infinite;
  border-radius: 6px;
}
@keyframes skeleton-anim {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Hero section ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3e%3cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='white' stroke-width='0.4' opacity='0.06'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23grid)'/%3e%3c/svg%3e");
  pointer-events: none;
}

/* ── Quote widget ────────────────────────────────────────────── */
.quote-widget {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
}
.quote-result {
  background: var(--lsc-light);
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
}
.quote-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--lsc-blue);
  letter-spacing: -0.03em;
}

/* ── Tracking timeline ───────────────────────────────────────── */
.timeline { position: relative; }
.timeline-step {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 2.4rem;
  bottom: 0;
  width: 2px;
  background: var(--lsc-border);
}
.timeline-step.completed::before { background: var(--lsc-blue); }
.timeline-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid var(--lsc-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  color: var(--lsc-muted);
}
.timeline-step.completed .timeline-icon {
  background: var(--lsc-blue);
  border-color: var(--lsc-blue);
  color: #fff;
}
.timeline-step.active .timeline-icon {
  background: #fff;
  border-color: var(--lsc-blue);
  color: var(--lsc-blue);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.15);
}
.timeline-content { padding-top: 0.1rem; }
.timeline-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--lsc-text);
}
.timeline-step:not(.completed):not(.active) .timeline-label { color: var(--lsc-muted); }
.timeline-sub { font-size: 0.78rem; color: var(--lsc-muted); margin-top: 0.15rem; }

/* ── Data table ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--lsc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--lsc-border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--lsc-text);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafbff; }

/* ── Stat cards ──────────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid var(--lsc-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--lsc-dark); letter-spacing: -0.03em; }
.stat-label { font-size: 0.8rem; color: var(--lsc-muted); font-weight: 500; }

/* ── Step form (booking) ─────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.step-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--lsc-border);
  background: #fff;
  color: var(--lsc-muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item.done .step-dot   { background: var(--lsc-blue); border-color: var(--lsc-blue); color: #fff; }
.step-item.active .step-dot { border-color: var(--lsc-blue); color: var(--lsc-blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.15); }
.step-label { font-size: 0.72rem; font-weight: 600; color: var(--lsc-muted); margin-top: 0.3rem; text-align: center; white-space: nowrap; }
.step-item.done .step-label, .step-item.active .step-label { color: var(--lsc-blue); }
.step-line { flex: 1; min-width: 1.5rem; height: 2px; background: var(--lsc-border); margin: 0 0.25rem; }
.step-item.done + .step-line { background: var(--lsc-blue); }

/* ── Alert ───────────────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warn    { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert svg { flex-shrink: 0; margin-top: 1px; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--lsc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--lsc-border); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── Sidebar (admin) ─────────────────────────────────────────── */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--lsc-dark);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  margin: 0.1rem 0.75rem;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-link.active { background: var(--lsc-blue); color: #fff; }

/* ── Payment method selector ─────────────────────────────────── */
.payment-method {
  border: 2px solid var(--lsc-border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.payment-method:hover  { border-color: #93c5fd; background: #f0f6ff; }
.payment-method.selected { border-color: var(--lsc-blue); background: var(--lsc-light); }
.payment-method input[type="radio"] { display: none; }
.method-logo {
  width: 2.5rem; height: 2.5rem;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-blue   { color: var(--lsc-blue); }
.text-dark   { color: var(--lsc-dark); }
.text-muted  { color: var(--lsc-muted); }
.text-danger { color: var(--lsc-danger); }
.text-success{ color: var(--lsc-success); }
.divider { height: 1px; background: var(--lsc-border); margin: 1.25rem 0; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .quote-widget {
        display: none;
    }
  .sidebar { display: none; }
  .sidebar.mobile-open { display: flex; position: fixed; z-index: 150; top: 0; left: 0; height: 100%; }
  .mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 140; display: none; }
  .mobile-overlay.open { display: block; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.4rem; }
  .card-body  { padding: 1.125rem; }
  .data-table { font-size: 0.8rem; }
  .data-table thead th,
  .data-table tbody td { padding: 0.65rem 0.75rem; }
  .quote-price { font-size: 1.7rem; }
}

/* ── Print / receipt ─────────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ════════════════════════════════════════════════════════════
   LSC Courier — Mobile App-Like Enhancements (v2)
   ════════════════════════════════════════════════════════════ */

:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
  --nav-h:       60px;
  --bottom-h:    64px;
}

/* ── Mobile: push page content above bottom nav ─────────────── */
@media (max-width: 899px) {
  body { padding-bottom: calc(var(--bottom-h) + var(--safe-bottom)); }
  .navbar { display: none; }       /* replaced by top mobile bar */
  footer:not(.lsc-footer) { display: none; } /* replaced by bottom tab bar */
  .lsc-footer { display: block !important; margin-bottom: calc(var(--bottom-h) + var(--safe-bottom)); }
  .quote-widget { display: block !important; border-radius: 12px; }
}

/* ── Mobile top bar ─────────────────────────────────────────── */
.mob-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--lsc-dark);
  padding: calc(var(--safe-top) + .6rem) 1rem .6rem;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
@media (max-width: 899px) { .mob-topbar { display: flex; } }
.mob-logo {
  font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.mob-logo span { color: #60a5fa; }
.mob-icon-btn {
  background: rgba(255,255,255,.1);
  border: none; border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; flex-shrink: 0;
  text-decoration: none;
}

/* ── Bottom tab bar (mobile only) ───────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 120;
  background: #fff;
  border-top: 1px solid var(--lsc-border);
  height: calc(var(--bottom-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,.07);
}
@media (max-width: 899px) { .bottom-nav { display: flex; } }
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--lsc-muted);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .5rem .25rem;
  transition: color .15s;
  position: relative;
}
.bn-item.active { color: var(--lsc-blue); }
.bn-item.active svg { stroke: var(--lsc-blue); }
.bn-item svg { stroke: var(--lsc-muted); transition: stroke .15s; }
.bn-item:hover:not(.active) { color: var(--lsc-text); }
/* Active indicator bar */
.bn-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: var(--lsc-blue);
  border-radius: 0 0 4px 4px;
}
/* Book fab-style highlight */
.bn-item.bn-book {
  color: #fff;
}
.bn-book-inner {
  background: var(--lsc-blue);
  border-radius: 14px;
  width: 46px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: -2px;
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
}
.bn-item.bn-book svg { stroke: #fff; }

/* ── Mobile page layout ─────────────────────────────────────── */
.mob-page {
  min-height: 100dvh;
  background: #f0f6ff;
}
@media (min-width: 900px) { .mob-page { background: #f8fafc; } }

/* ── Mobile cards: no border on xs ─────────────────────────── */
@media (max-width: 480px) {
  .card { border-radius: 12px; }
  .card-body { padding: 1rem; }
  .modal-box { border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}

/* ── Pull-to-refresh hint (cosmetic) ────────────────────────── */
.ptr-hint {
  text-align: center;
  font-size: .75rem;
  color: var(--lsc-muted);
  padding: .75rem 0 .25rem;
  display: none;
}
@media (max-width: 899px) { .ptr-hint { display: block; } }

/* ── Touch-friendly tap targets ─────────────────────────────── */
@media (max-width: 899px) {
  .btn { min-height: 44px; }
  .form-control { min-height: 44px; font-size: 16px; /* prevent iOS zoom */ }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
}

/* ── App-like section headers ───────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .875rem;
}
.section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lsc-muted);
}
.section-action {
  font-size: .8rem;
  font-weight: 600;
  color: var(--lsc-blue);
  text-decoration: none;
}

/* ── Horizontal scroll strip (shipment quick cards) ─────────── */
.h-scroll-strip {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: .25rem .25rem 1rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.h-scroll-strip::-webkit-scrollbar { display: none; }
.h-strip-card {
  min-width: 220px;
  scroll-snap-align: start;
  background: linear-gradient(135deg, var(--lsc-dark), var(--lsc-mid));
  border-radius: 14px;
  padding: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.h-strip-card.delivered  { background: linear-gradient(135deg, #14532d, #16a34a); }
.h-strip-card.in_transit { background: linear-gradient(135deg, #1e3a8a, #1a56db); }
.h-strip-card.pending    { background: linear-gradient(135deg, #78350f, #d97706); }

/* ── Notification toast ─────────────────────────────────────── */
#lsc-toast {
  position: fixed;
  bottom: calc(var(--bottom-h) + var(--safe-bottom) + 1rem);
  left: 50%; transform: translateX(-50%) translateY(10px);
  z-index: 300;
  background: #1e293b;
  color: #fff;
  padding: .65rem 1.25rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
#lsc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) {
  #lsc-toast { bottom: 1.5rem; }
}

/* ── Sidebar section labels (added v3) ───────────────────── */
.sb-section-label {
  padding: .4rem 1rem .2rem;
  font-size: .65rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ═══════════════════════════════════════════════════════════════
   NEW HOMEPAGE & DRIVER PAGES — v3
═══════════════════════════════════════════════════════════════ */

/* ── Section scaffolding ─────────────────────────────────────── */
.lsc-section        { padding: 5rem 0; }
.lsc-section-white  { background: #fff; }
.lsc-section-light  { background: #f8fafc; }

.lsc-section-head   { text-align: center; margin-bottom: 3.5rem; }
.lsc-overline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lsc-blue);
  margin-bottom: 0.5rem;
}
.lsc-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--lsc-dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.lsc-section-sub {
  font-size: 1rem;
  color: var(--lsc-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Badge pill ──────────────────────────────────────────────── */
.lsc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,86,219,0.1);
  color: var(--lsc-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.lsc-badge-pill-light {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ══ HERO ═══════════════════════════════════════════════════════ */
.lsc-hero {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #0f2d52 55%, #1a3a7c 100%);
  overflow: hidden;
  padding: 5rem 0 4rem;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.lsc-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(26,86,219,0.18) 0%, transparent 70%),
    url("data:image/svg+xml,%3csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3e%3cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='white' stroke-width='0.5' opacity='0.04'/%3e%3c/pattern%3e%3c/defs%3e%3crect width='100%25' height='100%25' fill='url(%23g)'/%3e%3c/svg%3e");
  pointer-events: none;
}
.lsc-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .lsc-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .lsc-hero-quote-wrap { order: -1; }
}

.lsc-hero-copy { color: #fff; }
.lsc-hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}
.lsc-hero-accent {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lsc-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.lsc-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.lsc-hero-btn-primary {
  background: var(--lsc-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,86,219,0.4);
}
.lsc-hero-btn-primary:hover { background: #1648c0; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,86,219,0.45); }
.lsc-hero-btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.lsc-hero-btn-ghost:hover { background: rgba(255,255,255,0.18); }

.lsc-hero-stats { display: flex; gap: 0; align-items: center; }
.lsc-hero-stat  { padding: 0 1.25rem; }
.lsc-hero-stat:first-child { padding-left: 0; }
.lsc-hero-stat-val { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.lsc-hero-stat-lbl { font-size: 0.75rem; color: rgba(255,255,255,.55); }
.lsc-hero-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* Hero quote card */
.lsc-hero-quote-wrap { }
.lsc-quote-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  overflow: hidden;
}
.lsc-quote-card-head {
  background: var(--lsc-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}
.lsc-quote-card-body { padding: 1.5rem; }
.lsc-quote-result {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

/* ── Trust strip ─────────────────────────────────────────────── */
.lsc-trust-strip {
  background: var(--lsc-dark);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lsc-trust-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lsc-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
.lsc-trust-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #60a5fa;
}

/* ── Steps ───────────────────────────────────────────────────── */
.lsc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
  position: relative;
}
.lsc-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid var(--lsc-border);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.lsc-step:hover {
  border-color: rgba(26,86,219,0.3);
  box-shadow: 0 8px 32px rgba(26,86,219,0.08);
  transform: translateY(-4px);
}
.lsc-step-num {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--lsc-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(26,86,219,0.4);
}
.lsc-step-icon {
  width: 56px; height: 56px;
  background: var(--lsc-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0.75rem auto 1.25rem;
  color: var(--lsc-blue);
}
.lsc-step-title { font-size: 0.95rem; font-weight: 700; color: var(--lsc-dark); margin-bottom: 0.5rem; }
.lsc-step-desc  { font-size: 0.82rem; color: var(--lsc-muted); line-height: 1.6; }

/* ── Services grid ───────────────────────────────────────────── */
.lsc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.lsc-svc-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem 1.75rem;
  border: 1.5px solid var(--lsc-border);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.lsc-svc-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.lsc-svc-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--lsc-blue); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 100px;
}
.lsc-svc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.lsc-svc-standard .lsc-svc-icon { background: #f0f9ff; color: #0369a1; }
.lsc-svc-express  .lsc-svc-icon { background: #fefce8; color: #a16207; }
.lsc-svc-sameday  .lsc-svc-icon { background: #fdf4ff; color: #7e22ce; }
.lsc-svc-card h3  { font-size: 1rem; font-weight: 700; color: var(--lsc-dark); margin-bottom: 0.5rem; }
.lsc-svc-card p   { font-size: 0.83rem; color: var(--lsc-muted); line-height: 1.65; margin-bottom: 1rem; }
.lsc-svc-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ── Towns pills ─────────────────────────────────────────────── */
.lsc-towns-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.lsc-town-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid var(--lsc-border);
  color: var(--lsc-text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  transition: background 0.15s;
}
.lsc-town-pill svg { color: var(--lsc-blue); }
.lsc-town-pill:hover { background: var(--lsc-light); border-color: rgba(26,86,219,0.3); }

/* ── Driver CTA Section ──────────────────────────────────────── */
.lsc-driver-cta {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f5c 50%, #0f3460 100%);
  padding: 5rem 0;
  overflow: hidden;
}
.lsc-driver-cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 80% at 85% 50%, rgba(26,86,219,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.lsc-driver-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 900px) {
  .lsc-driver-cta-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .lsc-driver-cta-img { order: -1; }
}
.lsc-driver-cta-copy { color: #fff; }
.lsc-driver-cta-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.lsc-driver-cta-p  { color: rgba(255,255,255,0.72); line-height: 1.75; font-size: 0.97rem; margin-bottom: 1.5rem; }
.lsc-driver-benefits {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.lsc-driver-benefits li {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: rgba(255,255,255,0.82);
}
.lsc-benefit-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #60a5fa;
}
.lsc-driver-cta-img img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  height: 400px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

/* ── Why grid ────────────────────────────────────────────────── */
.lsc-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.lsc-why-card {
  padding: 1.75rem;
  background: #f8fafc;
  border: 1.5px solid var(--lsc-border);
  border-radius: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.lsc-why-card:hover { box-shadow: 0 8px 32px rgba(26,86,219,0.07); border-color: rgba(26,86,219,0.25); }
.lsc-why-icon {
  width: 44px; height: 44px;
  background: var(--lsc-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lsc-blue);
  margin-bottom: 1rem;
}
.lsc-why-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--lsc-dark); margin-bottom: 0.5rem; }
.lsc-why-card p  { font-size: 0.82rem; color: var(--lsc-muted); line-height: 1.65; }

/* ── Track CTA Banner ────────────────────────────────────────── */
.lsc-track-banner {
  background: linear-gradient(90deg, var(--lsc-blue) 0%, #1648c0 100%);
  padding: 3.5rem 0;
}
.lsc-track-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.lsc-track-banner h2 { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.lsc-track-banner p  { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.lsc-track-banner-btn {
  background: #fff;
  color: var(--lsc-blue);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.lsc-track-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.22); }

/* ══ DRIVER HERO ════════════════════════════════════════════════ */
.lsc-driver-hero {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #0f2d52 50%, #1a3a7c 100%);
  padding: 5rem 0;
  overflow: hidden;
}
.lsc-driver-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(26,86,219,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.lsc-driver-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 900px) {
  .lsc-driver-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .lsc-driver-hero-img { order: -1; }
}
.lsc-driver-hero-copy { color: #fff; }
.lsc-driver-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}
.lsc-driver-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}
.lsc-driver-hero-img img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  height: 400px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

/* ── Requirements list ───────────────────────────────────────── */
.lsc-req-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.lsc-req-list li {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.88rem; color: var(--lsc-text);
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid var(--lsc-border);
  border-radius: 10px;
}
.lsc-req-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--lsc-light);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lsc-blue);
}

/* ── Subscription Plans ──────────────────────────────────────── */
.lsc-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.lsc-plan-card {
  background: #fff;
  border: 2px solid var(--lsc-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.lsc-plan-card:hover { box-shadow: 0 16px 50px rgba(0,0,0,0.1); }
.lsc-plan-featured {
  border-color: var(--lsc-blue);
  box-shadow: 0 8px 40px rgba(26,86,219,0.18);
}
.lsc-plan-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--lsc-blue); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.28rem 1rem; border-radius: 0 0 8px 8px;
}
.lsc-plan-head {
  padding: 2rem 1.75rem 1.5rem;
  border-bottom: 1.5px solid var(--lsc-border);
  background: #fafbfc;
}
.lsc-plan-featured .lsc-plan-head { background: #eff6ff; }
.lsc-plan-name {
  font-size: 1rem; font-weight: 700;
  color: var(--lsc-dark); margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lsc-plan-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 0.75rem;
}
.lsc-plan-currency { font-size: 0.88rem; font-weight: 600; color: var(--lsc-muted); }
.lsc-plan-amount   { font-size: 2.4rem; font-weight: 900; color: var(--lsc-dark); letter-spacing: -0.04em; line-height: 1; }
.lsc-plan-period   { font-size: 0.82rem; color: var(--lsc-muted); }
.lsc-plan-desc     { font-size: 0.82rem; color: var(--lsc-muted); line-height: 1.6; }
.lsc-plan-features {
  list-style: none; padding: 1.5rem 1.75rem; margin: 0;
  display: flex; flex-direction: column; gap: 0.75rem;
  flex: 1;
}
.lsc-plan-features li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.83rem; color: var(--lsc-text); line-height: 1.5;
}
.lsc-plan-features svg { color: var(--lsc-success); flex-shrink: 0; margin-top: 1px; }
.lsc-plan-card .btn { margin: 0 1.75rem 1.75rem; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  box-shadow: 0 32px 100px rgba(0,0,0,0.25);
  overflow: hidden;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid var(--lsc-border);
  display: flex; align-items: center; justify-content: space-between;
  background: #fafbfc;
}
.modal-body { padding: 1.5rem; }

/* Divider */
.divider {
  height: 1px;
  background: var(--lsc-border);
  margin: 1.25rem 0;
}

/* ══ FOOTER (v3) ══════════════════════════════════════════════ */
.lsc-footer {
  background: #0a1628;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  margin-top: 0;
}
.lsc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 900px) {
  .lsc-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .lsc-footer-grid { grid-template-columns: 1fr; }
}
.lsc-footer-brand .lsc-footer-name {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem; font-weight: 800;
  color: #fff; margin-bottom: 0.85rem;
}
.lsc-footer-brand p { font-size: 0.83rem; line-height: 1.75; max-width: 280px; }
.lsc-footer-social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.lsc-footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.lsc-footer-social a:hover { background: var(--lsc-blue); color: #fff; }

.lsc-footer-col-title {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 1.1rem;
}
.lsc-footer-links {
  display: flex; flex-direction: column; gap: 0.55rem;
}
.lsc-footer-links a {
  font-size: 0.83rem; color: #94a3b8;
  text-decoration: none; transition: color 0.15s;
}
.lsc-footer-links a:hover { color: #fff; }
.lsc-footer-contact-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.83rem; margin-bottom: 0.6rem;
}
.lsc-footer-contact-item svg { color: #60a5fa; flex-shrink: 0; }
.lsc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.75rem;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.78rem;
}
.lsc-footer-bottom-links { display: flex; gap: 1.5rem; }
.lsc-footer-bottom-links a { color: #64748b; text-decoration: none; transition: color 0.15s; }
.lsc-footer-bottom-links a:hover { color: #fff; }

/* ══ ADMIN — IC drivers panel ════════════════════════════════ */
.ic-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ic-stat-card {
  background: #fff;
  border: 1.5px solid var(--lsc-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.ic-stat-card .ic-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--lsc-dark); letter-spacing: -0.03em; }
.ic-stat-card .ic-stat-lbl { font-size: 0.75rem; color: var(--lsc-muted); margin-top: 0.15rem; }

/* Alert variants */
.alert-success { background:#dcfce7; border:1.5px solid #86efac; color:#14532d; border-radius:10px; padding:.75rem 1rem; font-size:.84rem; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .lsc-hero       { padding: 3rem 0; }
  .lsc-section    { padding: 3.5rem 0; }
  .lsc-driver-cta { padding: 3.5rem 0; }
  .lsc-track-banner { padding: 2.5rem 0; }
  .lsc-hero-stats { gap: 0; }
  .lsc-hero-stat  { padding: 0 0.75rem; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE SIDEBAR + NOTIFICATION BAR  (LSC Courier public)
   Uses transform instead of right for smooth GPU animation
   ══════════════════════════════════════════════════════════════ */

/* ── Sidebar backdrop overlay ──────────────────────────────── */
.mob-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9000;
  pointer-events: none;
  transition: background 0.3s ease;
  /* Never display:none — use pointer-events instead */
}
.mob-sidebar-overlay.open {
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ── Sidebar panel ──────────────────────────────────────────── */
.mob-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  height: 100dvh; /* dynamic viewport for iOS Safari */
  background: #0f172a;
  z-index: 9001;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* START hidden: translated fully off-screen to the right */
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.32s ease;
  box-shadow: none;
  will-change: transform;
}
.mob-sidebar.open {
  transform: translateX(0);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
}

/* ── Sidebar header ─────────────────────────────────────────── */
.mob-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(env(safe-area-inset-top, 0px) + 1rem, 1rem) 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: #0f172a;
  z-index: 1;
}
.mob-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.mob-sidebar-brand span { color: #60a5fa; }
.mob-sidebar-brand img { flex-shrink: 0; }
.mob-sidebar-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-sidebar-close:hover,
.mob-sidebar-close:active { background: rgba(255, 255, 255, 0.2); }

/* ── Sidebar sections ───────────────────────────────────────── */
.mob-sidebar-section { padding: 0.5rem 0; }

.mob-sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  padding: 0.9rem 1.25rem 0.3rem;
}

.mob-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.78rem 1rem;
  margin: 0.1rem 0.6rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mob-sidebar-link:active { transform: scale(0.97); }
.mob-sidebar-link:hover  { background: rgba(255, 255, 255, 0.07); color: #fff; }
.mob-sidebar-link.active {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}
.mob-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #3b82f6;
  border-radius: 2px;
}
.mob-sidebar-link svg { flex-shrink: 0; opacity: 0.8; transition: opacity 0.15s; }
.mob-sidebar-link.active svg,
.mob-sidebar-link:hover  svg { opacity: 1; }

.mob-sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0.4rem 1.25rem;
}

/* ── Sidebar footer ─────────────────────────────────────────── */
.mob-sidebar-footer {
  margin-top: auto;
  padding: 0.75rem 0.75rem max(env(safe-area-inset-bottom, 0px) + 1rem, 1rem);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.mob-sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-sidebar-footer a:hover,
.mob-sidebar-footer a:active { background: rgba(255, 255, 255, 0.13); color: #fff; }

/* ── Mobile topbar notification bell ───────────────────────── */
.mob-notif-btn { position: relative; }
.mob-notif-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #0f172a;
  display: none;
  pointer-events: none;
}
.mob-notif-badge.visible { display: block; }

/* ── Notification bar ───────────────────────────────────────── */
#lsc-notif-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8999;
  background: #1e3a8a;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: max(env(safe-area-inset-top, 0px) + 0.75rem, 0.75rem) 1rem 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  pointer-events: none;
  /* Hidden by default — NO display:none so transition works */
}
#lsc-notif-bar.show {
  transform: translateY(0);
  pointer-events: auto;
}

/* Colour variants */
#lsc-notif-bar.notif-success { background: #15803d; }
#lsc-notif-bar.notif-warning { background: #b45309; }
#lsc-notif-bar.notif-error   { background: #991b1b; }
#lsc-notif-bar.notif-info    { background: #1e3a8a; }

.lsc-notif-icon {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.85;
}
.lsc-notif-text { flex: 1; min-width: 0; line-height: 1.4; }
.lsc-notif-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}
.lsc-notif-body {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 2px;
  line-height: 1.45;
}
.lsc-notif-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  margin-top: -1px;
}
.lsc-notif-close:hover,
.lsc-notif-close:active { background: rgba(255, 255, 255, 0.32); }

/* Desktop: only show notif bar on mobile, sidebar is mobile-only */
@media (min-width: 900px) {
  #lsc-notif-bar { display: none !important; }
  .mob-sidebar, .mob-sidebar-overlay { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   IN-APP NOTIFICATION PANEL  (lsc-np)
   ═══════════════════════════════════════════════════════════════ */
#lsc-np {
  position: fixed;
  top: 56px;
  right: 12px;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  border: 1px solid rgba(60,60,67,.1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-8px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), opacity .18s ease;
}
#lsc-np.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.lsc-np-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(60,60,67,.08);
  background: #f8fafc;
  flex-shrink: 0;
}
.lsc-np-heading {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .875rem;
  color: #0f172a;
}
.lsc-np-action-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: #1a56db;
  background: none;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: .25rem .55rem;
  cursor: pointer;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.lsc-np-action-btn:hover { background: #eff6ff; }
.lsc-np-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #94a3b8;
  transition: background .15s, color .15s;
}
.lsc-np-close-btn:hover { background: #f1f5f9; color: #374151; }

.lsc-np-list {
  overflow-y: auto;
  flex: 1;
  padding: .25rem 0;
  scroll-behavior: smooth;
}
.lsc-np-list::-webkit-scrollbar { width: 4px; }
.lsc-np-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.lsc-np-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.5rem 1rem;
  color: #94a3b8;
  font-size: .85rem;
}

.lsc-np-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(60,60,67,.05);
  transition: background .15s;
  position: relative;
}
.lsc-np-item:last-child { border-bottom: none; }
.lsc-np-item:hover { background: #f8fafc; }
.lsc-np-item.unread { background: #eff6ff; }
.lsc-np-item.unread:hover { background: #dbeafe; }
.lsc-np-item.unread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #1a56db;
  border-radius: 0 2px 2px 0;
}

.lsc-np-item-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.lsc-np-item-icon.type-info    { background: #eff6ff; color: #1a56db; }
.lsc-np-item-icon.type-success { background: #f0fdf4; color: #16a34a; }
.lsc-np-item-icon.type-warning { background: #fffbeb; color: #d97706; }
.lsc-np-item-icon.type-error   { background: #fef2f2; color: #dc2626; }

.lsc-np-item-content { flex: 1; min-width: 0; }
.lsc-np-item-title {
  font-size: .82rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: .18rem;
}
.lsc-np-item-body {
  font-size: .78rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: .25rem;
  word-break: break-word;
}
.lsc-np-item-link {
  font-size: .75rem;
  color: #1a56db;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-bottom: .2rem;
}
.lsc-np-item-link:hover { text-decoration: underline; }
.lsc-np-item-time {
  font-size: .7rem;
  color: #94a3b8;
}

.lsc-np-item-actions {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
}
.lsc-np-item:hover .lsc-np-item-actions { opacity: 1; }

.lsc-np-act {
  width: 24px; height: 24px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background .15s, color .15s, border-color .15s;
}
.lsc-np-act:hover        { background: #f0f6ff; color: #1a56db; border-color: #bfdbfe; }
.lsc-np-del:hover        { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }

/* mob badge with count */
.mob-notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  background: #ef4444;
  color: #fff;
  border-radius: 9999px;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #fff;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.mob-notif-badge.visible { opacity: 1; transform: scale(1); }

/* Admin topbar bell wrapper */
.lsc-admin-notif-wrap { position: relative; }

/* ── Admin send-notification modal ──────────────────────────── */
#lsc-send-notif-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.45);
  align-items: center;
  justify-content: center;
}
#lsc-send-notif-modal.open { display: flex; }
.lsc-snm-box {
  background: #fff;
  border-radius: 16px;
  width: 440px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  overflow: hidden;
}
.lsc-snm-head {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}
.lsc-snm-head h3 { font-size: .95rem; font-weight: 700; color: #0f172a; margin: 0; }
.lsc-snm-close {
  background: none; border: none; cursor: pointer; color: #94a3b8;
  font-size: 1.2rem; line-height: 1; padding: 2px 6px; border-radius: 4px;
}
.lsc-snm-close:hover { background: #f1f5f9; color: #374151; }
.lsc-snm-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.lsc-snm-field label { display: block; font-size: .78rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.lsc-snm-field input,
.lsc-snm-field textarea,
.lsc-snm-field select {
  width: 100%; padding: .55rem .75rem;
  border: 1px solid #d1d5db; border-radius: 8px;
  font-size: .85rem; color: #0f172a;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.lsc-snm-field input:focus,
.lsc-snm-field textarea:focus,
.lsc-snm-field select:focus { outline: none; border-color: #1a56db; box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.lsc-snm-field textarea { resize: vertical; min-height: 80px; }
.lsc-snm-foot {
  padding: .9rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  background: #f8fafc;
}
.lsc-snm-btn-cancel {
  padding: .5rem 1.1rem; border: 1px solid #d1d5db;
  background: #fff; border-radius: 8px; font-size: .83rem; cursor: pointer; color: #374151;
}
.lsc-snm-btn-send {
  padding: .5rem 1.25rem; border: none;
  background: #1a56db; color: #fff; border-radius: 8px; font-size: .83rem;
  font-weight: 600; cursor: pointer; transition: background .15s;
}
.lsc-snm-btn-send:hover { background: #1444b8; }
.lsc-snm-btn-send:disabled { opacity: .6; cursor: not-allowed; }

/* Notification panel inside admin (anchored to topbar) */
.lsc-admin-topbar-np-wrap { position: relative; }
