/* =========================================================
   GTA6RealMap · Leonida Tactical HUD Theme (v15 visual)
   Drop-in replacement for current-style.css.
   - Every class name / ID / DOM hook from v14 is preserved.
   - Layout metrics kept 1:1 (336px sidebar, 54px header,
     calc(100vh - 56px) map, <=820px bottom sheet, <=768px nav).
   - Zero purple-tinted surfaces, zero neon pink/cyan, zero rainbow.
   ========================================================= */
:root {
  /* Asphalt / gunmetal surfaces - neutral-cool, no purple cast */
  --bg: #0b0d10;
  --bg-card: #11151b;
  --bg-elev: #171c24;
  --bg-hover: #1d232d;
  --border: #262e3a;
  --border-strong: #354152;
  --text: #f3f5f8;
  --text-muted: #94a0b2;
  --text-dim: #6b778a;

  /* Leonida accents - used sparingly, as solid blocks */
  --accent: #ff6442;      /* Vice City sunset coral: primary CTA / brand */
  --accent-hi: #ff7d5e;   /* coral hover */
  --on-accent: #0b0d10;   /* ink on coral / gold / teal fills */
  --gold: #f5b841;        /* Wanted-star gold: vaults, bounties, hot */
  --teal: #2dd4bf;        /* Biscayne teal: found / verified / coords */
  --danger: #e5484d;      /* destructive actions only */

  /* Legacy aliases - keep old inline styles & templates working */
  --pink: var(--accent);
  --cyan: var(--teal);
  --yellow: var(--gold);
  --white: #ffffff;
  --black: #07090c;

  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 3px;
  --r: 4px;
  --r-md: 6px;
  --shadow-pop: 0 14px 36px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button, input, select, textarea { font-family: var(--font-body); }

/* Tabular figures wherever numbers matter (pins, codes, money) */
.sb-badge, .sb-prog-top, .cat-cnt, .cat-group-hd span, .miss-stat, .collectible-progress-bar strong,
.prose td, .popup-meta, .feed-time, .log-badge, .marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  font-variant-numeric: tabular-nums;
}

.skip { position: absolute; top: -999px; left: 0; background: var(--gold); color: var(--on-accent); padding: 8px 16px; z-index: 9999; font-size: 14px; font-weight: 700; }
.skip:focus { top: 0; }
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }

/* =========================================================
   HEADER - Rockstar pause-menu top bar
   ========================================================= */
.hdr { background: var(--bg); position: sticky; top: 0; z-index: 1200; border-bottom: 1px solid var(--border); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 18px; width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1; color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: 0.02em; }
.logo b { color: var(--accent); font-weight: 800; }
.logo .pin { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--border-strong); }
.logo.small { font-size: 1.3rem; }
/* Hard-stop segment (no blended gradient): coral tab + gold notch + steel rail */
.stripe { height: 2px; background: linear-gradient(90deg, var(--accent) 0, var(--accent) 132px, var(--gold) 132px, var(--gold) 156px, var(--border) 156px, var(--border) 100%); }

.nav { display: flex; gap: 14px; align-items: center; }
.nav a { color: var(--text-muted); text-decoration: none; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.15s, box-shadow 0.15s; white-space: nowrap; padding: 16px 0 14px; box-shadow: inset 0 -2px 0 transparent; }
@media (max-width: 1080px) { .nav { gap: 10px; } .nav a { font-size: 0.94rem; } }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.nav a.nav-hot { color: var(--gold); }
.nav a.nav-hot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 2px; background: var(--gold); border-radius: 1px; transform: rotate(45deg); }
.navbtn { display: none; background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text); padding: 5px 12px; border-radius: var(--r); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.navbtn:hover { border-color: var(--accent); }

.doc h1 { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1.05; letter-spacing: 0.005em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.lede { font-size: 1.06rem; color: var(--text-muted); max-width: 860px; margin-bottom: 14px; }
.crumbs { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 12px; display: flex; gap: 6px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* =========================================================
   v4 FULL-VIEWPORT IMMERSIVE MAP APP
   ========================================================= */
.map-app-shell { width: 100%; background: var(--black); border-bottom: 1px solid var(--border); }
.v4-mapbox { position: relative; width: 100%; height: calc(100vh - 56px); min-height: 580px; display: flex; overflow: hidden; background: var(--black); }
.v4-mapbox:fullscreen { height: 100vh; }

/* Left Sidebar (Desktop) / Bottom Sheet (Mobile) */
.v4-sidebar {
  width: 336px;
  min-width: 336px;
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 800;
  transition: margin-left 0.22s ease, transform 0.22s ease;
}
.v4-mapbox.sb-collapsed .v4-sidebar { margin-left: -336px; }

.sb-grab { display: none; }
.sb-header { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); background: var(--bg); }
.sb-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sb-h1 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 800; line-height: 1.05; color: var(--text); letter-spacing: 0.01em; text-transform: uppercase; }
.sb-badge { font-size: 0.72rem; font-weight: 700; padding: 3px 7px; border-radius: var(--r-sm); background: var(--gold); color: var(--on-accent); white-space: nowrap; letter-spacing: 0.02em; }

.sb-search-row { display: flex; gap: 6px; margin-bottom: 10px; }
.sb-search { flex: 1; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: var(--r); font-size: 0.86rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.sb-search::placeholder { color: var(--text-dim); }
.sb-search:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sb-search-clear { background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); padding: 0 10px; border-radius: var(--r); cursor: pointer; font-weight: 700; }
.sb-search-clear:hover { color: var(--text); border-color: var(--border-strong); }

/* 3-column tactical tabs - Rockstar menu: selected = off-white slab */
.sb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--bg-elev); padding: 3px; border-radius: var(--r-md); border: 1px solid var(--border); }
.sb-tab { background: transparent; border: 0; color: var(--text-muted); padding: 5px 4px; border-radius: var(--r-sm); font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background 0.15s, color 0.15s; }
.sb-tab:hover { color: var(--text); background: var(--bg-hover); }
.sb-tab.active { background: var(--text); color: var(--on-accent); }

/* Progress Bar - found = teal, segmented track */
.sb-prog { padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.sb-prog-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; margin-bottom: 6px; }
.sb-prog-top strong { color: var(--text); font-weight: 700; }
.sb-prog-top span { color: var(--text-muted); }
.sb-prog-track { height: 6px; width: 100%; background: var(--bg) repeating-linear-gradient(90deg, transparent 0, transparent 9.5%, var(--bg-card) 9.5%, var(--bg-card) 10%); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); }
.sb-prog-fill { height: 100%; width: 0%; background: var(--teal); transition: width 0.25s ease; }

/* Quick Action Row */
.sb-quick { display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sb-qbtn { flex: 1; min-width: 72px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); padding: 6px 7px; border-radius: var(--r); font-size: 0.76rem; font-weight: 700; cursor: pointer; text-align: center; transition: border-color 0.12s, background 0.12s, color 0.12s; }
.sb-qbtn:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.sb-qbtn.active { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }

/* Scrollable Category Tree */
.sb-body { flex: 1; overflow-y: auto; padding: 10px 12px 16px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.sb-body::-webkit-scrollbar { width: 8px; }
.sb-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; border: 2px solid var(--bg-card); }
.sb-pane { display: none; }
.sb-pane.active { display: block; }

.sb-regions { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.sb-rchip { background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); padding: 4px 8px; border-radius: var(--r-sm); font-size: 0.74rem; font-weight: 600; cursor: pointer; transition: border-color 0.12s, color 0.12s; }
.sb-rchip:hover { border-color: var(--border-strong); color: var(--text); }
.sb-rchip.active { border-color: var(--teal); color: var(--teal); background: rgba(45, 212, 191, 0.08); }

.cat-group { margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); overflow: hidden; }
.cat-group-hd { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--bg-elev); border: 0; border-left: 3px solid var(--accent); color: var(--text); font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; letter-spacing: 0.05em; cursor: pointer; text-transform: uppercase; }
.cat-group-hd:hover { background: var(--bg-hover); }
.cat-group.collapsed .cat-group-hd { border-left-color: var(--border-strong); }
.cat-group-hd b { font-weight: 800; }
.cat-group-hd span { color: var(--gold); font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 6px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 8px; }
.cat-group.collapsed .cat-grid { display: none; }

.cat-btn { display: flex; align-items: center; gap: 6px; padding: 6px 7px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 0.76rem; font-weight: 600; cursor: pointer; text-align: left; transition: border-color 0.12s, background 0.12s, color 0.12s; min-width: 0; }
.cat-btn:hover { border-color: var(--border-strong); color: var(--text); }
.cat-btn.on { border-color: var(--border-strong); background: var(--bg-elev); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.cat-btn:not(.on) .cat-dot { filter: saturate(0.35) brightness(0.8); }
.cat-btn .cat-dot { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--on-accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45); }
.cat-btn .cat-dot svg { width: 11px; height: 11px; display: block; }
.cat-btn .cat-lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-btn .cat-cnt { font-size: 0.72rem; color: var(--text-dim); font-weight: 700; }
.cat-btn.on .cat-cnt { color: var(--text-muted); }

/* My Pins & Community Tips Sidebar Panes */
.sb-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 11px 12px; margin-bottom: 10px; font-size: 0.84rem; }
.sb-card h3, .sb-card-h { font-weight: 800; font-family: var(--font-display); font-size: 1.04rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; line-height: 1.15; }
.sb-card p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; line-height: 1.45; }
.sb-btn-full { width: 100%; padding: 9px 10px; border-radius: var(--r); border: 0; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; margin-bottom: 6px; transition: background 0.12s; }
.sb-btn-full:hover { background: var(--accent-hi); }
.sb-btn-full.alt { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border-strong); }
.sb-btn-full.alt:hover { background: var(--bg-hover); border-color: var(--teal); color: var(--teal); }
.pin-list-item { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-card); margin-bottom: 6px; font-size: 0.8rem; }
.pin-list-item button { background: var(--bg-elev); border: 1px solid var(--border); color: var(--teal); padding: 3px 7px; border-radius: var(--r-sm); font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.pin-list-item button:hover { border-color: var(--teal); }

.sb-footer { padding: 8px 14px; border-top: 1px solid var(--border); background: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--text-muted); }
.sb-footer button { background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); padding: 4px 9px; border-radius: var(--r); font-size: 0.74rem; font-weight: 700; cursor: pointer; }
.sb-footer button:hover { border-color: var(--accent); color: var(--accent); }

/* Map Canvas Area + Floating HUD */
.v4-stage { position: relative; flex: 1; height: 100%; min-width: 0; background: var(--black); }
#map { width: 100%; height: 100%; background: var(--black); }
.v4-mapbox.adding-pin #map { cursor: crosshair; }

.v4-toggle-sb {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 700;
  background: rgba(17, 21, 27, 0.94);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--r);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.v4-toggle-sb:hover { border-color: var(--accent); color: var(--accent); }

.v4-float-tr {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.v4-fbtn {
  background: rgba(17, 21, 27, 0.94);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--r);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.v4-fbtn:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-elev); }
.v4-fbtn.active { color: var(--text); border-color: var(--border-strong); background: var(--bg-elev); box-shadow: inset 0 -2px 0 var(--teal), 0 4px 14px rgba(0, 0, 0, 0.45); }
.v4-fbtn.accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.v4-fbtn.accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--on-accent); }

.v4-banner-tip {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 750;
  background: var(--gold);
  color: var(--on-accent);
  padding: 8px 16px;
  border-radius: var(--r);
  font-size: 0.84rem;
  font-weight: 700;
  display: none;
  white-space: nowrap;
  box-shadow: var(--shadow-pop);
}
.v4-mapbox.adding-pin .v4-banner-tip { display: block; }

/* Submit Community Pin Modal - mission briefing card */
.v4-modal-backdrop { position: absolute; inset: 0; background: var(--black); opacity: 0.82; z-index: 900; display: none; }
.v4-modal { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(400px, 92%); background: var(--bg-card); border: 1px solid var(--border-strong); border-top: 3px solid var(--accent); border-radius: var(--r-md); padding: 16px; z-index: 910; display: none; box-shadow: var(--shadow-pop); }
.v4-modal.open, .v4-modal-backdrop.open { display: block; }
.v4-modal h3, .v4-modal-h { font-weight: 800; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; line-height: 1.1; }
.v4-modal p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.v4-modal p strong { color: var(--teal); }
.v4-modal label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 9px 0 4px; }
.v4-modal input, .v4-modal select, .v4-modal textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 8px 9px; border-radius: var(--r); font-size: 0.85rem; outline: none; }
.v4-modal input:focus, .v4-modal select:focus, .v4-modal textarea:focus { border-color: var(--accent); }
.v4-modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.v4-modal-actions button { flex: 1; padding: 8px 10px; border-radius: var(--r); font-weight: 700; cursor: pointer; border: 1px solid var(--border); }

/* SVG Category Markers, Refined Clusters & Place Names */
.mk-svg { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #f3f5f8; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; color: var(--on-accent); cursor: pointer; transition: transform 0.14s, opacity 0.14s; }
.mk-svg svg { width: 13px; height: 13px; display: block; }
.mk-svg:hover { transform: scale(1.25); z-index: 1000 !important; }
.mk-svg.found { opacity: 0.35; filter: grayscale(0.85); }
.mk-svg.community-mk { border: 2px dashed var(--gold); background: var(--bg-card) !important; color: var(--gold); opacity: 0.92; }
.mk-svg.custom-mk { border: 2px solid var(--accent); background: var(--gold) !important; color: var(--on-accent); }

/* Cluster rings graded by density: teal -> gold -> coral (heat) */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(11, 13, 16, 0.55) !important; border: 1.5px solid var(--teal); border-radius: 50%; }
.marker-cluster-medium { border-color: var(--gold); }
.marker-cluster-large { border-color: var(--accent); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: rgba(17, 21, 27, 0.94) !important; color: var(--text) !important; font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: 0.02em; border-radius: 50%; }

.place-lbl { pointer-events: none; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: #f3f5f8; text-shadow: 0 1px 3px var(--black), 0 0 10px var(--black), 0 0 2px var(--black); white-space: nowrap; opacity: 0.92; transform: translate(-50%, -50%); }
.place-lbl.sub { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); opacity: 0.88; }

/* Leaflet chrome -> tactical HUD */
.leaflet-container { background: var(--black); font-family: var(--font-body); }
.leaflet-bar { border: 1px solid var(--border-strong) !important; border-radius: var(--r) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important; overflow: hidden; }
.leaflet-bar a { background: var(--bg-card); color: var(--text); border-bottom-color: var(--border); }
.leaflet-bar a:hover { background: var(--bg-elev); color: var(--accent); }
.leaflet-control-attribution { background: rgba(11, 13, 16, 0.78) !important; color: var(--text-dim) !important; }
.leaflet-control-attribution a { color: var(--text-muted) !important; }

/* Popup Card - in-game intel card */
.leaflet-popup-content-wrapper { background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 0; overflow: hidden; box-shadow: var(--shadow-pop); }
.leaflet-popup-tip { background: var(--bg-card); box-shadow: none; border: 1px solid var(--border-strong); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text); background: rgba(11, 13, 16, 0.75); border-radius: var(--r-sm); top: 6px; right: 6px; width: 22px; height: 22px; line-height: 20px; font-size: 16px; }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--accent); }
.leaflet-popup-content { margin: 0; width: 296px !important; }
.popup-card { padding: 12px; }
.popup-thumb { width: 100%; height: 136px; object-fit: cover; display: block; border-bottom: 1px solid var(--border); background: var(--bg); }
.popup-badge { display: inline-block; padding: 2px 7px; border-radius: var(--r-sm); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; color: var(--on-accent); }
.popup-card h4 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); margin: 0 0 6px; line-height: 1.1; }
.popup-card p { font-size: 0.84rem; color: var(--text-muted); margin: 0 0 8px; line-height: 1.45; }
.popup-meta { font-size: 0.74rem; color: var(--teal) !important; margin-bottom: 8px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.popup-vote-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.vote-btn { flex: 1; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); padding: 5px 6px; border-radius: var(--r); font-size: 0.76rem; font-weight: 700; cursor: pointer; }
.vote-btn:hover { border-color: var(--border-strong); color: var(--text); }
.vote-btn.voted { border-color: var(--teal); color: var(--teal); background: rgba(45, 212, 191, 0.08); }
.popup-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.popup-btn { flex: 1; padding: 7px 10px; border-radius: var(--r); border: 1px solid var(--teal); background: var(--teal); color: var(--on-accent); font-weight: 800; font-size: 0.8rem; cursor: pointer; }
.popup-btn:hover { filter: brightness(1.08); }
.popup-btn.done { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.popup-btn.secondary { background: var(--bg); color: var(--text); border-color: var(--border-strong); flex: 0 0 auto; }
.popup-btn.secondary:hover { border-color: var(--teal); color: var(--teal); filter: none; }
.popup-btn.danger { background: #c92a30; color: var(--white); border-color: #c92a30; }

/* =========================================================
   LIVE LAUNCH DISCOVERIES FEED & CHANGELOG
   ========================================================= */
.live-feed-band { padding: 34px 20px 12px; }
.feed-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 8px; }
.live-pill::before { content: ""; width: 6px; height: 6px; background: var(--on-accent); border-radius: 1px; animation: hudBlink 1.4s steps(2, start) infinite; }
@keyframes hudBlink { to { visibility: hidden; } }
.feed-head h2 { font-family: var(--font-display); font-size: 2.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; color: var(--text); line-height: 1.05; margin-bottom: 8px; }
.feed-sub { color: var(--text-muted); font-size: 0.94rem; max-width: 680px; }
.feed-sub strong { color: var(--text); }
.feed-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.feed-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 6px 12px; border-radius: var(--r); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: border-color 0.12s, color 0.12s; }
.feed-tab:hover { border-color: var(--border-strong); color: var(--text); }
.feed-tab.active { background: var(--text); border-color: var(--text); color: var(--on-accent); }

.feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; margin-bottom: 20px; }
.feed-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.18s, transform 0.18s; }
.feed-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feed-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-elev); }
.feed-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.feed-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.76rem; }
.feed-tag { background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); padding: 2px 7px; border-radius: var(--r-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.7rem; }
.feed-time { color: var(--gold); font-weight: 600; }
.feed-body h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; color: var(--text); line-height: 1.1; margin: 0; }
.feed-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; flex: 1; margin: 0; }
.feed-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.feed-locate { background: var(--accent); color: var(--on-accent) !important; text-decoration: none !important; padding: 6px 12px; border-radius: var(--r); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }
.feed-locate:hover { background: var(--accent-hi); }
.feed-read { color: var(--text) !important; text-decoration: none !important; font-weight: 700; font-size: 0.84rem; }
.feed-read:hover { color: var(--accent) !important; }
.feed-foot { display: flex; flex-wrap: wrap; gap: 10px; }

/* Changelog Timeline */
.log-entry { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 14px; }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.log-badge { background: var(--gold); color: var(--on-accent); font-family: var(--font-display); font-size: 0.86rem; font-weight: 800; padding: 1px 8px; border-radius: var(--r-sm); text-transform: uppercase; letter-spacing: 0.06em; }
.log-entry ul { margin: 0 0 0 20px; }
.log-entry li { margin-bottom: 6px; color: var(--text-muted); font-size: 0.94rem; }
.log-entry li::marker { color: var(--accent); }

/* Native Player Comments & Likes */
.engage-box { margin-top: 38px; padding: 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); }
.engage-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.engage-top h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin-bottom: 4px; line-height: 1.1; }
.engage-actions { display: flex; gap: 8px; }
.engage-like, .engage-share { background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text); padding: 7px 14px; border-radius: var(--r); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.engage-like:hover, .engage-share:hover { border-color: var(--accent); color: var(--accent); }
.engage-like[data-gf-liked] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.comment-form input, .comment-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: var(--r); font-family: var(--font-body); font-size: 0.92rem; outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); }
.comment-submit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment-msg { font-size: 0.86rem; color: var(--gold); font-weight: 600; }
.comments-list[data-gf-empty]::after { content: "No player tips posted yet — be the first to share a launch-day coordinate!"; display: block; color: var(--text-muted); font-size: 0.9rem; padding: 10px 0; }
.comment-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; }
.comment-item[data-gf-owner] { border-color: var(--border-strong); box-shadow: inset 3px 0 0 var(--accent); }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.comment-meta strong { color: var(--text); }
.owner-badge { background: var(--accent); color: var(--on-accent); padding: 1px 6px; border-radius: var(--r-sm); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.comment-body { font-size: 0.94rem; color: var(--text); margin-bottom: 6px; }
.comment-reply-btn { background: transparent; border: 0; color: var(--text-muted); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.comment-reply-btn:hover { color: var(--accent); }
.comment-replies { margin-left: 16px; margin-top: 8px; border-left: 2px solid var(--border); padding-left: 12px; }

/* Mobile Second-Screen Bottom Sheet */
@media (max-width: 820px) {
  .navbtn { display: block; }
  .nav { display: none; position: absolute; top: 54px; left: 0; width: 100%; background: var(--bg); flex-direction: column; padding: 14px 18px; border-bottom: 1px solid var(--border); gap: 12px; align-items: flex-start; }
  .nav.open { display: flex; }
  .nav a { padding: 2px 0 2px 10px; box-shadow: inset 2px 0 0 transparent; font-size: 1.1rem; }
  .nav a.active { box-shadow: inset 2px 0 0 var(--accent); }

  .v4-mapbox { height: calc(100vh - 56px); min-height: 540px; }
  .v4-sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 0;
    height: 68%;
    border-right: 0;
    border-top: 2px solid var(--accent);
    border-radius: 10px 10px 0 0;
    margin-left: 0 !important;
    transform: translateY(calc(100% - 118px));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
  }
  .v4-mapbox.sheet-open .v4-sidebar { transform: translateY(0); }
  .sb-grab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px 4px;
    background: var(--bg);
    border: 0;
    width: 100%;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .sb-grab-bar { width: 42px; height: 4px; border-radius: 2px; background: var(--border-strong); }
  .v4-toggle-sb { display: none; }
  .v4-float-tr { top: 8px; right: 8px; gap: 4px; }
  .v4-fbtn { padding: 5px 8px; font-size: 0.74rem; }
  .feed-grid { grid-template-columns: 1fr; }
  .sb-tab, .sb-qbtn, .cat-btn { min-height: 36px; }
}

/* =========================================================
   CONTENT DOC (guides, safe codes, missables ...)
   ========================================================= */
.doc { padding: 40px 20px 56px; flex: 1; }
.prose { font-size: 1.04rem; line-height: 1.72; color: var(--text); }
.prose h2 { font-family: var(--font-display); font-size: 1.95rem; font-weight: 800; line-height: 1.08; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); margin: 44px 0 16px; border-left: 4px solid var(--accent); padding-left: 12px; }
.prose h3 { font-family: var(--font-display); font-size: 1.42rem; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; color: var(--gold); margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--white); }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color 0.12s; }
.prose a:hover { color: var(--accent); }
.prose code, .prose kbd { font-family: monospace; font-size: 0.9em; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 6px; color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--bg-card); border-radius: var(--r-md); overflow: hidden; display: block; overflow-x: auto; border: 1px solid var(--border); }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg-elev); color: var(--text-muted); font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid var(--accent); }
.prose td { font-size: 0.95rem; }
.prose tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.prose tbody tr:hover td { background: var(--bg-elev); }
.prose td strong, .prose td code { font-variant-numeric: tabular-nums; color: var(--gold); letter-spacing: 0.04em; }

/* Gamer CTA & Route Callouts */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.map-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r); background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent) !important; text-decoration: none !important; font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: 0.05em; text-transform: uppercase; transition: transform 0.15s, background 0.15s; }
.map-cta:hover { background: var(--accent-hi); color: var(--on-accent) !important; transform: translateY(-1px); }
.map-cta.alt { background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text) !important; }
.map-cta.alt:hover { background: var(--bg-elev); border-color: var(--teal); color: var(--teal) !important; }

.route-tip { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--r-md); padding: 16px 18px; margin: 20px 0; }
.route-tip strong { color: var(--gold); }

/* Visual Screenshot Galleries & Region Cards */
.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; margin: 20px 0 28px; }
.region-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.region-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.region-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-elev); }
.region-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.region-tag { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.region-card h3 { margin: 0 !important; font-size: 1.4rem !important; color: var(--text) !important; text-transform: uppercase; font-weight: 800; line-height: 1.1; }
.region-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0 !important; flex: 1; }
.region-card .card-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.region-card .card-links a { font-size: 0.85rem; font-weight: 700; text-decoration: none !important; color: var(--text); }
.region-card .card-links a:hover { color: var(--accent); }

.figure-card { margin: 22px 0 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.figure-card img { width: 100%; height: auto; display: block; background: var(--bg-elev); }
.figure-card figcaption { padding: 12px 16px; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.figure-card figcaption strong { color: var(--text); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 20px 0 28px; }
.media-grid .figure-card { margin: 0; }

/* Lite YouTube Click-to-Play Theater */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; margin: 20px 0 30px; }
.yt-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.yt-lite { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--black); cursor: pointer; overflow: hidden; border: 0; padding: 0; display: block; text-align: left; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s, opacity 0.25s; opacity: 0.88; }
.yt-lite:hover img { transform: scale(1.03); opacity: 1; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: var(--r-md); background: var(--accent); border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; transition: transform 0.15s, background 0.15s; }
.yt-play::after { content: ""; display: block; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent var(--on-accent); margin-left: 4px; }
.yt-lite:hover .yt-play, .yt-frame:hover .yt-play { background: var(--accent-hi); transform: translate(-50%, -50%) scale(1.06); }
.yt-badge { position: absolute; top: 10px; left: 10px; background: rgba(11, 13, 16, 0.88); color: var(--text); border: 1px solid var(--border-strong); padding: 2px 8px; border-radius: var(--r-sm); font-family: var(--font-display); font-size: 0.88rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-meta { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.yt-meta h3 { margin: 0 !important; font-size: 1.05rem !important; color: var(--text) !important; line-height: 1.35; }
.yt-meta p { margin: 0 !important; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.yt-ch { font-size: 0.78rem; color: var(--gold); font-weight: 700; }

/* FAQ Section - accordion */
.faq { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 30px; }
.faq h2 { font-family: var(--font-display); font-size: 1.95rem; font-weight: 800; text-transform: uppercase; color: var(--text); margin-bottom: 18px; line-height: 1.08; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 10px; padding: 14px 18px; transition: border-color 0.15s; }
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: var(--border-strong); box-shadow: inset 3px 0 0 var(--accent); }
.faq summary { font-weight: 700; color: var(--text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 26px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1; color: var(--accent); font-family: var(--font-display); font-weight: 800; border: 1px solid var(--border-strong); border-radius: var(--r-sm); }
.faq details[open] summary::after { content: "−"; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.faq details p { margin-top: 12px; color: var(--text-muted); font-size: 0.95rem; }

/* Related Navigation */
.related { margin-top: 38px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); }
.related h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text); margin-bottom: 16px; }
.related ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 0; }
.related a { display: block; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.related a:hover { border-color: var(--accent); transform: translateY(-2px); }
.related b { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.related a:hover b { color: var(--accent); }
.related span { display: block; font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
.ftr { background: var(--bg); border-top: 1px solid var(--border); padding: 44px 0 24px; font-size: 0.9rem; }
.ftr-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.ftr-col .muted { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; line-height: 1.5; }
.ftr-h { font-family: var(--font-display); font-size: 1.08rem; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.ftr-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.ftr-col a:hover { color: var(--accent); }
.copy { border-top: 1px solid var(--border); padding-top: 20px; font-size: 0.85rem; text-align: center; color: var(--text-dim); }

/* Toast */
#toast { position: fixed; bottom: 24px; right: 24px; background: var(--text); color: var(--on-accent); font-weight: 700; padding: 10px 18px 10px 16px; border-left: 4px solid var(--teal); border-radius: var(--r); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 9999; }
#toast.show { opacity: 1; }

@media (max-width: 768px) {
  .navbtn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; width: 100%; background: var(--bg); flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav.open { display: flex; }
  .ftr-in { grid-template-columns: 1fr; }
  .maphead h1, .doc h1 { font-size: 1.95rem; }
  .mapbox { height: 74vh; min-height: 460px; }
  .region-grid, .yt-grid { grid-template-columns: 1fr; }
  .prose h2, .faq h2 { font-size: 1.6rem; }
}

/* === Unified Gamer Media, Deep-Link Banner & Map Companion Styles === */
div.map-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin: 24px 0 32px; background: var(--bg-card); color: var(--text) !important; border: 1px solid var(--border-strong); border-left: 4px solid var(--accent); border-radius: var(--r-md); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; font-size: 1rem; }
div.map-cta:hover { background: var(--bg-card); transform: none; }
.map-cta-title { margin: 0 0 4px !important; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; color: var(--text); }
.map-cta-text p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.map-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-neon { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--r); background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent) !important; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none !important; font-size: 1.04rem; transition: background 0.12s; }
.btn-neon:hover { background: var(--accent-hi); color: var(--on-accent) !important; }
.btn-cyan { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text) !important; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none !important; font-size: 1.04rem; transition: border-color 0.12s, color 0.12s; }
.btn-cyan:hover { background: var(--bg-hover); border-color: var(--teal); color: var(--teal) !important; }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin: 22px 0 32px; }
.shot-card { margin: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.shot-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.shot-card figcaption { padding: 12px 14px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; }
.shot-card figcaption strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 0.96rem; }

.infographic-fig { margin: 24px 0 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.infographic-fig img { width: 100%; height: auto; display: block; }
.infographic-fig figcaption { padding: 12px 18px; font-size: 0.92rem; color: var(--text-muted); border-top: 1px solid var(--border); }

.yt-frame { position: relative; aspect-ratio: 16 / 9; background: var(--black); cursor: pointer; overflow: hidden; }
.yt-frame img.yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play-tri { width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent var(--on-accent); margin-left: 4px; }
.yt-play:has(.yt-play-tri)::after { display: none; }
.yt-meta { padding: 14px 16px; }
.yt-meta h3 { margin: 0 0 6px !important; font-size: 1.04rem !important; color: var(--text) !important; line-height: 1.35; }
.yt-meta p { margin: 0 !important; font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; }

.route-box { background: var(--bg-card); border-left: 3px solid var(--teal); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; margin: 22px 0; }
.route-box h3 { margin-top: 0 !important; color: var(--text) !important; text-transform: uppercase; font-weight: 800; }

.map-mode-bar { position: absolute; bottom: 12px; left: 12px; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px; background: rgba(17, 21, 27, 0.94); padding: 6px 8px; border-radius: var(--r-md); border: 1px solid var(--border-strong); max-width: calc(100% - 24px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.mode-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 5px 10px; border-radius: var(--r); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.mode-btn:hover { border-color: var(--border-strong); color: var(--text); }
.mode-btn.active { background: var(--text); border-color: var(--text); color: var(--on-accent); }
.mode-btn.pin-mode.active { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.popup-card img.popup-thumb { width: 100%; height: 124px; object-fit: cover; border-radius: var(--r); margin: 6px 0 8px; display: block; border: 1px solid var(--border); }
.popup-btn.del { background: #c92a30; border-color: #c92a30; color: var(--white); margin-top: 6px; }

.collectible-progress-bar { margin-top: 10px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--border); font-size: 0.86rem; color: var(--text); }
.collectible-progress-bar strong { color: var(--teal); font-family: var(--font-display); font-size: 1.02rem; font-weight: 800; }
.collectible-progress-bar a { color: var(--accent); font-weight: 700; text-decoration: none; }
.collectible-progress-bar a:hover { text-decoration: underline; }
.cp-dot { width: 8px; height: 8px; border-radius: 1px; background: var(--teal); display: inline-block; transform: rotate(45deg); }

.miss-shell { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; margin: 20px 0 26px; }
.miss-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.miss-stat { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text); }
.miss-stat strong { color: var(--teal); }
.miss-bar-wrap { width: 100%; height: 10px; background: var(--bg-elev); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); margin-bottom: 14px; }
.miss-bar-fill { height: 100%; width: 0%; background: var(--teal); transition: width 0.2s ease; }
.miss-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.miss-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.miss-tab { background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); padding: 6px 12px; border-radius: var(--r); font-size: 0.84rem; font-weight: 700; cursor: pointer; }
.miss-tab:hover { border-color: var(--border-strong); color: var(--text); }
.miss-tab.active { background: var(--text); border-color: var(--text); color: var(--on-accent); }
.miss-reset { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 11px; border-radius: var(--r); font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.miss-reset:hover { border-color: var(--danger); color: var(--danger); }
.miss-list { display: grid; gap: 10px; }
.miss-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; transition: border-color 0.15s, opacity 0.15s; }
.miss-row:hover { border-color: var(--border-strong); }
.miss-row.is-done { opacity: 0.66; border-color: rgba(45, 212, 191, 0.35); }
.miss-row.is-done .miss-name { text-decoration: line-through; color: var(--text-muted); }
.miss-cb { width: 20px; height: 20px; accent-color: var(--teal); cursor: pointer; margin-top: 3px; }
.miss-main { min-width: 0; }
.miss-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.miss-name { font-weight: 700; color: var(--text); font-size: 0.98rem; cursor: pointer; }
.miss-name:hover { color: var(--accent); }
.miss-badge { display: inline-block; padding: 2px 7px; border-radius: var(--r-sm); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(45, 212, 191, 0.1); color: var(--teal); border: 1px solid rgba(45, 212, 191, 0.35); }
.miss-badge.trophy { background: rgba(245, 184, 65, 0.12); color: var(--gold); border-color: rgba(245, 184, 65, 0.45); }
.miss-badge.ponr { background: rgba(255, 100, 66, 0.12); color: var(--accent); border-color: rgba(255, 100, 66, 0.45); }
.miss-desc { margin: 0; font-size: 0.89rem; color: var(--text-muted); line-height: 1.48; }
.miss-pin { white-space: nowrap; align-self: center; font-size: 0.82rem; font-weight: 700; color: var(--teal); text-decoration: none; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-card); }
.miss-pin:hover { border-color: var(--teal); background: rgba(45, 212, 191, 0.1); }
@media (max-width: 640px) {
  .miss-row { grid-template-columns: auto 1fr; }
  .miss-pin { grid-column: 2; justify-self: start; margin-top: 4px; }
}

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


/* ==========================================================================
   gta6realmap.com · v19 · Mobile checklist (/missables) + code cards (/safe-codes-and-bank-vaults)
   Append AFTER the main stylesheet. Uses only existing v18 tokens:
   --bg --bg-card --bg-elev --border --border-strong --text --text-muted
   --accent #ff6442 · --gold #f5b841 · --teal #2dd4bf · --on-accent · --font-display
   No new colours, no glow, no gradients.
   ========================================================================== */

/* ---------- shared: next-guide card ---------- */
.mx-next { margin: 16px 0 6px; border: 1px solid rgba(255, 100, 66, 0.45); background: rgba(255, 100, 66, 0.06); border-radius: var(--r-md); padding: 14px 16px; }
.mx-next h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.15rem; line-height: 1.2; margin: 0 0 4px; color: var(--text); }
.mx-next p { margin: 0 0 10px; font-size: 0.9rem; color: var(--text-muted); }
.mx-next-links { display: grid; gap: 8px; }
.mx-next-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r); color: var(--text); font-weight: 700; font-size: 0.95rem; text-decoration: none; }
.mx-next-links a:hover { border-color: var(--border-strong); }
.mx-next-links a.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mx-next-links a span { color: inherit; opacity: 0.8; font-weight: 600; white-space: nowrap; }
@media (min-width: 900px) { .mx-next-links { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   /missables
   ========================================================================== */
.miss-sticky { position: sticky; top: 54px; z-index: 30; background: var(--bg-card); margin: -18px -20px 14px; padding: 14px 20px 12px; border-bottom: 1px solid var(--border); border-radius: var(--r-md) var(--r-md) 0 0; }
.miss-sticky .miss-top { margin-bottom: 10px; }
.miss-sticky .miss-bar-wrap { margin-bottom: 10px; }
.miss-sticky .miss-controls { margin-bottom: 0; flex-wrap: nowrap; }
.miss-tabs { flex-wrap: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.miss-tabs::-webkit-scrollbar { display: none; }
.miss-tab { flex: 0 0 auto; min-height: 36px; white-space: nowrap; }
.mx-jump { flex: 0 0 auto; min-height: 36px; padding: 0 12px; background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: var(--r); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; white-space: nowrap; }
.mx-jump:hover { background: rgba(255, 100, 66, 0.1); }
.mx-jump[hidden] { display: none; }

.miss-list { scroll-margin-top: 190px; }
.miss-row { cursor: pointer; -webkit-tap-highlight-color: transparent; scroll-margin-top: 190px; }
.miss-row:active { border-color: var(--teal); }
.miss-row.mx-flash { border-color: var(--accent); }

/* 26px custom checkbox, 44px+ effective target through the full-row tap */
.miss-cb { -webkit-appearance: none; appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--border-strong); border-radius: var(--r); background: var(--bg); display: grid; place-content: center; cursor: pointer; }
.miss-cb::after { content: ""; width: 12px; height: 7px; border: solid var(--on-accent); border-width: 0 0 3px 3px; transform: translate(0, -1px) rotate(-45deg); opacity: 0; }
.miss-cb:checked { background: var(--teal); border-color: var(--teal); }
.miss-cb:checked::after { opacity: 1; }
.miss-cb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* finished items collapse to one line so the remaining work stays on screen */
.miss-row.is-done { opacity: 1; background: rgba(45, 212, 191, 0.05); border-color: rgba(45, 212, 191, 0.35); }
.miss-row.is-done .miss-desc, .miss-row.is-done .miss-badge:not(.trophy) { display: none; }
.miss-row.is-done .miss-head { margin-bottom: 0; }
.miss-row.is-done .miss-pin { opacity: 0.7; }

@media (max-width: 640px) {
  .miss-shell { padding: 14px; margin-left: -6px; margin-right: -6px; }
  .miss-sticky { margin: -14px -14px 12px; padding: 10px 14px; }
  .miss-top { flex-wrap: nowrap; }
  .miss-stat { font-size: 1.02rem; }
  .miss-reset { min-height: 32px; padding: 0 10px; font-size: 0.74rem; }
  .miss-row { padding: 14px 12px; gap: 12px; }
  .miss-name { font-size: 1rem; line-height: 1.3; }
  .miss-head { gap: 6px; }
  .miss-badge { font-size: 0.64rem; }
  .miss-desc { font-size: 0.9rem; line-height: 1.5; }
  .miss-pin { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; margin-top: 8px; }
  .mx-page .cta-row, .mx-page .prose > p:has(> .map-cta) { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
}

/* ==========================================================================
   /safe-codes-and-bank-vaults
   ========================================================================== */
.kc-bar { position: sticky; top: 54px; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 0; margin: 6px 0 16px; }
.kc-bar-row { display: flex; align-items: center; gap: 10px; }
.kc-q { flex: 1; min-width: 0; height: 44px; padding: 0 14px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--r); color: var(--text); font: inherit; font-size: 16px; }
.kc-q::placeholder { color: var(--text-muted); }
.kc-q:focus { outline: none; border-color: var(--accent); }
.kc-stat { white-space: nowrap; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1rem; color: var(--text-muted); }
.kc-stat b { color: var(--teal); }
.kc-jump { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kc-jump::-webkit-scrollbar { display: none; }
.kc-jump a { flex: 0 0 auto; min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-elev); color: var(--text-muted); font-size: 0.84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.kc-jump a:hover { color: var(--text); border-color: var(--border-strong); }
.kc-empty { margin: 8px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.kc-empty[hidden] { display: none; }
.kc-page h2[id], .kc-page h3[id] { scroll-margin-top: 160px; }
.kc-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kc-searching .kc-wrap.is-empty, .kc-searching .is-empty-h { display: none; }

.kc-table td[data-col="code"] { white-space: nowrap; }
.kc-table td[data-col="pay"] strong { color: var(--gold); }
.kc-copy { margin-left: 8px; min-height: 30px; padding: 0 10px; background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: var(--r); font: inherit; font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; vertical-align: middle; }
.kc-copy:hover { background: rgba(255, 100, 66, 0.1); }
.kc-copy.is-copied { border-color: var(--teal); color: var(--teal); }
.kc-done { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; min-height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r); font-size: 0.78rem; font-weight: 700; color: var(--text-muted); cursor: pointer; white-space: nowrap; vertical-align: middle; }
.kc-done input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; border: 2px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg); display: grid; place-content: center; cursor: pointer; }
.kc-done input::after { content: ""; width: 8px; height: 5px; border: solid var(--on-accent); border-width: 0 0 2px 2px; transform: translate(0, -1px) rotate(-45deg); opacity: 0; }
.kc-done input:checked { background: var(--teal); border-color: var(--teal); }
.kc-done input:checked::after { opacity: 1; }
.kc-table tr.is-cracked td { opacity: 0.62; }
.kc-table tr.is-cracked td[data-col="pin"] { opacity: 1; }
.kc-table tr.is-cracked .kc-done { color: var(--teal); border-color: rgba(45, 212, 191, 0.45); }

@media (max-width: 640px) {
  .kc-page .cta-row { flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .kc-page .cta-row .map-cta { flex: 0 0 auto; white-space: nowrap; }
  .kc-wrap { overflow: visible; }

  .kc-table, .kc-table tbody { display: block; width: 100%; border: 0; background: none; }
  .kc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kc-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 10px; }
  .kc-table tr.is-cracked { border-color: rgba(45, 212, 191, 0.4); }
  .kc-table td { display: block; padding: 0; border: 0; background: none; text-align: left; min-width: 0; }
  .kc-table td[data-col="num"] { display: none; }
  .kc-table td[data-col="name"] { grid-column: 1; font-size: 1.02rem; line-height: 1.3; color: var(--text); }
  .kc-table td[data-col="code"], .kc-table td[data-col="pay"] { grid-column: 2; grid-row: 1 / span 3; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .kc-table td[data-col="code"] code { font-size: 1.45rem; letter-spacing: 0.06em; padding: 2px 8px; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: var(--r); }
  .kc-table td[data-col="pay"] { font-size: 0.95rem; white-space: normal; max-width: 9.5em; }
  .kc-copy { margin: 0; min-height: 40px; min-width: 76px; }
  .kc-table td[data-col="meta"] { grid-column: 1; font-size: 0.84rem; color: var(--text-muted); line-height: 1.4; }
  .kc-table td[data-col="meta"]::before { content: attr(data-label); display: inline-block; margin-right: 6px; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); opacity: 0.75; }
  .kc-table td[data-col="note"] { grid-column: 1 / -1; font-size: 0.88rem; line-height: 1.5; color: var(--text-muted); margin-top: 4px; }
  .kc-table td[data-col="pin"] { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
  .kc-table td[data-col="pin"] a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg-elev); color: var(--teal); font-weight: 700; text-decoration: none; }
  .kc-done { margin: 0; min-height: 44px; padding: 0 14px; }
  .kc-bar-row { gap: 8px; }
  .kc-stat { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =========================================================
   SPONSORED NATIVE AD SLOT (Adsterra 4:1 Dark HUD Card)
   ========================================================= */
html, body { overflow-x: clip; }
.ad-native-band { margin: 22px auto 0; }
.ad-native-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}
.doc .ad-native-wrap {
  margin: 30px auto 0;
}
.ad-native-card {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background: #0f1318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 10px 14px 12px;
  overflow-x: hidden;
}
.ad-native-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ad-native-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b778a;
}
.ad-native-slot {
  width: 100%;
  max-width: 100%;
  min-height: 90px;
  overflow-x: hidden;
  color: var(--text);
}
.ad-native-slot iframe,
.ad-native-slot img {
  max-width: 100% !important;
}
@media (max-width: 640px) {
  .ad-native-band { margin-top: 16px; }
  .doc .ad-native-wrap { margin-top: 24px; }
  .ad-native-card { padding: 8px 10px 10px; }
  .ad-native-slot { min-height: 68px; }
}


/* === Interactive Hub Filter Bar (Unique Weapons & Easter Eggs · v34) === */
.hub-shell { margin: 20px 0 28px; }
.hub-bar {
  position: sticky;
  top: 56px;
  z-index: 15;
  background: rgba(17, 21, 27, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.hub-search {
  flex: 1 1 220px;
  min-width: 180px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}
.hub-search:focus { outline: none; border-color: var(--accent); }
.hub-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.hub-stat-badge {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--teal);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.hub-reset {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.hub-reset:hover { color: var(--text); border-color: var(--border-strong); }
.hub-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hub-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 72px;
}
.hub-pill {
  background: var(--bg-elev);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.hub-pill:hover { border-color: var(--border-strong); color: var(--text); }
.hub-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.hub-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
}
.hub-table { width: 100%; border-collapse: collapse; margin: 0 !important; min-width: 720px; }
.hub-table th, .hub-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; }
.hub-table thead th { background: var(--bg-elev); color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; text-align: left; }
.hub-table tbody tr.is-done { opacity: 0.62; background: rgba(45, 212, 191, 0.05); }
.hub-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--gold);
  white-space: nowrap;
}
.hub-tag.t-teal { color: var(--teal); }
.hub-tag.t-coral { color: var(--accent-hi); }
.hub-check-lab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.hub-check-lab input { accent-color: var(--teal); width: 14px; height: 14px; }
.hub-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
@media (max-width: 720px) {
  .hub-bar { position: static; padding: 10px; }
  .hub-group-label { min-width: auto; width: 100%; }
}
