:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --text: #1c2333;
  --muted: #6b7489;
  --border: #e3e7ef;
  --primary: #1f5eff;
  --primary-ink: #ffffff;
  --sidebar: #0f1b33;
  --sidebar-text: #c9d3ea;
  --success: #12805c;
  --warning: #b26b00;
  --danger: #c62f3c;
  --info: #1f5eff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 18px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 20px; }
.logo { font-size: 28px; }
.logo-img { width: 36px; height: 36px; flex-shrink: 0; display: block; }
.logo-img.lg { width: 56px; height: 56px; margin: 0 auto; }
.brand-name { color: #fff; font-weight: 700; font-size: 15px; }
.brand-sub { font-size: 12px; opacity: .7; }
nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  margin-bottom: 2px;
}
nav a[hidden], .btn[hidden] { display: none; }
nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
nav a.active { background: var(--primary); color: #fff; }

.sidebar { display: flex; flex-direction: column; }
nav { flex: 1; }
.user-box { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 8px 4px; margin-top: 12px; }
.user-name { color: #fff; font-weight: 600; }
.user-role { font-size: 12px; opacity: .7; margin-bottom: 8px; text-transform: capitalize; }
.user-box .btn { background: transparent; color: var(--sidebar-text); border-color: rgba(255,255,255,.2); }

.app[hidden], .auth[hidden] { display: none; }
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-card { width: 100%; max-width: 400px; padding: 28px; }
.auth-card form > div { margin-bottom: 12px; }
.auth-card .btn { width: 100%; padding: 10px; }
.auth-error { color: var(--danger); text-align: center; margin: 12px 0 0; }
.sync-dot { font-size: 12px; color: var(--muted); }
.job-actions { display: flex; gap: 10px; margin-top: 14px; }
.job-actions .btn { flex: 1; text-align: center; text-decoration: none; padding: 12px; font-size: 15px; }
.job .kv { grid-template-columns: 100px 1fr; }

/* Main */
.main { flex: 1; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar h1 { font-size: 20px; margin: 0; flex: 1; }
.menu-btn { display: none; }
.view { padding: 24px; max-width: 1300px; }

/* Components */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 12px; font-size: 15px; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.two-col { grid-template-columns: 1fr 1fr; }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover { border-color: #c5ccdb; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.icon-btn { border: 0; background: none; font-size: 18px; cursor: pointer; color: inherit; padding: 4px 8px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }

input, select, textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31,94,255,.25); border-color: var(--primary); }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #fafbfd; }
tr:hover td { background: #fafbfd; }
td.actions { white-space: nowrap; text-align: right; }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); }
.right { text-align: right; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef1f7;
  color: var(--muted);
}
.badge.pending { background: #fff4e0; color: var(--warning); }
.badge.picked-up, .badge.in-transit, .badge.on-trip { background: #e7eeff; color: var(--info); }
.badge.out-for-delivery { background: #efe6ff; color: #6b3fd4; }
.badge.delivered, .badge.paid, .badge.available, .badge.active { background: #e3f5ee; color: var(--success); }
.badge.cancelled, .badge.overdue, .badge.inactive { background: #fde8ea; color: var(--danger); }
.badge.unpaid, .badge.maintenance, .badge.off-duty { background: #fff4e0; color: var(--warning); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline .when { color: var(--muted); font-size: 12px; }

.progress { display: flex; gap: 4px; margin: 14px 0; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.progress span.done { background: var(--success); }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.kv div:nth-child(odd) { color: var(--muted); }

/* Bar chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bar { width: 40%; max-width: 26px; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar.rev { background: var(--primary); }
.bar.exp { background: #f0a03c; }
.bar-label { font-size: 11px; color: var(--muted); margin-top: 6px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.track-hero { text-align: center; padding: 30px 18px; }
.track-hero form { display: flex; gap: 10px; max-width: 520px; margin: 14px auto 0; }

.quote-total { font-size: 32px; font-weight: 700; color: var(--primary); }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 51, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 50;
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--panel); border-radius: 12px; width: 100%; max-width: 720px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--sidebar);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 60;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--border); background: var(--panel); padding: 8px 16px; border-radius: 8px; cursor: pointer; font: inherit; }
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Brand */
:root { --brand-a: #2f6bff; --brand-b: #00b894; }

/* Sign-in screen with public tracking */

.track-inline { display: flex; gap: 8px; }
.track-inline .btn { width: auto; padding: 8px 16px; }
#publicTrackResult .card { box-shadow: none; border: 1px solid var(--border); padding: 14px; margin-top: 14px; }
#publicTrackResult .kv { grid-template-columns: 110px 1fr; }

/* Shipment form, booking and cargo guide */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { width: auto; margin-top: 3px; }
.warn-box { background: #fde8ea; color: var(--danger); border: 1px solid #f5c2c7; border-radius: 8px; padding: 10px 12px; }
.notice { background: #e7eeff; border: 1px solid #c8d6ff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.chip small { color: var(--muted); margin-left: 4px; }
.ban-card { border-left: 4px solid var(--danger); }
.ban-list { columns: 2; column-gap: 32px; margin: 0; padding-left: 18px; line-height: 1.8; }
@media (max-width: 860px) { .ban-list { columns: 1; } }

/* Print documents: invoice, receipt, waybill */
#printArea { display: none; }
.doc { font-family: system-ui, "Segoe UI", sans-serif; color: #111; padding: 28px; max-width: 820px; margin: 0 auto; font-size: 13px; }
.doc-brand { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 18px 20px; border-radius: 10px;
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b)); color: #fff; margin-bottom: 20px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-brand-left { display: flex; gap: 12px; align-items: center; }
.doc-logo { width: 54px; height: 54px; border-radius: 12px; background: #fff; padding: 3px; }
.doc-company { font-size: 20px; font-weight: 800; letter-spacing: .2px; }
.doc-contact { font-size: 12px; opacity: .92; }
.doc-brand-right { text-align: right; }
.doc-title { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
.doc-meta { display: grid; grid-template-columns: auto auto; gap: 2px 12px; font-size: 12px; text-align: right; }
.doc-meta span:nth-child(odd) { opacity: .85; }
.doc-status.paid { color: #eafff7; } .doc-status.overdue { color: #ffe0e3; }
.doc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.doc-box { border: 1px solid #cfd6e4; border-radius: 8px; padding: 12px; line-height: 1.5; }
.doc-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #5b6478; font-weight: 700; margin-bottom: 4px; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th { background: #eef2fb; color: #111; text-align: left; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-table th, .doc-table td { border-bottom: 1px solid #dde3ee; padding: 8px; }
.doc .totals { margin-left: auto; width: 300px; margin-top: 14px; }
.doc .totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc .totals .grand { font-weight: 800; font-size: 16px; border-top: 2px solid var(--brand-a); padding-top: 8px; color: var(--brand-a); }
.doc-paid { display: inline-block; margin-top: 16px; padding: 6px 14px; border: 2px solid var(--brand-b); color: #0b7a5f; font-weight: 800;
  border-radius: 6px; letter-spacing: 1px; }
.doc-sign { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
.doc-sign.three { grid-template-columns: repeat(3, 1fr); }
.doc-sign div { border-top: 1px solid #111; padding-top: 6px; font-size: 11px; color: #444; }
.doc-footer { margin-top: 28px; padding-top: 10px; border-top: 3px solid var(--brand-b); font-size: 11px; color: #555; }
.doc-footer p { margin: 0 0 6px; color: #111; font-size: 12px; }
.doc-centres { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 6px 0; padding: 8px 10px; border-radius: 8px;
  background: #f4fbe9; color: #1c2333; font-size: 11.5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-centres strong { width: 100%; }
.doc-centres em { width: 100%; color: #5b6478; }
.doc-contacts { margin: 4px 0; color: #111; font-size: 12px; font-weight: 600; }
.wb-track { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 2px dashed var(--brand-a);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.wb-number { font-family: ui-monospace, Consolas, monospace; font-size: 28px; font-weight: 800; letter-spacing: 3px; }
.wb-route { text-align: right; font-size: 16px; font-weight: 700; }
.wb-grid th { width: 120px; }
.wb-declare { margin-top: 14px; font-size: 12px; background: #f7f9fd; }

@media print {
  body { background: #fff; }
  .app, .auth, .landing, .modal-backdrop, .toast { display: none !important; }
  #printArea { display: block; }
}

@media (max-width: 860px) {
  .sidebar { position: fixed; left: -260px; z-index: 40; transition: left .2s; }
  .sidebar.open { left: 0; }
  .menu-btn { display: inline-block; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .view { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 17px; }
  .kv { grid-template-columns: 120px 1fr; }
  .track-hero form { flex-direction: column; }
}

/* Part payments */
.badge.part-paid { background: #e7eeff; color: var(--info); }
.notice-text { background: #e7eeff; border: 1px solid #c8d6ff; border-radius: 8px; padding: 10px 12px; }
.doc-balance { margin-top: 14px; background: #fff8ec; border-color: #f3d39b; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-paid.part { border-color: #e0a100; color: #8a5a00; }
.doc-status.part-paid { color: #fff6d6; }

/* ======================================================================
   Futuristic theme: public landing page + app accents
   ====================================================================== */
:root {
  --neon-cyan: #22d3ee; --neon-pink: #ec4899; --neon-violet: #8b5cf6; --neon-lime: #a3e635; --neon-amber: #fbbf24;
  --space: #070b1f;
  --grad-main: linear-gradient(110deg, var(--neon-cyan), var(--neon-violet) 50%, var(--neon-pink));
}
html { scroll-behavior: smooth; }
body.no-scroll { overflow: hidden; }

.landing {
  min-height: 100vh; color: #e6ecff; overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(139, 92, 246, .35), transparent 60%),
    radial-gradient(700px 480px at 5% 30%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(236, 72, 153, .22), transparent 60%),
    var(--space);
}
.landing[hidden] { display: none; }
.landing a { color: inherit; }

/* nav */
.l-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(7, 11, 31, .65); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.l-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 600; }
.l-brand img { width: 34px; height: 34px; }
.l-brand b { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-links { display: flex; gap: 22px; margin-left: auto; }
.l-links a { text-decoration: none; opacity: .8; font-size: 14px; }
.l-links a:hover { opacity: 1; color: var(--neon-cyan); }

.l-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #0a0f2c; padding: 12px 22px; border-radius: 12px;
  background: var(--grad-main); box-shadow: 0 0 24px rgba(34, 211, 238, .35); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.l-btn:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(236, 72, 153, .45); }
.l-btn.ghost { background: transparent; color: #e6ecff; border: 1px solid rgba(34, 211, 238, .6); box-shadow: inset 0 0 12px rgba(34, 211, 238, .2); padding: 9px 18px; }

/* hero */
.l-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 56px) 40px; max-width: 1400px; margin: 0 auto; }
.l-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .3px;
  border: 1px solid rgba(163, 230, 53, .5); color: var(--neon-lime); background: rgba(163, 230, 53, .08); }
.l-hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.05; margin: 18px 0 14px; letter-spacing: -.5px; color: #fff; }
.l-grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-lead { font-size: 17px; line-height: 1.6; color: #b8c3e6; max-width: 560px; margin: 0 0 24px; }
.l-hero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 40px rgba(139, 92, 246, .35)); }

.l-track { max-width: 600px; }
.l-track-form { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 1px rgba(34, 211, 238, .15), 0 10px 40px rgba(0, 0, 0, .35); }
.l-track-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: 16px; padding: 10px 12px; }
.l-track-form input::placeholder { color: #8090bf; }
.l-track-form input:focus { outline: none; box-shadow: none; }
#publicTrackResult .card { margin-top: 14px; background: rgba(16, 22, 58, .85); color: #e6ecff; border: 1px solid rgba(34, 211, 238, .3); box-shadow: 0 0 30px rgba(34, 211, 238, .12); }
#publicTrackResult .kv div:nth-child(odd), #publicTrackResult .when { color: #93a3d1; }
#publicTrackResult .progress span { background: rgba(255, 255, 255, .12); }
#publicTrackResult .progress span.done { background: var(--grad-main); }
#publicTrackResult .auth-error { text-align: left; color: #fda4af; }

.l-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.l-stats div { display: flex; flex-direction: column; }
.l-stats b { font-size: 30px; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-stats span { font-size: 13px; color: #93a3d1; }

/* sections */
.l-section { padding: 56px clamp(16px, 4vw, 56px); max-width: 1400px; margin: 0 auto; }
.l-section h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 22px; color: #fff; }
.l-sub { color: #93a3d1; margin: -12px 0 18px; }
.l-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.l-card { position: relative; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden; transition: transform .2s, border-color .2s; }
.l-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.l-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.l-card svg { width: 64px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--accent)); }
.l-card h3 { margin: 12px 0 6px; color: #fff; }
.l-card p { margin: 0; color: #a9b5dc; line-height: 1.55; font-size: 14px; }
.l-card.c1 { --accent: var(--neon-cyan); } .l-card.c2 { --accent: var(--neon-lime); }
.l-card.c3 { --accent: var(--neon-pink); } .l-card.c4 { --accent: var(--neon-amber); }

.l-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.l-steps li { counter-increment: s; position: relative; padding: 46px 18px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 6px; }
.l-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 14px; left: 18px; font-weight: 800;
  font-size: 20px; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-steps b { color: #fff; }
.l-steps span { color: #a9b5dc; font-size: 14px; line-height: 1.5; }
.l-steps li:nth-child(3) { border-color: rgba(251, 191, 36, .55); box-shadow: 0 0 24px rgba(251, 191, 36, .12); }

.l-coverage { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.l-panel { padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.l-panel h3 { margin: 0 0 14px; color: #fff; }
.l-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.l-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); font-size: 14px; }
.l-zone { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); font-size: 14px; }
.l-zone:last-child { border-bottom: 0; }
.l-zone b { color: var(--neon-pink); }
.l-zone span { color: #cdd6f4; }
.l-zone em { color: var(--neon-lime); font-style: normal; white-space: nowrap; }
.l-bans { columns: 2; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.l-bans li { break-inside: avoid; padding: 8px 0 8px 28px; position: relative; color: #cdd6f4; }
.l-bans li::before { content: "\2298"; position: absolute; left: 0; top: 6px; color: #fb7185; font-size: 18px; text-shadow: 0 0 8px rgba(251, 113, 133, .7); }

.l-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px clamp(16px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, .08); color: #93a3d1; font-size: 14px; }
.l-footer img { width: 26px; }
.l-footer span { margin-right: auto; }
.l-footer a { text-decoration: none; }
.l-footer a:hover { color: var(--neon-cyan); }

/* sign-in panel */
.signin-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 16px;
  background: rgba(4, 7, 22, .7); backdrop-filter: blur(6px); overflow-y: auto; }
.signin-overlay[hidden] { display: none; }
.signin-overlay .auth-card { position: relative; max-width: 420px; margin: auto; color: var(--text); border: 1px solid rgba(34, 211, 238, .35);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .25), 0 0 60px rgba(34, 211, 238, .25); }
.signin-overlay .auth-card form > div { margin-bottom: 12px; }
.signin-close { position: absolute; top: 10px; right: 10px; }

@media (max-width: 960px) {
  .l-hero { grid-template-columns: 1fr; }
  .l-hero-art { order: -1; max-width: 640px; margin: 0 auto; }
  .l-links { display: none; }
  .l-nav { justify-content: space-between; }
  .l-coverage { grid-template-columns: 1fr; }
  .l-zone { grid-template-columns: 1fr; gap: 2px; }
  .l-bans { columns: 1; }
}
@media (max-width: 520px) {
  .l-track-form { flex-direction: column; }
  .l-brand span { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .l-card, .l-btn { transition: none; } }

/* AI-generated cargo photos: hero background and sea/air/road gallery */
.l-hero { grid-template-columns: minmax(0, 1fr); min-height: min(78vh, 760px); max-width: none; position: relative; isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 11, 31, .96) 0%, rgba(7, 11, 31, .82) 38%, rgba(7, 11, 31, .25) 70%, rgba(7, 11, 31, .1) 100%),
    linear-gradient(0deg, var(--space) 0%, rgba(7, 11, 31, 0) 28%),
    url("images/cargo-port.jpg") center right / cover no-repeat; }
.l-hero-text { max-width: 640px; }
.l-gallery-wrap { padding-top: 8px; }
.l-gallery { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.l-photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; height: clamp(240px, 24vw, 340px);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 1px var(--glow), 0 18px 50px rgba(0, 0, 0, .45); }
.l-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.l-photo:hover img { transform: scale(1.05); }
.l-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(0deg, rgba(7, 11, 31, .92), rgba(7, 11, 31, 0)); }
.l-photo b { font-size: 18px; color: #fff; }
.l-photo span { font-size: 13px; color: #c3cdf0; }
.l-photo::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--glow); box-shadow: 0 0 16px var(--glow); }
.p-sea { --glow: var(--neon-cyan); } .p-air { --glow: var(--neon-pink); } .p-road { --glow: var(--neon-lime); }
.l-coverage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.l-cov-art img { width: 100%; display: block; filter: drop-shadow(0 0 40px rgba(139, 92, 246, .35)); }
.l-cov-panels { display: grid; gap: 16px; }
@media (max-width: 960px) {
  .l-hero { min-height: 0; background:
    linear-gradient(0deg, rgba(7, 11, 31, .96) 18%, rgba(7, 11, 31, .72) 55%, rgba(7, 11, 31, .3) 100%),
    url("images/cargo-port.jpg") center / cover no-repeat; }
  .l-gallery { grid-template-columns: 1fr; }
  .l-photo { height: auto; aspect-ratio: 16 / 9; }
  .l-coverage { grid-template-columns: 1fr; }
  .l-cov-art { max-width: 560px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .l-photo img { transition: none; } }

/* App accents: futuristic sidebar, gradient actions, glowing stat cards */
.sidebar { background: linear-gradient(180deg, #0b1030 0%, #1a1145 55%, #2a0b4a 100%); border-right: 1px solid rgba(34, 211, 238, .15); }
nav a.active { background: linear-gradient(110deg, rgba(34, 211, 238, .9), rgba(139, 92, 246, .9)); box-shadow: 0 0 18px rgba(34, 211, 238, .35); }
nav a:hover { background: rgba(34, 211, 238, .12); }
.btn.primary { background: linear-gradient(110deg, #1f9bff, #6d4dff); border-color: transparent; box-shadow: 0 4px 14px rgba(77, 91, 255, .3); }
.card.stat { position: relative; overflow: hidden; }
.card.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-main); }
.grid.stats .card.stat:nth-child(2)::before { background: linear-gradient(90deg, var(--neon-lime), var(--neon-cyan)); }
.grid.stats .card.stat:nth-child(3)::before { background: linear-gradient(90deg, var(--neon-amber), var(--neon-pink)); }
.grid.stats .card.stat:nth-child(4)::before { background: linear-gradient(90deg, var(--neon-pink), var(--neon-violet)); }
.track-hero { background: radial-gradient(600px 220px at 50% 0%, rgba(34, 211, 238, .18), transparent 70%), var(--panel); }

/* Owner Panel */
.hbar { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.hbar span { display: block; height: 100%; border-radius: 999px; background: var(--grad-main); }
.badge.online { background: #e3f5ee; color: var(--success); }

/* ======================================================================
   Website quote request, quote check, destination regions, chat assistant
   ====================================================================== */
.l-quote-cta { display: inline-block; margin-top: 14px; text-decoration: none; }
.l-btn.sm { padding: 7px 14px; font-size: 14px; }
.l-btn[disabled] { opacity: .6; cursor: wait; }

/* dark form fields on the landing page */
.landing label { color: #a9b5dc; }
.landing input, .landing select, .landing textarea { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.landing select option { color: #111; }
.landing input:focus, .landing select:focus, .landing textarea:focus { outline: 2px solid rgba(34, 211, 238, .35); border-color: var(--neon-cyan); }
.landing input::placeholder, .landing textarea::placeholder { color: #7684b3; }
.landing input[type=date] { color-scheme: dark; }

.l-quote { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.l-qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 14px; }
.l-qgrid .full { grid-column: 1 / -1; }
.l-qgrid [hidden] { display: none; }
.l-subhead { margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .15); color: var(--neon-lime); font-weight: 700; }
.l-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.l-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: #cdd6f4; }
.l-check input { width: auto; margin-top: 3px; }
.l-form-error { color: #fda4af; margin: 0 0 12px; }
.l-cargo-info { font-size: 13px; color: #93a3d1; min-height: 0; }
.l-ban { background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .5); color: #fecdd3; border-radius: 10px; padding: 10px 12px; }
.l-ban a { color: #fff; }

.l-items { display: grid; gap: 10px; margin-bottom: 10px; }
.l-item { position: relative; display: grid; grid-template-columns: minmax(0, 2.2fr) 70px 110px minmax(0, 1.6fr); gap: 8px; padding: 12px 36px 12px 12px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.l-item label { font-size: 11px; }
.l-item-del { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: #93a3d1; cursor: pointer; font-size: 14px; }
.l-item-del:hover { color: #fb7185; }

.l-estimate { position: sticky; top: 80px; border-color: rgba(34, 211, 238, .4); box-shadow: 0 0 40px rgba(34, 211, 238, .12); }
.l-est-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--neon-cyan); font-weight: 700; }
.l-est-price { font-size: 40px; font-weight: 800; margin: 6px 0; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-est-sub { color: #cdd6f4; font-size: 14px; }
.l-est-notes { margin: 14px 0 0; padding-left: 18px; color: #a9b5dc; font-size: 13px; line-height: 1.7; }
.l-est-notes .l-est-line { list-style: none; margin-left: -18px; display: flex; justify-content: space-between; color: #e6ecff;
  border-bottom: 1px dashed rgba(255, 255, 255, .1); padding: 3px 0; }
.l-est-notes .l-est-line:nth-child(3) { margin-bottom: 10px; }

.l-thanks { text-align: center; padding: 30px 10px; }
.l-thanks-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 32px;
  color: #0a0f2c; background: var(--grad-main); box-shadow: 0 0 30px rgba(34, 211, 238, .5); }
.l-thanks h3 { color: #fff; }

.l-check-quote { margin-top: 16px; }
.l-check-form { display: flex; gap: 8px; flex-wrap: wrap; }
.l-check-form input { flex: 1 1 200px; }
.l-quote-result { margin-top: 14px; padding: 16px; border-radius: 14px; background: rgba(16, 22, 58, .85); border: 1px solid rgba(34, 211, 238, .3); }
.l-qr-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.l-qr-head b { color: #fff; }
.l-qr-table { width: 100%; margin: 8px 0; }
.l-qr-table td { padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); color: #cdd6f4; }
.l-qr-total td { font-size: 18px; font-weight: 800; color: #fff; border-bottom: 0; }
.l-qr-msg { color: #e6ecff; font-style: italic; }
.l-accepted { color: var(--neon-lime); font-weight: 600; }

.l-region { border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.l-region:last-child { border-bottom: 0; }
.l-region summary { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; font-size: 14px; }
.l-region summary::-webkit-details-marker { display: none; }
.l-region summary b { color: var(--neon-pink); }
.l-region summary b::before { content: "▸ "; color: #93a3d1; }
.l-region[open] summary b::before { content: "▾ "; }
.l-region summary span { color: #cdd6f4; }
.l-region summary em { color: var(--neon-lime); font-style: normal; white-space: nowrap; }
.l-region-body { padding: 0 0 12px 18px; display: grid; gap: 6px; font-size: 13px; }
.l-region-body strong { color: #fff; margin-right: 6px; }
.l-region-body span { color: #a9b5dc; }

/* back office: quotation editor and cargo guide regions */
.q-line { display: flex; gap: 8px; margin-bottom: 8px; }
.totals-box { margin: 12px 0 16px auto; max-width: 320px; }
.totals-box div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals-box .grand { font-weight: 800; font-size: 17px; border-top: 2px solid var(--primary); padding-top: 6px; }
details.region { border-bottom: 1px solid var(--border); padding: 8px 0; }
details.region summary { display: flex; gap: 10px; cursor: pointer; }
details.region summary .right { margin-left: auto; }
.region-row { padding: 4px 0 4px 16px; font-size: 13px; }
.badge.new { background: #e7eeff; color: var(--info); }
.badge.contacted { background: #efe6ff; color: #6b3fd4; }
.badge.quoted { background: #fff4e0; color: var(--warning); }
.badge.accepted, .badge.won { background: #e3f5ee; color: var(--success); }
.badge.lost { background: #fde8ea; color: var(--danger); }

/* floating chat assistant + WhatsApp buttons */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .15s; text-decoration: none; }
.fab:hover { transform: scale(1.07); }
.fab[hidden] { display: none; }
.fab-wa { background: #25d366; color: #fff; }
.fab-wa svg { width: 30px; height: 30px; }
.fab-chat { background: var(--grad-main); color: #0a0f2c; box-shadow: 0 0 24px rgba(34, 211, 238, .45), 0 8px 24px rgba(0, 0, 0, .3); }
.fab-chat.active { outline: 3px solid rgba(255, 255, 255, .8); }
.chat-panel { position: fixed; right: 18px; bottom: 150px; z-index: 70; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 180px));
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #0d1233; color: #e6ecff;
  border: 1px solid rgba(34, 211, 238, .35); box-shadow: 0 0 0 1px rgba(139, 92, 246, .25), 0 20px 60px rgba(0, 0, 0, .5); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: linear-gradient(110deg, #10204d, #2a0b4a); }
.chat-head img { width: 34px; height: 34px; }
.chat-head div { display: flex; flex-direction: column; margin-right: auto; }
.chat-head span { font-size: 12px; color: var(--neon-lime); }
.chat-head .icon-btn { color: #e6ecff; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { background: rgba(255, 255, 255, .07); border-top-left-radius: 4px; align-self: flex-start; }
.chat-msg.me { background: var(--grad-main); color: #0a0f2c; border-top-right-radius: 4px; align-self: flex-end; font-weight: 600; }
.chat-msg.typing { opacity: .6; }
.chat-msg a { color: var(--neon-cyan); }
.chat-wa { display: inline-block; margin-top: 4px; padding: 8px 12px; border-radius: 10px; background: #25d366; color: #fff !important; text-decoration: none; font-weight: 700; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.chat-chip { border: 1px solid rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .08); color: #e6ecff; border-radius: 999px; padding: 5px 10px;
  font: inherit; font-size: 12px; cursor: pointer; }
.chat-chip:hover { background: rgba(34, 211, 238, .2); }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.chat-input input { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.chat-input button { border: 0; border-radius: 10px; padding: 0 14px; background: var(--grad-main); color: #0a0f2c; font-weight: 800; cursor: pointer; }
@media print { .fab-stack, .chat-panel { display: none !important; } }

@media (max-width: 960px) {
  .l-quote { grid-template-columns: 1fr; }
  .l-estimate { position: static; }
  .l-region summary { grid-template-columns: 1fr auto; }
  .l-region summary span { display: none; }
}
@media (max-width: 600px) {
  .l-qgrid { grid-template-columns: 1fr; }
  .l-item { grid-template-columns: 1fr 1fr; }
  .l-item-desc, .l-item-pack { grid-column: 1 / -1; }
  .fab { width: 50px; height: 50px; }
  .chat-panel { bottom: 136px; right: 16px; }
}

/* Collection centres on the front page */
.l-centres { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.l-centre { display: flex; gap: 16px; align-items: flex-start; border-color: rgba(163, 230, 53, .35); }
.l-centre-pin { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(163, 230, 53, .12); box-shadow: 0 0 20px rgba(163, 230, 53, .25); }
.l-centre h3 { margin: 4px 0; color: #fff; font-size: 20px; }
.l-centre p { margin: 0 0 8px; color: #cdd6f4; line-height: 1.5; }
.l-centre a { color: var(--neon-cyan); text-decoration: none; font-size: 14px; }
.l-door { margin-top: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: #cdd6f4; border-color: rgba(251, 191, 36, .45); }
.l-door b { color: #fff; }
.l-door .l-btn { text-decoration: none; }

/* Company tagline */
.l-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.l-brand-text small { font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--neon-lime); text-transform: uppercase; }
.l-pill b { color: #fff; }
.doc-tagline { font-size: 12px; font-style: italic; letter-spacing: .4px; opacity: .95; margin-top: 2px; }

/* ======================================================================
   Air freight blended into the existing background, brighter wording, prominent quote buttons
   ====================================================================== */
/* Hero: the port photo stays as the base; the cargo-jet photo fades in from the right; a dark shade sits behind the text. */
.l-hero { background: url("images/cargo-port.jpg") center left / cover no-repeat; }
.l-hero::before { content: ""; position: absolute; inset: 0 0 0 34%; z-index: -2;
  background: url("images/cargo-air.jpg") center right / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.l-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 26, .9) 0%, rgba(5, 8, 26, .72) 32%, rgba(5, 8, 26, .28) 58%, rgba(5, 8, 26, .05) 100%),
    linear-gradient(0deg, var(--space) 0%, rgba(7, 11, 31, 0) 24%); }

/* Faint air-freight backdrop behind the whole website and inside the app */
.landing { position: relative; isolation: isolate; }
.landing::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .1;
  background: url("images/cargo-air.jpg") center / cover no-repeat; }
.main { background: linear-gradient(rgba(244, 246, 250, .93), rgba(244, 246, 250, .93)), url("images/cargo-air.jpg") center / cover no-repeat fixed; }

/* Brighter wording on top of the photos */
.l-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .65), 0 0 2px rgba(0, 0, 0, .6); }
.l-hero .l-grad { background: linear-gradient(110deg, #a5f3fc, #ddd6fe 45%, #fbcfe8); -webkit-background-clip: text; background-clip: text; text-shadow: none;
}
.l-lead { color: #f1f5ff; font-size: 18px; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.l-pill { color: #ecfccb; background: rgba(132, 204, 22, .22); border-color: rgba(190, 242, 100, .8); backdrop-filter: blur(6px); }
.l-stats span { color: #dbe4ff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.l-section h2 { text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.l-sub { color: #c7d2f5; }
.l-hl { background: linear-gradient(transparent 58%, rgba(251, 191, 36, .55) 58%); padding: 0 4px; }

/* The main call to action: get a quote */
.landing .l-btn-quote, .l-btn-quote { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none;
  padding: 14px 26px; border-radius: 16px; font-size: 20px; font-weight: 800; color: #1a1300;
  background: linear-gradient(110deg, #fde047, #fbbf24 40%, #fb923c); border: 2px solid #fff3b0;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .25), 0 10px 30px rgba(251, 146, 60, .45); animation: quote-pulse 2.6s ease-in-out infinite; }
.landing .l-btn-quote span { font-size: 13px; font-weight: 600; color: #4a3500; }
.l-btn-quote:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(251, 191, 36, .35), 0 14px 36px rgba(251, 146, 60, .6); }
@keyframes quote-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(251, 191, 36, .25), 0 10px 30px rgba(251, 146, 60, .45); }
  50% { box-shadow: 0 0 0 10px rgba(251, 191, 36, .1), 0 10px 40px rgba(251, 146, 60, .65); } }
.l-cta-row { margin: 0 0 18px; }
.landing .l-nav-quote { text-decoration: none; padding: 9px 18px; font-size: 14px; color: #1a1300;
  background: linear-gradient(110deg, #fde047, #fb923c); box-shadow: 0 0 18px rgba(251, 191, 36, .5); }
.l-submit { width: 100%; align-items: center; justify-content: center; font-size: 19px; padding: 16px 20px; }
.l-quote-form { border-color: rgba(251, 191, 36, .5); box-shadow: 0 0 40px rgba(251, 191, 36, .1); }
.quote-float { position: fixed; left: 18px; bottom: 18px; z-index: 60; padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 800; color: #1a1300; background: linear-gradient(110deg, #fde047, #fbbf24 40%, #fb923c);
  border: 2px solid #fff3b0; box-shadow: 0 8px 28px rgba(251, 146, 60, .55); animation: quote-pulse 2.6s ease-in-out infinite; }
.quote-float[hidden] { display: none; }
@media print { .quote-float { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .l-btn-quote, .quote-float { animation: none; } }

@media (max-width: 960px) {
  /* Phones/tablets: cargo jet on top fading down into the port, text below on a dark shade */
  .l-hero::before { inset: 0 0 45% 0; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .l-hero::after { background: linear-gradient(0deg, rgba(5, 8, 26, .97) 22%, rgba(5, 8, 26, .7) 60%, rgba(5, 8, 26, .25) 100%); }
  .l-hero { background: url("images/cargo-port.jpg") center / cover no-repeat; }
  .main { background-attachment: scroll; }
}
@media (max-width: 600px) {
  .l-nav { gap: 8px; }
  .l-nav-quote { padding: 8px 12px; font-size: 13px; }
  .l-brand-text small { display: none; }
  .l-btn-quote { width: 100%; font-size: 18px; }
  .quote-float { left: 12px; bottom: 14px; padding: 12px 18px; }
}

/* Let long button labels wrap so the quote form never overflows on phones */
.landing .l-btn-quote, .l-submit { white-space: normal; text-align: center; }
.l-quote > *, .l-qgrid > * { min-width: 0; }
@media (max-width: 420px) {
  .l-nav { padding: 10px 12px; }
  .l-brand { font-size: 15px; gap: 8px; }
  .l-brand img { width: 30px; height: 30px; }
  .landing .l-btn.ghost#openSignin { padding: 8px 12px; font-size: 14px; }
}

/* Install-app buttons */
.l-btn[hidden], .l-install[hidden] { display: none; }
.landing .l-install { padding: 9px 14px; font-size: 14px; }
@media (max-width: 600px) { .landing .l-install { display: none; } }
.l-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.l-install-hero[hidden] { display: none; }

/* Destinations we do not serve */
.l-nogo { border-color: rgba(251, 113, 133, .45); }
.l-chip-no { border-color: rgba(251, 113, 133, .55); background: rgba(251, 113, 133, .1); color: #fecdd3; }

/* Sign-in / setup card is white: give its labels and fields normal dark, readable styling (not the dark-theme website fields) */
.signin-overlay .auth-card { background: #fff; color: #1c2333; }
.signin-overlay .auth-card h2 { color: #1c2333; }
.signin-overlay .auth-card .muted { color: #5b6478; }
.signin-overlay .auth-card label { color: #1c2333; font-size: 13px; font-weight: 700; }
.signin-overlay .auth-card input { background: #fff; color: #111; border: 1.5px solid #9aa4b8; font-size: 16px; padding: 10px 12px; }
.signin-overlay .auth-card input::placeholder { color: #8a93a6; }
.signin-overlay .auth-card input:focus { outline: 3px solid rgba(47, 107, 255, .3); border-color: #2f6bff; }
.signin-overlay .auth-card .auth-error { color: #c62f3c; font-weight: 600; }
/* Keep the floating buttons out of the way while the sign-in / setup panel is open */
body.no-scroll .fab-stack, body.no-scroll .chat-panel, body.no-scroll .quote-float { display: none !important; }
.l-only { margin: 12px 0 0; }
.l-only b { color: #fde047; }
/* Phones: keep logo, Get a quote and Sign in on one line */
@media (max-width: 480px) {
  .l-nav { gap: 6px; padding: 10px 10px; }
  .l-brand { font-size: 13px; gap: 6px; min-width: 0; }
  .l-brand img { width: 28px; height: 28px; }
  .landing .l-nav-quote { padding: 7px 10px; font-size: 13px; }
  .landing .l-btn.ghost#openSignin { padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 380px) { .l-brand-text { display: none; } }
/* Gradient link-buttons on the website: dark text for contrast (ghost buttons keep light text) */
.landing a.l-btn:not(.ghost) { color: #0a0f2c; text-decoration: none; }

/* ---------- QR codes ---------- */
.doc-qr { float: right; width: 92px; margin: 0 0 6px 14px; text-align: center; font-size: 9.5px; color: #333; line-height: 1.2; }
.doc-qr svg { display: block; width: 92px; height: 92px; }
.doc-footer::after { content: ""; display: block; clear: both; }
.wb-track .doc-qr { float: none; margin: 0; flex: none; width: 84px; }
.wb-track .doc-qr svg { width: 84px; height: 84px; }
.wb-track > div:nth-child(2) { flex: 1; }

.qr-poster { text-align: center; padding: 10mm 6mm; }
.qp-head { display: flex; align-items: center; justify-content: center; gap: 14px; }
.qp-head .doc-logo { width: 64px; height: 64px; }
.qp-name { font-size: 30px; font-weight: 800; color: #0a0f2c; }
.qp-tag { font-size: 16px; color: #3a7d0a; font-style: italic; }
.qr-poster h1 { font-size: 30px; margin: 12mm 0 8mm; color: #0a0f2c; }
.qp-codes { display: flex; justify-content: center; gap: 14mm; flex-wrap: wrap; }
.qp-codes > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6mm; border: 3px solid #0a0f2c; border-radius: 16px; }
.qp-codes svg { width: 70mm; height: 70mm; display: block; }
.qp-codes strong { font-size: 20px; margin-top: 4px; }
.qp-codes span { font-size: 15px; color: #333; }
.qp-services { font-size: 15px; margin: 10mm auto 6mm; max-width: 160mm; color: #222; }
.qp-centres { display: flex; flex-direction: column; gap: 4px; font-size: 15px; padding: 5mm; border-radius: 12px; background: #f4fbe9;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qp-centres em { color: #5b6478; font-size: 13px; }
.qp-contacts { margin-top: 6mm; font-size: 17px; font-weight: 700; }

.landing .l-scan { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.landing .l-scan p { margin: 6px 0 0; }
.l-scan-code { flex: none; width: 128px; height: 128px; padding: 6px; background: #fff; border-radius: 12px; }
.l-scan-code svg { display: block; width: 100%; height: 100%; }
@media (max-width: 700px) { .landing .l-scan { display: none !important; } }

/* Estimate / proforma PDF downloads on the website */
.landing .l-est-pdf { margin-top: 12px; width: 100%; }
.landing #qThanksPdf, .landing #quotePdf { margin-top: 10px; }
.doc-note { font-size: 11.5px; color: #444; margin: 10px 0 0; }
