:root {
  --bg: #050508;
  --surface: rgba(12, 14, 18, 0.72);
  --surface2: rgba(18, 22, 28, 0.82);
  --glass: rgba(10, 12, 16, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f4f6f8;
  --muted: #9aa3b2;
  --accent: #32ff6a;
  --accent-dim: #9dffb8;
  --accent-soft: rgba(50, 255, 106, 0.14);
  --accent-glow: rgba(50, 255, 106, 0.35);
  --rain: #7dffb0;
  --storm: #ff5c5c;
  --border: rgba(50, 255, 106, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Outfit", system-ui, sans-serif;
  --chart-grid: rgba(50, 255, 106, 0.1);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
}

/* —— Map background —— */
.map-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.map-bg.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.map-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.04);
}

.map-bg.map-mode-static .leaflet-container {
  visibility: hidden;
}

.map-bg .leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background: #0a0c10;
  font-family: var(--font);
}

.map-bg .leaflet-tile-pane {
  filter: saturate(1.15) contrast(1.05);
}

.map-bg .leaflet-control-attribution {
  font-size: 0.55rem;
  background: rgba(0, 0, 0, 0.45) !important;
  color: var(--muted) !important;
  backdrop-filter: blur(8px);
  border-radius: 6px 0 0 0;
  padding: 2px 6px !important;
}

.map-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(5, 5, 8, 0.62);
  transition: background 0.4s ease;
}

body.map-active .map-scrim {
  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 8, 0.82) 0%,
      rgba(5, 5, 8, 0.28) 35%,
      rgba(5, 5, 8, 0.38) 70%,
      rgba(5, 5, 8, 0.78) 100%
    );
}

.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* —— Header —— */
.site-header {
  padding: 1.35rem 1rem 0.85rem;
  text-align: center;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

/* Subtle water-themed accent bar under header for visual appeal */
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header h1 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 28px var(--accent-glow);
}

.tagline {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

/* Header title + side CTA for river maps (not a main tab) */
.header-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-title-row h1 {
  margin: 0.15rem 0 0.1rem;
}

.charter-link {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  text-decoration: none;
  margin: 0.15rem 0 0.35rem;
  text-align: center;
  transition: color 0.15s ease;
}
.charter-link:hover,
.charter-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.river-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem 0.25rem 0.45rem;
  background: rgba(8, 10, 14, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.river-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  background: rgba(8, 10, 14, 0.8);
}

.river-cta-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.river-cta-text {
  font-size: 0.68rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.15;
}

.river-cta-text strong {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .header-title-row {
    flex-direction: column;
    gap: 0.35rem;
  }
  .river-cta {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Switcher inside the river maps view (Trinity / Neches / Sabine / Brazos / Navasota) */
.river-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.river-switch-btn {
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.river-switch-btn:hover {
  color: var(--text);
  border-color: var(--border);
}

.river-switch-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Details panel for selected gauge point */
.river-details {
  margin-top: 0.5rem;
  padding: 0.6rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.85rem;
}

.river-details-header {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.3rem;
}

.river-current {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.river-current strong {
  color: var(--accent);
}

.river-chart {
  margin: 0.3rem 0;
  overflow: hidden;
}
.river-chart .chart-card {
  max-width: 100%;
  font-size: 0.8rem;
}
/* Tighter x labels specifically for the narrow embedded river hydrographs (date/time ticks) */
.river-chart .chart-axis {
  font-size: 8px;
  letter-spacing: -0.3px;
}

.river-stats {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.2rem 0 0.4rem;
}

.river-details a {
  font-size: 0.75rem;
  color: var(--accent);
}

/* Stage legend for river gauges */
.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  justify-content: center;
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  color: var(--muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid #333;
}

/* Big action CTA button inside the Shop tab (does not say "coming soon") */
.shop-big-cta {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #0a0c10;
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(50, 255, 106, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  line-height: 1.1;
}
.shop-big-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(50, 255, 106, 0.45);
}
.shop-big-cta:active {
  transform: scale(0.985);
}

/* Emoji icon for category cards (replaces photos) */
.cat-emoji {
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

/* —— Navigation —— */
.main-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem 0.3rem;
  background: rgba(8, 10, 14, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.main-nav::-webkit-scrollbar {
  display: none;
}

.main-btn {
  position: relative;
  flex: 0 0 auto;
  min-width: 56px;
  padding: 0.38rem 0.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  scroll-snap-align: start;
}

.main-btn:hover {
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

.main-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(50, 255, 106, 0.08);
  transform: scale(1.02);
}

/* Shop tab gets subtle accent border (coming soon is shown in status/tagline on the page itself) */
.main-btn[data-main="shop"] {
  border: 1px solid var(--accent);
}

/* Pretty accent underline on active tab for modern segmented look */
.main-btn.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 16px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent-glow);
  pointer-events: none;
}

/* Bottom fixed tab bar — mobile only, native app feel (thumb zone). 6 tabs fit well. */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: none; /* shown via media query on small screens */
  justify-content: space-around;
  align-items: center;
  gap: 2px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.bottom-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 2px;
  background: transparent;
  border: none;
  color: #8a94a8;
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s ease, transform 0.1s ease;
  border-radius: 8px;
}

.bottom-btn .b-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
  margin-bottom: 1px;
}

.bottom-btn .b-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.95;
}

.bottom-btn:hover {
  color: #c5cad6;
}

.bottom-btn.active {
  color: var(--accent);
  transform: translateY(-1px);
}

.bottom-btn.active .b-icon {
  filter: drop-shadow(0 0 3px var(--accent-glow));
}

.bottom-btn[data-main="shop"] {
  /* subtle callout for shop */
  color: #a8d8b0;
}

.bottom-btn.active[data-main="shop"] {
  color: var(--accent);
}

/* On mobile: show bottom bar for thumb-friendly nav in addition to top. Top main-nav is now sticky so action buttons stay visible at top on scroll (doesn't disappear like a plain single-page site). */
@media (max-width: 639px) {
  .bottom-nav {
    display: flex;
  }
  /* Ensure last content (cards, radar, shop grid) can scroll fully above the bar */
  #app-main {
    padding-bottom: 72px;
  }
  /* Keep the floating Book button from overlapping the bottom bar */
  .fab-book {
    bottom: calc(72px + 6px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
  /* Push footer credits just above the bar so they don't get covered when scrolled to bottom */
  .site-footer {
    margin-bottom: 64px;
  }
}

.sub-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 0.3rem 0.9rem 0.45rem;
  background: rgba(8, 10, 14, 0.35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.6rem;
}
.sub-nav::-webkit-scrollbar {
  display: none;
}

/* Region filter nav (multi-state grouping for Water Report sub locations) */
.region-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.2rem 0.75rem 0.1rem;
  background: rgba(8, 10, 14, 0.3);
  border-bottom: 1px solid var(--glass-border);
}
.region-btn {
  font-size: 0.62rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.region-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.03);
}
.region-btn:hover:not(.active) {
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

.sub-nav.hidden {
  display: none;
}

.region-nav.hidden {
  display: none;
}

.sub-btn {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 0.32rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  scroll-snap-align: start;
}

.sub-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(50, 255, 106, 0.15);
  transform: scale(1.02);
}

/* —— Main content —— */
#app-main {
  flex: 1;
  padding-bottom: 0.5rem;
}

.status-bar {
  margin: 0.75rem 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.status-bar.error {
  color: var(--storm);
  border-color: rgba(255, 92, 92, 0.4);
}

.forecast-root {
  padding: 0 0.65rem 1.5rem;
}

/* —— Glass cards —— */
.flow-panel,
.info-card,
.day-block,
.chart-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.flow-panel {
  margin: 0 0.65rem 0.85rem;
  padding: 1.1rem 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.flow-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.flow-meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.flow-panel a {
  color: var(--accent-dim);
}

/* —— CFS bar for Trinity dam discharge (and similar flow indicators) —— */
.cfs-bar-container {
  margin-top: 0.35rem;
}

.cfs-bar {
  position: relative;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #222;
}

.cfs-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.7);
  z-index: 2;
  transition: left 0.2s ease;
}

.cfs-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.cfs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.2;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.bow { background: var(--accent); }
.dot.rod { background: #67e8f9; }
.dot.flood { background: var(--storm); }

.day-block {
  margin-bottom: 0.85rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.day-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.75rem 0.85rem;
  background: var(--surface2);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.day-header:hover {
  background: rgba(22, 28, 36, 0.9);
}

.day-header-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.day-gauge-wrap {
  flex-shrink: 0;
  width: 76px;
}

.day-gauge {
  display: block;
  width: 76px;
  height: 42px;
}

.day-header h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.day-gauge-meta {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}

.day-summary {
  font-size: 0.68rem;
  color: var(--muted);
  grid-column: 1;
  grid-row: 2;
  padding-left: 0.15rem;
  line-height: 1.35;
}

.day-header .chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent);
  transition: transform 0.25s ease;
  font-size: 0.7rem;
}

.day-block.open .chevron {
  transform: rotate(180deg);
}

.day-body {
  display: none;
  padding: 0.75rem 0.55rem 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.day-block.open .day-body,
.day-block.open .hour-table-wrap {
  display: block;
}

.hour-table-wrap {
  display: none;
  overflow-x: auto;
  padding: 0 0.35rem 0.75rem;
}

.chart-card {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.55rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
}

.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 0.35rem 0.4rem;
}

.chart-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chart-unit {
  font-size: 0.65rem;
  color: var(--muted);
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.chart-line {
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.chart-axis {
  fill: var(--muted);
  font-size: 9px;
  font-family: var(--font);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.35rem 0.35rem 0;
  font-size: 0.65rem;
  color: var(--muted);
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chart-legend-swatch {
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.details-label {
  margin: 0.5rem 0.35rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Compact wind guide now lives inside the first wind graph (no more big separate card to scroll past) */
.wind-legend {
  margin: 0.2rem 0.35rem 0.1rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}
.wind-legend small {
  font-size: inherit;
}
.wind-legend strong {
  font-weight: 600;
  color: var(--text);
}

.adage-note {
  margin: 0.35rem 0.35rem 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text);
}
.adage-note strong {
  color: #60a5fa;
  font-weight: 700;
}
.adage-note em {
  font-style: normal;
  color: #9aff6a;
}
.adage-note .adage-example {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.95;
}

.hour-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.hour-table th,
.hour-table td {
  padding: 0.5rem 0.45rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.hour-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hour-table tr.storm-row td {
  background: rgba(255, 92, 92, 0.12);
}

.rain-chip {
  display: inline-block;
  min-width: 2.5rem;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--rain);
  font-weight: 500;
}

.rain-chip.wet {
  background: rgba(50, 255, 106, 0.28);
  font-weight: 700;
  color: var(--accent);
}

.storm-badge {
  color: var(--storm);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
}

/* —— Charter page —— */
.charter-page {
  padding: 0 0 1rem;
}

.info-card {
  margin: 0 0.65rem 0.85rem;
  padding: 1.15rem 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

.info-card-accent {
  border-color: rgba(50, 255, 106, 0.35);
  background: rgba(50, 255, 106, 0.08);
}

.info-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.info-card p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--text);
}

.info-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
}

.info-list li {
  margin-bottom: 0.45rem;
}

.info-note,
.info-fine {
  font-size: 0.78rem !important;
  color: var(--muted) !important;
}

/* Wind sidebar for lake locations (excl. Trinity & Surfside) */
.wind-sidebar {
  border-left: 4px solid var(--accent);
}

.wind-sidebar .wind-ranges {
  margin: 0.5rem 0;
  padding-left: 0;
  list-style: none;
}

.wind-sidebar .wind-ranges li {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  padding-left: 0.1rem;
}

.wind-sidebar .wind-ranges li strong {
  color: var(--accent);
  font-weight: 700;
}

.wind-sidebar .info-note {
  margin-bottom: 0.4rem;
}

.license-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
}

.btn-primary,
.btn-secondary {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, #32ff6a 0%, #1ed760 100%);
  color: #041208;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--accent-dim);
}

.contact-link {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

/* —— Radar tab —— */
.radar-page {
  padding: 0 0.65rem 1rem;
}

.radar-controls {
  margin-bottom: 0.5rem;
}

.radar-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.radar-locations button {
  padding: 0.28rem 0.55rem;
  font-size: 0.66rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.radar-locations button:hover {
  color: var(--text);
  border-color: var(--border);
}
.radar-locations button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Grouped radar location buttons (by region for multi-state: AR radar, TN/AL etc.) */
.radar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  align-items: center;
}
.radar-group-label {
  font-size: 0.58rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.2rem;
  white-space: nowrap;
}

.radar-locations button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.radar-play button {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  background: var(--accent);
  color: #041208;
  border: none;
  border-radius: 999px;
  margin-right: 0.3rem;
  cursor: pointer;
}

.radar-play button:hover {
  opacity: 0.9;
}

.radar-map {
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: #0a0c10;
  overflow: hidden;
}

.radar-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.4rem;
  text-align: center;
}

.radar-time-slider {
  margin-top: 0.2rem;
}

.radar-time-slider input[type=range] {
  accent-color: var(--accent);
}

/* —— River tabs (Trinity / Neches live gauges) —— */
.river-page {
  padding: 0 0.65rem 1rem;
}

.river-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
  gap: 0.4rem;
}

.river-status {
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
}

.river-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: #0a0c10;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

/* Small always-visible info boxes next to river gauge dots on the map.
   These show flow (cfs) + stage (ft) so users don't have to scroll or click.
   Styled to be compact, readable on dark map bg, and not too heavy. */
.leaflet-tooltip.river-gauge-label {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 0.68rem;
  padding: 3px 5px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  font-family: var(--font);
  line-height: 1.1;
}
/* Hide the default leaflet arrow/triangle for these permanent info boxes — they sit cleanly next to the dots as little badges */
.leaflet-tooltip.river-gauge-label::before {
  display: none;
}

.river-gauges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.gauge-btn {
  flex: 1 1 auto;
  min-width: 92px;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gauge-btn:hover {
  color: var(--text);
  border-color: var(--border);
  transform: translateY(-1px);
}

.gauge-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.gauge-btn .g-name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.gauge-btn .g-data {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.gauge-btn .g-data.zone-good { color: #32ff6a; }
.gauge-btn .g-data.zone-high { color: #f4a261; }
.gauge-btn .g-data.zone-flood { color: #e63946; }
.gauge-btn .g-data.zone-low,
.gauge-btn .g-data.zone-unknown { color: #a0a0a0; }

.gauge-btn .g-data small {
  font-size: 0.65rem;
  font-weight: 400;
  color: inherit;
  opacity: 0.85;
  margin-left: 0.2rem;
}

.river-note {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.3rem;
  text-align: center;
  line-height: 1.35;
}

/* Make river map a bit shorter on small screens if needed */
@media (max-width: 639px) {
  .river-map {
    height: 360px;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 1rem 0.85rem 1.25rem;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(8, 10, 14, 0.65);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
}

.site-footer a {
  color: var(--accent-dim);
}

/* Pretty floating action button for quick booking (easier navigation to the important action) */
.fab-book {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, #1ed760 100%);
  color: #041208;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 24px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.fab-book:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 10px 32px var(--accent-glow), 0 3px 10px rgba(0,0,0,0.35);
}
.fab-book:active {
  transform: scale(0.98);
}

/* Hide or tone down on larger screens if desired, but keep useful everywhere */
@media (min-width: 720px) {
  .fab-book {
    right: 20px;
    bottom: 20px;
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem;
  }
}

.fine {
  margin-top: 0.4rem;
  opacity: 0.85;
}

/* Reports tab styles */
.reports-page {
  padding: 0.5rem 0.65rem;
}

.reports-intro {
  margin: 0 0.65rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0 0.65rem;
}

.report-card {
  background: var(--glass);
}

/* For the new per-lake full reports subtabs (mirrors records for easy full-page access per lake) */
.reports-view {
  width: 100%;
}
.reports-view .report-card {
  margin: 0;
}
.reports-view h3 {
  margin: 0 0 0.4rem 0.3rem;
  font-size: 1.05rem;
  color: var(--text);
}

/* Records tab - subtab format: lake subtabs (full page per lake) + completely separate state subtabs */
.records-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.records-subtab-section {
  margin-bottom: 1.2rem;
}

.records-subtab-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
  padding-left: 0.2rem;
}

.records-subtabs,
.subtab-buttons,
.reports-subtabs,
.lake-subtabs,
.state-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.records-subtab-content {
  min-height: 320px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.6rem;
}

.records-view {
  width: 100%;
}

.records-view h3 {
  margin: 0 0 0.4rem 0.3rem;
  font-size: 1.05rem;
  color: var(--text);
}

.records-table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
}

.records-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.records-table th,
.records-table td {
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

/* Ensure Date and Angler (names) columns are never clipped and have breathing room */
.records-table th:nth-child(5),
.records-table td:nth-child(5) {
  min-width: 82px;
}
.records-table th:nth-child(7),
.records-table td:nth-child(7) {
  min-width: 108px;
}

.records-table th {
  background: rgba(0,0,0,0.3);
  font-weight: 600;
  color: var(--accent);
  position: sticky;
  top: 0;
  z-index: 2;
}

.records-table tr:nth-child(even) {
  background: rgba(255,255,255,0.025);
}

.record-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.4rem;
  padding-left: 0.3rem;
  font-style: italic;
}

/* active subtab button (reuses .sub-btn but forces active look) */
.records-subtabs .sub-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* fallback for old accordion styles if any remain elsewhere */
.records-lake-list,
.records-state-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.records-details {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}
.records-details summary {
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.15);
  user-select: none;
}
.record-count {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: normal;
}

/* Grouped reports by state/region (Texas / Arkansas / Tennessee Valley) */
.region-head {
  font-size: 0.95rem;
  margin: 0.9rem 0 0.35rem;
  padding: 0 0.65rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.report-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text);
}

.report-date {
  font-size: 0.65rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.report-source {
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--glass-border);
}

.report-source:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.report-link {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.15rem;
}

.report-link:hover {
  text-decoration: underline;
}

.report-desc {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.report-note {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
}

.reports-footer {
  margin: 1rem 0.65rem 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.species-report {
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--glass-border);
}
.species-report:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.species-report h4 {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}
.species-report p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.35;
}
.report-source-note {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  color: var(--muted);
}
.report-source-note a {
  color: var(--accent-dim);
}

@media (min-width: 640px) {
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .site-header h1 {
    font-size: 2rem;
  }

  .header-title-row {
    align-items: center;
  }

  .main-nav,
  .sub-nav,
  #app-main,
  .site-footer {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .main-nav {
    flex-wrap: nowrap;
    gap: 0.4rem;
    justify-content: center;
    padding: 0.5rem 0.75rem 0.35rem;
  }

  .sub-nav {
    padding: 0.35rem 0.75rem 0.55rem;
    gap: 0.28rem;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  /* On desktop the lake buttons (sub-nav) wrap into natural rows so every lake card is fully visible and clickable. No more edge clipping or unreachable outer items. */
  .sub-nav .sub-btn:first-child {
    margin-left: 0.1rem;
  }
  .sub-nav .sub-btn:last-child {
    margin-right: 0.1rem;
  }

  .main-btn {
    flex: 0 0 auto;
    max-width: none;
    font-size: 0.68rem;
    padding: 0.42rem 0.55rem;
    min-width: 60px;
  }

  .sub-btn {
    flex: 0 0 auto;
    max-width: none;
    min-width: 52px;
    font-size: 0.64rem;
    padding: 0.36rem 0.45rem;
  }

  .license-actions {
    flex-direction: row;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1;
  }
}

/* Refresh button for bookmarked PWAs / Safari that won't update from old bookmark */
.refresh-btn {
  font: inherit;
  font-size: 0.85em;
  background: transparent;
  color: var(--accent, #32ff6a);
  border: 1px solid color-mix(in srgb, var(--accent, #32ff6a) 40%, transparent);
  border-radius: 9999px;
  padding: 0.1rem 0.5rem;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 0.25rem;
  transition: all 0.1s ease;
}
.refresh-btn:hover,
.refresh-btn:active {
  background: color-mix(in srgb, var(--accent, #32ff6a) 15%, transparent);
  border-color: var(--accent, #32ff6a);
  transform: translateY(-1px);
}
.app-version-line {
  margin-top: 0.35rem;
  opacity: 0.9;
}

/* Shop tab styles (Shopify dropship integration) */
.shop-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}
.shop-intro {
  text-align: center;
  margin-bottom: 2rem;
}
.shop-intro h2 {
  color: var(--accent, #32ff6a);
  margin-bottom: 0.5rem;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.shop-card {
  background: #112;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #223;
  display: flex;
  flex-direction: column;
}
.shop-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.shop-price {
  font-weight: 700;
  color: var(--accent, #32ff6a);
  font-size: 1.1rem;
  margin: 0.25rem 0;
}
.shop-desc {
  flex: 1;
  font-size: 0.9rem;
  color: #aac;
  margin-bottom: 0.75rem;
}
.shop-buy-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.shop-buy-btn:hover {
  transform: scale(1.02);
}
.shop-note {
  background: #0a0a0f;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid #223;
}
.shop-note ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
}
.shop-note p.fine {
  margin-top: 0.75rem;
  opacity: 0.8;
}

/* Shop "coming soon" message area (only shown after user clicks the big browse button) */
.shop-coming-soon {
  max-width: 620px;
  margin: 0.5rem auto 1rem;
  text-align: center;
  padding: 1rem 0.9rem;
  background: #0f1118;
  border: 1px solid rgba(50,255,106,0.25);
  border-radius: 12px;
}
.coming-soon-badge {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  display: block;
}
.shop-coming-soon h2 {
  font-size: 1.85rem;
  margin: 0 0 0.25rem;
  color: var(--accent);
}
.shop-coming-soon h3 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 600;
}
.coming-soon-lead {
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 520px;
  margin: 0 auto 1.1rem;
  color: #d0d8e8;
}
.shop-coming-soon .shop-trust {
  justify-content: center;
  margin-bottom: 1rem;
}
.coming-soon-note {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.4;
}

/* (store buttons removed - products show directly on shop tab) */

/* Category grid for the coming-soon store teaser (makes it look like a real all-in-one shop) */
.store-categories {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 0.5rem;
}
.store-categories h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 0.7rem;
}
.category-card {
  background: #112;
  border: 1px solid #223;
  border-radius: 10px;
  padding: 0.65rem 0.55rem 0.7rem;
  text-align: center;
  transition: transform 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.category-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  display: block;
}
.category-card h4 {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.15;
}
.cat-desc {
  font-size: 0.68rem;
  color: #9aa3b2;
  line-height: 1.2;
  margin: 0 0 0.3rem;
  min-height: 1.9em;
}
.cat-count {
  display: inline-block;
  font-size: 0.62rem;
  background: rgba(50,255,106,0.1);
  color: var(--accent);
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Enhanced shop styles for many products + community positioning */
.shop-embeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.shop-section {
  margin-bottom: 2rem;
}

.shop-section h3 {
  color: var(--accent, #32ff6a);
  font-size: 1.15rem;
  margin: 0 0 0.35rem 0;
  border-bottom: 1px solid rgba(50, 255, 106, 0.2);
  padding-bottom: 0.25rem;
}

.shop-section-sub {
  font-size: 0.85rem;
  color: var(--muted, #9aa3b2);
  margin: 0 0 0.75rem 0;
  max-width: 720px;
}

.shop-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin: 0.75rem 0 1rem;
  font-size: 0.8rem;
  color: var(--muted, #9aa3b2);
}

.shop-trust span {
  background: rgba(50, 255, 106, 0.08);
  border: 1px solid rgba(50, 255, 106, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* LiDAR / NAV tab (placeholder for now - bathymetry, contours, nav) */
.lidar-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.5rem;
}
.lidar-intro {
  text-align: center;
  margin-bottom: 1rem;
}
.lidar-intro h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  color: var(--accent);
}
.lidar-intro p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.lidar-card {
  background: rgba(12,14,18,0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.lidar-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.lidar-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #c5cbd6;
}
.lidar-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.lidar-section {
  margin-bottom: 1.25rem;
}
.lidar-section h3 {
  color: var(--accent);
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.lidar-map {
  height: 280px;
  border-radius: 8px;
  margin: 0.5rem 0 0.75rem;
  border: 1px solid var(--glass-border);
  background: #0a0c10;
}

.shop-card.placeholder {
  opacity: 0.85;
  border-style: dashed;
}

.shop-card.placeholder .shop-desc {
  font-style: italic;
  font-size: 0.82rem;
}

.shop-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.25rem 0 0.5rem;
}

.reports-footer.shop-teaser {
  background: rgba(50, 255, 106, 0.06);
  border: 1px solid rgba(50, 255, 106, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.reports-footer.shop-teaser strong {
  color: var(--accent, #32ff6a);
}

/* Make sure old .shop-grid still works if anything references it */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* === New in-app cart UI (Shop tab) === */
.shop-cart-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  background: rgba(18, 22, 30, 0.85);
  border: 1px solid #334;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #d0d8e8;
}
.shop-cart-bar .cart-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.shop-cart-bar .cart-total {
  font-weight: 700;
  color: var(--accent, #32ff6a);
  margin-left: 0.1rem;
}
.shop-small-btn {
  background: #222a38;
  color: #e6ebf5;
  border: 1px solid #445;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s ease;
}
.shop-small-btn:hover {
  background: #2a3344;
  border-color: #556;
}
.shop-small-btn.danger {
  background: #3a2323;
  border-color: #664;
  color: #f8b4b4;
}
.shop-small-btn.danger:hover {
  background: #4a2a2a;
}

.shop-cart-panel {
  background: #11151f;
  border: 1px solid #334;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}
.shop-cart-panel h3 {
  color: var(--accent);
  font-size: 1.05rem;
}
.cart-summary {
  margin: 0.6rem 0 0.75rem;
  font-size: 0.95rem;
}
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(80,90,110,0.25);
}
.cart-row:last-child {
  border-bottom: none;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  line-height: 22px;
  text-align: center;
  background: #222a38;
  border: 1px solid #445;
  color: #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.cart-qty-btn:hover {
  background: #2f384a;
}
.cart-remove-btn {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid #664;
  color: #f88;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.cart-remove-btn:hover {
  background: #3a2525;
}

.shop-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}