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

:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #161616;
  --border: #1e1e1e;
  --text: #e0e0e0;
  --text-muted: #666;
  --accent: #ff3b30;
  --accent-dim: rgba(255, 59, 48, 0.15);
  --radius: 10px;
  --map-cyan: #00f5ff;
  --map-cyan-dim: rgba(0, 245, 255, 0.22);
  --map-cyan-glow: rgba(0, 245, 255, 0.55);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-muted); text-decoration: none; }
a:hover { color: var(--text); }

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.container-narrow {
  max-width: 440px;
}

/* ─── Typography ─── */
h1 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
h2 { font-size: 1.1rem; font-weight: 600; }

/* ─── Booth Header ─── */
.booth-header { margin-bottom: 2.5rem; padding-top: 1rem; }
.neighborhood-badge {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}
.booth-label { font-size: 1.4rem; font-weight: 600; line-height: 1.3; }

/* ─── Player Area ─── */
.player-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 2rem 0;
}

.player-idle, .player-active, .player-empty, .player-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
}
.play-btn:hover { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255, 59, 48, 0.15); }
.play-btn:active { transform: scale(0.97); }

.player-hint { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.05em; }

.stop-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.stop-btn:hover { background: #1e1e1e; }

/* ─── Waveform ─── */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}
.waveform span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 1.2s ease-in-out infinite;
}
.waveform span:nth-child(1) { animation-delay: 0s;    height: 16px; }
.waveform span:nth-child(2) { animation-delay: 0.2s;  height: 28px; }
.waveform span:nth-child(3) { animation-delay: 0.4s;  height: 36px; }
.waveform span:nth-child(4) { animation-delay: 0.1s;  height: 24px; }
.waveform span:nth-child(5) { animation-delay: 0.3s;  height: 20px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.timer {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.play-count { font-size: 0.75rem; color: var(--text-muted); }

.player-controls { display: flex; gap: 1rem; align-items: center; }

.skip-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skip-btn:hover { background: #1e1e1e; }

.empty-msg, .error-msg { color: var(--text-muted); text-align: center; font-size: 0.95rem; line-height: 1.6; }
.error-msg { color: #ff6b6b; }
.success-msg { color: #4caf50; }
.retry-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }

/* ─── CTA Section ─── */
.cta-section { margin: 1.5rem 0; }
.cta-btn {
  display: block;
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.cta-btn:hover { background: #1a1a1a; border-color: #333; color: var(--text); }

/* ─── Footer ─── */
.page-footer { text-align: center; margin-top: 2.5rem; font-size: 0.8rem; color: var(--text-muted); }
.page-footer a { color: var(--text-muted); }
.page-footer a:hover { color: var(--text); }

/* ─── Back Link ─── */
.back-link { font-size: 0.85rem; color: var(--text-muted); display: inline-block; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--text); }

/* ─── Pay Page ─── */
.page-pay .container { display: flex; flex-direction: column; align-items: center; padding-top: 2rem; }
.pay-card {
  width: 100%;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.pay-icon { margin-bottom: 1.25rem; color: var(--accent); }
.pay-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.pay-location { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.pay-description { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; max-width: 300px; margin: 0 auto 1.5rem; }
.pay-price { font-size: 2.5rem; font-weight: 200; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.pay-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.pay-btn:hover { opacity: 0.9; }
.pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pay-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ─── Spinner ─── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.spinner-large {
  width: 36px; height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Record Page ─── */
.page-record .container { display: flex; flex-direction: column; padding-top: 1.5rem; }
.state-block { text-align: center; padding: 2rem 0; }

.booth-header-small { margin-bottom: 2rem; text-align: center; }
.booth-header-small h1 { font-size: 1.1rem; }
.booth-header-small p { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; }

.record-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.15s, box-shadow 0.15s;
}
.record-btn:hover { transform: scale(1.04); }
.record-btn.recording {
  animation: pulse-record 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5);
}
@keyframes pulse-record {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(255, 59, 48, 0); }
}

.record-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 1rem; letter-spacing: 0.05em; }

.record-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 1rem;
}
.rec-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.review-audio { width: 100%; margin: 1.5rem 0; accent-color: var(--accent); }
.review-actions { display: flex; gap: 0.75rem; }
.btn-primary {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  flex: 1;
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s;
}
.btn-secondary:hover { background: #1a1a1a; }

.progress-bar { width: 100%; height: 4px; background: var(--bg3); border-radius: 2px; margin: 1rem 0 0.5rem; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; width: 0%; }

.success-icon { margin-bottom: 1rem; }
.success-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.success-sub { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2rem; }

/* ─── Finder Page ─── */
.finder-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.citymix-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}
.citymix-btn:hover { background: #1a1a1a; }

.view-toggle { display: flex; gap: 0; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}
.toggle-btn.active { background: var(--bg3); color: var(--text); }
.toggle-btn:hover:not(.active) { background: #111; }

.loading-state { color: var(--text-muted); padding: 2rem 0; text-align: center; font-size: 0.9rem; }

.booth-list { display: flex; flex-direction: column; gap: 0; }
.neighborhood-group { margin-bottom: 1.5rem; }
.neighborhood-group h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }

.booth-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.booth-card:last-child { border-bottom: none; }
.booth-info { flex: 1; }
.booth-info .booth-name { font-size: 0.9rem; font-weight: 500; }
.booth-info .booth-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.listen-link {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.listen-link:hover { background: #1a1a1a; color: var(--text); }

/* ─── Finder Map (dark cyan reference style) ─── */
.finder-map-active .container {
  max-width: 920px;
}

.map-wrap {
  position: relative;
  height: min(72vh, 640px);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  background: #050505;
}

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

.map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.map-pins-loaded {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.35);
  pointer-events: none;
}

/* Pin markers */
.echobooth-pin-wrap {
  background: none !important;
  border: none !important;
}

.echobooth-pin {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--map-cyan);
  box-shadow:
    0 0 6px var(--map-cyan-glow),
    0 0 14px rgba(0, 245, 255, 0.35);
  transform: translate(-1px, -1px);
}

/* Cluster markers */
.echobooth-cluster-wrap {
  background: none !important;
  border: none !important;
}

.echobooth-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--map-cyan-dim);
  border: 1.5px solid var(--map-cyan);
  box-shadow:
    0 0 12px rgba(0, 245, 255, 0.25),
    inset 0 0 20px rgba(0, 245, 255, 0.08);
  color: var(--map-cyan);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.echobooth-cluster span {
  line-height: 1;
}

/* Hide default markercluster styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: transparent !important;
}

/* ─── City Mix Page ─── */
.citymix-header { text-align: center; margin-bottom: 2.5rem; padding-top: 1rem; }
.citymix-header h1 { margin-bottom: 0.4rem; }
.citymix-sub { color: var(--text-muted); font-size: 0.85rem; }

.now-playing-from {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem;
  background: var(--bg3);
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ─── Admin ─── */
.page-admin .container { padding-top: 1.5rem; padding-bottom: 3rem; }
.page-admin code { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--text-muted); }

.admin-table { width:100%; border-collapse:collapse; font-size:0.85rem; }
.admin-table th { text-align:left; padding:8px 12px; border-bottom:1px solid #222; color:#888; font-weight:500; }
.admin-table td { padding:8px 12px; border-bottom:1px solid #111; vertical-align:middle; }
.admin-table tr:hover td { background:#0f0f0f; }
.badge-active { background:#1a3a1a; color:#4caf50; padding:2px 8px; border-radius:12px; font-size:0.75rem; }
.badge-inactive { background:#2a1a1a; color:#f44336; padding:2px 8px; border-radius:12px; font-size:0.75rem; }
.admin-section { margin-bottom:3rem; }
.admin-section h2 { font-size:1rem; color:#888; text-transform:uppercase; letter-spacing:0.1em; margin-bottom:1rem; border-bottom:1px solid #1a1a1a; padding-bottom:0.5rem; }
.form-row { display:flex; gap:0.5rem; flex-wrap:wrap; align-items:flex-end; margin-bottom:0.75rem; }
.form-row input, .form-row select { flex:1; min-width:120px; }
.table-wrap { overflow-x:auto; }
.small-btn { padding:4px 10px; font-size:0.75rem; border-radius:4px; border:1px solid #333; background:#111; color:#ccc; cursor:pointer; text-decoration:none; display:inline-block; }
.small-btn:hover { background:#1a1a1a; color:#ccc; }
.small-btn.danger { border-color:#ff3b30; color:#ff3b30; }
.small-btn.danger:hover { background:#2a0a0a; }
.audio-mini { height:28px; width:200px; }

/* Admin booth edit — Apple-style detail page */
.page-admin-edit {
  padding-bottom: 6.5rem;
}

.admin-edit-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}

.admin-back-link:hover {
  color: var(--text);
}

.admin-edit-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

.admin-edit-hero {
  margin-bottom: 2rem;
}

.admin-edit-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.admin-edit-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.admin-edit-id code {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 0.5rem;
  margin-bottom: 1rem;
}

.admin-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.admin-card-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: -0.25rem 0 1rem;
}

.admin-field {
  margin-bottom: 1rem;
}

.admin-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .admin-field-row { grid-template-columns: 1fr; }
}

.admin-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.admin-field-footnote {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.admin-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.input-readonly {
  opacity: 0.55;
  cursor: default;
}

.admin-edit-error {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #ff6b6b;
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-top: 0.5rem;
}

.admin-edit-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.admin-save-btn {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-danger-card {
  border-color: rgba(255, 59, 48, 0.25);
  margin-top: 0.5rem;
}

.admin-danger-title {
  color: #ff6b6b;
}

.btn-destructive {
  width: 100%;
  min-height: 48px;
  margin: 0.5rem 0 0.75rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.15);
  color: #ff6b6b;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-destructive:hover:not(:disabled) {
  background: rgba(255, 59, 48, 0.28);
  color: #fff;
}

.btn-destructive:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 520px) {
  .admin-modal {
    align-items: center;
    padding: 1.5rem;
  }
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
}

@media (min-width: 520px) {
  .admin-modal-sheet {
    border-radius: 16px;
    padding-bottom: 1.25rem;
  }
}

.admin-modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.admin-modal-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.admin-modal-body code {
  color: var(--text);
  font-size: 0.82rem;
}

.admin-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-modal-actions .btn-secondary,
.admin-modal-actions .btn-destructive {
  flex: 1;
  margin: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-cancel {
  width: auto;
}

/* ─── Admin Login ─── */
.page-admin-login .container { padding-top: 4rem; }
.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.login-card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; letter-spacing: -0.03em; }
.login-sub { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 1.5rem; }
.login-form { display: flex; flex-direction: column; gap: 0.75rem; }

/* ─── Form Inputs ─── */
.input-field {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  min-height: 48px;
}
.input-field:focus { border-color: #333; }
.input-field::placeholder { color: var(--text-muted); }

/* ─── Utility ─── */
.hidden { display: none !important; }

/* ─── Leaflet overrides ─── */
.leaflet-container {
  background: #050505;
  font-family: inherit;
}

.leaflet-tile {
  filter: brightness(0.92) contrast(1.05) saturate(0.85);
}

.leaflet-control-zoom {
  border: 1px solid #222 !important;
  border-radius: 6px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-control-zoom a {
  background: rgba(10, 10, 10, 0.92) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-bottom: 1px solid #222 !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
  background: #141414 !important;
  color: var(--map-cyan) !important;
}

.leaflet-control-zoom-in { border-radius: 6px 6px 0 0 !important; }
.leaflet-control-zoom-out { border-radius: 0 0 6px 6px !important; border-bottom: none !important; }

.leaflet-popup.echobooth-popup .leaflet-popup-content-wrapper {
  background: rgba(8, 8, 8, 0.96);
  color: #e8e8e8;
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 245, 255, 0.08);
  padding: 0;
}

.leaflet-popup.echobooth-popup .leaflet-popup-tip {
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(0, 245, 255, 0.15);
  box-shadow: none;
}

.leaflet-popup.echobooth-popup .leaflet-popup-content {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.leaflet-popup.echobooth-popup .leaflet-popup-close-button {
  color: #666;
  font-size: 18px;
  padding: 6px 8px 0 0;
}

.leaflet-popup.echobooth-popup .leaflet-popup-close-button:hover {
  color: var(--map-cyan);
}

.map-popup {
  padding: 12px 14px;
}

.map-popup-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.map-popup-meta {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 2px;
}

.map-popup-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: var(--map-cyan) !important;
  text-transform: uppercase;
}

.map-popup-link:hover {
  color: #fff !important;
  text-shadow: 0 0 8px var(--map-cyan-glow);
}

/* Legacy popup fallback */
.leaflet-popup-content-wrapper { background: var(--bg2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; box-shadow: none; }
.leaflet-popup-tip { background: var(--bg2); }
.leaflet-popup-content { margin: 12px 14px; font-size: 0.85rem; line-height: 1.6; }
.leaflet-popup-content a { color: var(--accent); }
