/* ============================================================
   FOODBABA BRAND SYSTEM
   Colours sampled from the official Foodbaba logo.
   ============================================================ */
:root {
  /* Core brand */
  --fb-yellow: #FDD203;        /* Baba Yellow: primary, buttons, headers */
  --fb-yellow-soft: #FFF4BF;   /* tints, selected states */
  --fb-yellow-wash: #FFFBE8;   /* page wash */
  --fb-amber: #F79200;         /* helmet shading, hover/pressed yellow */
  --fb-black: #131213;         /* Night Black: text, staff app chrome */
  --fb-ink-2: #3A3735;
  --fb-ink-3: #6E6A66;
  --fb-ink-4: #A09B95;
  --fb-red: #EB0200;           /* Rush Red: urgency, new orders, offers */
  --fb-red-soft: #FFE8E6;
  /* Category colours (from the logo's badges) */
  --fb-pizza: #F98202;
  --fb-burger: #FC0C19;
  --fb-medicine: #005AB5;
  --fb-local: #06772F;
  --fb-green: #0A8F3C;  --fb-green-soft: #E3F6EA;
  --fb-blue-soft: #E5F0FB;
  /* Surfaces */
  --fb-bg: #FAF8F4;
  --fb-surface: #FFFFFF;
  --fb-line: #ECE7DF;
  --fb-line-2: #DAD3C8;
  /* Type */
  --fb-font-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --fb-font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fb-font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  /* Shape */
  --fb-r-sm: 8px; --fb-r: 14px; --fb-r-lg: 20px; --fb-r-pill: 999px;
  --fb-shadow-1: 0 1px 2px rgba(19,18,19,.06), 0 1px 1px rgba(19,18,19,.04);
  --fb-shadow-2: 0 6px 20px rgba(19,18,19,.10);
  --fb-shadow-3: 0 18px 50px rgba(19,18,19,.22);
  --fb-ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fb-bg); color: var(--fb-black);
  font-family: var(--fb-font-body); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
[lang="ur"] body, body[lang="ur"] { font-family: var(--fb-font-urdu), var(--fb-font-body); line-height: 2; }
h1, h2, h3, h4 { font-family: var(--fb-font-display); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 800; } h2 { font-size: 22px; font-weight: 800; } h3 { font-size: 18px; font-weight: 700; } h4 { font-size: 15px; font-weight: 700; }
[lang="ur"] h1, [lang="ur"] h2, [lang="ur"] h3 { font-family: var(--fb-font-urdu); line-height: 1.8; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fb-ink-3); } .faint { color: var(--fb-ink-4); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.bold { font-weight: 800; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:focus-visible { outline: 3px solid var(--fb-amber); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--fb-r-pill); border: 0;
  font-family: var(--fb-font-display); font-weight: 800; font-size: 16px; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; transition: transform .12s var(--fb-ease), background .15s, box-shadow .15s; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--fb-yellow); color: var(--fb-black); box-shadow: 0 3px 0 var(--fb-amber); }
.btn-primary:hover { background: #FFD92E; }
.btn-dark { background: var(--fb-black); color: var(--fb-yellow); }
.btn-dark:hover { background: #2a2829; }
.btn-red { background: var(--fb-red); color: #fff; box-shadow: 0 3px 0 #A80100; }
.btn-green { background: var(--fb-green); color: #fff; box-shadow: 0 3px 0 #06602A; }
.btn-ghost { background: transparent; color: var(--fb-black); border: 1.5px solid var(--fb-line-2); }
.btn-ghost:hover { background: rgba(19,18,19,.04); }
.btn-text { background: none; border: 0; padding: 0 6px; min-height: 36px; color: var(--fb-ink-2); font-weight: 700; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: rgba(19,18,19,.06); }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 800; color: var(--fb-ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--fb-r); border: 1.5px solid var(--fb-line-2);
  background: #fff; font: inherit; color: var(--fb-black); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { outline: none; border-color: var(--fb-black); box-shadow: 0 0 0 4px var(--fb-yellow-soft); }
.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--fb-line-2); border-radius: var(--fb-r); background: #fff; overflow: hidden; }
.input-group:focus-within { border-color: var(--fb-black); box-shadow: 0 0 0 4px var(--fb-yellow-soft); }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; background: var(--fb-yellow-wash); font-weight: 800; border-inline-end: 1.5px solid var(--fb-line); }
.input-group .input { border: 0; box-shadow: none; border-radius: 0; }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 26px; font-weight: 800; font-family: var(--fb-font-display); }
.hint { font-size: 12.5px; color: var(--fb-ink-3); }
.error-text { font-size: 13px; color: var(--fb-red); font-weight: 700; }

/* ---------- Cards, chips, badges ---------- */
.card { background: var(--fb-surface); border-radius: var(--fb-r-lg); border: 1px solid var(--fb-line); box-shadow: var(--fb-shadow-1); }
.card-pad { padding: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--fb-r-pill);
  border: 1.5px solid var(--fb-line-2); background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--fb-black); color: var(--fb-yellow); border-color: var(--fb-black); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--fb-r-pill); font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1.6; }
.badge-yellow { background: var(--fb-yellow); color: var(--fb-black); }
.badge-dark { background: var(--fb-black); color: var(--fb-yellow); }
.badge-red { background: var(--fb-red-soft); color: #B40200; }
.badge-green { background: var(--fb-green-soft); color: #06602A; }
.badge-blue { background: var(--fb-blue-soft); color: var(--fb-medicine); }
.badge-gray { background: #F1EEE9; color: var(--fb-ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
.pulse { animation: fbpulse 1.4s infinite; }
@keyframes fbpulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.8);} }

/* order status pills */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--fb-r-pill); font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.status-placed { background: var(--fb-red-soft); color: #B40200; }
.status-accepted, .status-preparing { background: #FFF0D6; color: #9A5200; }
.status-ready { background: var(--fb-yellow-soft); color: #6B5600; }
.status-picked_up { background: var(--fb-blue-soft); color: var(--fb-medicine); }
.status-delivered { background: var(--fb-green-soft); color: #06602A; }
.status-cancelled { background: #F1EEE9; color: var(--fb-ink-3); }

/* ---------- Overlays ---------- */
.toast-wrap { position: fixed; z-index: 1000; left: 50%; bottom: 88px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--fb-black); color: #fff; padding: 12px 16px; border-radius: var(--fb-r); box-shadow: var(--fb-shadow-3); font-weight: 700; display: flex; gap: 10px; align-items: center; animation: fbtoast .25s var(--fb-ease); pointer-events: auto; }
.toast.error { background: var(--fb-red); }
.toast.success::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--fb-yellow); flex: none; }
@keyframes fbtoast { from { opacity: 0; transform: translateY(12px); } }
.scrim { position: fixed; inset: 0; background: rgba(19,18,19,.5); z-index: 900; display: flex; align-items: flex-end; justify-content: center; animation: fbfade .2s; }
@keyframes fbfade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 8px 20px 24px; animation: fbsheet .28s var(--fb-ease); }
.sheet::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--fb-line-2); margin: 4px auto 14px; }
@keyframes fbsheet { from { transform: translateY(40px); opacity: .5; } }
@media (min-width: 720px) { .scrim { align-items: center; } .sheet { border-radius: 24px; } .sheet::before { display: none; } .sheet { padding-top: 22px; } }

/* ---------- Skeleton / empty ---------- */
.skel { background: linear-gradient(90deg, #F0ECE5 25%, #F8F5F0 50%, #F0ECE5 75%); background-size: 200% 100%; animation: fbskel 1.2s infinite; border-radius: var(--fb-r); }
@keyframes fbskel { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--fb-ink-3); }
.empty .big { font-size: 46px; line-height: 1; margin-bottom: 10px; }

/* ---------- Brand bits ---------- */
.brand-logo { width: 44px; height: 44px; border-radius: 12px; }
.wordmark { font-family: var(--fb-font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.wordmark .baba { color: var(--fb-yellow); -webkit-text-stroke: 0; }
.on-yellow .wordmark .baba { color: var(--fb-black); }
.rush-stripe { background: var(--fb-red); color: #fff; font-family: var(--fb-font-display); font-weight: 800; transform: skewX(-8deg); display: inline-block; padding: 2px 12px; border-radius: 6px; }
.rush-stripe > span { display: inline-block; transform: skewX(8deg); }
.cat-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 0 var(--fb-black); border: 2px solid var(--fb-black); }

/* ---------- Tables (admin) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fb-ink-3); font-weight: 800; padding: 10px 12px; border-bottom: 1.5px solid var(--fb-line); white-space: nowrap; background: #FCFBF8; position: sticky; top: 0; }
.table td { padding: 12px; border-bottom: 1px solid var(--fb-line); vertical-align: middle; }
.table tr:hover td { background: #FFFDF3; }
.table .num { text-align: end; }

/* Switch */
.switch { position: relative; width: 52px; height: 30px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; background: #D5CFC6; border-radius: 30px; cursor: pointer; transition: background .2s; }
.switch .track::after { content: ''; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s var(--fb-ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .track { background: var(--fb-green); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid var(--fb-amber); outline-offset: 2px; }

/* Stepper (qty) */
.qty { display: inline-flex; align-items: center; background: var(--fb-black); border-radius: var(--fb-r-pill); color: var(--fb-yellow); height: 36px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; color: #fff; }
.add-btn { height: 36px; min-width: 36px; padding: 0 12px; border-radius: var(--fb-r-pill); border: 2px solid var(--fb-black); background: var(--fb-yellow); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 2px 0 var(--fb-black); }
.add-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--fb-black); }

/* Timeline */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--fb-line-2); }
.step:last-child::before { display: none; }
.step .bullet { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--fb-line-2); background: #fff; display: grid; place-items: center; z-index: 1; }
.step.done .bullet { background: var(--fb-black); border-color: var(--fb-black); color: var(--fb-yellow); }
.step.done::before { background: var(--fb-black); }
.step.current .bullet { background: var(--fb-yellow); border-color: var(--fb-black); }
.step .t { font-weight: 800; } .step:not(.done):not(.current) .t { color: var(--fb-ink-4); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Map ---------- */
.fbm { position: relative; overflow: hidden; border-radius: var(--fb-r-lg); border: 1px solid var(--fb-line); touch-action: none; user-select: none; cursor: grab;
  background-color: #EEF0E8; background-image: linear-gradient(#E1E4D9 1px, transparent 1px), linear-gradient(90deg, #E1E4D9 1px, transparent 1px); background-size: 32px 32px; }
.fbm.dragging { cursor: grabbing; }
.fbm-tiles, .fbm-markers { position: absolute; inset: 0; }
.fbm-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; opacity: 0; transition: opacity .25s; filter: saturate(.85); }
.fbm-tiles img.in { opacity: 1; }
.fbm-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fbm-svg polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fbm-route-casing { stroke: var(--fb-black); stroke-width: 9; }
.fbm-route { stroke: var(--fb-yellow); stroke-width: 5; }
.fbm-svg.dashed .fbm-route { stroke-dasharray: 2 10; }
.fbm-marker { position: absolute; left: 0; top: 0; will-change: transform; pointer-events: none; }
.fbm-pin { position: absolute; left: 0; top: 0; width: 34px; height: 34px; transform: translate(-50%, -100%); border-radius: 50% 50% 50% 0; rotate: -45deg; display: grid; place-items: center; border: 3px solid var(--fb-black); box-shadow: 0 3px 8px rgba(0,0,0,.3); translate: 0 -4px; }
.fbm-pin b { rotate: 45deg; font-family: var(--fb-font-display); font-weight: 800; font-size: 15px; line-height: 1; }
.fbm-a { background: var(--fb-yellow); color: var(--fb-black); }
.fbm-b { background: var(--fb-black); color: var(--fb-yellow); }
.fbm-label { position: absolute; left: 22px; top: -40px; background: #fff; border: 1.5px solid var(--fb-black); border-radius: 8px; padding: 1px 7px; font-size: 11.5px; font-weight: 800; white-space: nowrap; color: var(--fb-black); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.fbm-rider { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: #1E6FD9; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(30,111,217,.25), 0 3px 8px rgba(0,0,0,.3); display: grid; place-items: center; font-size: 18px; animation: fbm-ping 1.8s infinite; }
@keyframes fbm-ping { 50% { box-shadow: 0 0 0 12px rgba(30,111,217,.08), 0 3px 8px rgba(0,0,0,.3); } }
.fbm-dot { position: absolute; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.fbm-dot-shop { background: var(--fb-black); } .fbm-dot-order { background: var(--fb-red); }
.fbm-picker { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.fbm-picker .fbm-pin { width: 40px; height: 40px; }
.fbm-picker::after { content: ''; position: absolute; left: -5px; top: -3px; width: 10px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.3); }
.fbm-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--fb-shadow-2); overflow: hidden; }
.fbm-zoom button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 20px; font-weight: 800; cursor: pointer; color: var(--fb-black); }
.fbm-zoom button + button { border-top: 1px solid var(--fb-line); }
.fbm-attr { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); font-size: 10px; padding: 1px 6px; border-top-left-radius: 6px; color: var(--fb-ink-2); }
.fbm-attr a { color: inherit; }
.fbm-note { position: absolute; left: 10px; bottom: 10px; background: rgba(19,18,19,.8); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.trip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.trip > div { background: var(--fb-yellow-wash); border: 1px solid var(--fb-line); border-radius: 12px; padding: 8px 10px; }
.trip .k { font-size: 11px; font-weight: 800; color: var(--fb-ink-3); text-transform: uppercase; letter-spacing: .04em; }
.trip .v { font-family: var(--fb-font-display); font-weight: 800; font-size: 19px; line-height: 1.2; }
.turns { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--fb-line); border-radius: 12px; overflow: hidden; }
.turns li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 13.5px; border-bottom: 1px solid var(--fb-line); background: #fff; }
.turns li:last-child { border-bottom: 0; }
.turns .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--fb-black); color: var(--fb-yellow); display: grid; place-items: center; font-weight: 800; flex: none; }
.turns .d { margin-inline-start: auto; color: var(--fb-ink-3); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
details.dir > summary { cursor: pointer; font-weight: 800; padding: 8px 0 0; list-style: none; display: flex; align-items: center; gap: 6px; }
details.dir > summary::-webkit-details-marker { display: none; }

/* ---------- Photos ---------- */
.photo-slot { position: relative; overflow: hidden; background: #F1EEE9 repeating-linear-gradient(45deg, transparent 0 10px, rgba(19,18,19,.03) 10px 20px); border: 1.5px dashed var(--fb-line-2); flex: none; display: grid; place-items: center; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-wide { width: 220px; height: 124px; border-radius: 14px; }
.photo-square { width: 104px; height: 104px; border-radius: 14px; }
.photo-round { width: 96px; height: 96px; border-radius: 50%; }
.photo-slot:has(img) { border-style: solid; }
.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--fb-ink-4); font-size: 12px; font-weight: 800; }
.photo-slot.uploading::after { content: 'Uploading…'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.8); font-weight: 800; font-size: 12.5px; }
.avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--fb-yellow); background: #eee; }

/* ---------- Sound bar ---------- */
.sound-bar { position: fixed; z-index: 1500; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); translate: -50% 0; background: var(--fb-red); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 800; box-shadow: 0 6px 20px rgba(235,2,0,.4); cursor: pointer; animation: fbpulse 2s infinite; white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Full-screen new order / job alert ---------- */
body.na-lock { overflow: hidden; }
.na { position: fixed; inset: 0; z-index: 2000; background: radial-gradient(circle at 50% 30%, #2A2410 0, var(--fb-black) 60%); color: #fff; display: flex; flex-direction: column; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; animation: na-in .25s var(--fb-ease); }
@keyframes na-in { from { opacity: 0; transform: scale(1.03); } }
.na > * { width: 100%; max-width: 560px; margin-inline: auto; }
.na-top { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.na-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--fb-red); color: #fff; font-weight: 800; letter-spacing: .12em; font-size: 13px; padding: 5px 14px; border-radius: 999px; }
.na h1 { font-size: clamp(26px, 7vw, 36px); color: var(--fb-yellow); text-wrap: balance; line-height: 1.1; }
.na-sub { color: rgba(255,255,255,.75); font-weight: 700; font-size: 14px; }
.na-queue { color: var(--fb-yellow); font-weight: 800; font-size: 13px; min-height: 1em; }
.na-radar { position: relative; height: min(40vh, 340px); min-height: 200px; border-radius: 24px; overflow: hidden; border: 2px solid rgba(253,210,3,.5); box-shadow: 0 0 0 6px rgba(253,210,3,.08), 0 20px 50px rgba(0,0,0,.5); flex: none; }
.na-map { position: absolute; inset: 0; border-radius: 0; border: 0; }
.na-map .fbm-zoom, .na-map .fbm-note { display: none; }
.na-sweep { position: absolute; inset: -50%; background: conic-gradient(from 0deg, rgba(253,210,3,0) 0deg, rgba(253,210,3,0) 290deg, rgba(253,210,3,.35) 350deg, rgba(253,210,3,.6) 360deg); animation: na-sweep 2.4s linear infinite; pointer-events: none; mix-blend-mode: multiply; }
@keyframes na-sweep { to { transform: rotate(360deg); } }
.na-rings { position: absolute; inset: 0; pointer-events: none; }
.na-rings span { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 3px solid var(--fb-yellow); animation: na-ring 2.4s ease-out infinite; }
.na-rings span:nth-child(2) { animation-delay: .8s; } .na-rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes na-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(7); opacity: 0; } }
.na-card { background: #fff; color: var(--fb-black); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.na-items { display: flex; flex-direction: column; gap: 2px; font-size: 15px; max-height: 120px; overflow: auto; }
.na-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.na-lines > div { background: var(--fb-yellow-wash); border: 1px solid var(--fb-line); border-radius: 12px; padding: 6px 10px; display: flex; flex-direction: column; }
.na-lines span { font-size: 11px; font-weight: 800; color: var(--fb-ink-3); text-transform: uppercase; letter-spacing: .04em; }
.na-lines b { font-family: var(--fb-font-display); font-size: 18px; }
.na-money { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--fb-line-2); padding-top: 8px; }
.na-money b { font-family: var(--fb-font-display); font-size: 26px; color: var(--fb-green); }
.na-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: auto; }
.na-primary { min-height: 64px; font-size: 20px; background: var(--fb-green); color: #fff; box-shadow: 0 4px 0 #06602A; animation: na-glow 1.4s ease-in-out infinite; }
@keyframes na-glow { 50% { box-shadow: 0 4px 0 #06602A, 0 0 0 8px rgba(10,143,60,.25); } }
.na-secondary { min-height: 64px; font-size: 17px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.na .busy { opacity: .6; }
.na-later { background: none; border: 0; color: rgba(255,255,255,.7); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px; }
@media (prefers-reduced-motion: reduce) { .na-sweep, .na-rings { display: none; } .na-primary { animation: none; } }

.fbm-canvas { position: absolute; inset: 0; display: block; }
.fbm-canvas[hidden] { display: none; }
