:root {
  --navy: #07111f;
  --navy-2: #0c1b2d;
  --panel: #ffffff;
  --canvas: #f4f7fb;
  --ink: #102137;
  --muted: #637083;
  --line: #dfe6ee;
  --brand: #0878f9;
  --brand-dark: #075fc7;
  --brand-soft: #eaf4ff;
  --green: #0b936b;
  --green-soft: #e8f8f2;
  --amber: #c47a0b;
  --amber-soft: #fff4df;
  --red: #d33f49;
  --red-soft: #fff0f1;
  --purple: #7258d5;
  --shadow: 0 16px 46px rgba(15, 34, 57, 0.09);
  --shadow-sm: 0 5px 18px rgba(15, 34, 57, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

/* GGCLT white-label additions */
.vehicle-visual img { width: 92%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(17,24,39,.18)); }
.brand-lockup .ggclt-top-logo { width: 218px; max-width: 218px; height: 62px; object-fit: contain !important; object-position: left center; filter: brightness(0) invert(1); }
.operator-logo.ggclt-mark { width: 330px; height: 119px; border-radius: 0; background: transparent; box-shadow: none; place-items: start; }
.operator-logo.ggclt-mark img { width: 100%; height: 100%; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.operator-brand:has(.ggclt-mark) { align-items: center; }
.operator-brand:has(.ggclt-mark) > div:last-child { display: none; }
.stop-row { display: grid; grid-template-columns: minmax(0,1fr) 116px 36px; gap: 8px; align-items: end; position: relative; }
.stop-row .route-field { min-width: 0; }
.route-dot.stop { border-radius: 3px; background: #9aa3af; }
.stop-wait { position: relative; }
.stop-wait label { display: block; font-size: 10px; font-weight: 800; color: var(--muted); margin: 0 0 4px 2px; }
.stop-wait .input { padding-right: 36px; padding-left: 10px; }
.stop-wait span { position: absolute; right: 9px; bottom: 12px; font-size: 10px; color: var(--muted); pointer-events: none; }
.stop-remove { width: 36px; height: 42px; padding: 0; font-size: 20px; }
.add-stop { margin: 11px 0 4px; }
.journey-stops { margin: -2px 0 16px; padding: 11px 13px; display: grid; gap: 4px; border: 1px solid #dce4ed; border-radius: 10px; background: #f8fafc; font-size: 11px; color: var(--muted); }
.journey-stops strong { color: var(--ink); }
.terms-accept { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 8px; font-size: 11px; line-height: 1.45; color: var(--ink); }
.terms-accept input { width: 17px; height: 17px; margin-top: 0; accent-color: var(--brand); flex: 0 0 auto; }
.terms-panel { border: 1px solid #dce4ed; border-radius: 10px; background: #f8fafc; margin-bottom: 14px; }
.terms-panel summary { cursor: pointer; padding: 10px 12px; font-size: 11px; font-weight: 800; }
.terms-scroll { max-height: 220px; overflow: auto; padding: 0 12px 12px; font-size: 10px; line-height: 1.55; color: var(--muted); }
.terms-scroll h4 { color: var(--ink); margin: 5px 0 8px; }
.terms-scroll p { margin: 0 0 8px; }
.driver-stop.intermediate i { background: #9aa3af; border-radius: 2px; }
.place-results { position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 5px); background: white; border: 1px solid #d7e0ea; border-radius: 11px; box-shadow: 0 18px 44px rgba(15,23,42,.18); overflow: hidden; }
.place-results:empty { display: none; }
.place-option { display: grid; width: 100%; gap: 2px; padding: 10px 13px 10px 42px; text-align: left; border: 0; border-bottom: 1px solid #edf1f5; background: white; color: var(--ink); cursor: pointer; position: relative; }
.place-option::before { content: ""; position: absolute; left: 18px; top: 17px; width: 8px; height: 8px; border: 2px solid var(--brand); border-radius: 50%; }
.place-option:hover, .place-option:focus-visible { background: #f5f8fb; outline: none; }
.place-option strong { font-size: 11px; line-height: 1.35; }
.place-option span { font-size: 10px; line-height: 1.35; color: var(--muted); }
.google-attribution, .place-fallback-note { display: flex; justify-content: flex-end; align-items: center; min-height: 28px; padding: 5px 10px; background: #fff; }
.google-attribution img { width: 120px; height: auto; }
.place-fallback-note { justify-content: flex-start; font-size: 9px; color: var(--muted); }
.maps-connection { margin: -2px 0 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fc; color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.35; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.maps-connection a { flex:0 0 auto; color:inherit; font-weight:900; text-decoration:underline; text-underline-offset:2px; }
.maps-connection.connected { border-color: #a7e1c2; background: #effbf4; color: #187746; }
.maps-connection.warning { border-color: #f0d58d; background: #fff9e9; color: #84600a; }
.maps-connection.error { border-color: #efb1b1; background: #fff2f2; color: #a02929; }
.quote-route-map { width:100%; height:220px; margin:14px 0; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#eef2f6; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:11px; font-weight:800; }
.quote-route-map.unavailable { height:auto; min-height:48px; padding:12px; background:#f7f9fc; }
.pac-container { z-index: 5000 !important; border-radius: 10px; box-shadow: 0 18px 44px rgba(15,23,42,.2); border: 1px solid #d7e0ea; font-family: inherit; }

@media (max-width: 620px) {
  .stop-row { grid-template-columns: minmax(0,1fr) 96px 34px; gap: 6px; }
  .operator-logo.ggclt-mark { width: min(300px, 100%); height: auto; aspect-ratio: 1140 / 410; }
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }

body { margin: 0; min-height: 100vh; background: var(--canvas); }

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 88px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  background: rgba(7, 17, 31, 0.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 180px; }
.brand-lockup img { width: 235px; height: 70px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.brand-fallback { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: white; background: linear-gradient(145deg, var(--brand), #39b8ff); box-shadow: 0 8px 20px rgba(8,120,249,.3);
}
.brand-caption { display: block; color: #8fa1b8; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; margin-top: 2px; }

.mode-switch { display: flex; gap: 5px; padding: 5px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 13px; }
.mode-btn { border: 0; background: transparent; color: #aebcce; padding: 9px 13px; border-radius: 9px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.mode-btn.active { color: var(--navy); background: white; box-shadow: 0 3px 10px rgba(0,0,0,.22); }
.mode-btn svg { width: 16px; height: 16px; }

.top-actions { min-width: 180px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.live-pill { display: flex; align-items: center; gap: 7px; color: #cad6e3; font-size: 12px; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #27d49b; box-shadow: 0 0 0 5px rgba(39,212,155,.12); }
.live-dot.offline { background: #f0a53b; box-shadow: 0 0 0 5px rgba(240,165,59,.12); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #27405f, #182a41); border: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 800; }

.mobile-rolebar { display: none; }

.page { min-height: calc(100vh - 88px); }
.page-width { max-width: 1420px; margin: 0 auto; padding: 28px 34px 56px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(28px, 3vw, 39px); line-height: 1.08; letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 850; margin-bottom: 8px; }

.btn {
  border: 1px solid transparent; border-radius: 11px; min-height: 42px; padding: 0 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 780; transition: .18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: white; background: var(--brand); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { color: white; background: var(--navy); }
.btn-secondary { color: var(--ink); background: white; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #bcc9d8; }
.btn-soft { color: var(--brand-dark); background: var(--brand-soft); }
.btn-danger { color: var(--red); background: var(--red-soft); border-color: #ffd8db; }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-small { min-height: 34px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn-full { width: 100%; }
.btn[disabled] { cursor: not-allowed; opacity: .5; transform: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.card-head p { color: var(--muted); margin: 4px 0 0; font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: #34465d; font-size: 12px; font-weight: 750; }
.field-hint { color: var(--muted); font-size: 11px; margin: 1px 0 0; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #8a9aae; pointer-events: none; }
.input, .select, .textarea {
  width: 100%; color: var(--ink); background: white; border: 1px solid #cfd8e3; border-radius: 11px;
  outline: 0; transition: border .15s, box-shadow .15s; font-size: 14px;
}
.input, .select { height: 45px; padding: 0 13px; }
.input.has-icon { padding-left: 40px; }
.textarea { min-height: 88px; padding: 12px 13px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.choice-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { min-height: 48px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 720; cursor: pointer; transition: .15s; }
.choice input:checked + label { color: var(--brand-dark); background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 60%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 8%, transparent); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { color: #a56300; background: var(--amber-soft); }
.status-confirmed, .status-driver_assigned { color: #1766bd; background: #e9f3ff; }
.status-en_route, .status-arrived, .status-onboard { color: #6546cc; background: #f0edff; }
.status-completed { color: #087958; background: var(--green-soft); }
.status-cancelled { color: #b92f39; background: var(--red-soft); }

.customer-page { background: var(--canvas); }
.customer-hero { position:relative; isolation:isolate; max-width: 1180px; margin: 0 auto; padding: 46px 32px 40px; display: grid; grid-template-columns: 1fr 1.22fr; gap: 56px; align-items: start; }
.customer-hero::before { content:""; position:absolute; z-index:-1; inset:0 calc(50% - 50vw); background:linear-gradient(145deg,var(--navy),var(--navy-2)); }
.customer-copy { color: white; padding-top: 42px; }
.customer-copy .operator-brand { width:min(100%,360px); margin-bottom:32px; }
.customer-copy .operator-brand img { display:block; width:100%; height:auto; filter:brightness(0) invert(1); }
.customer-copy .eyebrow { color:#8fc5ff; }
.operator-logo { width: 47px; height: 47px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: white; box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 34%, transparent); overflow: hidden; }
.operator-logo img { width: 100%; height: 100%; object-fit: cover; }
.operator-logo svg { width: 25px; height: 25px; }
.operator-name { font-size: 16px; font-weight: 800; }
.operator-tagline { font-size: 11px; color: #9fb1c7; margin-top: 2px; }
.customer-copy h1 { margin: 0; font-size: clamp(36px, 5vw, 62px); line-height: .99; letter-spacing: -.058em; max-width: 580px; }
.customer-copy h1 span { color: #55adff; }
.customer-copy > p { color: #aebed0; max-width: 500px; line-height: 1.65; margin: 22px 0 30px; }
.trust-row { display: flex; width: max-content; max-width: 100%; gap: 18px; flex-wrap: wrap; padding: 11px 13px; color: #e7eef7; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; font-size: 12px; font-weight: 720; }
.trust-item { display: flex; align-items: center; gap: 7px; }
.trust-item svg { width: 16px; height: 16px; color: #52d5a8; }

.booking-card { overflow: hidden; box-shadow: 0 24px 80px rgba(1,10,22,.28); border: 0; }
.booking-top { padding: 22px 25px 18px; border-bottom: 1px solid var(--line); }
.booking-top h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.03em; }
.booking-top p { margin: 0; color: var(--muted); font-size: 12px; }
.steps { display: flex; gap: 6px; margin-top: 17px; }
.step-line { height: 4px; flex: 1; border-radius: 5px; background: #e7edf4; }
.step-line.active { background: var(--brand); }
.booking-body { padding: 23px 25px 25px; }
.booking-form { display: flex; flex-direction: column; gap: 18px; }
.route-stack { display: grid; gap: 10px; position: relative; }
.route-stack::before { content: ""; position: absolute; left: 20px; top: 34px; bottom: 34px; width: 1px; background: #cdd8e5; }
.route-field { position: relative; }
.route-dot { position: absolute; z-index: 2; top: 50%; left: 15px; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; background: var(--brand); border: 3px solid white; box-shadow: 0 0 0 1px var(--brand); }
.route-dot.end { background: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.route-field .input { padding-left: 42px; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 800; color: #35465c; }
.text-link { border: 0; background: none; color: var(--brand-dark); font-size: 12px; font-weight: 750; padding: 0; }
.quote-box { background: linear-gradient(135deg, var(--navy), #163451); color: white; border-radius: 15px; padding: 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.quote-box small { display: block; color: #9fb1c7; margin-bottom: 5px; font-weight: 700; }
.quote-total { font-size: 30px; font-weight: 850; letter-spacing: -.045em; }
.quote-meta { text-align: right; font-size: 11px; color: #b7c6d7; line-height: 1.55; }
.quote-meta strong { display: block; color: white; font-size: 13px; }
.booking-footer { display: flex; gap: 10px; }
.booking-footer .btn-primary { flex: 1; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: #8491a2; font-size: 10px; margin-top: -5px; }
.secure-note svg { width: 13px; }
.flight-card { padding: 13px; border-radius: 12px; background: #eef6ff; border: 1px solid #d7eaff; display: flex; gap: 12px; }
.flight-card svg { width: 19px; color: var(--brand); flex: 0 0 auto; }
.flight-card strong { display: block; font-size: 12px; }
.flight-card span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.45; }
.confirmation { text-align: center; padding: 10px 0 3px; }
.success-mark { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.success-mark svg { width: 35px; height: 35px; }
.confirmation h2 { margin: 0 0 8px; font-size: 25px; }
.confirmation p { margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 390px; }
.confirmation-ref { margin: 20px 0; padding: 14px; border: 1px dashed #b9c7d6; border-radius: 12px; background: #f8fafc; }
.confirmation-ref span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.confirmation-ref strong { display: block; margin-top: 4px; font-size: 21px; letter-spacing: .05em; }

.customer-features { max-width: 1180px; margin: 28px auto 0; padding: 0 32px 55px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 18px; display: flex; gap: 13px; align-items: flex-start; }
.feature-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.feature-icon svg { width: 19px; }
.feature-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.operator-layout { display: grid; grid-template-columns: 225px 1fr; min-height: calc(100vh - 74px); }
.sidebar { background: #0a1727; color: white; padding: 24px 14px; border-top: 1px solid rgba(255,255,255,.04); }
.sidebar-label { color: #637890; text-transform: uppercase; font-size: 9px; letter-spacing: .16em; font-weight: 850; margin: 10px 11px 9px; }
.side-nav { display: grid; gap: 4px; }
.side-item { width: 100%; height: 43px; padding: 0 12px; display: flex; align-items: center; gap: 11px; color: #9db0c5; background: transparent; border: 0; border-radius: 10px; font-size: 12px; font-weight: 720; text-align: left; }
.side-item:hover { color: white; background: rgba(255,255,255,.05); }
.side-item.active { color: white; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 34%, transparent), rgba(8,120,249,.08)); box-shadow: inset 3px 0 var(--brand); }
.side-item svg { width: 17px; height: 17px; }
.sidebar-foot { margin-top: 30px; padding: 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); }
.sidebar-foot strong { display: block; font-size: 11px; }
.sidebar-foot span { display: block; color: #71859c; font-size: 10px; margin: 4px 0 10px; }
.usage-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.usage-track i { display: block; width: 62%; height: 100%; background: var(--brand); }
.operator-main { min-width: 0; background: var(--canvas); }

.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 17px; }
.metric { padding: 19px; position: relative; overflow: hidden; }
.metric-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); margin-bottom: 15px; }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.purple { color: var(--purple); background: #f0edff; }
.metric-icon svg { width: 19px; }
.metric label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric strong { display: block; font-size: 27px; letter-spacing: -.04em; margin-top: 5px; }
.metric-trend { position: absolute; right: 16px; top: 18px; color: var(--green); background: var(--green-soft); border-radius: 8px; padding: 4px 6px; font-size: 9px; font-weight: 800; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); gap: 17px; }
.manifest { padding: 0 22px 8px; }
.trip-row { display: grid; grid-template-columns: 73px 32px minmax(160px,1.5fr) minmax(120px,.8fr) auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid #edf1f5; }
.trip-row:last-child { border-bottom: 0; }
.trip-time strong { display: block; font-size: 13px; }
.trip-time span { color: var(--muted); font-size: 10px; }
.timeline-node { position: relative; width: 24px; height: 24px; border: 2px solid var(--brand); background: white; border-radius: 50%; display: grid; place-items: center; color: var(--brand); }
.timeline-node::after { content: ""; position: absolute; top: 22px; left: 10px; width: 1px; height: 42px; background: #d8e2ec; }
.trip-row:last-child .timeline-node::after { display: none; }
.timeline-node svg { width: 11px; }
.trip-route strong, .trip-driver strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-route span, .trip-driver span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-state .feature-icon { margin: auto; }
.empty-state h3 { margin: 12px 0 6px; font-size: 15px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 12px; }

.activity-list { padding: 4px 20px 12px; }
.activity { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf1f5; }
.activity:last-child { border: 0; }
.activity-dot { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.activity-dot svg { width: 14px; }
.activity p { margin: 0; font-size: 11px; line-height: 1.45; }
.activity p strong { font-weight: 800; }
.activity time { display: block; margin-top: 3px; color: #93a0b0; font-size: 9px; }
.setup-card { margin-top: 17px; background: linear-gradient(145deg, #0b1a2d, #173a60); color: white; border: 0; overflow: hidden; position: relative; }
.setup-card::after { content: "R"; position: absolute; right: -10px; bottom: -34px; color: rgba(255,255,255,.04); font-size: 130px; font-weight: 900; }
.setup-card p { color: #9fb1c7; font-size: 11px; line-height: 1.55; max-width: 220px; }

.toolbar { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.search { width: min(360px, 100%); }
.filter-row { display: flex; gap: 8px; }
.filter-row .select { width: 160px; height: 39px; font-size: 12px; }
.search .input { height: 39px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.data-table th { padding: 12px 16px; color: #738196; background: #f8fafc; border-bottom: 1px solid var(--line); text-align: left; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 850; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid #edf1f5; font-size: 12px; vertical-align: middle; }
.data-table tr:last-child td { border: 0; }
.data-table tr:hover td { background: #fbfdff; }
.ref { font-weight: 850; color: var(--brand-dark); }
.person strong, .route-cell strong { display: block; font-size: 12px; }
.person span, .route-cell span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

.dispatch-board { display: grid; grid-template-columns: 96px repeat(3,1fr); min-width: 820px; }
.dispatch-board > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dispatch-head { padding: 14px; background: #f8fafc; font-size: 11px; font-weight: 800; }
.dispatch-head span { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.dispatch-time { min-height: 86px; padding: 12px; color: var(--muted); font-size: 10px; background: #fbfcfe; }
.dispatch-cell { min-height: 86px; padding: 7px; }
.job-block { padding: 10px; height: 100%; border-radius: 10px; color: #154e89; background: #eaf4ff; border-left: 3px solid var(--brand); font-size: 10px; }
.job-block strong { display: block; font-size: 11px; margin-bottom: 4px; }
.job-block.purple { color: #563db0; background: #f1edff; border-color: var(--purple); }
.job-block.green { color: #087151; background: var(--green-soft); border-color: var(--green); }

.settings-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(330px,.75fr); gap: 18px; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border: 0; }
.form-section h3 { margin: 0 0 5px; font-size: 14px; }
.form-section > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.color-input { display: flex; gap: 9px; }
.color-input input[type=color] { width: 45px; height: 45px; padding: 3px; border: 1px solid #cfd8e3; border-radius: 10px; background: white; }
.preview-phone { width: 270px; height: 548px; margin: 4px auto 0; padding: 9px; border-radius: 35px; background: #07111f; box-shadow: 0 24px 50px rgba(8,20,35,.25); }
.preview-screen { height: 100%; border-radius: 27px; background: #f4f7fb; overflow: hidden; position: relative; }
.preview-island { position: absolute; z-index: 2; width: 78px; height: 20px; left: 50%; top: 8px; transform: translateX(-50%); border-radius: 20px; background: #07111f; }
.preview-hero { height: 178px; padding: 44px 18px 18px; color: white; background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 58%, #07111f)); }
.preview-brand { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; }
.preview-brand i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: white; color: var(--brand); font-style: normal; }
.preview-hero h4 { margin: 24px 0 5px; font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.preview-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 9px; }
.preview-form { margin: -22px 12px 0; padding: 13px; border-radius: 13px; background: white; box-shadow: var(--shadow-sm); }
.preview-line { height: 31px; margin: 7px 0; border: 1px solid var(--line); border-radius: 7px; }
.preview-button { height: 31px; margin-top: 10px; border-radius: 7px; color: white; background: var(--brand); display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.preview-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 55px; display: flex; justify-content: space-around; align-items: center; background: white; border-top: 1px solid var(--line); }
.preview-tabs span { width: 19px; height: 4px; border-radius: 4px; background: #ccd5df; }
.preview-tabs span:first-child { background: var(--brand); }

.fleet-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.vehicle-card { overflow: hidden; }
.vehicle-visual { height: 110px; display: grid; place-items: center; color: #aac5e3; background: linear-gradient(145deg,#eaf4ff,#f8fbff); }
.vehicle-visual svg { width: 78px; height: 78px; stroke-width: 1.1; }
.vehicle-body { padding: 17px; }
.vehicle-body h3 { margin: 0 0 4px; font-size: 15px; }
.vehicle-body > p { margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.vehicle-specs { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.vehicle-specs span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.vehicle-specs svg { width: 14px; }

.driver-page { background: #07111f; min-height: calc(100vh - 74px); color: white; }
.driver-wrap { width: min(100%, 520px); margin: 0 auto; padding: 28px 20px 70px; }
.driver-greeting { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.driver-greeting h1 { margin: 0 0 5px; font-size: 28px; letter-spacing: -.04em; }
.driver-greeting p { margin: 0; color: #8fa1b7; font-size: 12px; }
.driver-profile { display: flex; align-items: center; gap: 9px; }
.driver-select { border: 1px solid #2b3b4f; color: white; background: #101f31; border-radius: 10px; padding: 8px 10px; font-size: 11px; }
.driver-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 17px; }
.driver-stat { padding: 15px; border-radius: 14px; background: #0d1c2e; border: 1px solid #1e3045; }
.driver-stat span { display: block; color: #7f92aa; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.driver-stat strong { display: block; margin-top: 7px; font-size: 21px; }
.driver-section-title { display: flex; align-items: center; justify-content: space-between; margin: 21px 2px 11px; }
.driver-section-title h2 { margin: 0; font-size: 13px; letter-spacing: .01em; }
.driver-section-title span { color: #71859d; font-size: 10px; }
.driver-trip { color: var(--ink); background: white; border-radius: 18px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 18px 42px rgba(0,0,0,.25); }
.driver-trip-head { padding: 15px 17px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.driver-trip-head strong { font-size: 12px; }
.driver-trip-head span { color: var(--muted); font-size: 10px; }
.driver-route { padding: 17px; }
.driver-stop { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; position: relative; padding-bottom: 16px; }
.driver-stop:last-child { padding-bottom: 0; }
.driver-stop:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 15px; bottom: 2px; width: 1px; background: #d6e0ea; }
.driver-stop i { margin-top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #eaf4ff; }
.driver-stop:last-child i { background: var(--navy); box-shadow: 0 0 0 3px #e9edf2; }
.driver-stop strong { display: block; font-size: 12px; }
.driver-stop span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.driver-stop time { color: var(--ink); font-size: 11px; font-weight: 800; }
.driver-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.driver-detail { padding: 12px; background: #f8fafc; }
.driver-detail span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.driver-detail strong { display: block; margin-top: 4px; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.driver-actions { padding: 14px 17px 17px; display: grid; grid-template-columns: 42px 1fr; gap: 9px; }
.driver-actions .btn-secondary { padding: 0; }
.gps-banner { padding: 11px 13px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: #a7f2da; background: rgba(26,180,131,.12); border: 1px solid rgba(41,212,158,.2); border-radius: 12px; font-size: 10px; }
.gps-pulse { width: 8px; height: 8px; border-radius: 50%; background: #28d79f; box-shadow: 0 0 0 5px rgba(40,215,159,.12); }
.timeline-status { padding: 3px 17px 16px; display: grid; grid-template-columns: repeat(5,1fr); }
.time-step { position: relative; text-align: center; color: #9aa7b6; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.time-step::before { content: ""; display: block; width: 12px; height: 12px; margin: 0 auto 5px; border-radius: 50%; background: #dfe5eb; position: relative; z-index: 2; }
.time-step:not(:last-child)::after { content: ""; position: absolute; height: 2px; left: 50%; right: -50%; top: 5px; background: #dfe5eb; }
.time-step.done::before, .time-step.done:not(:last-child)::after { background: var(--green); }
.time-step.current::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.time-step.current { color: var(--brand-dark); }

.auth-page { display: grid; place-items: center; padding: 42px 18px 90px; background: radial-gradient(circle at 50% 0, #17385d 0, #091728 36%, #07111f 72%); color: white; }
.auth-card { width: min(100%, 440px); padding: 34px; color: var(--ink); text-align: center; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.auth-card h1 { margin: 7px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 auto 24px; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 340px; }
.auth-mark { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; color: white; background: linear-gradient(145deg,var(--brand),#45b7ff); border-radius: 18px; box-shadow: 0 12px 28px color-mix(in srgb,var(--brand) 30%,transparent); }
.auth-mark svg { width: 27px; height: 27px; }
.auth-form { display: grid; gap: 15px; text-align: left; }
.auth-error { padding: 10px 12px; color: #b92f39; background: var(--red-soft); border: 1px solid #ffd3d7; border-radius: 10px; font-size: 11px; }
.demo-credentials { padding: 11px; text-align: center; color: #67768a; background: #f6f8fb; border-radius: 10px; font-size: 10px; }
.demo-credentials strong, .demo-credentials span { display: block; }
.demo-credentials span { margin-top: 3px; }
.loading-line { height: 5px; overflow: hidden; background: #e8edf3; border-radius: 9px; }
.loading-line i { display: block; width: 40%; height: 100%; background: var(--brand); border-radius: 9px; animation: loading-slide 1s ease-in-out infinite alternate; }
@keyframes loading-slide { from { transform: translateX(-10%); } to { transform: translateX(170%); } }

.integration-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.subscription-strip { margin-bottom: 12px; padding: 15px 17px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; }
.subscription-strip > div > span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.subscription-strip > div > strong { display: block; margin: 3px 0; font-size: 13px; text-transform: capitalize; }
.subscription-strip > div > small { display: block; color: var(--muted); font-size: 9px; }
.integration-card { min-width: 0; padding: 16px; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; position: relative; }
.integration-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.integration-icon svg { width: 18px; }
.integration-card > div { min-width: 0; }
.integration-card > div > span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.integration-card > div > strong { display: block; margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.integration-card > div > small { display: block; color: var(--muted); font-size: 8px; }
.integration-card > .status { grid-column: 1 / -1; justify-self: start; }
.report-panel { padding: 22px; }
.report-title { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.report-title strong { display: block; text-transform: capitalize; font-size: 14px; }
.report-title span { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.report-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.report-metrics > div { padding: 12px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; }
.report-metrics span { display: block; color: var(--muted); text-transform: capitalize; font-size: 9px; }
.report-metrics strong { display: block; margin-top: 5px; font-size: 18px; }
.locality-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.locality-list span { padding: 7px 9px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 8px; font-size: 10px; }

.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { width: min(360px, calc(100vw - 36px)); padding: 13px 15px; color: white; background: #0b1a2d; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 15px 40px rgba(0,0,0,.24); border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 12px; animation: toast-in .25s ease-out; }
.toast svg { width: 17px; color: #4edbb0; flex: 0 0 auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1050px) {
  .top-actions { min-width: auto; }
  .live-pill { display: none; }
  .customer-hero { gap: 30px; grid-template-columns: .9fr 1.1fr; }
  .customer-copy { padding-top: 28px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(3,1fr); }
  .preview-sticky { padding: 30px; }
}

@media (max-width: 820px) {
  .topbar { height: 66px; padding: 0 17px; }
  .brand-lockup .ggclt-top-logo { width: 166px; height: 54px; }
  .mode-switch { display: none; }
  .top-actions { min-width: 0; }
  .page { min-height: calc(100vh - 66px); padding-bottom: 67px; }
  .mobile-rolebar { position: fixed; z-index: 40; display: grid; grid-template-columns: repeat(3,1fr); left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); color: #7e90a5; background: rgba(7,17,31,.98); border-top: 1px solid rgba(255,255,255,.08); }
  .mobile-rolebar button { border: 0; color: inherit; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9px; font-weight: 750; }
  .mobile-rolebar button.active { color: white; }
  .mobile-rolebar svg { width: 19px; height: 19px; }
  .customer-page { background: var(--canvas); }
  .customer-hero { padding: 0 18px 20px; display: block; }
  .customer-hero::before { display:none; }
  .customer-copy { margin: 0 -18px 20px; padding: 30px 21px 30px; background: linear-gradient(155deg, var(--navy), var(--navy-2)); }
  .customer-copy .operator-brand { margin-bottom: 20px; }
  .customer-copy > p { margin: 15px 0 20px; font-size: 13px; }
  .trust-row { width: 100%; gap: 10px 16px; }
  .customer-features { padding: 0 18px 35px; grid-template-columns: 1fr; }
  .operator-layout { display: block; }
  .sidebar { padding: 9px; overflow-x: auto; position: sticky; top: 66px; z-index: 20; }
  .sidebar-label, .sidebar-foot { display: none; }
  .side-nav { display: flex; width: max-content; }
  .side-item { width: auto; padding: 0 13px; height: 39px; }
  .side-item.active { box-shadow: inset 0 -2px var(--brand); }
  .page-width { padding: 23px 18px 40px; }
  .fleet-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .filter-row .select { flex: 1; width: auto; }
  .driver-page { min-height: calc(100vh - 66px); }
}

@media (max-width: 560px) {
  .brand-caption { display: none; }
  .brand-lockup img { width: 160px; }
  .avatar { width: 34px; height: 34px; }
  .customer-copy h1 { font-size: 39px; }
  .booking-top, .booking-body { padding-left: 18px; padding-right: 18px; }
  .field-grid, .field-grid.three { grid-template-columns: 1fr; }
  .field-grid.mobile-two { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .field-grid.mobile-two .field, .field-grid.mobile-two .input-wrap, .field-grid.mobile-two input { min-width: 0; width: 100%; }
  .choice-row { grid-template-columns: 1fr; }
  .customer-features { margin-top: 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .btn { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 23px; }
  .metric-trend { display: none; }
  .manifest { padding: 0 15px 7px; }
  .trip-row { grid-template-columns: 61px 24px 1fr auto; gap: 8px; }
  .trip-driver { display: none; }
  .card-head { padding: 17px; }
  .filter-row { flex-wrap: wrap; }
  .filter-row .select { min-width: 120px; }
  .driver-wrap { padding: 23px 14px 85px; }
  .driver-greeting h1 { font-size: 24px; }
  .driver-stats { gap: 7px; }
  .driver-stat { padding: 12px; }
  .driver-stat strong { font-size: 18px; }
  .preview-phone { width: 244px; height: 496px; }
  .form-section { padding: 18px; }
  .integration-grid { grid-template-columns: 1fr 1fr; }
  .integration-card { display: block; }
  .integration-icon { margin-bottom: 10px; }
  .integration-card > .status { margin-top: 9px; }
  .report-metrics { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 26px 20px; }
}
