/* ==========================================================================
   MY ENGINEERING TOOLBOX — WEATHER VAULT™
   Design System & Precision Glass Tokenized CSS
   ========================================================================== */

:root {
  /* Core High-Luminance Accents */
  --accent-cyan: #00D2FF;
  --accent-sky: #38BDF8;
  --accent-emerald: #00F5A0;
  --accent-amber: #FBBF24;
  --accent-coral: #F87171;
  --accent-violet: #C084FC;

  /* Surfaces & Smoked Glass */
  --bg-app: #050a14;
  --glass-surface: linear-gradient(180deg, rgba(16, 29, 53, 0.35) 0%, rgba(9, 16, 30, 0.45) 100%);
  --glass-card-sub: rgba(255, 255, 255, 0.04);
  --glass-card-hover: rgba(255, 255, 255, 0.08);

  /* Directional Specular Glass Borders */
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-border-top: 1px solid rgba(255, 255, 255, 0.28);
  --glass-border-left: 1px solid rgba(0, 210, 255, 0.35);

  /* Typography Colors */
  --text-main: #FFFFFF;
  --text-muted: #CBD5E1;
  --text-subtle: #94A3B8;

  /* Typography Fonts */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Radii & Floating 3D Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-3d-elevation: 
    0 20px 45px -10px rgba(0, 0, 0, 0.8),
    0 10px 20px -5px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Base Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #10213d 0%, #091322 40%, #04070e 75%, #020306 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Engineering Graph Paper Grid */
.blueprint-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(to right, rgba(0, 210, 255, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 210, 255, 0.16) 1px, transparent 1px),
    linear-gradient(to right, rgba(56, 189, 248, 0.35) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.35) 1.5px, transparent 1.5px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.25) 100%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.25) 100%);
}

/* Top-Left Ambient Light Source */
.ambient-light-beam {
  position: fixed;
  top: -120px;
  left: -120px;
  width: 850px;
  height: 750px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.32) 0%, rgba(37, 99, 235, 0.16) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 2;
}

/* Header & Navigation (Full-Width Edge-to-Edge Consistent with Master Suite) */
header, .app-header {
  background: rgba(10, 18, 32, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 32px;
  height: 64px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-brand, .brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-cube-icon, .brand-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.6));
  flex-shrink: 0;
}

.brand-cube-icon svg, .brand-icon svg {
  width: 38px;
  height: 38px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.brand-title, .brand-text h1, .brand-text .brand-title {
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  text-transform: none !important;
  line-height: 1.2;
  margin: 0;
  display: block;
}

.brand-subtitle, .brand-text .subtitle, .brand-text .brand-subtitle {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #fff;
}

.btn-nav-action {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-nav-action:hover {
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.7);
  transform: translateY(-1px);
}

/* Main Container */
.main-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.hero-brand-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hero-cube-svg {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 22px rgba(0, 210, 255, 0.75));
  transition: transform 0.3s ease;
}

.hero-cube-svg:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Smoked Frosted Glass Station Card
   ========================================================================== */
.station-card {
  background: var(--glass-surface);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border: var(--glass-border);
  border-top: var(--glass-border-top);
  border-left: var(--glass-border-left);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-3d-elevation);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Pure Cyan Laser Rail on Top for Weather Vault */
.station-card::before,
.format-selection-panel::before,
.provenance-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00D2FF 0%, #38BDF8 100%);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

.station-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.station-title-group h2 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.station-meta-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.meta-tag {
  font-family: 'Geist', -apple-system, sans-serif;
  background: var(--glass-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-select-station {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 450;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-select-station:hover {
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
  transform: translateY(-1px);
}

/* Climate Quick Stats */
.climate-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .climate-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-item {
  background: var(--glass-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 96px;
}

.stat-item:hover {
  background: var(--glass-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.stat-label {
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 0.68rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.stat-val-group, .stat-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-main);
}

.stat-primary {
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.stat-secondary {
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  line-height: 1.2;
  opacity: 0.85;
}

/* Section Header */
.section-header {
  margin-bottom: 1.25rem;
}

.section-header h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-subtle);
}

/* ==========================================================================
   Single Selector List Layout
   ========================================================================== */
.format-selection-panel {
  background: var(--glass-surface);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border: var(--glass-border);
  border-top: var(--glass-border-top);
  border-left: var(--glass-border-left);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-3d-elevation);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.format-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.format-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--glass-card-sub);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.format-list-item:hover {
  background: var(--glass-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(3px);
}

.format-list-item.active {
  background: rgba(2, 132, 199, 0.22);
  border-color: #38BDF8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.format-radio-wrapper {
  display: flex;
  align-items: center;
}

.format-radio-wrapper input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.format-radio-wrapper input[type="radio"]:checked {
  border-color: #38BDF8;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
}

.format-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.format-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.format-title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--text-main);
}

.format-code {
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-free {
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-premium {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FBBF24;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.format-short-desc {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-subtle);
}

/* Tooltip / Info Popover */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-info-popover {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-info-popover:hover {
  color: #38BDF8;
}

.tooltip-content {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 290px;
  background: #0d1728;
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--text-main);
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 200;
}

.tooltip-wrapper:hover .tooltip-content,
.tooltip-wrapper:focus-within .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Format Action Column & Inline Buttons */
.format-action-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-download-format {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-download-format:hover {
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.7);
  transform: translateY(-1px);
}

.btn-open-binmaker {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-open-binmaker:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

/* Provenance Section */
.provenance-panel {
  background: var(--glass-surface);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border: var(--glass-border);
  border-top: var(--glass-border-top);
  border-left: var(--glass-border-left);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-3d-elevation);
  position: relative;
  overflow: hidden;
}

.provenance-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.provenance-text h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.provenance-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 720px;
}

.btn-view-guide {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-view-guide:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
}

/* Modal Overlay & Container */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #091222;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 18, 32, 0.8);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.btn-close-modal:hover {
  color: var(--text-main);
}

/* Modal Search Bar */
.modal-search-bar {
  padding: 0.75rem 1.5rem;
  background: #060b14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  background: #0d1728;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}

.search-input-wrapper input:focus {
  border-color: #38BDF8;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.station-count-badge {
  display: flex;
  align-items: center;
  color: var(--text-subtle);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Modal Map Body */
.modal-body {
  flex: 1;
  position: relative;
  display: flex;
}

#map-container {
  width: 100%;
  height: 100%;
  background: #050a14;
}

/* Custom Marker Cluster Styling */
.custom-cluster-icon {
  background: rgba(2, 132, 199, 0.85);
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.7);
}

/* Custom Leaflet Popup */
.leaflet-popup-content-wrapper {
  background: #0e172a !important;
  color: var(--text-main) !important;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0.85rem 1rem !important;
  font-family: var(--font-sans);
}

.popup-station-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #fff;
}

.popup-station-meta {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
  font-family: 'Geist', -apple-system, sans-serif;
}

.btn-popup-select {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.btn-popup-select:hover {
  background: #0284C7;
}

/* Footer Bar (Standardized Suite Footer) */
.app-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: rgba(10, 18, 32, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-family: 'Geist', -apple-system, sans-serif;
}

.footer-left, .footer-center, .footer-right {
  display: flex;
  align-items: center;
}

.app-footer-bar a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.app-footer-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}
