:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #26354d;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.16);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.16);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.16);
  --teal: #14b8a6;
  --teal-bg: rgba(20, 184, 166, 0.16);
  --cyan: #06b6d4;
  --cyan-bg: rgba(6, 182, 212, 0.18);
  --danger: #ef4444;
  --border: #334155;
  --radius: 12px;
  --shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: 470px;
  min-width: 390px;
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.sidebar-header {
  padding: 12px 15px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand h1 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pro-badge {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

.db-live-dot {
  font-size: 0.62rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  padding: 2px 6px;
  border-radius: 999px;
}

.brand p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-lang {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-lang:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

.btn-profile {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-profile:hover {
  background: rgba(245, 158, 11, 0.28);
}

.btn-sos {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sos:hover {
  transform: scale(1.04);
}

/* 🎭 KULLANICI MODLARI BARI */
.persona-modes-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.mode-pill {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 7px;
  padding: 6px 4px;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
  text-align: center;
}

.mode-pill.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.mode-pill:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Hızlı Aksiyon Butonları */
.action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-locate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-add-wc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}

/* Arama Kutusu */
.search-box {
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px 3px 3px 10px;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent);
}

.search-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

#cityInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 6px 8px;
  font-size: 0.82rem;
  outline: none;
}

.btn-search {
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.suggestions-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: none;
  max-height: 210px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow);
}

.suggestions-list li {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.suggestions-list li:hover {
  background-color: var(--bg-card-hover);
}

/* Kategori Sekmeleri */
.category-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.cat-tab.active,
.cat-tab:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Kontroller & Filtreler */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.select-group {
  display: flex;
  gap: 5px;
}

.select-group select {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.73rem;
  outline: none;
  cursor: pointer;
}

.filter-chips {
  display: flex;
  gap: 4px;
}

.chip {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.71rem;
  font-weight: 500;
  cursor: pointer;
}

.chip.active {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: var(--emerald);
}

/* Durum Çubuğu & Popüler Şehirler */
.status-bar {
  padding: 7px 15px;
  background-color: rgba(30, 41, 59, 0.75);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.badge {
  background-color: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.quick-cities-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 15px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  font-size: 0.71rem;
  color: var(--text-secondary);
  scrollbar-width: none;
}

.quick-city {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  white-space: nowrap;
  cursor: pointer;
}

/* Sonuç Listesi */
.results-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toilet-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toilet-card:hover,
.toilet-card.active {
  border-color: var(--accent);
  background-color: var(--bg-card-hover);
}

.toilet-card.sos-highlight {
  border: 2px solid #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.28);
}

.toilet-card.closed-warning {
  opacity: 0.65;
  border-color: rgba(239, 68, 68, 0.5);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-right-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.distance-pill {
  background-color: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-fav {
  background: transparent;
  border: none;
  font-size: 0.92rem;
  cursor: pointer;
}

.address-line {
  font-size: 0.73rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.walk-time {
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
}

/* Kapı Şifresi & Canlı Doğrulama Kutusu */
.door-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.14);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.75rem;
  color: #fcd34d;
  gap: 6px;
  flex-wrap: wrap;
}

.door-code-box strong {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-code,
.btn-verify-mini {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

/* 🎟️ Sponsorlu Esnaf / Kafe Kupon Kutusu (Gelir Modeli) */
.coupon-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.73rem;
  color: #e9d5ff;
  gap: 6px;
}

.btn-copy-coupon {
  background: #9333ea;
  border: none;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Waze Canlı Durum Doğrulama Satırı */
.waze-verify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 4px;
  font-size: 0.7rem;
}

.verify-btns {
  display: flex;
  gap: 5px;
}

.btn-waze {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.69rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-waze.open:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border-color: var(--emerald);
}

.btn-waze.closed:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border-color: var(--danger);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  font-size: 0.69rem;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 600;
  background-color: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
}

.tag.free { background-color: var(--emerald-bg); color: #34d399; }
.tag.paid { background-color: var(--amber-bg); color: #fbbf24; }
.tag.mosque { background-color: var(--teal-bg); color: #2dd4bf; }
.tag.mall { background-color: var(--purple-bg); color: #c084fc; }
.tag.fuel { background-color: var(--cyan-bg); color: #22d3ee; }
.tag.rating { background-color: rgba(250, 204, 21, 0.16); color: #fde047; }

.user-note-preview {
  font-size: 0.73rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 8px;
  border-radius: 6px;
  border-left: 2px solid var(--accent);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 6px;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.btn-card-action:hover {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.btn-directions {
  color: #34d399;
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Harita Alanı */
.map-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

/* 🧭 Uygulama İçi Canlı Sokak Navigasyon Paneli */
.nav-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 550;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--emerald);
  border-radius: 14px;
  padding: 12px 16px;
  width: 340px;
  box-shadow: var(--shadow);
}

.nav-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.nav-badge {
  font-size: 0.64rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.04em;
}

.nav-panel-top h4 {
  font-size: 0.9rem;
  margin-top: 2px;
}

.nav-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
}

.nav-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-metric {
  display: flex;
  flex-direction: column;
}

.nav-label {
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.nav-metric strong {
  font-size: 0.92rem;
  color: #34d399;
}

.btn-external-maps {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Harita Lejantı */
.map-legend {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 450;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.71rem;
  color: #cbd5e1;
  box-shadow: var(--shadow);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.fuel { background: #0891b2; }
.dot.cafe { background: #d97706; }
.dot.free { background: #059669; }
.dot.paid { background: #2563eb; }
.dot.mosque { background: #0d9488; }
.dot.mall { background: #9333ea; }

/* Özel Harita İkonları */
.custom-wc-marker {
  background: #2563eb;
  border: 2px solid #ffffff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.custom-wc-marker.free-wc { background: #059669; }
.custom-wc-marker.mosque-wc { background: #0d9488; }
.custom-wc-marker.mall-wc { background: #9333ea; }
.custom-wc-marker.cafe-wc { background: #d97706; }
.custom-wc-marker.fuel-wc { background: #0891b2; }

.user-location-marker {
  background: #ef4444;
  border: 3px solid #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.3);
}

/* Haritadan Konum Seçme Banner & Bu Alanı Tara */
.pick-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  background: #f59e0b;
  color: #0f172a;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.pick-banner button {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-scan-area {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--accent);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.loading-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  background-color: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  box-shadow: var(--shadow);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(59, 130, 246, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* Modal Tasarımı */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 550px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 0.96rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input[type='text'],
.form-group select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
}

.coord-picker-group {
  display: flex;
  gap: 6px;
}

.coord-picker-group input {
  flex: 1;
  min-width: 0;
}

.btn-pick-map {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid var(--accent);
  color: #60a5fa;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.checkbox-grid.compact {
  grid-template-columns: 1fr;
  gap: 4px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-primary) !important;
  cursor: pointer;
}

/* Telefonda Aç QR Kutusu */
.phone-qr-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 12px;
}

.qr-img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.phone-qr-info h4 {
  font-size: 0.86rem;
  color: #34d399;
  margin-bottom: 4px;
}

.phone-qr-info p {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.lan-url-pill {
  display: inline-block;
  margin-top: 5px;
  background: #0f172a;
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid #334155;
}

/* Profil & Rozet Modal */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
}

.level-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.badge-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0.45;
}

.badge-card.unlocked {
  opacity: 1;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.1);
}

.badge-icon {
  font-size: 1.35rem;
}

.badge-info h5 {
  font-size: 0.76rem;
  color: var(--text-primary);
}

.badge-info p {
  font-size: 0.67rem;
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: #10b981;
  color: #06281e;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.leaflet-popup-content-wrapper {
  background-color: #1e293b;
  color: #f8fafc;
  border-radius: 12px;
  border: 1px solid #334155;
}

.leaflet-popup-tip {
  background-color: #1e293b;
}

.popup-body h4 {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.popup-body p {
  font-size: 0.76rem;
  color: #cbd5e1;
  margin: 3px 0;
}

.popup-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px;
  background-color: #3b82f6;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.empty-state {
  text-align: center;
  padding: 30px 14px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .app-container {
    flex-direction: column-reverse;
  }
  .sidebar {
    width: 100%;
    height: 56vh;
    min-width: unset;
  }
  .map-wrapper {
    height: 44vh;
  }
  .form-row-split {
    grid-template-columns: 1fr;
  }
  .nav-panel {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
  }
}
