:root {
  --bg: #0a0d12;
  --surface: #111620;
  --card: #161c28;
  --border: #1e2a3a;
  --accent: #e85d2f;
  --accent2: #f0a500;
  --safe: #26c97a;
  --text: #e8edf5;
  --muted: #6b7a94;
  --font: 'Space Grotesk', sans-serif;
  --mono: 'Space Mono', monospace;
}

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

html, body {
  height: 100vh;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

@keyframes spinGlobe {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning-globe {
  font-size: 30px;
  display: inline-block;
  animation: spinGlobe 15s linear infinite;
  user-select: none;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  margin: 0 15px;
}

#seismographCanvas {
  width: 100%;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
}

.logo-text h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}

.logo-text p {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0d1f0f;
  border: 1px solid #1a4020;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--safe);
  font-family: var(--mono);
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--safe);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ── FILTERS ── */
.filters {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filters label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  margin-right: 4px;
}

.filters select,
.filters input[type=range] {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
}

.filters select:focus {
  outline: 1px solid var(--accent);
}

.range-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent2);
  min-width: 28px;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .15s;
}

.btn:hover {
  opacity: .85;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

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

.main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 1fr;
  overflow: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.section-title {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.stat-card .val {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
  line-height: 1;
}

.stat-card .val.orange {
  color: var(--accent2);
}

.stat-card .val.red {
  color: var(--accent);
}

.stat-card .val.green {
  color: var(--safe);
}

.stat-card .lbl {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

/* risk zones */
.zone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zone-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color .15s;
}

.zone-item:hover {
  border-color: var(--accent);
}

.zone-item.active {
  border-color: var(--accent);
  background: #1a1208;
}

.zone-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.zone-info {
  flex: 1;
}

.zone-name {
  font-size: 13px;
  font-weight: 600;
}

.zone-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.zone-badge {
  font-size: 10px;
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-alto {
  background: #2a0e0e;
  color: var(--accent);
}

.badge-medio {
  background: #2a1e00;
  color: var(--accent2);
}

.badge-bajo {
  background: #0d1f0f;
  color: var(--safe);
}

/* magnitude bar */
.mag-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.mag-label {
  font-family: var(--mono);
  color: var(--muted);
  width: 44px;
  flex-shrink: 0;
}

.mag-bar-wrap {
  flex: 1;
  background: var(--border);
  border-radius: 3px;
  height: 7px;
  overflow: hidden;
}

.mag-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s ease;
}

.mag-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  width: 28px;
  text-align: right;
}

/* event list */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.event-mag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  width: 36px;
  text-align: center;
}

.event-place {
  font-size: 12px;
  line-height: 1.4;
}

.event-place .place-name {
  color: var(--text);
}

.event-place .place-date {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.event-depth {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

/* loading */
#loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 13, 18, .85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 14px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#loading p {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* map */
#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* legend */
.map-legend {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  z-index: 10000;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s ease;
  max-width: 300px;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

#toast strong {
  color: var(--accent);
}

/* ── RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS ── */

/* Mobile Navigation Bar */
.mobile-tabs-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.mobile-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-tab-btn.active {
  color: var(--accent);
}

.mobile-tab-btn.active .tab-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px rgba(232, 93, 47, 0.4));
}

.mobile-tab-btn .tab-icon {
  font-size: 18px;
  transition: transform 0.2s;
}

/* Filters content layout for desktop */
.filters-content {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Collapsible Filters Styles for Mobile */
.filters-mobile-header {
  display: none;
  width: 100%;
  padding: 10px 16px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  background: var(--card);
  border-radius: 6px;
  border: 1px solid var(--border);
  user-select: none;
}

.filters-toggle-icon {
  transition: transform 0.3s ease;
  font-size: 10px;
}

.filters.open .filters-toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  html, body {
    overflow: auto;
    height: auto;
    min-height: 100%;
  }

  body {
    padding-bottom: 60px; /* Space for the bottom navigation bar */
  }

  /* Header adjustments */
  header {
    padding: 10px 16px;
    gap: 8px;
  }

  .logo {
    width: 100%;
    justify-content: flex-start;
  }

  .header-center {
    display: none; /* Hide seismograph canvas on mobile to save space */
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  /* Filters Adjustments */
  .filters {
    padding: 8px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filters-mobile-header {
    display: flex;
  }

  .filters-content {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 8px 4px 12px 4px;
    border-top: 1px dashed var(--border);
  }

  .filters.open .filters-content {
    display: flex;
  }

  .filters-content label {
    margin-bottom: -4px;
    font-size: 11px;
  }

  .filters-content input,
  .filters-content select,
  .filters-content button {
    width: 100%;
    height: 38px; /* Bigger touch targets */
    font-size: 13px !important;
  }

  .filters-content .range-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .filters-content #minMag {
    flex: 1;
  }

  /* Layout and Tabs on Mobile */
  .mobile-tabs-nav {
    display: flex;
  }

  .main {
    display: block;
    position: relative;
    height: calc(100vh - 170px);
    min-height: 480px;
    overflow: hidden;
  }

  .sidebar {
    display: none; /* Hidden by default in mobile, shown via active tab */
    width: 100%;
    height: 100%;
    border-right: none;
    max-height: none;
    padding: 16px;
  }

  #map {
    display: block; /* Shown by default */
    width: 100%;
    height: 100%;
  }

  /* Class toggled by JS to switch views */
  .main.view-stats .sidebar {
    display: flex;
  }

  .main.view-stats #map {
    display: none;
  }

  /* Floating panels become bottom sheets */
  .sim-panel, .sim-result-panel {
    position: fixed;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 60px !important; /* Above mobile tab bar */
    width: 100% !important;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .sim-result-panel {
    padding: 16px 20px 24px 20px;
  }

  /* Toast notification position */
  #toast {
    left: 16px;
    right: 16px;
    bottom: 80px;
    max-width: none;
  }
}

/* ── LIGHT THEME OVERRIDES ── */
body.light-theme {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --card: #f8fafc;
  --border: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
}

body.light-theme .zone-item.active {
  background: #fef3c7;
  border-color: var(--accent2);
}

body.light-theme .status-pill {
  background: #dcfce7;
  border-color: #86efac;
}

body.light-theme #loading {
  background: rgba(244, 246, 249, 0.85);
}

/* ── HEADER INTERACTIVES ── */
.theme-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: var(--border);
}

.lang-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-select:focus {
  outline: 1px solid var(--accent);
}

/* ── SIMULATION PANEL & BUTTONS ── */
.sim-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(22, 28, 40, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 16px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  width: 280px;
  transition: all 0.3s ease;
}

body.light-theme .sim-panel {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.sim-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}

.sim-close:hover {
  color: var(--text);
}

.sim-subtitle {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: -6px;
}

.sim-btn-group {
  display: flex;
  gap: 8px;
}

.sim-sub-btn {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sim-sub-btn:hover {
  background: var(--border);
}

.sim-sub-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sim-sub-btn.active.sismo {
  background: var(--accent2);
  border-color: var(--accent2);
}

.sim-info-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

body.light-theme .sim-info-box {
  background: rgba(0, 0, 0, 0.05);
}

/* ── SHOCKWAVE EFFECT ── */
.shockwave-pane {
  pointer-events: none;
}

.shockwave-marker {
  position: relative;
  width: 0;
  height: 0;
}

.ripple-wave {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: rgba(232, 93, 47, 0.08);
  transform: scale(0);
  animation: rippleAnimation 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  pointer-events: none;
}

.ripple-wave.sismo {
  border-color: var(--accent2);
  background: rgba(240, 165, 0, 0.05);
}

.ripple-wave.wave-2 {
  animation-delay: 0.5s;
}

.ripple-wave.wave-3 {
  animation-delay: 1s;
}

@keyframes rippleAnimation {
  0% {
    transform: scale(0);
    opacity: 1;
    border-width: 5px;
  }

  50% {
    border-width: 2px;
  }

  100% {
    transform: scale(6);
    opacity: 0;
    border-width: 0.5px;
  }
}

/* ── SCREEN SHAKE EFFECT ── */
@keyframes shakeMild {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  20%,
  60% {
    transform: translate(-1px, -1px) rotate(-0.05deg);
  }

  40%,
  80% {
    transform: translate(1px, 1px) rotate(0.05deg);
  }
}

@keyframes shakeModerate {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  10%,
  50%,
  90% {
    transform: translate(-3px, -2px) rotate(-0.15deg);
  }

  30%,
  70% {
    transform: translate(3px, 2px) rotate(0.15deg);
  }
}

@keyframes shakeViolent {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translate(-8px, -5px) rotate(-0.6deg);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translate(8px, 5px) rotate(0.6deg);
  }
}

.shake-mild {
  animation: shakeMild 0.15s infinite;
}

.shake-moderate {
  animation: shakeModerate 0.1s infinite;
}

.shake-violent {
  animation: shakeViolent 0.08s infinite;
}

/* ── HEADER SIMULATION MODE ── */
header.simulation-mode {
  background: #2a0e0e !important;
  border-bottom: 2px solid var(--accent) !important;
  box-shadow: 0 0 15px rgba(232, 93, 47, 0.4) !important;
}

body.light-theme header.simulation-mode {
  background: #fee2e2 !important;
  border-bottom: 2px solid var(--accent) !important;
  box-shadow: 0 0 15px rgba(232, 93, 47, 0.2) !important;
}

header.simulation-mode .status-pill {
  background: #2a0e0e !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

header.simulation-mode .dot {
  background-color: var(--accent) !important;
}


/* ── BUILDING DAMAGE MARKERS ── */
.building-marker-icon {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  width: 44px !important;
  height: 44px !important;
}

body.light-theme .building-marker-icon {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.building-emoji {
  font-size: 16px;
}

.building-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  border: 1px solid #fff;
}

.building-status-dot.safe {
  background-color: var(--safe);
}

.building-status-dot.damaged {
  background-color: var(--accent2);
  animation: pulse-orange 1.5s infinite;
}

.building-status-dot.collapsed {
  background-color: var(--accent);
  animation: pulse-red 1s infinite;
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(240, 165, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(240, 165, 0, 0);
  }
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 93, 47, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(232, 93, 47, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(232, 93, 47, 0);
  }
}

/* ── PERSISTENT SIMULATION RESULT PANEL ── */
.sim-result-panel {
  position: absolute;
  bottom: 24px;
  left: 344px; /* Align to the right of the left sidebar */
  right: auto;
  bottom: 24px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  z-index: 10000;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  width: 330px;
  color: var(--text);
  font-family: var(--font);
  transition: all 0.3s ease;
}

body.light-theme .sim-result-panel {
  background: var(--card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sim-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.sim-result-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--mono);
}

.sim-result-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.sim-result-close:hover {
  color: var(--text);
}

.sim-result-body {
  font-size: 12px;
  line-height: 1.5;
}

/* ── TOOLTIP STYLING ── */
.leaflet-tooltip.building-tooltip {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 11px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  padding: 8px 12px !important;
  opacity: 0.98 !important;
}

body.light-theme .leaflet-tooltip.building-tooltip {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* ── START SIMULATION BUTTON ── */
.btn-start-sim {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-start-sim:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-start-sim:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}