/* Niklo styles — mobile-first, app-like dark theme matching the Niklo logo
   (near-black + blue/teal/purple gradient). Roman Urdu UI. Comments in English. */
:root {
  --bg: #060a13;          /* page background — matches logo backdrop */
  --card: #101828;        /* cards / sheets */
  --card2: #0b1220;       /* inputs, recessed areas */
  --line: #1e2a44;        /* borders */
  --ink: #f2f6fc;         /* main text */
  --muted: #93a1b8;       /* secondary text */
  --blue: #2f7bff;
  --teal: #22d3ee;
  --purple: #a855f7;
  --green: #22c55e;
  --green-soft: #34d399;
  --danger: #f87171;
  --grad: linear-gradient(135deg, #2f7bff 0%, #22d3ee 65%, #34d399 110%);
  --radius: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink);
  min-height: 100vh; touch-action: manipulation;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}

/* Boot overlay */
.boot { position: fixed; inset: 0; background: var(--bg); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; z-index: 1000; transition: opacity .3s; }
.boot.hide { opacity: 0; pointer-events: none; }
.boot-logo { width: 128px; height: 128px; border-radius: 28px;
  box-shadow: 0 8px 40px rgba(47,123,255,.35); }
.boot-name { font-size: 34px; font-weight: 800; letter-spacing: 1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.boot-tag { opacity: .75; color: var(--muted); }
.boot-bar { width: 160px; height: 6px; background: #1a2440; border-radius: 3px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 3px;
  animation: slide 1s infinite linear; }
@keyframes slide { from { transform: translateX(-100%);} to { transform: translateX(400%);} }

/* Top bar — app-like */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(6,10,19,.96); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  padding-top: max(10px, env(safe-area-inset-top)); }
.brand { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.tbtn { background: #16203a; color: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 14px; min-height: 40px; }
.user-chip { font-size: 13px; background: #16203a; border: 1px solid var(--line);
  color: var(--teal); padding: 6px 10px; border-radius: 20px; font-weight: 700; }

/* Screens */
.screen { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.wrap.narrow { max-width: 480px; }
.wrap.wide { max-width: 960px; }
.center { text-align: center; }
h1 { font-size: 24px; margin: 8px 0 12px; }
h2 { font-size: 18px; margin: 22px 0 10px; }
.muted { color: var(--muted); }
.err { color: var(--danger); font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; }

/* Role select cards — big tappable, owner's explicit requirement */
.role-h { font-size: 22px; text-align: center; margin-top: 26px; }
.role-sub { text-align: center; color: var(--muted); }
/* Role select — avatar icons with clear selected state */
.role-pick { display: flex; gap: 12px; margin-top: 24px; }
.role-opt { flex: 1; background: var(--card); border: 2px solid var(--line); border-radius: 20px;
  padding: 26px 10px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink); position: relative; min-height: 200px; justify-content: center; }
.role-opt:active { transform: scale(.97); }
.role-av { font-size: 34px; width: 78px; height: 78px; border-radius: 50%;
  background: rgba(148,163,184,.12); display: flex; align-items: center; justify-content: center; }
.role-opt.on { border: 2px solid transparent;
  background: linear-gradient(#0d1830, #0d1830) padding-box, var(--grad) border-box;
  box-shadow: 0 0 24px rgba(47,123,255,.35); }
.role-opt.on .role-av { background: var(--grad); }
.role-opt.on::after { content: "✓"; position: absolute; top: 10px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.role-t { font-size: 20px; font-weight: 800; }
.role-d { color: var(--muted); font-size: 13px; }
#btnRoleGo { margin-top: 20px; }

/* Buttons & inputs */
.primary { display: block; width: 100%; background: var(--grad); color: #fff; border: 0;
  border-radius: var(--radius); padding: 16px; font-size: 18px; font-weight: 700;
  min-height: 56px; margin-top: 14px;
  box-shadow: 0 6px 20px rgba(47,123,255,.30); }
.primary:active { transform: scale(.99); }
.primary:disabled { background: #2a3550; box-shadow: none; color: #7b8aa5; }
.primary.off { background: #2a3550; box-shadow: none; color: #7b8aa5; }
.danger { display: block; width: 100%; background: transparent; color: var(--danger);
  border: 2px solid var(--danger); border-radius: var(--radius); padding: 14px;
  font-size: 16px; font-weight: 700; min-height: 52px; margin-top: 14px; }
/* External Google Maps button (anchor styled as a button). */
.extbtn { display: block; width: 100%; box-sizing: border-box; text-align: center;
  background: #0d1830; color: var(--teal); border: 2px solid var(--teal);
  border-radius: var(--radius); padding: 13px; font-size: 16px; font-weight: 700;
  min-height: 52px; margin-top: 12px; text-decoration: none; }
.extbtn[hidden] { display: none; }
.linkbtn { background: none; border: 0; color: var(--teal); font-size: 15px;
  padding: 12px; margin-top: 8px; }
.gbtn { display: inline-flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid #dadce0; border-radius: 12px; padding: 14px 22px;
  font-size: 17px; font-weight: 600; min-height: 56px; margin-top: 14px; color: #1f2937; }
.glogo { background: #fff; border: 2px solid #4285f4; color: #4285f4; font-weight: 800;
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; }
.big-ico { font-size: 64px; margin-top: 30px; }

.fld { display: block; margin: 14px 0; }
.fld > span:first-child, .flabel { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.fld input, .fld select { width: 100%; border: 2px solid var(--line); border-radius: 12px;
  padding: 14px; font-size: 16px; background: var(--card2); color: var(--ink); min-height: 54px;
  transition: border-color .15s ease, box-shadow .15s ease; }
.fld input::placeholder { color: #5b6b8c; }
.fld select option { background: var(--card2); }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.fld.inline { display: flex; align-items: center; gap: 10px; }
/* Professional joined phone input: +92 box attached to the number field */
.phone-row { display: flex; gap: 0; align-items: stretch; }
.phone-row .cc { background: #16203a; border: 2px solid var(--line); border-right: none;
  border-radius: 12px 0 0 12px; padding: 0 14px; display: flex; align-items: center;
  font-weight: 800; font-size: 16px; white-space: nowrap; color: var(--teal); }
.phone-row input { flex: 1; border-radius: 0 12px 12px 0; }
.phone-row input:focus { box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
/* Number-plate photo preview + optional tag */
.plate-prev { display: block; max-width: 100%; border-radius: 12px; margin-top: 10px;
  border: 2px solid var(--line); }
.fld .opt { color: var(--muted); font-weight: 400; font-size: 13px; }
/* City rule note (e.g. no rickshaw in Islamabad) + location-required note */
.city-note { background: rgba(255,180,0,.1); border: 1px solid rgba(255,180,0,.35);
  color: #ffd166; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 10px 0 0; }
.loc-note { background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.4);
  color: #ff9d9d; border-radius: 12px; padding: 12px; font-size: 14px; margin: 12px 0; }
.loc-note .linkbtn { margin-top: 6px; }
/* Current point address line */
.pt-addr { background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; margin-bottom: 8px; }
/* Place search (Nominatim, free) */
.search-inp { width: 100%; border: 2px solid var(--line); border-radius: 12px;
  padding: 13px 14px; font-size: 16px; background: var(--card2); color: var(--ink); }
.search-inp:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.search-results { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.search-results:empty { display: none; }
.sr-item { background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; text-align: left; color: var(--ink); }
.sr-item:active { border-color: var(--teal); }
.sr-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
/* ===== Mascot guide (uncle) ===== */
.mascot { position: fixed; right: 10px; top: 24%; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; }
.mascot[hidden] { display: none; }
.mascot-body { position: relative; width: 78px; height: 78px; cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.mascot-body:active { transform: scale(.94); }
.m-face { width: 66px; height: 66px; border-radius: 50%; background: #f0c08a;
  border: 3px solid #fff; position: absolute; left: 4px; top: 6px; overflow: hidden; }
.m-cap { position: absolute; top: -2px; left: 6px; right: 6px; height: 22px;
  background: linear-gradient(135deg, #0d9488, #2f7bff); border-radius: 4px 4px 30px 30px; }
.m-eye { position: absolute; top: 28px; width: 8px; height: 11px; background: #232323; border-radius: 50%; }
.m-eye.left { left: 19px; }
.m-eye.right { right: 19px; }
.m-smile { position: absolute; bottom: 12px; left: 21px; right: 21px; height: 13px;
  border-bottom: 4px solid #7c4a21; border-radius: 0 0 30px 30px; }
.m-hand { position: absolute; right: 0; top: 0; font-size: 30px;
  animation: wave 1.4s ease-in-out infinite; transform-origin: bottom center; }
@keyframes wave { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(22deg); } 75% { transform: rotate(-16deg); } }
.mascot-bubble { background: #fff; color: #14202e; border-radius: 14px; padding: 8px 12px;
  font-size: 13px; line-height: 1.35; max-width: 172px; margin-bottom: 8px; text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.4); position: relative; }
.mascot-bubble:after { content: ""; position: absolute; bottom: -8px; right: 28px;
  border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
/* Guide bottom-sheet */
.guide-card { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 16px 16px; box-shadow: 0 10px 34px rgba(0,0,0,.55);
  max-height: 62vh; overflow-y: auto; }
.guide-card[hidden] { display: none; }
.g-close { position: absolute; top: 8px; right: 10px; background: var(--card2);
  border: 1px solid var(--line); color: var(--ink); border-radius: 50%;
  width: 32px; height: 32px; font-size: 15px; }
.guide-card h3 { margin: 0 0 8px; font-size: 18px; }
.guide-card p { margin: 6px 0; font-size: 15px; }
.g-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.micbtn { width: 78px; height: 78px; border-radius: 50%; font-size: 36px; border: none;
  background: var(--grad); margin: 10px auto; display: block; color: #fff; }
.micbtn.listening { animation: micpulse 1s ease-in-out infinite; }
@keyframes micpulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47,123,255,.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(47,123,255,0); } }
.g-heard { background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; min-height: 44px; font-size: 14px; }
/* Moving vehicle on route preview */
.vmove { font-size: 34px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
/* Numbered map pins (Google-Maps style) */
.mpin { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 14px; font-weight: 800; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.mpin span { transform: rotate(45deg); }
/* Stop rows */
.stop-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.stop-row .grow { flex: 1; }
.stop-n { width: 30px; height: 30px; border-radius: 50%; background: #f59e0b; color: #fff;
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 8px; }
/* Pickup mode toggle (current location vs map pick) */
.pick-toggle { display: flex; gap: 8px; }
.ptab { flex: 1; background: var(--card2); border: 2px solid var(--line); border-radius: 12px;
  padding: 11px 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ptab:active { transform: scale(.97); }
.ptab.on { border: 2px solid transparent;
  background: linear-gradient(#0d1830, #0d1830) padding-box, var(--grad) border-box;
  color: var(--teal); box-shadow: 0 0 14px rgba(47,123,255,.3); }
/* Driver approval notice (driver panel) */
.appr-note { background: rgba(255,180,0,.1); border: 1px solid rgba(255,180,0,.4);
  color: #ffd166; border-radius: 14px; padding: 14px; font-size: 15px; margin: 12px 0; line-height: 1.6; }

/* Segmented selector — beautiful vehicle tabs with clear selected state */
.seg { display: flex; gap: 10px; }
.seg-btn { flex: 1; background: var(--card2); border: 2px solid var(--line); border-radius: 16px;
  padding: 14px 6px 12px; min-height: 88px; color: var(--ink); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.seg-btn:active { transform: scale(.97); }
.seg-btn .vico { font-size: 30px; line-height: 1; width: 58px; height: 58px; border-radius: 18px;
  background: rgba(148,163,184,.12); display: flex; align-items: center; justify-content: center; }
.seg-btn small { font-size: 13px; color: var(--muted); font-weight: 700; }
.seg-btn.on .vico { background: var(--grad); }
.seg-btn.on small { color: var(--teal); }
.seg-btn.on { border: 2px solid transparent;
  background: linear-gradient(#0d1830, #0d1830) padding-box, var(--grad) border-box;
  box-shadow: 0 0 20px rgba(47,123,255,.35); }
.seg-btn.on small { color: var(--teal); }
.seg-btn.on::after { content: "✓"; position: absolute; top: 6px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Map + booking sheet */
.map { height: 44vh; min-height: 280px; width: 100%; background: #0b1220; z-index: 1; }
/* Map load fail → retry UI */
.map-fail { height: 100%; min-height: 280px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: var(--card); padding: 24px; }
.map-fail p { font-size: 16px; margin: 0; }
.map-fail small { color: var(--muted); font-size: 13px; }
.map-fail .primary { max-width: 300px; }
.map.small { height: 30vh; min-height: 200px; border-radius: var(--radius); }
.sheet { background: var(--card); border-radius: 20px 20px 0 0; margin-top: -18px;
  position: relative; z-index: 2; padding: 8px 16px 30px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.45); border-top: 1px solid var(--line); }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px;
  background: #2a3a5e; margin: 6px auto 10px; }
.farebox { background: var(--card2); border: 2px dashed var(--teal); border-radius: var(--radius);
  padding: 14px; margin: 12px 0; text-align: center; }
.fare-amt { font-size: 34px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.fare-meta { color: var(--muted); margin-top: 4px; }
.fare-note { color: var(--green-soft); font-weight: 700; font-size: 13px; margin-top: 8px; }

/* Cards, stats, tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 12px 0; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.status-pill { display: inline-block; background: #3a2c12; color: #fcd34d; font-weight: 700;
  padding: 10px 18px; border-radius: 30px; margin: 6px 0 4px; font-size: 16px; }
.status-pill.ok { background: #0d2b1d; color: #4ade80; }
.status-pill.warn { background: #3a2c12; color: #fcd34d; }
.status-pill.bad { background: #3a1414; color: #f87171; }
/* Subscription screen */
.trackid { font-size: 30px; font-weight: 800; letter-spacing: 3px; text-align: center;
  background: var(--card2); border: 2px dashed var(--teal); border-radius: var(--radius);
  padding: 14px; margin-top: 8px; color: var(--teal); }
.acct { display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 8px 0; }
.acct b { flex: 0 0 auto; }
.acct-num { flex: 1; font-weight: 700; font-size: 17px; letter-spacing: 1px; }
.copybtn { background: var(--grad); color: #fff; border: 0; border-radius: 10px;
  padding: 8px 12px; font-weight: 700; min-height: 40px; }
.okbtn { background: var(--green); color: #fff; border: 0; border-radius: 10px;
  padding: 8px 12px; font-weight: 700; min-height: 40px; }
.noobtn { background: var(--danger); color: #fff; border: 0; border-radius: 10px;
  padding: 8px 12px; font-weight: 700; min-height: 40px; }
.walink { color: var(--green-soft); font-weight: 700; }
.stat-row { display: flex; gap: 10px; margin: 14px 0; }
.stat { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 6px; text-align: center; }
.stat-v { display: block; font-size: 19px; font-weight: 800; }
.stat-l { font-size: 12px; color: var(--muted); }
.pill { background: var(--grad); color: #fff; border-radius: 20px; padding: 2px 10px; font-size: 13px; }

.req { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 10px 0; border-left: 6px solid var(--teal); }
.req .r-route { font-weight: 700; font-size: 16px; }
.req .r-meta { color: var(--muted); font-size: 14px; margin: 4px 0; }
.req .r-fare { font-size: 22px; font-weight: 800; color: var(--teal); }
.req button { margin-top: 10px; }

.stars { font-size: 40px; letter-spacing: 6px; margin: 8px 0; }
.stars span { cursor: pointer; filter: grayscale(1); opacity: .5; }
.stars span.lit { filter: none; opacity: 1; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { background: var(--card2); color: var(--muted); }
.tbl input { width: 70px; padding: 8px; font-size: 15px; background: var(--card2);
  border: 2px solid var(--line); border-radius: 8px; color: var(--ink); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #16203a; color: #fff; border: 1px solid var(--line);
  padding: 14px 20px; border-radius: 12px; z-index: 2000;
  max-width: 90vw; font-size: 15px; box-shadow: 0 4px 16px rgba(0,0,0,.5); }

@media (min-width: 700px) {
  .role-opt { min-height: 230px; }
}

/* Install app popup (bottom sheet, ek dafa) */
.install-pop { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px; z-index: 1500; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.install-pop[hidden] { display: none; }
.install-x { position: absolute; top: 6px; right: 8px; background: none; border: 0;
  color: var(--muted); font-size: 18px; padding: 10px; min-width: 44px; min-height: 44px; }
.install-logo { width: 56px; height: 56px; border-radius: 14px; float: left; margin: 0 12px 6px 0; }
.install-txt b { display: block; font-size: 17px; margin-bottom: 4px; }
.install-txt span { color: var(--muted); font-size: 13px; }
/* Google-embed map (key-less): iframe + overlay pins/route */
.gmap { position: relative; overflow: hidden; }
.gmap-stage { position: absolute; inset: 0; pointer-events: none; }
.gmap-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.gmap-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gmap-pins { position: absolute; inset: 0; pointer-events: none; }
.gmap-pinwrap { position: absolute; width: 30px; height: 30px; margin-left: -15px; margin-top: -30px; pointer-events: auto; cursor: pointer; }
.gmap-tap { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.gmap-zoom { position: absolute; right: 10px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.gmap-zoom button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(10,16,28,.85); color: #fff; font-size: 22px; font-weight: 800; line-height: 1; }
.gmap-zoom button:active { background: rgba(13,148,136,.9); }
.gmap-pop { position: absolute; z-index: 6; background: #0f172a; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 12px; color: #fff; text-align: center; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.gmap-pop button { margin-top: 8px; background: #ef4444; color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-weight: 700; font-size: 14px; }

/* Live tracking compass */
.track-flex{display:flex;gap:14px;align-items:center}
.compass{position:relative;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle at 50% 40%,#16233d,#0a0f1c);border:2px solid #2a3a55;flex:none}
.cdir{position:absolute;font-size:11px;font-weight:800;color:#7ea2d6}
.cdir.n{top:4px;left:50%;transform:translateX(-50%)}
.cdir.s{bottom:4px;left:50%;transform:translateX(-50%)}
.cdir.e{right:6px;top:50%;transform:translateY(-50%)}
.cdir.w{left:6px;top:50%;transform:translateY(-50%)}
#needle{position:absolute;left:50%;top:50%;width:0;height:0;transform-origin:0 0;transition:transform .6s ease}
#needle::before{content:"➤";position:absolute;left:-9px;top:-42px;font-size:22px;color:#ef4444;transform:rotate(-90deg)}
.cdot{position:absolute;left:50%;top:50%;width:10px;height:10px;border-radius:50%;background:#2f7bff;transform:translate(-50%,-50%);box-shadow:0 0 8px #2f7bff}
.track-dist{font-size:20px;font-weight:800}
