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

:root {
  --red: #c0392b;
  --red-light: #e74c3c;
  --dark-text: #1a1a1a;
  --mid-text: #555;
  --light-text: #888;
  --bg: #f4f5f7;
  --white: #ffffff;
  --border: #e0e0e0;
  --accent: #e74c3c;
  --header-h: 52px;
  --nav-h: 64px;
}

html, body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark-text);
  height: 100%;
  overflow: hidden;
}

/* ===================== AUTH ===================== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #fff5f5, #ffe0e0, #f4f5f7);
}

.auth-box {
  background: var(--white);
  border: 1px solid #f0d0d0;
  border-radius: 20px;
  padding: 40px 32px;
  width: 360px;
  max-width: 95vw;
  text-align: center;
  box-shadow: 0 8px 40px rgba(192,57,43,0.12);
}

.auth-box .logo { margin-bottom: 10px; }
.login-logo { width: 110px; height: 110px; border-radius: 22px; object-fit: cover; box-shadow: 0 4px 20px rgba(192,57,43,0.25); }
.auth-box h1 { font-size: 22px; color: var(--red); margin-bottom: 4px; font-weight: 700; }
.auth-box p { color: var(--light-text); font-size: 13px; margin-bottom: 28px; }

/* ===================== APP HEADER ===================== */
/* ===================== PWA INSTALL BANNER ===================== */
.pwa-banner {
  position: fixed;
  bottom: calc(var(--nav-h) + 10px);
  left: 12px;
  right: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  z-index: 1500;
  border: 1px solid #ffe0a0;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.pwa-banner-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pwa-banner-text { flex: 1; display: flex; flex-direction: column; }
.pwa-banner-text strong { font-size: 14px; color: #1a1a1a; }
.pwa-banner-text span   { font-size: 11px; color: #888; margin-top: 1px; }
.pwa-btn-install {
  background: linear-gradient(135deg, #e63946, #b30000);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.pwa-btn-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.header-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--red);
}

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

.btn-icon {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--mid-text);
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
}
.btn-icon:hover { background: #f0f0f0; }

/* ===================== OFFLINE BANNER ===================== */
.offline-banner {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff3cd;
  color: #856404;
  text-align: center;
  padding: 6px;
  font-size: 12px;
  display: none;
  border-bottom: 1px solid #ffe082;
  z-index: 999;
}
.offline-banner.show { display: block; }

/* ===================== TAB CONTENT ===================== */
.tab-content {
  position: fixed;
  top: var(--header-h);
  bottom: var(--nav-h);
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===================== STATUS STRIP ===================== */
.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--mid-text);
  flex-shrink: 0;
}

.sync-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  color: var(--mid-text);
  font-family: inherit;
}
.sync-btn:hover { background: #f0f0f0; }

/* ===================== FORM SCROLL ===================== */
.form-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 16px;
  -webkit-overflow-scrolling: touch;
}

.form-section {
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================== FORM ELEMENTS ===================== */
.form-group { margin-bottom: 12px; }

.form-group label {
  display: block;
  font-size: 11px;
  color: var(--light-text);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--dark-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(231,76,60,0.12);
}

.form-group textarea { resize: vertical; min-height: 70px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ===================== TOGGLE BUTTONS ===================== */
.toggle-group {
  display: flex;
  gap: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid-text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.toggle-btn:hover { border-color: #f5c6c6; color: var(--red); }
.toggle-btn.active { background: #fff0f0; border-color: var(--red); color: var(--red); }

/* ===================== CHIPS ===================== */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 7px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mid-text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.chip:hover { border-color: #f5c6c6; color: var(--red); }
.chip.active { background: #fff0f0; border-color: var(--red); color: var(--red); font-weight: 700; }

/* ===================== COORDENADAS ===================== */
.coord-mode-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.coord-tab {
  flex: 1;
  padding: 7px 4px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mid-text);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: all 0.15s;
}
.coord-tab.active { background: #fff0f0; border-color: var(--red); color: var(--red); }

.btn-gps-capture {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #fff0f0, #ffe0e0);
  border: 1.5px solid #f5c6c6;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn-gps-capture:hover { background: #ffe0e0; }
.btn-gps-capture:disabled { opacity: 0.6; cursor: default; }

.coord-result {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0fff0;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  font-size: 12px;
  color: #2e7d32;
}

.dms-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.dms-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--mid-text);
  width: 28px;
  flex-shrink: 0;
}

.dms-input {
  flex: 1;
  padding: 7px 6px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  min-width: 0;
  outline: none;
  font-family: inherit;
}
.dms-input:focus { border-color: var(--accent); }

.dms-sep {
  font-size: 12px;
  color: var(--mid-text);
  flex-shrink: 0;
}

.dms-hemi {
  padding: 7px 4px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--white);
  cursor: pointer;
  width: 40px;
  text-align: center;
  outline: none;
  font-family: inherit;
}

/* ===================== ÁREA QUEIMADA CARD ===================== */
.area-card {
  background: #fff8f8;
  border: 1.5px solid #f5c6c6;
  border-radius: 12px;
  padding: 14px;
}

.area-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
}

.area-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #ffe0e0;
  color: var(--red);
  font-weight: 600;
}
.area-badge.ok { background: #e8f5e9; color: #2e7d32; }

.area-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-area-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--mid-text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-weight: 600;
}
.btn-area-mode:hover { background: #fff0f0; border-color: #f5c6c6; color: var(--red); }
.btn-area-mode.active { background: #fff0f0; border-color: var(--accent); color: var(--red); }
.area-mode-icon { font-size: 20px; }

/* GPS STATUS */
.gps-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mid-text);
  margin-bottom: 4px;
}

/* COORDS DISPLAY */
.coords-display {
  background: #f0fff0;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #2e7d32;
  margin-top: 8px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--red-light); }

.btn-secondary {
  background: var(--white);
  color: var(--mid-text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: #f8f8f8; }

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-danger { background: #c0392b; color: #fff; border: none; }
.btn-danger:hover { background: #e74c3c; }

.btn-register {
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(192,57,43,0.3);
  letter-spacing: 0.5px;
}

.error-msg {
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  color: #c0392b;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  display: none;
}

/* ===================== USER BADGE ===================== */
.user-badge {
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  color: var(--red);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================== BOTTOM NAV ===================== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  transition: all 0.15s;
  color: var(--light-text);
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-item.active::before { transform: scaleX(1); }
.nav-item.active { color: var(--red); }

.nav-icon { font-size: 22px; line-height: 1; }
.nav-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===================== MAP (aba) ===================== */
#tab-mapa {
  position: relative;
}
#map {
  flex: 1;
  width: 100%;
  height: 100%;
}
.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-gps-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}
.map-gps-btn:active { transform: scale(0.93); }
.map-gps-btn.active { background: #fdf0ef; }
.map-gps-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.map-gps-btn.gps-on { background: #2980b9; box-shadow: 0 2px 10px rgba(41,128,185,0.5); }
.map-gps-btn.gps-on:active { transform: scale(0.93); }

/* Marcador GPS pulsante */
.gps-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #3498db;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  position: relative;
}
.gps-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.5);
  animation: gps-ring 2s ease-out infinite;
}
@keyframes gps-ring {
  0%   { width: 100%; height: 100%; opacity: 0.8; }
  100% { width: 360%; height: 360%; opacity: 0; }
}

/* ===================== DASHBOARD ===================== */
.dashboard-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dash-header h2 {
  font-size: 18px;
  color: var(--dark-text);
  font-weight: 700;
}

.export-buttons {
  display: flex;
  gap: 8px;
}

.btn-export {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-export.excel { background: #e8f5e9; color: #2e7d32; }
.btn-export.excel:hover { background: #c8e6c9; }
.btn-export.kmz { background: #e3f2fd; color: #1565c0; }
.btn-export.kmz:hover { background: #bbdefb; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-card .value { font-size: 28px; font-weight: 700; color: var(--red); }
.stat-card .label { color: var(--light-text); font-size: 11px; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }

.fires-table {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.fires-table table { width: 100%; border-collapse: collapse; }

.fires-table th {
  background: #fff0f0;
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  font-weight: 700;
}

.fires-table td {
  padding: 10px 12px;
  font-size: 12px;
  border-top: 1px solid #f5f5f5;
  color: var(--dark-text);
}

.fires-table tr:hover td { background: #fafafa; }

/* ===================== FOTOS ===================== */
.fotos-section { padding: 4px 0; }

.fotos-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-foto {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #fff5f5, #ffe0e0);
  border: 2px dashed #e74c3c;
  border-radius: 10px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-foto:active { background: #ffd6d6; }

.fotos-count {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  min-height: 16px;
}

.fotos-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.foto-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
}
.foto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foto-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.foto-num {
  position: absolute;
  bottom: 3px;
  left: 4px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 10px;
  border-radius: 4px;
  padding: 1px 4px;
}

/* ===================== SOBRE ===================== */
.sobre-card {
  margin: 16px 0 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ffe0a0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sobre-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ff6b00, #e63946);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.sobre-chevron { font-size: 13px; opacity: 0.85; }
.sobre-body {
  padding: 20px 18px 16px;
  display: block;
}
.sobre-logo { font-size: 36px; text-align: center; margin-bottom: 6px; }
.sobre-title { font-size: 20px; font-weight: 700; text-align: center; color: #e63946; }
.sobre-sub { font-size: 12px; text-align: center; color: #888; margin-bottom: 16px; }
.sobre-divider { height: 1px; background: #f0e8d8; margin-bottom: 14px; }
.sobre-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}
.sobre-icon { font-size: 18px; flex-shrink: 0; }
.sobre-link {
  color: #e63946;
  text-decoration: none;
  font-weight: 500;
}
.sobre-link:hover { text-decoration: underline; }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}

.modal h2 { font-size: 18px; color: var(--red); margin-bottom: 18px; font-weight: 700; }

/* Modal mapa (fullscreen) */
.modal-fullmap {
  border-radius: 20px 20px 0 0;
  height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.modal-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.modal-map-header h2 { margin-bottom: 0; }

/* ===================== SIGNATURE ===================== */
#signature-canvas {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  background: #fafafa;
  width: 100%;
  cursor: crosshair;
  touch-action: none;
}

/* ===================== STATUS DOTS ===================== */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-green { background: #27ae60; }
.dot-red { background: #e74c3c; }
.dot-yellow { background: #f39c12; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.blink { animation: blink 1s infinite; }

/* ===================== COORD INPUTS ===================== */
.coord-input {
  padding: 8px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  color: #333;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}
.coord-input:focus { border-color: var(--accent); }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* ===================== LEAFLET ===================== */
.leaflet-control-zoom a { background: #fff !important; color: #333 !important; }
.leaflet-draw-toolbar a { background: #fff !important; }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 600px) {
  .modal { border-radius: 20px; max-width: 480px; margin-bottom: 20px; }
  .modal-fullmap { border-radius: 20px; max-width: 700px; margin-bottom: 20px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
