/* BNV flightradar v7 — clean mobile layout */

:root {
    --bnr-yellow: #f5c518;
    --bnr-blue: #1a6fe8;
    --bnr-toolbar-h: 56px;
    --bnr-topbar-h: 92px;
    --bnr-sheet-peek-h: 200px;
    --bnr-safe-t: env(safe-area-inset-top, 0px);
    --bnr-safe-b: env(safe-area-inset-bottom, 0px);
    --bnr-safe-l: env(safe-area-inset-left, 0px);
    --bnr-safe-r: env(safe-area-inset-right, 0px);
    --bnr-above-toolbar: calc(var(--bnr-toolbar-h) + var(--bnr-safe-b) + 4px);
}

html.bn-radar-root,
html.bn-radar-root body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #0a1628;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html.bn-radar-root body.bn-radar-install-open,
html.bn-radar-root body.bn-radar-search-open,
html.bn-radar-root body.bn-radar-fr24-open,
html.bn-radar-root body.bn-radar-flight-open {
    overflow: hidden;
}

.bn-radar {
    position: fixed;
    inset: 0;
    background: #0a1628;
}

#bn-radar-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0b1a2e !important;
}

.bn-radar .leaflet-container {
    background: #0b1a2e !important;
}

/* Keep previous zoom level tiles visible while new ones load — no blank blue flash. */
.bn-radar .leaflet-tile {
    visibility: visible !important;
}
.bn-radar .leaflet-fade-anim .leaflet-tile,
.bn-radar .leaflet-zoom-anim .leaflet-tile {
    transition: none !important;
}
.bn-radar .leaflet-fade-anim .leaflet-tile-loaded,
.bn-radar .leaflet-zoom-anim .leaflet-tile-loaded {
    opacity: 1 !important;
}
.bn-radar .leaflet-tile-container img {
    /* Avoid browser discarding decoded tile bitmaps while 3D was on top */
    content-visibility: visible;
}

.bn-radar .leaflet-control-zoom {
    margin-bottom: calc(var(--bnr-toolbar-h) + var(--bnr-safe-b) + 16px) !important;
    margin-right: 10px !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}

/* Planes */
.bn-radar-plane svg { fill: var(--bnr-yellow); width: 100%; height: 100%; }
/* drop-shadow on every plane melts the GPU (Brave black/blue flashes). */
.bn-radar-plane-wrap { position: relative; width: 100%; height: 100%; }
.bn-radar-plane-body { width: 100%; height: 100%; line-height: 0; }
.bn-radar-plane-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.bn-radar-plane-tag span {
  display: inline-block;
  background: #fff;
  color: #111827;
  font: 700 11px/1.25 Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
  white-space: nowrap;
  position: relative;
}
.bn-radar-plane-tag span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
}
.bn-radar-plane.is-selected .bn-radar-plane-tag span {
  background: #fff;
  color: #111827;
}
.bnv-fr24-flight__progress--flown-only {
  padding: 0 0 4px;
}
.bnv-fr24-flight__progress-meta--flown-only {
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}
.bn-radar-plane.is-selected svg { fill: #ff8c00; }
.bn-radar-plane.is-smartcars svg { fill: #f97316; }
.bn-radar-plane.is-bnv svg { fill: var(--bnv-primary, #1a6fe8); }
.bn-radar-plane.is-vatsim svg { fill: var(--bnr-yellow, #f5c518); }
.bn-radar-plane.is-squawk-emergency svg,
.bn-radar-plane.is-squawk-hijack svg { fill: #ef4444 !important; }
.bn-radar-plane.is-squawk-lostcomm svg { fill: #f97316 !important; }
.bn-radar-plane.is-selected.is-squawk-emergency svg,
.bn-radar-plane.is-selected.is-squawk-hijack svg { fill: #ff2d2d !important; }
.bn-radar-plane.is-selected.is-squawk-lostcomm svg { fill: #fb923c !important; }

/* Phase tint (only when not squawk-alert; source colors remain as base for unknown phase) */
.bn-radar-plane.is-phase-ground:not([class*="is-squawk-"]) svg { fill: #94a3b8; }
.bn-radar-plane.is-phase-taxi:not([class*="is-squawk-"]) svg { fill: #a78bfa; }
.bn-radar-plane.is-phase-climb:not([class*="is-squawk-"]) svg { fill: #38bdf8; }
.bn-radar-plane.is-phase-cruise:not([class*="is-squawk-"]) svg { fill: #1a6fe8; }
.bn-radar-plane.is-phase-descent:not([class*="is-squawk-"]) svg { fill: #f59e0b; }
.bn-radar-plane.is-phase-approach:not([class*="is-squawk-"]) svg { fill: #10b981; }
.bn-radar-plane.is-selected.is-phase-ground:not([class*="is-squawk-"]) svg { fill: #cbd5e1; }
.bn-radar-plane.is-selected.is-phase-taxi:not([class*="is-squawk-"]) svg { fill: #c4b5fd; }
.bn-radar-plane.is-selected.is-phase-climb:not([class*="is-squawk-"]) svg { fill: #7dd3fc; }
.bn-radar-plane.is-selected.is-phase-cruise:not([class*="is-squawk-"]) svg { fill: #3b82f6; }
.bn-radar-plane.is-selected.is-phase-descent:not([class*="is-squawk-"]) svg { fill: #fbbf24; }
.bn-radar-plane.is-selected.is-phase-approach:not([class*="is-squawk-"]) svg { fill: #34d399; }

/* Top bar */
.bn-radar-topbar {
    position: absolute;
    top: max(6px, var(--bnr-safe-t));
    left: 10px;
    right: 10px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.bn-radar-topbar__row {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.bn-radar-topbar__row > * { pointer-events: auto; }

.bn-radar-topbar__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(16, 16, 16, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.bn-radar-topbar__icon--accent {
    background: rgba(245, 197, 24, 0.18);
    color: var(--bnr-yellow);
    border: 1px solid rgba(245, 197, 24, 0.35);
}

.bn-radar-topbar__search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    text-align: left;
}

.bn-radar-topbar__search i {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
}

.bn-radar-topbar__search span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.bn-radar-status {
    align-self: center;
    max-width: calc(100% - 8px);
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(16, 16, 16, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.88);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bn-radar-status__live {
    color: var(--bnr-yellow);
    font-weight: 800;
}

.bn-radar-mapctl {
    position: absolute;
    z-index: 38;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(16, 16, 16, 0.82);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-radar-mapctl--locate {
    right: 10px;
    top: calc(max(6px, var(--bnr-safe-t)) + 96px);
}

/* Bottom toolbar */
.bn-radar-toolbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(6px + var(--bnr-safe-b));
    z-index: 50;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    height: var(--bnr-toolbar-h);
    padding: 4px 2px;
    border-radius: 14px;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bn-radar-toolbar button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 4px 2px;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}

.bn-radar-toolbar button i {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 1px;
}

.bn-radar-toolbar button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bn-radar-toolbar button.is-active {
    color: var(--bnr-yellow);
    background: rgba(245, 197, 24, 0.1);
}

.bn-radar-toolbar button:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Side panels */
.bn-radar-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bnr-toolbar-h) + var(--bnr-safe-b) + 16px);
    z-index: 40;
    max-height: 45vh;
    border-radius: 16px;
    background: rgba(24, 24, 24, 0.96);
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bn-radar-panel[hidden] { display: none !important; }

.bn-radar-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bn-radar-panel__head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.bn-radar-panel__close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.bn-radar-panel__body {
    overflow-y: auto;
    padding: 8px;
}

.bn-radar-panel__hint {
    margin: 0;
    padding: 0 14px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.bn-radar-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bn-radar-check input { accent-color: var(--bnr-yellow); width: 18px; height: 18px; }

.bn-radar-list-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.bn-radar-list-item:hover { background: rgba(255, 255, 255, 0.1); }

.bn-radar-list-item__fn {
    font-size: 16px;
    font-weight: 800;
    color: var(--bnr-yellow);
}

.bn-radar-list-item__route {
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

.bn-radar-list-item__meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

/* Search overlay */
.bn-radar-search {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    background: #f3f4f6;
}

.bn-radar-search[hidden] { display: none !important; }

.bn-radar-search__head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: max(12px, var(--bnr-safe-t)) 48px 12px;
    background: #2b2b2b;
    color: #fff;
}

.bn-radar-search__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.bn-radar-search__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: calc(var(--bnr-safe-t) / 2);
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.bn-radar-search__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px;
    padding: 0 14px;
    height: 48px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bn-radar-search__input-wrap i { color: #9ca3af; }

.bn-radar-search__input-wrap input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    color: #111;
}

.bn-radar-search__clear {
    border: 0;
    background: #e5e7eb;
    color: #374151;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.bn-radar-search__history,
.bn-radar-search__results {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bn-radar-search__section {
    padding: 8px 0;
}

.bn-radar-search__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #e5e7eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.bn-radar-search__row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.bn-radar-search__row:active { background: #f9fafb; }

.bn-radar-search__row-icon {
    width: 28px;
    color: #9ca3af;
    text-align: center;
}

.bn-radar-search__row-main { flex: 1; min-width: 0; }

.bn-radar-search__row-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.bn-radar-search__row-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.bn-radar-badge-live {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bnr-yellow);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 800;
}

.bn-radar-search__empty {
    padding: 24px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Flight sheet — only when aircraft selected */
.bn-radar-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--bnr-above-toolbar);
    z-index: 60;
    max-height: min(70vh, 520px);
    background: #fff;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    transform: translateY(110%);
    transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
}

.bn-radar-sheet[data-state="hidden"] {
    transform: translateY(110%);
    pointer-events: none;
    visibility: hidden;
}

.bn-radar-sheet[data-state="peek"],
.bn-radar-sheet[data-state="full"] {
    visibility: visible;
    pointer-events: auto;
}

.bn-radar-sheet[data-state="peek"] {
    transform: translateY(0);
    max-height: var(--bnr-sheet-peek-h);
}

.bn-radar-sheet[data-state="full"] {
    transform: translateY(0);
    max-height: min(70vh, 520px);
}

body.bn-radar-flight-open .bn-radar-status {
    opacity: 0;
    pointer-events: none;
}

.bn-radar-flight-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.bn-radar-flight-actions button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.bn-radar-flight-actions button i { font-size: 15px; color: var(--bnr-blue); }
.bn-radar-flight-actions button.is-active { color: #111; background: #e5e7eb; }

.bn-radar-sheet__handle {
    flex-shrink: 0;
    padding: 10px 0 4px;
    cursor: grab;
}

.bn-radar-sheet__handle span.bn-radar-sheet__handle-bar,
.bn-radar-sheet__handle-bar {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto;
    border-radius: 99px;
    background: #d1d5db;
}

.bn-radar-sheet__handle-hint {
    display: none;
}

.bn-radar-sheet__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.bn-radar-sheet__toolbar {
    flex-shrink: 0;
    border-top: 1px solid var(--bnv-border, #1e293b);
    background: rgba(12, 16, 24, 0.98);
}

.bn-radar-sheet__toolbar[hidden] {
    display: none !important;
}

.bn-radar-flightdock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex-shrink: 0;
    background: #1e1e1e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bn-radar-flightdock[hidden] { display: none !important; }

.bn-radar-flightdock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.bn-radar-flightdock button i { font-size: 16px; }
.bn-radar-flightdock button.is-active { color: #fff; background: rgba(255,255,255,0.08); }

/* Flight detail (reuse v2 blocks) */
.bn-radar-empty { padding: 12px 16px 16px; text-align: center; }
.bn-radar-empty p { margin: 0; font-size: 14px; font-weight: 600; color: #374151; }
.bn-radar-empty small { display: block; margin-top: 4px; font-size: 12px; color: #6b7280; }

.bn-radar-flight-head { background: #2b2b2b; color: #fff; padding: 12px 14px 10px; }
.bn-radar-flight-head__row { display: flex; justify-content: space-between; gap: 10px; }
.bn-radar-flight-head__id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bn-radar-flight-head__fn { font-size: 22px; font-weight: 800; color: var(--bnr-yellow); }
.bn-radar-pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.bn-radar-pill--cs { background: #4b5563; color: #f3f4f6; }
.bn-radar-pill--ac { background: var(--bnr-blue); color: #fff; }
.bn-radar-flight-head__op { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.bn-radar-flight-head__sub { margin: 2px 0 0; font-size: 11px; color: rgba(255,255,255,0.62); }
.bn-radar-flight-head__close { border: 0; background: rgba(255,255,255,0.12); color: #fff; width: 32px; height: 32px; border-radius: 8px; font-size: 18px; cursor: pointer; }

.bn-radar-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #e5e7eb; }
.bn-radar-route__icao { font-size: 28px; font-weight: 800; color: #111827; line-height: 1; }
.bn-radar-route__city { margin-top: 4px; font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; }
.bn-radar-route__ap:first-child { text-align: left; }
.bn-radar-route__ap:last-child { text-align: right; }
.bn-radar-route__plane { width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #ff8c00; margin: 0 auto; }

.bn-radar-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #e5e7eb; }
.bn-radar-stat { padding: 12px 10px; text-align: center; border-right: 1px solid #e5e7eb; }
.bn-radar-stat:last-child { border-right: 0; }
.bn-radar-stat__label { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; margin-bottom: 4px; }
.bn-radar-stat__value { font-size: 15px; font-weight: 800; color: #111827; }

.bn-radar-progress { padding: 12px 16px 14px; border-bottom: 1px solid #e5e7eb; }
.bn-radar-progress__bar { position: relative; height: 4px; border-radius: 99px; background: #e5e7eb; }
.bn-radar-progress__fill { height: 100%; border-radius: 99px; background: var(--bnr-yellow); min-width: 2%; transition: width 0.6s ease; }
.bn-radar-progress__plane { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 14px; color: #ff8c00; transition: left 0.6s ease; }
.bn-radar-progress__meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 600; color: #6b7280; }

.bn-radar-acc { border-bottom: 1px solid #e5e7eb; }
.bn-radar-acc__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; background: var(--bnr-blue); color: #fff; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.bn-radar-acc__btn .bn-radar-acc__chev { margin-left: auto; transition: transform 0.2s; }
.bn-radar-acc.is-open .bn-radar-acc__chev { transform: rotate(180deg); }
.bn-radar-acc__body { display: none; background: #f9fafb; }
.bn-radar-acc.is-open .bn-radar-acc__body { display: block; }

.bn-radar-kv-grid { display: grid; grid-template-columns: 36px 1fr 1fr; }
.bn-radar-kv { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; background: #fff; }
.bn-radar-kv__label { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; color: #6b7280; margin-bottom: 3px; }
.bn-radar-kv__value { font-size: 16px; font-weight: 800; color: #111827; }
.bn-radar-kv-grid__icon { display: flex; align-items: center; justify-content: center; color: #9ca3af; border-bottom: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; background: #fff; }

.bn-radar-chart { padding: 12px 14px 16px; background: #fff; }
.bn-radar-chart canvas { width: 100%; height: 120px; display: block; }

/* Install modal */
.bn-radar-install-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, var(--bnr-safe-t)) 16px max(16px, var(--bnr-safe-b));
}

.bn-radar-install-modal[hidden] { display: none !important; }

.bn-radar-install-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.85);
    backdrop-filter: blur(6px);
}

.bn-radar-install-modal__card {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 20px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #1a2744 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
}

.bn-radar-install-modal__x {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: rgba(255,255,255,0.1);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}

.bn-radar-install-modal__app-icon img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
}

.bn-radar-install-modal__card h2 { margin: 14px 0 8px; font-size: 22px; font-weight: 800; }
.bn-radar-install-modal__lead { margin: 0 0 14px; font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.5; }

.bn-radar-install-modal__browser-label {
    display: block;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.7);
}

.bn-radar-install-modal__browser-wrap {
    position: relative;
    margin-bottom: 14px;
}

.bn-radar-install-modal__browser {
    width: 100%;
    margin-bottom: 0;
    padding: 12px 40px 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background-color: #0a1220;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color-scheme: dark;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bn-radar-install-modal__browser:hover {
    border-color: rgba(56, 189, 248, 0.45);
}

.bn-radar-install-modal__browser:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.bn-radar-install-modal__browser option {
    background: #0a1220;
    color: #f1f5f9;
    padding: 10px 12px;
    font-weight: 500;
}

.bn-radar-install-modal__browser-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.9);
}

.bn-radar-install-modal__steps {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    text-align: left;
}

.bn-radar-install-modal__steps li {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    font-size: 13px;
    line-height: 1.45;
}

.bn-radar-install-modal__steps .bn-radar-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bnr-yellow);
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-radar-install-modal__actions { display: flex; flex-direction: column; gap: 10px; }

.bn-radar-install-modal__primary {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    background: var(--bnr-yellow);
    color: #1a1a1a;
}

.bn-radar-install-modal__ghost {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,0.62);
}

/* BNV flightradar v4 — FR24 bottom sheets */

.bn-radar-network-badge,
.bn-radar-live-badge { display: none !important; }

.bn-radar-fr24 {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.bn-radar-fr24[hidden] { display: none !important; }

.bn-radar-fr24__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.bn-radar-fr24__sheet {
    position: relative;
    z-index: 2;
    max-height: min(78vh, 640px);
    margin-bottom: var(--bnr-above-toolbar);
    border-radius: 16px 16px 0 0;
    background: #f2f2f2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

.bn-radar-fr24__sheet[hidden] { display: none !important; }

.bn-radar-fr24__handle {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
    background: #2b2b2b;
}

.bn-radar-fr24__handle span {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.bn-radar-fr24__head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 44px;
    background: #2b2b2b;
    color: #fff;
}

.bn-radar-fr24__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.bn-radar-fr24__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.bn-radar-fr24__tabs {
    display: flex;
    background: #2b2b2b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bn-radar-fr24__tabs button {
    flex: 1;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 8px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.bn-radar-fr24__tabs button.is-active {
    color: var(--bnr-yellow);
    border-bottom-color: var(--bnr-yellow);
}

.bn-radar-fr24__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    background: #f2f2f2;
}

.bn-radar-fr24__body--dark { background: #2b2b2b; }

.bn-radar-fr24__pane { display: none; padding: 12px; }
.bn-radar-fr24__pane.is-active { display: block; }

.bn-radar-fr24-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.bn-radar-fr24-card__thumb {
    position: relative;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a3a5c, #0a1628);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bnr-yellow);
    font-size: 24px;
}

.bn-radar-fr24-card__state {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.bn-radar-fr24-card.is-on .bn-radar-fr24-card__state { background: var(--bnr-yellow); color: #1a1a1a; }

.bn-radar-fr24-card__text strong {
    display: block;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.bn-radar-fr24-card__text p {
    margin: 0;
    font-size: 13px;
    color: #374151;
    line-height: 1.45;
}

.bn-radar-fr24-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.bn-radar-fr24-row strong { font-size: 13px; color: #111; }
.bn-radar-fr24-row p { margin: 4px 0 0; font-size: 12px; color: #6b7280; line-height: 1.4; }

.bn-radar-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    flex-shrink: 0;
}

.bn-radar-switch input { opacity: 0; width: 0; height: 0; }

.bn-radar-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d1d5db;
    transition: background 0.2s;
}

.bn-radar-switch span::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bn-radar-switch input:checked + span { background: var(--bnr-yellow); }
.bn-radar-switch input:checked + span::before { transform: translateX(20px); }

.bn-radar-fr24-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.bn-radar-fr24-select,
.bn-radar-fr24-input {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

.bn-radar-fr24-hint {
    margin: 0;
    padding: 8px 16px 16px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.bn-radar-fr24-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #374151;
}

.bn-radar-fr24-slider input[type="range"] {
    flex: 1;
    accent-color: var(--bnr-yellow);
}

.bn-radar-fr24-section {
    margin: 0;
    padding: 8px 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.bn-radar-cat-list { display: flex; flex-direction: column; gap: 8px; }

.bn-radar-cat-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--bnr-yellow);
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.bn-radar-cat-btn.is-off { opacity: 0.45; }

.bn-radar-cat-btn__check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.bn-radar-fr24-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 24px);
    margin: 12px;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: var(--bnr-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.bn-radar-fr24-btn--primary { margin-top: 4px; }

.bn-radar-fr24-linkrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
}

.bn-radar-fr24-linkrow i { color: var(--bnr-blue); }

.bn-radar-fr24-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 12px;
}

.bn-radar-fr24-time select { flex: 1; margin: 0; width: auto; }

.bn-radar-playback-results { padding: 0 12px 16px; }

.bn-radar-playback-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    cursor: pointer;
}

.bn-radar-playback-item strong { color: var(--bnr-yellow); font-size: 15px; }
.bn-radar-playback-item span { display: block; font-size: 12px; color: #6b7280; margin-top: 4px; }

.bn-radar-plane.is-scheduled {
    opacity: 0.92;
}
.bn-radar-plane.is-scheduled .bn-radar-plane-body svg {
    fill: #93c5fd;
}
.bn-radar-plane.is-scheduled.is-selected .bn-radar-plane-body svg {
    fill: #bfdbfe;
}

.bn-radar-plane.is-fleet .bn-radar-plane-body svg {
    fill: #cbd5e1;
}
.bn-radar-plane.is-fleet.is-selected .bn-radar-plane-body svg {
    fill: #e2e8f0;
}

.leaflet-pane.bn-routes-pane {
    pointer-events: none;
    z-index: 445;
}
.leaflet-pane.bn-routes-pane path.bn-network-route {
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.leaflet-pane.bn-routes-pane path.bn-network-route--glow {
    stroke-linecap: round;
    filter: drop-shadow(0 0 1.5px rgba(245, 197, 24, 0.45));
}

.bn-radar-toolbar button.is-active { color: var(--bnr-yellow); }

.bn-radar-fr24__sheet--tall { max-height: min(82vh, 680px); }

.bn-radar-mapcard { background: #fff; border-bottom: 8px solid #e5e7eb; padding-bottom: 4px; }
.bn-radar-mapcard__label { margin: 0; padding: 12px 16px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }
.bn-radar-mapcard__sub { margin: 0; padding: 0 16px 10px; font-size: 12px; color: #6b7280; line-height: 1.45; }
.bn-radar-mapcard__row { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 0 16px 12px; align-items: start; }
.bn-radar-mapcard__thumb { position: relative; height: 72px; border-radius: 8px; overflow: hidden; background: #1a3a5c center/cover; border: 1px solid rgba(0,0,0,0.08); }
.bn-radar-mapcard__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 55%);
    pointer-events: none;
}
.bn-radar-mapcard__thumb--pins { background-image: radial-gradient(circle at 30% 40%, #60a5fa 0 6px, transparent 6px), radial-gradient(circle at 55% 55%, #f5c518 0 5px, transparent 5px), radial-gradient(circle at 72% 35%, #60a5fa 0 5px, transparent 5px), linear-gradient(135deg, #1e3a5f, #0a1628); }
.bn-radar-mapcard__thumb--loc { background-image: radial-gradient(circle at 50% 45%, #fff 0 8px, transparent 8px), radial-gradient(circle at 50% 45%, rgba(59,130,246,0.5) 0 18px, transparent 18px), linear-gradient(135deg, #2563eb, #1e3a5f); }
.bn-radar-mapcard__thumb--oceanic { background-image: repeating-linear-gradient(-35deg, transparent, transparent 8px, rgba(255,255,255,0.08) 8px, rgba(255,255,255,0.08) 9px), linear-gradient(135deg, #0ea5e9, #0369a1); }
.leaflet-pane.bn-daynight-pane {
    pointer-events: none;
}
.leaflet-pane.bn-daynight-pane path.bn-daynight-night {
    fill-rule: evenodd;
}
.leaflet-pane.bn-daynight-pane path.bn-daynight-line {
    stroke-linecap: round;
    stroke-linejoin: round;
}
.leaflet-pane.bn-daynight-pane path.bn-daynight-line--glow {
    stroke-linecap: round;
}
.bn-radar-mapcard__thumb--daynight {
    background-image:
        radial-gradient(ellipse 80% 120% at 18% 50%, rgba(251, 191, 36, 0.55), transparent 55%),
        linear-gradient(100deg, #fbbf24 0%, #f59e0b 42%, #1e293b 48%, #020617 100%);
}
.bn-radar-mapcard__thumb--wx { background-image: linear-gradient(135deg, #93c5fd, #3b82f6); }
.bn-radar-mapcard__thumb--volcano { background-image: linear-gradient(135deg, #ef4444, #7f1d1d); }
.bn-radar-mapcard__thumb--cloud { background-image: linear-gradient(135deg, #cbd5e1, #64748b); }
.bn-radar-mapcard__thumb--precip { background-image: linear-gradient(135deg, #4ade80, #166534); }
.bn-radar-mapcard__thumb--radar { background-image: linear-gradient(135deg, #fde047, #15803d); }
.bn-radar-mapcard__thumb--na { background-image: linear-gradient(135deg, #86efac, #14532d); }
.bn-radar-mapcard__thumb--au { background-image: linear-gradient(135deg, #fcd34d, #065f46); }
.bn-radar-mapcard__badge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 5px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(0,0,0,0.6); color: #fff; }
.bn-radar-mapcard__badge.is-on, .bn-radar-mapcard.is-on .bn-radar-mapcard__badge { background: var(--bnr-yellow); color: #1a1a1a; }
.bn-radar-mapcard__desc { margin: 0; font-size: 13px; color: #374151; line-height: 1.45; }
.bn-radar-grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 16px 14px; }
.bn-radar-grid4 button, .bn-radar-seg button { border: 0; border-radius: 8px; padding: 10px 8px; background: #e5e7eb; color: #374151; font-size: 13px; font-weight: 700; cursor: pointer; }
.bn-radar-grid4 button.is-active, .bn-radar-seg button.is-active { background: var(--bnr-yellow); color: #1a1a1a; }
.bn-radar-seg { display: flex; gap: 0; margin: 0 16px 14px; border-radius: 10px; overflow: hidden; background: #e5e7eb; }
.bn-radar-seg button { flex: 1; border-radius: 0; background: transparent; }
.bn-radar-seg--scroll { overflow-x: auto; }
.bn-radar-seg--scroll button { flex: 0 0 auto; min-width: 52px; }
.bn-radar-fr24-section--light { background: #e5e7eb; color: #6b7280; padding: 10px 16px; margin: 0; }
.bn-radar-unit-label { margin: 12px 16px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }
.bn-radar-fr24-chip { display: inline-flex; padding: 6px 14px; border-radius: 8px; background: var(--bnr-yellow); color: #1a1a1a; font-size: 13px; font-weight: 800; text-decoration: none; }
.bn-radar-fr24-row--dark { background: #333; color: #fff; border-color: rgba(255,255,255,0.08); }
.bn-radar-fr24-hint--dark { color: rgba(255,255,255,0.55); padding: 0 12px 12px; }
.bn-radar-filter-preview { margin: 8px 12px 12px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); font-size: 12px; }
.bn-radar-filter-preview__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.bn-radar-filter-preview__head button { border: 0; background: transparent; color: var(--bnr-blue); font-weight: 700; }
.bn-radar-filter-preview ul { list-style: none; margin: 8px 0 0; padding: 0; }
.bn-radar-filter-preview li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.bn-radar-filter-preview li.is-checked { background: rgba(245,197,24,0.15); color: #fff; padding-left: 8px; border-radius: 6px; }
.bn-radar-switch-mini { width: 44px; height: 26px; border-radius: 999px; background: #d1d5db; display: inline-block; }
.bn-radar-switch-mini.is-on { background: var(--bnr-yellow); }
.bn-radar-cat-btn__help { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.12); border: 0; font-size: 12px; font-weight: 800; color: #374151; cursor: pointer; }
.bn-radar-search__badge-bnv { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--bnr-yellow); color: #1a1a1a; font-size: 9px; font-weight: 800; }
.bn-radar-fr24__body--playback { padding-bottom: 20px; }

/* Toolbar: Alerts (mobile) vs Widgets (desktop) */
.bn-radar-toolbar__ico--desktop,
.bn-radar-toolbar__lbl--desktop { display: none; }

@media (min-width: 768px) {
    .bn-radar-toolbar__ico--mobile,
    .bn-radar-toolbar__lbl--mobile { display: none; }
    .bn-radar-toolbar__ico--desktop,
    .bn-radar-toolbar__lbl--desktop { display: inline; }
    .bn-radar-fr24__sheet--mobile-only { display: none !important; }
}

@media (max-width: 767px) {
    .bn-radar-fr24__sheet--desktop-only { display: none !important; }
    .bn-radar-map-widgets { display: none !important; }
}

/* Widgets panel (FR24-style) */
body.bnv-horizon .bn-radar-widgets-master {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
}

body.bnv-horizon .bn-radar-widgetcard {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
}

.bn-radar-widgets-master {
    background: #fff;
    border-bottom: 8px solid #e5e7eb;
    padding-bottom: 4px;
}

.bn-radar-fr24-row--master {
    padding: 14px 16px;
    border-bottom: 0;
}

.bn-radar-widgets-hint {
    margin: 0;
    padding: 0 16px 14px;
    font-size: 11px;
    line-height: 1.45;
    color: #6b7280;
}

.bn-radar-widgets-hint i.fa-info-circle { color: #9ca3af; margin-right: 4px; }
.bn-radar-widgets-hint i.fa-grip-vertical { color: #9ca3af; margin-left: 2px; }

.bn-radar-widgetcard {
    background: #fff;
    border-bottom: 8px solid #e5e7eb;
    padding-bottom: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bn-radar-widgetcard.is-off .bn-radar-mapcard__badge {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.bn-radar-widgetcard.is-off .bn-radar-mapcard__badge.is-on {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.bn-radar-widgetcard:not(.is-off) .bn-radar-mapcard__badge {
    background: var(--bnr-yellow);
    color: #1a1a1a;
}

.bn-radar-widgetcard__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px 8px;
}

.bn-radar-widgetcard__label {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.bn-radar-widgetcard__drag {
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    padding: 4px;
    cursor: grab;
}

.bn-radar-widgetcard__row {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    padding: 0 16px 12px;
    align-items: start;
}

.bn-radar-widgetcard__more {
    color: var(--bnr-blue);
    font-weight: 700;
    text-decoration: none;
}

.bn-radar-mapcard__thumb--widget-tracked {
    background-image: radial-gradient(circle at 70% 35%, var(--bnr-yellow) 0 5px, transparent 5px),
        linear-gradient(135deg, #1e3a5f 0%, #0a1628 100%);
}

.bn-radar-mapcard__thumb--widget-disrupt {
    background-image: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #1e3a5f 40%);
}

.bn-radar-mapcard__thumb--widget-bookmarks {
    background-image: radial-gradient(circle at 50% 42%, var(--bnr-yellow) 0 14px, transparent 14px),
        linear-gradient(135deg, #374151, #111827);
}

.bn-radar-mapcard__thumb--widget-stats {
    background-image: linear-gradient(135deg, #dbeafe, #93c5fd),
        repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(255,255,255,0.5) 12px, rgba(255,255,255,0.5) 13px);
}

.bn-radar-mapcard__thumb--widget-last {
    background-image: radial-gradient(circle at 65% 40%, #ef4444 0 6px, transparent 6px),
        linear-gradient(135deg, #475569, #1e293b);
}

.bn-radar-mapcard__thumb--widget-blog {
    background-image: linear-gradient(135deg, #fde047 0 30%, #fff 30%),
        linear-gradient(135deg, #fff, #f3f4f6);
}

/* Floating map widgets (desktop) */
.bn-radar-map-widgets {
    position: absolute;
    top: calc(max(6px, var(--bnr-safe-t)) + 100px);
    left: 12px;
    z-index: 35;
    width: min(280px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bn-radar-map-widgets:not([hidden]) { pointer-events: auto; }

.bn-radar-map-widget {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    font-size: 12px;
}

.bn-radar-map-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #2b2b2b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bn-radar-map-widget__head button {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
}

.bn-radar-map-widget__body { padding: 8px 10px; }

.bn-radar-map-widget__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
}

button.bn-radar-map-widget__row {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
}

.bn-radar-map-widget__row:last-child { border-bottom: 0; }

.bn-radar-map-widget__row strong {
    color: var(--bnr-blue);
    font-size: 12px;
}

.bn-radar-map-widget__row span {
    color: #6b7280;
    font-size: 11px;
    text-align: right;
}

.bn-radar-map-widget__empty {
    margin: 0;
    padding: 8px 0;
    color: #9ca3af;
    font-size: 11px;
}

.bn-radar-map-widget__stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 11px;
}

.bn-radar-map-widget__stat span:last-child { font-weight: 700; color: #111; }

.bn-radar-map-widget__blog {
    display: block;
    padding: 8px 0 4px;
    color: var(--bnr-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 12px;
}

@media (min-width: 768px) {
    .bn-radar-topbar { left: 16px; right: 16px; max-width: 560px; margin: 0 auto; }
    .bn-radar-toolbar { max-width: 520px; left: 50%; transform: translateX(-50%); }
    .bn-radar-mapctl--locate { top: calc(max(6px, var(--bnr-safe-t)) + 100px); }
}

/* FR24-style search results */
.bn-fr24-search__section { background: #fff; margin-bottom: 8px; }
.bn-fr24-search__section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb;
    font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #374151;
}
.bn-fr24-search__count { font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: none; letter-spacing: 0; }

.bn-fr24-flight {
    display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
    width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid #f3f4f6;
    background: #fff; text-align: left; cursor: pointer;
}
.bn-fr24-flight:active { background: #f9fafb; }
.bn-fr24-flight__logo { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.bn-fr24-flight__logo--fallback {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px; background: var(--bnr-yellow);
    font-size: 9px; font-weight: 800; color: #1a1a1a;
}
.bn-fr24-flight__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.bn-fr24-flight__top strong { font-size: 15px; color: #111; }
.bn-fr24-flight__badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.bn-fr24-flight__badge--ac { background: #dbeafe; color: #1d4ed8; }
.bn-fr24-flight__badge--reg { background: #fef3c7; color: #92400e; }
.bn-fr24-flight__route { font-size: 12px; color: #6b7280; line-height: 1.35; }
.bn-fr24-flight__code { display: inline-block; padding: 1px 4px; border-radius: 3px; background: #f3f4f6; color: #374151; font-size: 10px; font-weight: 700; }
.bn-fr24-flight__actions { display: flex; align-items: center; gap: 8px; }
.bn-fr24-flight__live {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px;
    background: var(--bnr-yellow); color: #1a1a1a; font-size: 9px; font-weight: 800;
}
.bn-fr24-flight__map { color: var(--bnr-blue); font-size: 16px; }
.bn-fr24-flight__chev { color: var(--bnr-blue); font-size: 12px; }
.bn-fr24-airport {
    display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0;
    border-bottom: 1px solid #f3f4f6; background: #fff; font-size: 13px; cursor: pointer;
}

.bn-radar-fr24-btn--reset {
    margin: 12px 16px 20px; width: calc(100% - 32px);
    background: #374151; color: #fff;
}

.bn-wx-chip-wrap { background: transparent !important; border: 0 !important; }
.bn-wx-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 3px;
    border-radius: 999px;
    background: rgba(8, 16, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transform-origin: left bottom;
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.bn-wx-chip__glyph {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}
.bn-wx-chip__svg { width: 22px; height: 22px; display: block; }
.bn-wx-chip__temp {
    font: 700 13px/1 Inter, system-ui, sans-serif;
    color: #fff;
    letter-spacing: 0.01em;
    padding-right: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.bn-wx-chip--sun .bn-wx-chip__glyph { background: rgba(251, 191, 36, 0.22); }
.bn-wx-chip--cloud .bn-wx-chip__glyph { background: rgba(226, 232, 240, 0.18); }
.bn-wx-chip--rain .bn-wx-chip__glyph { background: rgba(56, 189, 248, 0.18); }
.bn-wx-chip--snow .bn-wx-chip__glyph { background: rgba(125, 211, 252, 0.2); }
.bn-wx-chip--storm .bn-wx-chip__glyph { background: rgba(251, 191, 36, 0.16); }

.bn-wx-tip__glyph {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
}
.bn-wx-tip__glyph .bn-wx-chip__svg { width: 48px; height: 48px; }

/* Legacy class kept for any cached HTML — hide broken CSS blobs */
.bn-wx-fr24-wrap { background: transparent !important; border: 0 !important; }
.bn-wx-fr24 { display: none !important; }

/* FR24-style weather popup */
.bn-wx-leaflet-popup .leaflet-popup-content-wrapper {
    background: #fff; border-radius: 10px; padding: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.bn-wx-leaflet-popup .leaflet-popup-content { margin: 0; width: auto !important; min-width: 220px; }
.bn-wx-leaflet-popup .leaflet-popup-tip { background: #fff; box-shadow: none; }
.bn-wx-leaflet-popup .leaflet-popup-close-button {
    top: 8px; right: 10px; width: 24px; height: 24px;
    font-size: 20px; line-height: 22px; color: #6b7280; font-weight: 400;
}
.bn-wx-leaflet-popup .leaflet-popup-close-button:hover { color: #111; background: transparent; }

.bn-wx-tip { padding: 18px 20px 16px; text-align: center; }
.bn-wx-tip__icon { width: 56px; height: 56px; margin: 0 auto 12px; position: relative; }
.bn-wx-tip__icon--sun {
    background:
        radial-gradient(circle at 50% 50%, #ffe566 0 16px, #f5c518 16px 22px, transparent 22px),
        conic-gradient(from 0deg, #f5c518 0 8deg, transparent 8deg 22deg, #f5c518 22deg 30deg, transparent 30deg 52deg, #f5c518 52deg 60deg, transparent 60deg 82deg, #f5c518 82deg 90deg, transparent 90deg 112deg, #f5c518 112deg 120deg, transparent 120deg 142deg, #f5c518 142deg 150deg, transparent 150deg 172deg, #f5c518 172deg 180deg, transparent 180deg 202deg, #f5c518 202deg 210deg, transparent 210deg 232deg, #f5c518 232deg 240deg, transparent 240deg 262deg, #f5c518 262deg 270deg, transparent 270deg 292deg, #f5c518 292deg 300deg, transparent 300deg 322deg, #f5c518 322deg 330deg, transparent 330deg 352deg, #f5c518 352deg 360deg);
    border-radius: 50%;
}
.bn-wx-tip__icon--cloud { background: radial-gradient(ellipse 70% 55% at 50% 55%, #e2e8f0, #94a3b8); border-radius: 50%; }
.bn-wx-tip__icon--rain { background: radial-gradient(ellipse 70% 55% at 50% 45%, #94a3b8, #64748b); border-radius: 50%; }
.bn-wx-tip__icon--snow { background: radial-gradient(ellipse 70% 55% at 50% 45%, #f8fafc, #cbd5e1); border-radius: 50%; }
.bn-wx-tip__icon--storm { background: radial-gradient(ellipse 70% 55% at 50% 45%, #475569, #1e293b); border-radius: 50%; }
.bn-wx-tip__place {
    margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #111; line-height: 1.35;
}
.bn-wx-tip__temp { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #374151; }
.bn-wx-tip__cond { margin: 0; font-size: 14px; color: #6b7280; }

.bn-wx-ap-wrap { background: transparent !important; border: 0 !important; }

.bn-loc-wrap { background: transparent !important; border: 0 !important; }
.bn-loc { position: relative; width: 24px; height: 24px; }
.bn-loc__dot {
    position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%; background: #1a6fe8; border: 2.5px solid #fff;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.4);
}
.bn-loc__pulse {
    position: absolute; inset: 2px; border-radius: 50%; background: rgba(26, 110, 232, 0.28);
    animation: bn-loc-pulse 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes bn-loc-pulse {
    0% { opacity: 0.9; transform: scale(0.85); }
    100% { opacity: 0; transform: scale(1.85); }
}

.bn-wx-volcano-wrap { background: transparent !important; border: 0 !important; }
.bn-wx-volcano {
    position: relative;
    width: 48px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.bn-wx-volcano__svg { width: 40px; height: 46px; display: block; }
.bn-wx-volcano__tag {
    margin-top: -2px;
    max-width: 88px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(8, 16, 32, 0.78);
    border: 1px solid rgba(251, 146, 60, 0.45);
    color: #fff;
    font: 700 9px/1.2 Inter, system-ui, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leaflet-pane.bn-wx-tiles--volcano path {
    filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.35));
}
.bn-wx-tip--volcano .bn-wx-tip__meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* Live flight trail / route lines */
.leaflet-pane.bn-flight-trail-pane path {
    filter: none;
    vector-effect: non-scaling-stroke;
}
.leaflet-pane.bn-flight-trail-pane path.leaflet-interactive {
    pointer-events: none;
}
.leaflet-pane.bn-flight-trail-pane svg {
    overflow: visible;
}

/* Airport pins — compact tower markers + crisp labels */
.bn-ap-pin-wrap { background: transparent !important; border: 0 !important; }
.bn-ap-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    pointer-events: auto;
    filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.35));
}
.bn-ap-pin__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    max-width: 160px;
    padding: 4px 8px 3px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(6px);
}
.bn-ap-pin__name {
    display: block;
    max-width: 148px;
    font: 700 10px/1.2 Inter, system-ui, sans-serif;
    letter-spacing: 0.01em;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bn-ap-pin__codes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font: 700 9px/1.2 Inter, system-ui, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.bn-ap-pin__code { font-variant-numeric: tabular-nums; }
.bn-ap-pin__flag { font-size: 10px; line-height: 1; }
.bn-ap-pin__tower {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(165deg, #ffe566 0%, #f5c518 48%, #e0b00f 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 1px 3px rgba(15, 23, 42, 0.28);
}
.bn-ap-pin__glyph {
    width: 14px;
    height: 14px;
    display: block;
}
.bn-ap-pin--compact .bn-ap-pin__tower {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}
.bn-ap-pin--compact .bn-ap-pin__glyph {
    width: 13px;
    height: 13px;
}
.bn-ap-pin--labeled .bn-ap-pin__tower {
    border-radius: 8px 8px 6px 6px;
}
.bn-ap-pin--selected .bn-ap-pin__label {
    border-color: rgba(245, 197, 24, 0.55);
    box-shadow:
        0 0 0 1.5px rgba(245, 197, 24, 0.65),
        0 6px 16px rgba(15, 23, 42, 0.16);
}
.bn-ap-pin--selected .bn-ap-pin__tower {
    background: linear-gradient(165deg, #fff3a8 0%, #ffe566 40%, #f5c518 100%);
    transform: scale(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 2px 8px rgba(245, 197, 24, 0.45);
}
.bn-ap-pin--selected .bn-ap-pin__name { color: #111827; }
.bn-ap-pin:hover .bn-ap-pin__tower {
    transform: translateY(-1px) scale(1.04);
}

#bnRadarFitAll.is-error { color: #f87171 !important; animation: bn-loc-error 0.45s ease 2; }
@keyframes bn-loc-error {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.bn-wx-wind-wrap { background: transparent !important; border: 0 !important; }
.bn-wx-wind-svg {
    display: block;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.45));
}
.bn-wx-wind-svg--calm { filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35)); }
.leaflet-pane.bn-wx-tiles--winds .bn-wx-wind-dot {
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.35));
}
.bn-wx-tip__badge--wind {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}
.bn-wx-leaflet-popup--wind .leaflet-popup-content-wrapper {
    border-top: 3px solid #22d3ee;
}
.bn-wx-tip--wind .bn-wx-tip__place {
    font-variant-numeric: tabular-nums;
}

.bn-wx-popup { font-size: 11px; line-height: 1.45; white-space: pre-wrap; max-height: 200px; overflow: auto; font-family: ui-monospace, monospace; }
.bn-wx-popup strong { display: block; font-size: 12px; margin-bottom: 4px; font-family: inherit; }

.leaflet-pane.bn-wx-pane-tiles img { image-rendering: auto; }

/* FR24-style weather tile overlays */
.leaflet-pane.bn-wx-layer-pane img.bn-wx-tile { image-rendering: auto; }
/* Hide stretched low-res weather tiles when zoomed past native resolution. */
.bn-radar.is-wx-tiles-hid .leaflet-pane.bn-wx-pane-tiles,
.bn-radar.is-wx-tiles-hid .leaflet-pane[class*="bn-wx-tiles--"]:not(.bn-wx-tiles--na-radar):not(.bn-wx-tiles--au-radar) {
    visibility: hidden !important;
    pointer-events: none !important;
}
.leaflet-pane.bn-wx-tiles--cloud img { filter: saturate(0.95) brightness(1.06) contrast(1.1); mix-blend-mode: screen; opacity: 0.92; }
.leaflet-pane.bn-wx-tiles--cloud-sat img.bn-wx-tile--cloud,
.leaflet-pane.bn-wx-tiles--cloud-sat img.bn-wx-tile--cloud-gibs {
    filter: saturate(1.08) contrast(1.05) brightness(1.02);
    mix-blend-mode: normal;
    opacity: 1;
}
.leaflet-pane.bn-wx-tiles--precip img { filter: saturate(1.35) contrast(1.08) brightness(1.02); }
.leaflet-pane.bn-wx-tiles--na-radar img {
    filter: saturate(1.45) contrast(1.12) brightness(1.03);
}
.leaflet-pane.bn-wx-tiles--au-radar img {
    filter: saturate(1.5) contrast(1.14) brightness(1.04);
}
.leaflet-pane.bn-wx-tiles--intense img { filter: saturate(1.55) contrast(1.15) brightness(1.04); }
.leaflet-pane.bn-wx-tiles--airmet path,
.leaflet-pane.bn-wx-tiles--airmet polygon {
    filter: drop-shadow(0 0 5px rgba(234, 88, 12, 0.4));
    stroke-linejoin: round;
    stroke-linecap: round;
}
.bn-wx-tip--advisory {
    text-align: left;
    max-width: 300px;
}
.bn-wx-tip__badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font: 800 10px/1.3 Inter, system-ui, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}
.bn-wx-tip__badge--sigmet {
    background: linear-gradient(135deg, #dc2626, #ea580c);
}
.bn-wx-tip__badge--airmet {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}
.bn-wx-tip--advisory .bn-wx-tip__place {
    text-align: left;
    font-size: 15px;
}
.bn-wx-tip--advisory .bn-wx-tip__cond,
.bn-wx-tip--advisory .bn-wx-tip__meta {
    text-align: left;
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}
.bn-wx-tip__raw {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font: 500 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 160px;
    overflow: auto;
}
.bn-wx-leaflet-popup--advisory .leaflet-popup-content {
    margin: 8px 10px 10px;
}
.leaflet-pane.bn-wx-tiles--highlevel path,
.leaflet-pane.bn-wx-tiles--highlevel polygon,
.leaflet-pane.bn-wx-tiles--highlevel polyline {
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.45));
    stroke-linejoin: round;
    stroke-linecap: round;
}
.bn-wx-tip__badge--gairmet {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.bn-wx-tip__badge--icing {
    background: linear-gradient(135deg, #0e7490, #22d3ee);
}
.leaflet-pane.bn-wx-tiles--icing path,
.leaflet-pane.bn-wx-tiles--icing polygon,
.leaflet-pane.bn-wx-tiles--icing polyline {
    filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.55));
    stroke-linejoin: round;
    stroke-linecap: round;
}
.bn-wx-leaflet-popup--icing .leaflet-popup-content-wrapper {
    border-top: 3px solid #22d3ee;
}
.leaflet-pane.bn-wx-tiles--turbulence path,
.leaflet-pane.bn-wx-tiles--turbulence polygon,
.leaflet-pane.bn-wx-tiles--turbulence polyline {
    filter: drop-shadow(0 0 7px rgba(168, 85, 247, 0.55));
    stroke-linejoin: round;
    stroke-linecap: round;
}
.bn-wx-tip__badge--turb {
    background: linear-gradient(135deg, #6b21a8, #a855f7);
}
.bn-wx-leaflet-popup--turb .leaflet-popup-content-wrapper {
    border-top: 3px solid #a855f7;
}
.leaflet-pane.bn-wx-tiles--hazard path,
.leaflet-pane.bn-wx-tiles--hazard polygon { filter: drop-shadow(0 0 3px rgba(0,0,0,0.25)); }
.bn-wx-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
}
.bn-wx-leaflet-popup .leaflet-popup-content { margin: 10px 12px; }

/* Weather panel — FR24-style cards & previews */
.bn-radar-wx-card {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}
.bn-radar-wx-card:active { background: #f9fafb; }
.bn-radar-wx-card.is-off { opacity: 0.92; }
.bn-radar-wx-card__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px 0; gap: 8px;
}
.bn-radar-wx-card__label {
    margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase; color: #6b7280;
}
.bn-radar-wx-card__drag {
    border: 0; background: transparent; color: #9ca3af; font-size: 14px; padding: 4px; cursor: grab;
}
.bn-radar-wx-card__body {
    display: grid; grid-template-columns: 112px 1fr; gap: 14px;
    padding: 10px 16px 14px; align-items: center;
}
.bn-radar-wx-card__body--winds { align-items: start; padding-top: 8px; }
.bn-radar-wx-card--winds > .bn-radar-wx-card__label { padding: 12px 16px 0; }
.bn-radar-wx-card__desc { margin: 0; font-size: 12px; color: #4b5563; line-height: 1.5; }
.bn-radar-wx-card__windtext .bn-radar-wx-seg { margin-top: 10px; }

.bn-radar-wx-preview {
    position: relative; width: 112px; height: 72px; border-radius: 6px; overflow: hidden;
    background: #8fb996 center/cover;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.bn-radar-wx-preview .bn-radar-mapcard__badge {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 4px; text-align: center; font-size: 9px; font-weight: 800;
    letter-spacing: 0.05em; text-transform: uppercase;
    background: rgba(0,0,0,0.65); color: #fff;
}
.bn-radar-wx-card:not(.is-off) .bn-radar-wx-preview .bn-radar-mapcard__badge {
    background: var(--bnr-yellow); color: #1a1a1a;
}

.bn-radar-wx-preview::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.08), transparent 40%),
        linear-gradient(135deg, #3d7a52 0%, #2d5a3d 35%, #4a7c59 50%, #1e4d6b 75%, #2d6a4f 100%);
}

.bn-radar-wx-preview::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
}

.bn-radar-wx-preview--current::after {
    background:
        radial-gradient(circle at 22% 38%, #f5c518 0 7px, transparent 7px),
        radial-gradient(circle at 48% 52%, #f5c518 0 6px, transparent 6px),
        radial-gradient(circle at 72% 30%, #fbbf24 0 6px, transparent 6px),
        radial-gradient(circle at 60% 68%, #fde047 0 5px, transparent 5px);
}
.bn-radar-wx-preview--volcano::after {
    background:
        linear-gradient(135deg, transparent 40%, rgba(220,38,38,0.55) 40%, rgba(220,38,38,0.35) 70%, transparent 70%),
        radial-gradient(circle at 35% 55%, #ef4444 0 12px, transparent 12px);
}
.bn-radar-wx-preview--cloud::after {
    background:
        linear-gradient(180deg, rgba(203,213,225,0.75), rgba(148,163,184,0.55)),
        radial-gradient(ellipse 80% 50% at 50% 40%, rgba(255,255,255,0.5), transparent);
}
.bn-radar-wx-preview--precip::after {
    background:
        radial-gradient(circle at 30% 45%, rgba(74,222,128,0.7) 0 18px, transparent 18px),
        radial-gradient(circle at 65% 55%, rgba(34,197,94,0.65) 0 22px, transparent 22px),
        radial-gradient(circle at 48% 35%, rgba(250,204,21,0.5) 0 12px, transparent 12px);
}
.bn-radar-wx-preview--intense::after {
    background:
        radial-gradient(circle at 40% 50%, rgba(239,68,68,0.75) 0 20px, transparent 20px),
        radial-gradient(circle at 62% 40%, rgba(250,204,21,0.65) 0 16px, transparent 16px),
        radial-gradient(circle at 28% 62%, rgba(34,197,94,0.45) 0 14px, transparent 14px);
}
.bn-radar-wx-preview--na::after {
    background:
        linear-gradient(90deg, transparent 45%, rgba(74,222,128,0.55) 45%, rgba(74,222,128,0.55) 100%),
        radial-gradient(circle at 70% 45%, rgba(250,204,21,0.5) 0 14px, transparent 14px);
}
.bn-radar-wx-preview--au::after {
    background:
        linear-gradient(120deg, transparent 55%, rgba(74,222,128,0.5) 55%),
        radial-gradient(circle at 72% 62%, rgba(34,197,94,0.55) 0 16px, transparent 16px);
}
.bn-radar-wx-preview--winds::after {
    background:
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.06) 8px, rgba(255,255,255,0.06) 9px),
        radial-gradient(circle at 35% 40%, rgba(255,255,255,0.85) 0 8px, transparent 8px),
        radial-gradient(circle at 60% 55%, rgba(255,255,255,0.85) 0 8px, transparent 8px);
}
.bn-radar-wx-preview--lightning::after {
    background: radial-gradient(circle at 50% 45%, rgba(250,204,21,0.85) 0 14px, rgba(239,68,68,0.4) 14px 28px, transparent 28px);
}
.bn-radar-wx-preview--airmet::after {
    background:
        linear-gradient(135deg, rgba(234,88,12,0.45) 0 40%, transparent 40%),
        linear-gradient(-35deg, rgba(245,158,11,0.35) 0 35%, transparent 35%);
}
.bn-radar-wx-preview--highlevel::after {
    background:
        linear-gradient(90deg, rgba(99,102,241,0.35) 0 50%, rgba(59,130,246,0.25) 50%),
        repeating-linear-gradient(0deg, transparent, transparent 6px, rgba(255,255,255,0.08) 6px, rgba(255,255,255,0.08) 7px);
}
.bn-radar-wx-preview--icing::after {
    background:
        linear-gradient(180deg, rgba(6,182,212,0.15), rgba(6,182,212,0.45)),
        repeating-linear-gradient(90deg, rgba(34,211,238,0.35) 0 3px, transparent 3px 6px);
}
.bn-radar-wx-preview--turbulence::after {
    background:
        linear-gradient(135deg, rgba(168,85,247,0.2), rgba(147,51,234,0.45)),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.06) 0 4px, transparent 4px 8px);
}

.bn-radar-wx-seg {
    display: flex; border-radius: 8px; overflow: hidden; background: #e5e7eb;
}
.bn-radar-wx-seg button {
    flex: 1; border: 0; padding: 8px 4px; background: transparent;
    font-size: 10px; font-weight: 700; color: #374151; cursor: pointer;
}
.bn-radar-wx-seg button.is-active { background: var(--bnr-yellow); color: #1a1a1a; }

.bn-radar-search__results { background: #f2f2f2; }
.bn-radar-search { background: #111; }
.bn-radar-search__head { background: #2b2b2b; color: #fff; }
.bn-radar-search__input-wrap { background: #2b2b2b; }
.bn-radar-search__input-wrap input { background: #1f1f1f; color: #fff; border-color: #333; }

/* Ops features: filters, legend, clusters, badges */
.bn-radar-ops-label {
    margin: 12px 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .7;
}
.bn-radar-ops-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bn-radar-ops-chip {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #e5e7eb;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 650;
    text-transform: capitalize;
    cursor: pointer;
}
.bn-radar-ops-chip.is-on {
    background: rgba(26,111,232,.28);
    border-color: rgba(56,189,248,.55);
    color: #fff;
}
.bn-radar-ops-legend {
    position: fixed;
    right: 12px;
    bottom: 88px;
    z-index: 1200;
    width: 150px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(12, 16, 24, 0.88);
    color: #f8fafc;
    font-size: 11px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.bn-radar-ops-legend strong { display: block; margin-bottom: 6px; font-size: 12px; }
.bn-radar-ops-legend ul { list-style: none; margin: 0; padding: 0; }
.bn-radar-ops-legend li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.bn-radar-ops-swatch {
    width: 10px; height: 10px; border-radius: 50%;
    background: #94a3b8; flex-shrink: 0;
}
.bn-radar-ops-swatch.is-phase-taxi { background: #a78bfa; }
.bn-radar-ops-swatch.is-phase-climb { background: #38bdf8; }
.bn-radar-ops-swatch.is-phase-cruise { background: #1a6fe8; }
.bn-radar-ops-swatch.is-phase-descent { background: #f59e0b; }
.bn-radar-ops-swatch.is-phase-approach { background: #10b981; }
.bn-radar-ops-swatch.is-stale { background: #64748b; box-shadow: 0 0 0 2px rgba(100,116,139,.35); }
.bn-radar-ops-swatch.is-squawk { background: #ef4444; }
.bn-radar-ops-legend__hide {
    margin-top: 8px; width: 100%;
    border: 0; border-radius: 8px; padding: 5px;
    background: rgba(255,255,255,.08); color: #cbd5e1; cursor: pointer; font-size: 11px;
}
.bn-radar-plane.is-stale svg { opacity: .55; }
.bn-radar-plane-src {
    position: absolute; top: -2px; left: 50%; transform: translate(-50%, -100%);
    font-size: 9px; font-weight: 700; white-space: nowrap;
    background: rgba(0,0,0,.7); color: #fff; padding: 1px 5px; border-radius: 4px;
}
.bn-radar-cluster {
    background: transparent !important; border: 0 !important;
}
.bn-radar-cluster span {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: #1a6fe8; color: #fff; font-weight: 800; font-size: 12px;
    box-shadow: 0 0 0 3px rgba(26,111,232,.35), 0 4px 12px rgba(0,0,0,.35);
}
.bnv-fr24-ops-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.bnv-fr24-ops-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700;
    background: rgba(148,163,184,.18); color: #cbd5e1;
}
.bnv-fr24-ops-badge--src { background: rgba(26,111,232,.2); color: #93c5fd; }
.bnv-fr24-ops-badge--acars { background: rgba(249,115,22,.2); color: #fdba74; }
.bnv-fr24-ops-badge--adsb { background: rgba(16,185,129,.18); color: #6ee7b7; }
.bnv-fr24-ops-badge--derived { background: rgba(245,158,11,.2); color: #fcd34d; }
.bnv-fr24-ops-badge--estimated { background: rgba(148,163,184,.2); color: #e2e8f0; }
.bnv-fr24-ops-badge--stale { background: rgba(100,116,139,.35); color: #f1f5f9; }
.bnv-fr24-ops-badge--delay { background: rgba(239,68,68,.2); color: #fca5a5; }
.bnv-fr24-gate-guess,
.bnv-fr24-delay-board {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin: 6px 0; font-size: 12px; color: #cbd5e1;
}
.bnv-fr24-delay-board .is-delay { color: #fca5a5; font-weight: 700; }
.bnv-alert-inbox { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 220px; overflow: auto; }
.bnv-alert-inbox__item {
    padding: 8px 10px; border-radius: 10px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.bnv-alert-inbox__item--error { border-color: rgba(239,68,68,.35); }
.bnv-alert-inbox__item--warn { border-color: rgba(245,158,11,.35); }
.bnv-alert-inbox__item strong { display: block; font-size: 12px; }
.bnv-alert-inbox__item p { margin: 2px 0; font-size: 11px; opacity: .85; }
.bnv-alert-inbox__item small { opacity: .55; font-size: 10px; }
.bnv-watch-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bnv-watch__row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05);
}
.bnv-watch__row span { display: block; font-size: 11px; opacity: .7; }
.bnv-drawer__rule { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 12px 0; }
body.bn-radar-night-map .bn-radar-ops-legend { background: rgba(0,0,0,.82); }
@media (max-width: 720px) {
    .bn-radar-ops-legend { right: 8px; bottom: 120px; width: 132px; }
}

/* Aeronautical charts + ATC FIR boundaries */
.bn-atc-label { background: none !important; border: 0 !important; }
.bn-atc-label__txt {
    display: inline-block;
    transform: translate(-50%, -50%);
    padding: 1px 5px;
    font: 700 10px/1.2 "IBM Plex Mono", ui-monospace, monospace;
    letter-spacing: 0.04em;
    color: var(--atc, #3b82f6);
    text-shadow:
        0 0 3px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.92;
}

.bn-navaid { background: none !important; border: 0 !important; }
.bn-navaid__mark {
    position: absolute;
    left: 0; top: 0;
    width: 12px; height: 12px;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}
.bn-navaid--vor .bn-navaid__mark {
    width: 11px; height: 11px;
    background: #38bdf8;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.bn-navaid--tacan .bn-navaid__mark {
    width: 10px; height: 10px;
    background: #67e8f9;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.bn-navaid--ndb .bn-navaid__mark {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #fbbf24 0 28%, transparent 30% 100%);
    box-shadow:
        0 0 0 1.5px #f59e0b,
        0 0 0 3px rgba(245, 158, 11, 0.25);
}
.bn-navaid--dme .bn-navaid__mark {
    width: 8px; height: 8px;
    border-radius: 2px;
    background: #a5b4fc;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.bn-navaid__lab {
    position: absolute;
    left: 8px; top: -7px;
    font: 700 9px/1 "IBM Plex Mono", ui-monospace, monospace;
    letter-spacing: 0.03em;
    color: #f8fafc;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.75);
    white-space: nowrap;
    pointer-events: none;
}

.bn-chart-popup { min-width: 160px; font-family: "IBM Plex Sans", system-ui, sans-serif; }
.bn-chart-popup__title {
    font-size: 14px; font-weight: 800; color: #0f172a; letter-spacing: 0.02em;
}
.bn-chart-popup__title span {
    margin-left: 6px; font-size: 11px; font-weight: 600; color: #64748b;
}
.bn-chart-popup__meta {
    margin-top: 2px; font-size: 12px; color: #64748b;
}
.bn-chart-popup__row {
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 8px; font-size: 12px; color: #475569;
}
.bn-chart-popup__row strong { color: #0f172a; font-weight: 700; }
.bn-chart-leaflet-popup .leaflet-popup-content { margin: 10px 12px; }
