/* Deep Water Dusk — layered gradients over a dark aurora-lit lake */
:root {
  --deep: #0b2a3f;
  --deep-2: #071722;
  --water: #4fd6f5;
  --water-light: #7acce8;
  --teal: #2bd4c4;
  --accent: #f6ac04;
  --good: #34d399;
  --ok: #4fd6f5;
  --meh: #f6ac04;
  --bad: #f87171;
  --ink: #eaf6ff;
  --muted: #9db4c9;
  --line: rgba(126,170,200,0.16);
  --panel: #122535;
  --panel-elevated: #1a3348;
  --surface: #06121c;
  --chip: #163a52;
  --on-accent: #04222f;

  /* Gradient tokens — the heart of the theme */
  --grad-accent: linear-gradient(135deg, #2dd4bf 0%, #22d3ee 48%, #38bdf8 100%);
  --grad-accent-hover: linear-gradient(135deg, #3ce4cf 0%, #33ddf7 48%, #52c6ff 100%);
  --grad-panel: linear-gradient(165deg, rgba(26,51,72,0.97), rgba(11,24,36,0.98));
  --grad-panel-tinted:
    radial-gradient(130% 90% at 50% -20%, rgba(45,212,191,0.14), transparent 62%),
    linear-gradient(165deg, rgba(26,51,72,0.97), rgba(11,24,36,0.98));
  --grad-sidebar: linear-gradient(180deg, #14293b 0%, #0c1c2b 55%, #0a1826 100%);
  --grad-brand: linear-gradient(110deg, #7acce8 0%, #30c0f0 55%, #f6ac04 100%);
  --grad-app:
    radial-gradient(130% 110% at 50% -10%, rgba(28,86,110,0.55), transparent 55%),
    linear-gradient(180deg, #071624 0%, #05111c 60%, #030b13 100%);

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --glow-accent: 0 10px 30px rgba(34, 211, 238, 0.35);
  --hairline: 1px solid rgba(140, 200, 230, 0.14);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Outfit", var(--font);
}

* { box-sizing: border-box; }

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(56, 189, 248, 0.7); outline-offset: 2px; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--grad-app);
  overflow: hidden;
  color-scheme: dark;
}

.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  vertical-align: -0.3em;
}
.fish-ui-icon { width: 2em; }

#map {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0a1826;
}
.leaflet-top { top: 72px; }

/* Keep zoom (+/−) and layers side-by-side in the top-left. */
.leaflet-top.leaflet-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}
.leaflet-top.leaflet-left .leaflet-control {
  float: none;
  clear: none;
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Leaflet controls: dark theme ---------- */
.leaflet-bar {
  border: var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  margin-top: 10px !important;
  margin-left: 12px !important;
}
.leaflet-bar a {
  background-color: rgba(11, 24, 36, 0.92) !important;
  color: var(--ink) !important;
  border-bottom-color: rgba(140, 200, 230, 0.14) !important;
}
.leaflet-bar a:hover { background-color: rgba(22, 58, 82, 0.95) !important; }
.leaflet-bar a:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.leaflet-bar a:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; border-bottom: none; }

/* Layers toggle — sits next to zoom. */
.leaflet-control-layers {
  margin: 10px 0 0 0 !important;
  padding: 0 !important;
  border: var(--hairline) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: rgba(11, 24, 36, 0.96) !important;
  color: var(--ink);
  box-shadow: var(--soft-shadow) !important;
}
.leaflet-control-layers-toggle {
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 12px !important;
  background-color: rgba(11, 24, 36, 0.96) !important;
  background-size: 20px 20px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
.leaflet-control-layers-expanded {
  width: auto !important;
  height: auto !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: var(--grad-panel) !important;
}
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
  display: none !important;
}
.leaflet-control-layers label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
}
.leaflet-control-layers label + label { margin-top: 6px; }
.leaflet-control-layers-selector { margin: 0 !important; }
.leaflet-control-attribution {
  background: rgba(6, 16, 26, 0.72) !important;
  color: var(--muted) !important;
  backdrop-filter: blur(6px);
}
.leaflet-control-attribution a { color: var(--water) !important; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--grad-panel) !important;
  color: var(--ink) !important;
  border: var(--hairline);
  box-shadow: var(--shadow) !important;
}
.leaflet-popup-close-button { color: var(--muted) !important; }

.hidden { display: none !important; }

/* ---------- Top bar ---------- */
#top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 20px;
  background: linear-gradient(180deg, rgba(6,16,26,0.94), rgba(10,26,40,0.82) 78%, rgba(6,16,26,0));
  backdrop-filter: blur(6px);
  color: var(--ink);
  pointer-events: none;
}
#top-bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; min-width: 0; }
.brand-mark { font-size: 22px; filter: drop-shadow(0 2px 6px rgba(34,211,238,0.4)); }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 10px rgba(48, 192, 240, 0.35));
}
.brand-name {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.brand-fish { color: var(--water-light); }
.brand-spotter { color: #fff; }
.brand-onboarding {
  justify-content: center;
  margin-bottom: 12px;
}
.brand-onboarding .brand-logo { height: 42px; }
.brand-onboarding .brand-name { font-size: 24px; }
.active-fish { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; overflow: hidden; }
.fish-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.fish-chip img { width: 25px; height: 25px; object-fit: contain; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.account-open { display: inline-flex; align-items: center; gap: 7px; }
.account-avatar {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(111,240,221,0.28), rgba(79,214,245,0.13));
  border: 1px solid rgba(140,230,255,0.38);
}
.account-avatar::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--water-light);
}
.account-avatar::after {
  content: '';
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 10px;
  height: 6px;
  border-radius: 7px 7px 5px 5px;
  background: var(--water-light);
}
body.is-premium .account-avatar {
  border-color: rgba(246,172,4,0.65);
  box-shadow: 0 0 0 3px rgba(246,172,4,0.12);
}

/* Keep New search visible on the map, just left of the results column. */
@media (min-width: 561px) {
  body.results-open #top-bar .top-actions {
    position: fixed;
    top: 12px;
    right: calc(min(440px, 100%) + 12px);
    z-index: 1110;
    margin: 0;
    padding: 0;
  }
  body.results-open #restart {
    background: rgba(11, 24, 36, 0.94);
    border-color: rgba(140, 200, 230, 0.35);
    box-shadow: var(--soft-shadow);
  }
}

.map-legend {
  position: fixed;
  left: 12px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  gap: 12px;
  padding: 8px 11px;
  background: rgba(11, 24, 36, 0.96);
  border: var(--hairline);
  border-radius: 11px;
  box-shadow: var(--soft-shadow);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.ready { background: var(--good); }
.legend-dot.verify { background: var(--accent); }
.legend-dot.avoid { background: var(--bad); }

/* ---------- Street View preview ---------- */
.street-view-preview {
  position: fixed;
  left: 12px;
  bottom: 68px;
  z-index: 960;
  width: min(330px, calc(100vw - 36px));
  max-height: calc(100dvh - 84px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--hairline);
  border-radius: 16px;
  background: var(--grad-panel);
  box-shadow: 0 22px 50px rgba(0,0,0,0.5), 0 0 40px rgba(20,120,150,0.14);
  backdrop-filter: blur(10px);
  animation: streetViewIn 0.18s ease-out;
}
@keyframes streetViewIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.street-view-head {
  flex: 0 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  background: var(--panel);
}
.street-view-heading { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.street-view-heading strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.street-view-kicker { color: var(--teal); font-size: 9.5px; font-weight: 800; letter-spacing: 0.65px; text-transform: uppercase; }
.street-view-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: var(--panel-elevated);
  color: var(--muted);
  cursor: pointer;
}
.street-view-close:hover { background: var(--line); }
.street-view-frame-wrap { position: relative; flex: 0 0 auto; height: 210px; background: #0f1c2a; }
#street-view-frame { display: block; width: 100%; height: 100%; border: 0; background: #0f1c2a; }
.street-view-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f1c2a, var(--chip));
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.street-view-loading.hidden { display: none; }
.street-view-ad-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45,212,191,0.18), transparent 55%),
    linear-gradient(150deg, #10283a, #081722 72%);
  color: var(--ink);
  text-align: center;
}
.street-view-ad-gate.hidden { display: none; }
.street-view-ad-label {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}
.street-view-ad-gate strong { font-size: 17px; }
.street-view-ad-gate p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}
.street-view-ad-gate small { color: #7890a3; font-size: 9.5px; }
.street-view-ad-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; }
.street-view-ad-actions button,
.street-view-ad-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.street-view-ad-actions button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--water));
  color: #031521;
}
.street-view-ad-actions button:disabled { cursor: wait; opacity: 0.65; }
.street-view-ad-actions a { background: rgba(255,255,255,0.05); color: var(--ink); }
.street-view-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 9px 12px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.25;
}
.street-view-foot span { min-width: 0; }
.street-view-foot a { flex: 0 0 auto; color: var(--teal); font-weight: 800; text-decoration: none; }
.street-view-foot a:hover { text-decoration: underline; }

.spot-brief {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: var(--panel);
  min-height: 0;
}
.spot-brief[open] {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.spot-brief > summary {
  list-style: none;
  flex: 0 0 auto;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  user-select: none;
}
.spot-brief > summary::-webkit-details-marker { display: none; }
.spot-brief > summary::before {
  content: '⌃ ';
  display: inline-block;
  transform: rotate(180deg);
  margin-right: 2px;
}
.spot-brief[open] > summary::before { transform: rotate(0deg); }
.spot-brief-body {
  padding: 0 10px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.spot-brief[open] .spot-brief-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(260px, calc(100dvh - 420px));
}
.brief-section + .brief-section { margin-top: 12px; }
.brief-kicker {
  margin-bottom: 7px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.brief-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 3px 8px rgba(8, 30, 48, 0.06);
}
.brief-card-emoji {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(14,165,183,0.16), rgba(56,189,248,0.22));
  font-size: 22px;
}
.brief-card-time .brief-card-emoji {
  background: linear-gradient(145deg, var(--chip), var(--panel-elevated));
  color: var(--water);
  font-size: 16px;
}
.brief-card-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.brief-card-copy strong { color: var(--ink); font-size: 14px; }
.brief-card-copy span { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.brief-note, .brief-empty { margin: 0; color: #94a3b8; font-size: 11px; }

.fish-species-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fish-species-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 2px 8px rgba(8, 30, 48, 0.05);
}
.fish-species-card.is-pick {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, var(--chip), var(--panel));
  box-shadow: 0 3px 10px rgba(14, 165, 183, 0.1);
}
.fish-species-emoji {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(14,165,183,0.14), rgba(56,189,248,0.2));
  font-size: 20px;
  line-height: 1;
}
.fish-species-emoji img { width: 36px; height: 36px; object-fit: contain; }
.fish-species-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fish-species-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.fish-species-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.fish-species-top strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}
.fish-species-pick {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--water);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fish-species-score {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}
.fish-species-pct {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.fish-species-tier {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
  line-height: 1;
}
.fish-species-score.high {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}
.fish-species-score.medium {
  background: var(--chip);
  color: var(--water);
}
.fish-species-score.low {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}
.fish-species-card.score-high {
  border-color: rgba(52, 211, 153, 0.35);
}
.fish-species-card.score-medium {
  border-color: rgba(56, 189, 248, 0.35);
}
.fish-species-card.score-low {
  border-color: rgba(251, 191, 36, 0.35);
}
.fish-species-tip {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.fish-species-meta {
  margin-top: 2px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
}
.fish-species-stack > .brief-note,
.fish-species-stack > .brief-empty { margin-top: 2px; }

/* ---------- Buttons ---------- */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--grad-accent);
  color: var(--on-accent);
  border: none;
  border-radius: 13px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.15s;
  box-shadow: var(--glow-accent), 0 2px 6px rgba(0,0,0,0.28);
}
.primary-btn:hover:not(:disabled) { transform: translateY(-1px); background: var(--grad-accent-hover); box-shadow: 0 14px 34px rgba(34,211,238,0.45), 0 2px 6px rgba(0,0,0,0.28); }
.primary-btn:active:not(:disabled) { transform: translateY(0); box-shadow: var(--glow-accent); }
.primary-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; filter: saturate(0.6); }

.ghost-btn {
  background: rgba(140,200,230,0.1);
  border: 1px solid rgba(140,200,230,0.22);
  color: var(--ink);
  border-radius: 11px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ghost-btn:hover { background: rgba(79,214,245,0.16); border-color: rgba(79,214,245,0.4); }

.link-btn {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
}
.link-btn:hover { text-decoration: underline; }

.icon-btn {
  background: var(--panel-elevated);
  border: none;
  border-radius: 10px;
  width: 34px; height: 34px;
  font-size: 15px;
  cursor: pointer;
  color: var(--muted);
}
.icon-btn:hover { background: var(--line); }

/* ---------- Overlay + onboarding card ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(20,90,110,0.35), transparent 55%),
    radial-gradient(120% 120% at 50% 100%, rgba(99,102,241,0.14), transparent 55%),
    linear-gradient(180deg, rgba(4,14,22,0.82), rgba(2,6,14,0.92));
  backdrop-filter: blur(6px);
}

.card {
  position: relative;
  background: var(--grad-panel-tinted);
  border: var(--hairline);
  border-radius: 22px;
  box-shadow: var(--shadow), 0 0 60px rgba(20,120,150,0.18);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
}
.onboarding-card { padding: 24px; }

.step-header { text-align: center; margin-bottom: 16px; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.brand-lockup span { font-size: 21px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--water-light);
  margin-bottom: 10px;
}
.step-header h1 {
  margin: 0 0 6px;
  font-size: 23px;
  letter-spacing: -0.4px;
  background: linear-gradient(180deg, #ffffff 0%, #bfe4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ink);
}
.sub { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Fish grid — compact 2-column chips matching iOS */
.fish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.fish-btn {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(32,58,80,0.7), rgba(15,31,45,0.85));
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: left;
}
.fish-btn .fish-emoji {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  line-height: 1;
}
.fish-btn .fish-emoji img { width: 100%; height: 100%; object-fit: contain; }
.fish-btn .fish-name {
  flex: 1;
  min-width: 0;
  margin-right: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.fish-btn .check {
  flex: 0 0 16px;
  width: 16px;
  text-align: center;
  visibility: hidden;
  color: var(--water);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.fish-btn:hover { border-color: rgba(79,214,245,0.5); transform: translateY(-1px); }
.fish-btn.selected {
  border-color: var(--water);
  border-width: 1px;
  background: linear-gradient(155deg, rgba(45,212,191,0.22), rgba(34,120,160,0.16));
  box-shadow: 0 8px 20px rgba(34,211,238,0.2), inset 0 1px 0 rgba(140,230,255,0.15);
}
.fish-btn.selected .fish-name { color: var(--water-light); }
.fish-btn.selected .check { visibility: visible; }

.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.step-footer-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
}
.step-footer-stack .primary-btn { width: 100%; }
.step-footer-stack .link-btn { align-self: center; }

/* Method choices — stacked, draw first */
.method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.method-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(32,58,80,0.6), rgba(15,31,45,0.8));
  cursor: pointer;
  transition: all 0.14s ease;
}
.method-choice:hover { border-color: rgba(79,214,245,0.5); transform: translateY(-1px); }
.method-choice-primary {
  border-color: var(--water);
  border-width: 1.5px;
  background: linear-gradient(150deg, rgba(45,212,191,0.2), rgba(34,120,160,0.14));
  box-shadow: 0 8px 22px rgba(34,211,238,0.18);
}
.method-choice-emoji {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(45,212,191,0.16), rgba(56,189,248,0.16));
  font-size: 22px;
}
.method-choice-emoji .ui-icon { width: 34px; height: 34px; }
.method-choice-primary .method-choice-emoji { background: linear-gradient(150deg, rgba(45,212,191,0.32), rgba(56,189,248,0.28)); }
.method-choice-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.method-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.method-desc { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.method-choice-chevron {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

/* Search panel */
.search-panel {
  margin-top: 10px;
  padding: 14px;
  background: var(--panel-elevated);
  border: 1.5px solid rgba(14, 165, 183, 0.35);
  border-radius: 14px;
}
.search-panel-label {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 15px;
  outline: none;
}
.search-row input:focus { border-color: var(--water); }
.location-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.location-link:hover { text-decoration: underline; }
.radius-label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.radius-label.inline { margin-top: 14px; }
.radius-label strong { color: var(--ink); }
.radius-label input[type=range] {
  width: 100%;
  margin-top: 8px;
  accent-color: var(--water);
}

.disclaimer {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid #fde68a;
  border-radius: 12px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.45;
}

/* ---------- Draw bar ---------- */
.draw-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(560px, calc(100% - 24px));
  background: var(--grad-panel);
  border: var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 40px rgba(20,120,150,0.14);
  padding: 14px 16px;
}
.draw-instr { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; text-align: center; }
.draw-controls { display: flex; flex-direction: column; gap: 10px; }
.draw-buttons { display: flex; gap: 10px; }
.draw-buttons .ghost-btn { color: var(--muted); background: var(--panel-elevated); border-color: var(--line); flex: 0 0 auto; }
.draw-buttons .primary-btn { flex: 1; }

/* ---------- Results panel ---------- */
.results-panel {
  position: fixed;
  top: 0; right: 0;
  z-index: 1100;
  height: 100%;
  width: min(440px, 100%);
  background: var(--grad-sidebar);
  border-left: var(--hairline);
  box-shadow: -18px 0 60px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.results-head-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.results-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: 0 1 auto;
  min-width: 0;
}
.results-brand-logo { height: 44px; }
.results-brand .brand-name { font-size: 26px; letter-spacing: -0.04em; }
.results-meta {
  flex: 0 0 auto;
  text-align: right;
  padding-right: 2px;
}
.results-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.results-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.2; }

/* Results toolbar: tabs + filters */
.results-tools {
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seg {
  display: flex;
  background: var(--panel-elevated);
  border-radius: 10px;
  padding: 3px;
}
.seg-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
}
.seg-btn.active { background: var(--panel-elevated); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.tool-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-row-meta {
  justify-content: space-between;
  gap: 8px;
}
.tool-row-meta .sort-row {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: block;
}
.tool-row-meta .sort-row span { display: none; }
.tool-row-meta .sort-row select {
  width: 100%;
  max-width: none;
}
.regs-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.22);
}
.regs-link:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}

.filter-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.filter-chip:hover { border-color: var(--water-light); background: var(--chip); color: var(--ink); }
.filter-chip.active,
.filter-chip[aria-pressed="true"],
.filter-chip.filter-toggle:has(input:checked) {
  border-color: var(--teal);
  background: rgba(52, 211, 153, 0.12);
  color: var(--water);
}
.filter-chip .ui-icon,
.regs-link .ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.filter-chip.filter-toggle {
  margin: 0;
  gap: 0;
}
.filter-chip.filter-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.filter-chip.filter-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.sort-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sort-row select {
  flex: 1;
  max-width: 210px;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.results-list { flex: 1; overflow-y: auto; padding: 10px; }

.spot-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.14s ease;
  background: linear-gradient(160deg, rgba(28,52,72,0.55), rgba(13,27,40,0.7));
}
.spot-card:hover { border-color: rgba(79,214,245,0.45); box-shadow: 0 10px 24px rgba(0,0,0,0.4); transform: translateY(-1px); }
.spot-card.top-pick {
  border-color: rgba(79,214,245,0.55);
  background: linear-gradient(160deg, rgba(45,212,191,0.14), rgba(13,27,40,0.72));
  box-shadow: 0 10px 26px rgba(34,211,238,0.16);
}
.spot-card.focused {
  border-color: var(--water);
  box-shadow: 0 0 0 3px rgba(79, 214, 245, 0.3), 0 10px 26px rgba(34, 211, 238, 0.2);
  background: linear-gradient(160deg, rgba(45,212,191,0.2), rgba(22,58,82,0.7));
}
.sponsored-result-card {
  overflow: hidden;
  min-height: 116px;
  border: 1px solid rgba(91,126,151,0.3);
  border-radius: 14px;
  background: rgba(10,27,40,0.68);
}
.sponsored-result-label {
  padding: 8px 11px 0;
  color: #7890a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}
.sponsored-result-card ins.adsbygoogle {
  display: block;
  min-height: 88px;
}
.top-pick-label {
  display: inline-flex;
  margin: -2px 0 8px;
  color: var(--water);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.spot-actions a .ui-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.spot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.spot-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 58%;
}
.spot-card-brand {
  gap: 6px;
  pointer-events: none;
}
.spot-card-brand .brand-logo { height: 28px; }
.spot-card-brand .brand-name { font-size: 15px; letter-spacing: -0.03em; }
.spot-card.top-pick .spot-card-brand .brand-logo { height: 40px; }
.spot-card.top-pick .spot-card-brand .brand-name { font-size: 20px; letter-spacing: -0.04em; }
.spot-card.top-pick .spot-side {
  gap: 10px;
  margin-top: -26px; /* sit beside the Best pick label */
}
.spot-badges { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.spot-head { min-width: 0; }
.spot-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.spot-orig-name {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-name-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.spot-name-edit:hover { color: var(--ink); }
.spot-name-edit .edit-hint {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--on-accent);
  opacity: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--water);
}
.spot-name-edit:hover .edit-hint {
  color: var(--on-accent);
  background: var(--water-light);
}
.spot-rank { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.fav-btn.on {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.fav-btn .ui-icon { width: 18px; height: 18px; }
.fav-btn:hover { border-color: var(--water-light); }
.been-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--panel-elevated);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}
.been-btn.on {
  border-color: #86efac;
  background: rgba(52, 211, 153, 0.12);
  color: #15803d;
}
.been-btn .been-box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}
.spot-card.been-here .spot-name { text-decoration: none; }
.spots-tools { display: flex; flex-direction: column; gap: 8px; }
.spots-tools.hidden { display: none; }
.access-line { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.score-badge {
  flex: 0 0 auto;
  border-radius: 10px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.score-great { background: var(--good); }
.score-good { background: var(--ok); }
.score-meh  { background: var(--meh); }
.score-bad  { background: var(--bad); }

.readiness-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.readiness-badge .status-icon { width: 18px; height: 18px; }
.readiness-badge.ready { color: #34d399; background: rgba(52, 211, 153, 0.14); }
.readiness-badge.verify { color: #fbbf24; background: rgba(251, 191, 36, 0.14); }
.readiness-badge.avoid { color: #fca5a5; background: rgba(248, 113, 113, 0.14); }

.decision-grid {
  display: none;
}
.spot-coordinates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--panel-elevated);
  color: var(--muted);
  font: 600 11px/1.25 var(--font);
}
.spot-coordinates span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-coordinates button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  padding: 4px 7px;
  background: var(--chip);
  color: var(--teal);
  font: 700 10.5px/1 var(--font);
  cursor: pointer;
}
.spot-coordinates button:hover { background: #bae6fd; }

.why-row { margin-top: 9px; }
.why-row summary { color: var(--teal); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.why-cards .brief-card {
  margin-bottom: 0;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 12px;
}
.why-cards .brief-card-emoji { flex: 0 0 auto; width: 32px; height: 32px; font-size: 16px; }
.brief-card-emoji .brief-icon { width: 28px; height: 28px; }
.why-cards .brief-card-copy { gap: 1px; }
.why-cards .brief-card-copy strong { font-size: 12.5px; line-height: 1.2; }
.why-cards .brief-card-copy span { font-size: 11px; line-height: 1.25; }
.why-foot { margin: 8px 2px 0; color: #94a3b8; font-size: 11px; line-height: 1.4; }
@media (max-width: 360px) {
  .why-cards { grid-template-columns: 1fr; }
}
.why-copy { margin-top: 7px; padding: 9px 10px; border-radius: 9px; background: var(--panel-elevated); color: var(--slate600, var(--muted)); font-size: 11.5px; line-height: 1.45; }
.why-copy p { margin: 0 0 5px; }
.why-copy p:last-child { margin-bottom: 0; }

.spot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--panel-elevated);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag.public { background: #dcfce7; color: #166534; }
.tag.private { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.tag.unknown { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.tag.parking { background: var(--chip); color: var(--water-light); }
.tag.fishing { background: var(--chip); color: var(--water-light); }
.tag.ramp { background: rgba(56, 189, 248, 0.14); color: var(--water-light); }

.spot-actions { display: flex; gap: 8px; margin-top: 10px; }
.spot-actions a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px;
  border-radius: 10px;
  background: var(--panel-elevated);
  color: var(--teal);
}
.spot-actions a:hover { background: var(--chip); }
.spot-actions a.primary-action { background: var(--water); color: var(--on-accent); }
.spot-actions a.primary-action:hover { background: var(--water-light); color: var(--on-accent); }

.results-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .big { font-size: 42px; margin-bottom: 10px; }
.empty-state-icon { width: 58px; height: 58px; object-fit: contain; }
.load-more {
  width: 100%;
  margin: 2px 0 10px;
  padding: 11px 14px;
  border: 1px solid #bae6fd;
  border-radius: 11px;
  background: var(--chip);
  color: var(--water);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.load-more:hover { background: var(--chip); }

/* ---------- Loading ---------- */
.loading {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,12,20,0.5);
  backdrop-filter: blur(4px);
}
.loading-card {
  background: var(--grad-panel-tinted);
  border: var(--hairline);
  border-radius: 18px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow), 0 0 50px rgba(20,120,150,0.16);
}
.spinner {
  width: 38px; height: 38px;
  border: 4px solid rgba(140,200,230,0.18);
  border-top-color: var(--water);
  border-radius: 50%;
  /* Fixed duration — same visual pace on fast and slow machines. */
  animation: spin 1.15s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#loading-msg { font-weight: 600; color: var(--ink); font-size: 14.5px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow);
  max-width: 90%;
  text-align: center;
  animation: fadeUp 0.2s ease;
}
.toast.warn { background: #b45309; }
.toast.error { background: #b91c1c; }
@keyframes fadeUp { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Name saved spot sheet ---------- */
.name-sheet {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: end center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.name-sheet.hidden { display: none; }
.name-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 48, 0.45);
}
.name-sheet-card {
  position: relative;
  width: min(420px, 100%);
  padding: 20px 18px 16px;
  border-radius: 20px;
  background: var(--grad-panel-tinted);
  border: var(--hairline);
  box-shadow: 0 22px 60px rgba(0,0,0,0.5), 0 0 50px rgba(20,120,150,0.16);
  animation: nameSheetUp 0.22s ease;
}
@keyframes nameSheetUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.name-sheet-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.name-sheet-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.name-sheet-input {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--panel-elevated);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.name-sheet-input:focus {
  border-color: var(--water);
  background: var(--panel);
  box-shadow: 0 0 0 3px rgba(14, 165, 183, 0.18);
}
.name-sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.name-sheet-skip,
.name-sheet-save {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.name-sheet-skip {
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}
.name-sheet-skip:hover { border-color: var(--water-light); color: var(--ink); }
.name-sheet-save {
  border: none;
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: var(--glow-accent);
}
.name-sheet-save:hover { filter: brightness(1.06); }
.name-sheet-save:disabled {
  opacity: 0.45;
  cursor: default;
  filter: none;
}

/* ---------- Optional account + Premium ---------- */
.account-sheet {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
}
.account-sheet.hidden { display: none; }
.account-sheet-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(100% 75% at 50% 15%, rgba(34,211,238,0.12), transparent 60%),
    rgba(3,11,19,0.76);
  backdrop-filter: blur(8px);
}
.account-sheet-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(126,170,200,0.2);
  border-radius: 26px;
  background: var(--grad-panel-tinted);
  box-shadow: 0 30px 90px rgba(0,0,0,0.62), 0 0 80px rgba(34,211,238,0.1);
  animation: accountSheetIn 0.22s ease;
}
@keyframes accountSheetIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.account-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(6,18,28,0.55);
  color: var(--muted);
  cursor: pointer;
}
.account-close:hover { color: var(--ink); border-color: rgba(79,214,245,0.42); }
.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 800;
}
.account-brand img { width: 32px; height: 32px; object-fit: contain; }
.account-panel h2,
.premium-sheet-card h2 {
  margin: 7px 38px 8px 0;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: clamp(25px, 6vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.account-kicker {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.account-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.account-email-display { word-break: break-word; }
.account-benefits,
.premium-benefits {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
}
.account-benefits > div,
.premium-benefits > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(26,51,72,0.55);
}
.account-benefits img,
.premium-benefits img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}
.account-benefits span,
.premium-benefits span { display: grid; gap: 2px; }
.account-benefits strong,
.premium-benefits strong { color: var(--ink); font-size: 14px; }
.account-benefits small,
.premium-benefits small { color: var(--muted); font-size: 12.5px; line-height: 1.25; }
.account-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 13px;
  background: #fff;
  color: #17212b;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.account-google:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.account-google:focus-visible {
  outline: 3px solid rgba(79,214,245,0.45);
  outline-offset: 2px;
}
.account-google:disabled { opacity: 0.62; cursor: wait; transform: none; }
.account-google svg { width: 21px; height: 21px; flex: 0 0 21px; }
.account-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 15px 0 0;
  color: #7892a8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-divider::before,
.account-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(126,170,200,0.2);
}
.account-form { display: grid; gap: 9px; margin-top: 16px; }
.account-form label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.account-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid rgba(126,170,200,0.28);
  border-radius: 13px;
  background: rgba(6,18,28,0.72);
  color: var(--ink);
  font-size: 16px;
  outline: none;
}
.account-form input:focus {
  border-color: var(--water);
  box-shadow: 0 0 0 3px rgba(79,214,245,0.15);
}
.account-primary {
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: 13px;
  background: var(--grad-accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--glow-accent);
}
.account-primary:hover { background: var(--grad-accent-hover); }
.account-primary:disabled { opacity: 0.52; cursor: wait; filter: grayscale(0.25); }
.account-text-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.account-link-sent {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(79,214,245,0.3);
  border-radius: 16px;
  background: rgba(26,51,72,0.55);
  text-align: center;
}
.account-link-sent.hidden { display: none; }
.account-link-sent img { width: 48px; height: 48px; object-fit: contain; }
.account-link-sent strong { color: var(--ink); font-size: 16px; }
.account-link-sent p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.account-link-sent span { color: var(--ink); font-weight: 700; word-break: break-word; }
.account-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--water-light);
  font-size: 12.5px;
  line-height: 1.4;
}
.account-message.error { color: #fca5a5; }
.account-fine-print {
  margin: 14px 4px 0;
  color: #7892a8;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}
.account-fine-print a { color: #9fcce0; }
.account-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.account-plan-badge {
  padding: 5px 9px;
  border: 1px solid rgba(79,214,245,0.3);
  border-radius: 999px;
  background: rgba(79,214,245,0.1);
  color: var(--water-light);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.account-plan-badge.premium {
  border-color: rgba(246,172,4,0.42);
  background: rgba(246,172,4,0.12);
  color: #ffd26b;
}
.account-sync-state { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.account-signed-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6,18,28,0.42);
}
.account-signed-card > img { width: 42px; height: 42px; object-fit: contain; }
.account-signed-card > div { display: grid; gap: 2px; min-width: 0; }
.account-signed-card strong { color: var(--ink); font-size: 14px; }
.account-signed-card small { color: var(--muted); font-size: 11.5px; }
.account-signed-card button {
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid rgba(79,214,245,0.25);
  border-radius: 9px;
  background: var(--chip);
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.premium-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(246,172,4,0.3);
  border-radius: 17px;
  background:
    radial-gradient(95% 130% at 0% 0%, rgba(246,172,4,0.16), transparent 60%),
    rgba(26,51,72,0.7);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.premium-card:hover { border-color: rgba(246,172,4,0.55); transform: translateY(-1px); }
.premium-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  background: rgba(6,18,28,0.5);
}
.premium-logo img { width: 42px; height: 42px; object-fit: contain; }
.premium-card-copy { display: grid; gap: 3px; min-width: 0; }
.premium-card-copy strong { font-size: 15px; }
.premium-card-copy small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.account-save-limit { color: var(--accent); }
.premium-chevron { margin-left: auto; color: #ffd26b; font-size: 28px; }
.account-sign-out { display: block; margin: 18px auto 0; color: var(--muted); }
.premium-sheet-card { text-align: center; }
.premium-hero-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 14px;
  border: 1px solid rgba(246,172,4,0.34);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 30%, rgba(246,172,4,0.2), transparent 68%),
    rgba(6,18,28,0.48);
  box-shadow: 0 18px 45px rgba(246,172,4,0.12);
}
.premium-hero-mark img { width: 70px; height: 70px; object-fit: contain; }
.premium-sheet-card h2 { margin-right: 0; }
.premium-benefits { text-align: left; }
.premium-checkout { width: 100%; margin-top: 3px; }
.premium-sheet-card > .account-text-button { margin-top: 13px; }
.account-inline-loader {
  width: 34px;
  height: 34px;
  margin: 16px auto 12px;
  border: 3px solid rgba(140,200,230,0.18);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
#account-loading { text-align: center; color: var(--muted); }
body.is-premium .ad-supported { display: none !important; }

/* ---------- Map markers ---------- */
.spot-marker {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2.5px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  width: 26px; height: 26px;
}
.saved-star-icon {
  background: transparent !important;
  border: none !important;
}
.saved-star-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  pointer-events: none;
}
.saved-star-label {
  max-width: 132px;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(8, 30, 48, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.saved-star-marker {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}
.saved-marker-icon { width: 34px; height: 34px; }
.saved-star-marker.been {
  background: linear-gradient(145deg, #94a3b8, #64748b);
  box-shadow: 0 3px 10px rgba(100, 116, 139, 0.35);
  opacity: 0.72;
  filter: grayscale(0.35);
}
.spot-card.been-here { opacity: 0.72; filter: grayscale(0.25); }
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background: rgba(14,165,183,0.22); }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--deep);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(8,30,48,0.3);
}
.access-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--deep);
  box-shadow: 0 4px 12px rgba(8,30,48,0.35);
  font-size: 15px;
}
.access-marker-icon { width: 24px; height: 24px; }
.leaflet-popup-content { font-family: var(--font); }
.popup-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.popup-row { font-size: 12.5px; color: var(--muted); margin: 2px 0; }
.popup-title .ui-icon, .popup-row .ui-icon { width: 18px; height: 18px; }
.popup-row .conf { color: #94a3b8; font-size: 11.5px; }
.popup-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.popup-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--panel-elevated);
  color: var(--teal);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .fish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-card { padding: 18px; }
  .step-header h1 { font-size: 22px; }
  .results-panel {
    top: 34%;
    bottom: 0;
    width: 100%;
    height: 66%;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 36px rgba(8,30,48,0.22);
    animation-name: slideUp;
  }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .results-head { padding-top: 13px; }
  .results-head::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 42px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #cbd5e1;
  }
  .results-tools { gap: 8px; }
  .map-legend { left: 8px; bottom: 14px; gap: 8px; padding: 6px 8px; font-size: 9.5px; }
  body.results-open .map-legend { bottom: calc(66% + 14px); left: 8px; }
  .street-view-preview {
    left: 8px;
    bottom: calc(66% + 10px);
    width: min(240px, calc(100vw - 16px));
    max-height: calc(66vh - 24px);
    border-radius: 12px;
  }
  .street-view-head { min-height: 40px; padding: 6px 7px 6px 10px; }
  .street-view-frame-wrap { height: 135px; }
  .street-view-foot { padding: 6px 9px; font-size: 9px; }
  .street-view-foot span { display: none; }
  .street-view-ad-gate { gap: 5px; padding: 10px; }
  .street-view-ad-gate strong { font-size: 14px; }
  .street-view-ad-gate p { font-size: 10px; }
  .street-view-ad-gate small { display: none; }
  .street-view-ad-actions button,
  .street-view-ad-actions a { min-height: 30px; padding: 0 9px; font-size: 9.5px; }
  .spot-brief[open] .spot-brief-body {
    max-height: min(160px, calc(66vh - 260px));
  }
  body.street-view-open .map-legend { display: none; }
  body.results-open .leaflet-bottom { bottom: 66%; }
  .active-fish { display: none; }
  .brand-logo { height: 30px; }
  .brand-name { font-size: 16px; }
  .decision-grid { gap: 5px; }
  .decision-item { padding: 7px 6px; }
  .spot-actions { gap: 6px; }
  .spot-actions a { font-size: 11.5px; padding: 8px 5px; }
  .spot-card-brand .brand-name { display: none; }
  .spot-card-brand .brand-logo { height: 26px; }
  .spot-side { max-width: 48%; }
  #account-open-label { display: none; }
  .account-open { padding-inline: 10px; }
  .account-sheet { place-items: end center; padding: 0; }
  .account-sheet-card {
    width: 100%;
    max-height: min(92dvh, 760px);
    padding: 24px 19px max(19px, env(safe-area-inset-bottom));
    border-radius: 25px 25px 0 0;
    border-bottom: 0;
    animation-name: nameSheetUp;
  }
  .account-brand { margin-bottom: 17px; }
  .account-panel h2, .premium-sheet-card h2 { font-size: 27px; }
}

@media (max-width: 350px) {
  .fish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-card { padding-inline: 14px; }
}

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