:root {
  color-scheme: light;
  --ink: #101812;
  --muted: #667166;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(16, 24, 18, 0.12);
  --shadow: 0 24px 80px rgba(16, 24, 18, 0.18);
  --green: #22b96f;
  --red: #ef4444;
  --yellow: #f3c500;
  --orange: #f59e0b;
  --grey: #9aa1a8;
  --blue: #28a8ff;
  --dark: #101812;
}

* {
  box-sizing: border-box;
}

html,
body,
.app-shell,
.map-wrap,
#map {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  max-width: 100%;
  background: #dfe8dd;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

.map-wrap {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 107, 84, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(20, 107, 84, 0.08) 1px, transparent 1px),
    #eef1e9;
  background-size: 48px 48px;
}

#map canvas {
  z-index: 430;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.brand,
.topbar-actions {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(16, 24, 18, 0.14);
  backdrop-filter: blur(16px);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, #ffffff 0 16%, transparent 17%),
    linear-gradient(145deg, #ef4444, #f59e0b 54%, #22b96f);
  box-shadow: inset 0 -8px 16px rgba(16, 24, 18, 0.2);
}

.brand h1,
.panel-head h2,
.legend-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  font-size: 22px;
  line-height: 1.05;
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.control-panel {
  position: fixed;
  top: 100px;
  left: 18px;
  bottom: 18px;
  z-index: 620;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 36px));
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.stats div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 248, 242, 0.86);
}

.stats strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.controls {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

@media (max-height: 760px) {
  .panel-head {
    padding: 13px 16px;
  }

  .stats {
    padding: 9px 16px;
  }

  .stats div {
    padding: 8px 10px;
  }

  .controls {
    gap: 10px;
    padding: 11px 16px;
  }

  .field input,
  .field select {
    min-height: 39px;
  }

  .spot-list {
    padding: 9px;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: rgba(34, 185, 111, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 185, 111, 0.16);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #29332c;
  font-size: 13px;
  font-weight: 800;
}

.segmented input:checked + span {
  border-color: rgba(34, 185, 111, 0.72);
  background: #e8f8ef;
  color: #0a6c3c;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.primary-button,
.secondary-button,
.glass-button,
.icon-button,
.account-button {
  border-radius: 8px;
  font-weight: 900;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 0 12px;
}

.primary-button {
  border: 1px solid #0f6f43;
  background: #0f6f43;
  color: #fff;
}

.secondary-button,
.glass-button,
.icon-button,
.account-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.account-button {
  min-height: 42px;
  max-width: 190px;
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(16, 24, 18, 0.12);
  backdrop-filter: blur(14px);
}

.account-button.premium {
  border-color: rgba(15, 111, 67, 0.42);
  background: #e9f8ef;
  color: #0f6f43;
}

.glass-button {
  min-height: 42px;
  padding: 0 14px;
  box-shadow: 0 12px 32px rgba(16, 24, 18, 0.12);
  backdrop-filter: blur(14px);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-size: 22px;
}

.locate-triangle {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 15px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
  filter: drop-shadow(0 0 7px rgba(200, 255, 61, 0.34));
}

.spot-list-wrap {
  min-height: 0;
  overflow: auto;
}

.spot-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.spot-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.spot-item:hover {
  border-color: rgba(34, 185, 111, 0.72);
  box-shadow: 0 12px 26px rgba(16, 24, 18, 0.1);
}

.spot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
}

.spot-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip {
  padding: 3px 7px;
  border-radius: 6px;
  background: #edf3ed;
  color: #344039;
  font-size: 11px;
  font-weight: 900;
}

.maps-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #edf3ed;
  color: #344039;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.legend-card {
  position: fixed;
  top: 100px;
  right: 18px;
  z-index: 630;
  width: 205px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px;
}

.legend-header h2 {
  font-size: 14px;
}

.legend-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
  line-height: 1;
}

.legend-card.collapsed .legend-items {
  display: none;
}

.legend-card.collapsed {
  width: 128px;
}

.legend-card.collapsed .legend-toggle {
  transform: rotate(180deg);
}

.legend-items {
  display: grid;
  gap: 9px;
  padding: 4px 14px 16px;
  color: #172033;
  font-size: 12px;
  font-weight: 650;
}

.legend-items div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}

.pin {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 10px rgba(16, 24, 18, 0.16);
}

.pin::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.pin-red { background: var(--red); }
.pin-yellow { background: var(--yellow); }
.pin-green { background: var(--green); }
.pin-orange { background: var(--orange); }
.pin-grey { background: var(--grey); }

.badge-new::before,
.badge-private::before {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  min-width: 15px;
  height: 15px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(45deg);
}

.badge-new::before {
  content: "NEW";
  width: 22px;
  background: var(--blue);
}

.badge-private::before {
  content: "●";
  background: #ba1f2b;
}

.offline-notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 650;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 28px));
  padding: 10px 14px;
  border: 1px solid #d0b46e;
  border-radius: 8px;
  background: #fff8dd;
  color: #604600;
  font-weight: 800;
  text-align: center;
}

.public-site {
  position: fixed;
  inset: 0;
  z-index: 820;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(5, 7, 7, 0.92), rgba(5, 7, 7, 0.66) 48%, rgba(5, 7, 7, 0.28)),
    linear-gradient(to bottom, rgba(5, 7, 7, 0.34), rgba(5, 7, 7, 0.72));
  color: var(--ink);
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  pointer-events: none;
}

.public-brand,
.public-nav-actions,
.public-account {
  pointer-events: auto;
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  padding: 6px;
  border: 1px solid rgba(214, 255, 170, 0.14);
  border-radius: 8px;
  background: rgba(13, 15, 15, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.public-account {
  justify-self: end;
  transform: translateY(6px);
}

.public-nav-link,
.public-nav-cta {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d9e3d7;
  font-size: 13px;
  font-weight: 900;
}

.public-nav-link.active,
.public-nav-link:hover {
  border-color: rgba(184, 220, 105, 0.34);
  background: rgba(184, 220, 105, 0.12);
  color: var(--uranium);
}

.public-nav-cta {
  border-color: rgba(184, 220, 105, 0.34);
  background: rgba(184, 220, 105, 0.12);
  color: var(--uranium);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.public-page {
  flex: 1;
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 62px 0 72px;
}

.home-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 42px;
}

.home-copy {
  min-width: 0;
  max-width: 720px;
}

.shop-copy {
  min-width: 0;
}

.home-copy h2,
.shop-copy h2 {
  margin: 0;
  color: #fbfff5;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-copy p,
.shop-copy p,
.shop-card p,
.shop-card li {
  color: #c3cdc2;
  line-height: 1.58;
}

.home-copy > p:not(.eyebrow),
.shop-copy p {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 17px;
  text-wrap: pretty;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.public-actions #openMapBtn {
  min-width: 220px;
  min-height: 48px;
  padding: 0 30px;
  font-size: 16px;
}

.public-actions .primary-button,
.public-actions .secondary-button,
.shop-card .primary-button,
.shop-card .secondary-button {
  min-width: 160px;
}

.home-panel,
.shop-card {
  border: 1px solid rgba(214, 255, 170, 0.16);
  border-radius: 8px;
  background: rgba(13, 15, 15, 0.82);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.home-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.home-panel div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(22, 27, 24, 0.72);
}

.home-panel strong,
.shop-card h3 {
  color: #fbfff5;
  font-size: 18px;
}

.home-panel span {
  color: var(--muted);
  line-height: 1.45;
}

.shop-page {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 34px;
}

.shop-copy {
  max-width: 780px;
  text-align: center;
}

.shop-offer {
  display: grid;
  width: min(500px, 100%);
  margin: 0 auto;
}

.premium-bubble {
  border: 1px solid rgba(214, 255, 170, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 22%, rgba(185, 244, 56, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(14, 18, 15, 0.92), rgba(5, 8, 7, 0.86));
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.premium-bubble {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: auto;
  padding: 24px;
}

.premium-bubble-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.premium-kicker {
  width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(190, 255, 47, 0.32);
  border-radius: 999px;
  background: rgba(190, 255, 47, 0.1);
  color: var(--uranium);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-price {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.premium-price strong {
  color: #faffed;
  font-size: 46px;
  line-height: 0.9;
}

.premium-price span,
.premium-note {
  color: #9ca79b;
  font-size: 12px;
}

.premium-bubble h3 {
  max-width: 360px;
  margin: 4px 0 0;
  color: #fbfff5;
  font-size: clamp(28px, 2.7vw, 36px);
  line-height: 1.04;
  letter-spacing: 0;
}

.premium-bubble p {
  margin: 0;
  color: #cbd6c9;
  line-height: 1.52;
}

.premium-bubble ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-bubble li {
  position: relative;
  padding-left: 26px;
  color: #dfe9dc;
  line-height: 1.45;
}

.premium-bubble li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--uranium);
  box-shadow: 0 0 18px rgba(190, 255, 47, 0.58);
}

.premium-buy-button {
  min-height: 50px;
  margin-top: 6px;
  border: 1px solid rgba(218, 255, 122, 0.78);
  border-radius: 8px;
  background: linear-gradient(135deg, #cfff38, #8bdc51);
  color: #071006;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(153, 233, 65, 0.22);
}

.premium-buy-button:hover {
  filter: brightness(1.05);
}

.premium-note {
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 18px;
}

.shop-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.shop-card.subdued {
  background: rgba(13, 15, 15, 0.68);
}

.shop-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-card h3 {
  margin: 0;
}

.shop-card p {
  margin: 0;
}

.shop-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 18, 0.22);
  backdrop-filter: blur(6px);
}

.auth-overlay[hidden] {
  display: none;
}

.auth-card {
  width: min(430px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(16, 24, 18, 0.24);
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.auth-head h2 {
  margin: 0;
  font-size: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 18px 0;
}

.auth-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
  color: var(--ink);
  font-weight: 900;
}

.auth-tabs button.active {
  border-color: rgba(15, 111, 67, 0.5);
  background: #e9f8ef;
  color: #0f6f43;
}

.auth-form {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.account-summary {
  display: grid;
  gap: 3px;
  margin: 16px 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
}

.account-summary strong {
  font-size: 16px;
}

.account-summary span,
.auth-message {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.auth-message {
  min-height: 20px;
  padding: 0 18px 18px;
  font-weight: 800;
}

.auth-message.error {
  color: #b42318;
}

.auth-message.success {
  color: #0f6f43;
}

#logoutBtn {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
}

.leaflet-control-zoom {
  position: fixed !important;
  bottom: 18px !important;
  left: 18px !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: var(--shadow);
}

.leaflet-control-zoom a {
  border: 1px solid var(--line) !important;
}

.leaflet-popup-content {
  margin: 14px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  box-shadow: 0 18px 42px rgba(16, 24, 18, 0.22);
}

.popup-title {
  margin: 0 0 7px;
  font-size: 17px;
}

.popup-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.popup-actions a,
.popup-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf6;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.mobile-only {
  display: none;
}

body.auth-required .topbar,
body.auth-required .control-panel,
body.auth-required .legend-card,
body.auth-required #locateBtn,
body.auth-required #satelliteBtn,
body.auth-required .leaflet-control-zoom,
body.auth-required .leaflet-control-attribution {
  display: none !important;
}

body.auth-required #map {
  filter: blur(3px) brightness(0.42);
}

body.auth-required #authClose {
  display: none;
}

body.public-mode #authClose {
  display: grid;
}

body.public-mode .topbar,
body.public-mode .control-panel,
body.public-mode .legend-card,
body.public-mode #locateBtn,
body.public-mode #satelliteBtn,
body.public-mode .leaflet-control-zoom {
  display: none !important;
}

body.public-mode #map {
  filter: saturate(0.86) contrast(1.06) brightness(0.74);
}

@media (max-width: 980px) {
  .public-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .public-nav-actions {
    grid-column: 1 / -1;
    justify-content: center;
    justify-self: center;
    width: max-content;
    max-width: 100%;
  }

  .public-account {
    justify-self: end;
    transform: translateY(5px);
  }

  .public-page {
    padding-top: 42px;
  }

  .home-page,
  .shop-grid,
  .shop-offer {
    grid-template-columns: 1fr;
  }

  .home-copy h2,
  .shop-copy h2 {
    font-size: clamp(38px, 10vw, 64px);
  }

  .brand p {
    display: none;
  }

  .mobile-only {
    display: grid;
  }

  .topbar {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 8px;
  }

  .control-panel {
    top: auto;
    right: 10px;
    bottom: 72px;
    left: 66px;
    width: auto;
    max-height: min(68vh, calc(100vh - 178px));
    pointer-events: none;
    transform: translateY(calc(100% + 96px));
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .control-panel.open {
    pointer-events: auto;
    transform: translateY(0);
  }

  .legend-card {
    top: 82px;
    right: auto;
    left: 12px;
    width: 188px;
  }

  .leaflet-control-zoom {
    bottom: 14px !important;
    left: 12px !important;
    margin: 0 !important;
  }
}

@media (max-width: 560px) {
  .public-site {
    background:
      linear-gradient(to bottom, rgba(5, 7, 7, 0.9), rgba(5, 7, 7, 0.66)),
      linear-gradient(90deg, rgba(5, 7, 7, 0.82), rgba(5, 7, 7, 0.42));
  }

  .public-nav {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px 14px 8px;
  }

  .public-brand {
    grid-column: 1;
    grid-row: 1;
    width: max-content;
    max-width: 100%;
  }

  .public-account {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    transform: translateY(3px);
  }

  .public-nav-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    justify-content: center;
    padding: 5px;
  }

  .public-nav-link,
  .public-nav-cta {
    padding: 0 12px;
    font-size: 12px;
  }

  .public-nav-link {
    flex: 1 1 0;
  }

  .public-nav-cta {
    min-height: 34px;
  }

  .public-page {
    width: min(1120px, calc(100vw - 36px));
    padding: 38px 0 46px;
  }

  .home-page {
    gap: 26px;
  }

  .home-copy h2,
  .shop-copy h2 {
    max-width: 100%;
    font-size: clamp(32px, 8.4vw, 40px);
    line-height: 1.05;
    text-wrap: auto;
  }

  .home-copy > p:not(.eyebrow),
  .shop-copy p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
  }

  .public-actions {
    display: grid;
    gap: 12px;
    margin-top: 26px;
  }

  .public-actions #openMapBtn {
    width: 100%;
    min-height: 54px;
  }

  .shop-page {
    gap: 24px;
  }

  .shop-offer {
    width: 100%;
  }

  .premium-bubble {
    gap: 13px;
    min-height: auto;
    padding: 22px;
  }

  .premium-bubble-head {
    align-items: center;
  }

  .premium-price strong {
    font-size: 38px;
  }

  .premium-bubble h3 {
    font-size: 26px;
  }

  .shop-card {
    gap: 18px;
    padding: 20px;
  }

  .brand {
    max-width: calc(100vw - 188px);
    padding: 10px 12px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .topbar-actions {
    position: fixed;
    top: 12px;
    right: 12px;
    left: auto;
    gap: 6px;
    width: auto;
  }

  .account-button {
    max-width: min(132px, calc(100vw - 184px));
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .glass-button {
    min-height: 40px;
    padding: 0 10px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .legend-card {
    top: 152px;
    right: auto;
    left: 8px;
    width: 144px;
  }

  .legend-items {
    gap: 8px;
    padding: 4px 10px 12px;
    font-size: 10px;
  }

  .legend-header {
    padding: 11px 10px 5px;
  }

  .legend-items div {
    gap: 8px;
  }

  .stats,
  .segmented {
    grid-template-columns: 1fr 1fr;
  }
}

/* UrBex visual system: dark map shell, adapted from the provided archive. */
:root {
  color-scheme: dark;
  --bg: #070808;
  --panel: rgba(13, 15, 15, 0.9);
  --panel-strong: #101313;
  --panel-soft: rgba(20, 23, 22, 0.84);
  --ink: #f2f5ee;
  --muted: #a0aaa1;
  --quiet: #6f7a72;
  --line: rgba(214, 255, 170, 0.14);
  --line-strong: rgba(174, 216, 105, 0.3);
  --uranium: #b8dc69;
  --uranium-2: #5fcf84;
  --teal: #55d9b3;
  --amber: #ffc75a;
  --red: #ff5967;
  --yellow: #e5ff6b;
  --orange: #ffc75a;
  --green: #55d9b3;
  --grey: #77817a;
  --blue: #60ddff;
  --classic-blue: #1677ff;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.56);
}

body {
  background: var(--bg);
  color: var(--ink);
}

.map-wrap {
  background: #090b0b;
}

.map-wrap::before,
.map-wrap::after {
  position: absolute;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  content: "";
}

.map-wrap::before {
  background:
    radial-gradient(circle at 64% 42%, rgba(200, 255, 61, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(200, 255, 61, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(200, 255, 61, 0.024) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.map-wrap::after {
  background:
    linear-gradient(90deg, rgba(7, 8, 8, 0.72), transparent 22%, transparent 76%, rgba(7, 8, 8, 0.5)),
    linear-gradient(to bottom, rgba(7, 8, 8, 0.24), transparent 18%, transparent 78%, rgba(7, 8, 8, 0.46)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 4px);
  opacity: 0.78;
}

#map {
  background:
    linear-gradient(90deg, rgba(200, 255, 61, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(200, 255, 61, 0.02) 1px, transparent 1px),
    #101312;
  background-size: 64px 64px;
}

body:not(.classic-map):not(.satellite-map) .leaflet-tile-pane {
  filter: grayscale(1) saturate(0.48) contrast(1.08) brightness(0.58);
}

body.classic-map .leaflet-tile-pane {
  filter: none;
}

body.satellite-map .leaflet-tile-pane {
  filter: saturate(1.05) contrast(1.04) brightness(0.92);
}

body.classic-map .map-wrap::before,
body.classic-map .map-wrap::after,
body.satellite-map .map-wrap::before,
body.satellite-map .map-wrap::after {
  opacity: 0;
}

.brand {
  padding: 10px 14px;
  border: 1px solid rgba(214, 255, 170, 0.2);
  background:
    linear-gradient(135deg, rgba(200, 255, 61, 0.11), transparent 48%),
    rgba(11, 13, 13, 0.88);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background:
    url("./assets/urbex-logo-v4-192.png") center / 100% 100% no-repeat,
    #020403;
  box-shadow: 0 0 18px rgba(200, 255, 61, 0.16);
}

.brand-mark::before,
.brand-mark::after {
  display: none;
}

.brand h1,
.panel-head h2,
.legend-header h2,
.auth-head h2 {
  color: #fbfff5;
}

.brand h1 {
  font-size: 24px;
  font-weight: 950;
}

.brand p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.control-panel,
.legend-card,
.auth-card {
  border: 1px solid rgba(214, 255, 170, 0.18);
  background:
    linear-gradient(180deg, rgba(200, 255, 61, 0.08), rgba(200, 255, 61, 0) 170px),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.control-panel {
  top: 96px;
  width: min(370px, calc(100vw - 36px));
  bottom: 98px;
}

.control-panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(var(--uranium), rgba(129, 244, 75, 0.12));
  content: "";
}

.panel-head,
.stats,
.controls,
.auth-head {
  border-color: var(--line);
}

.eyebrow,
.stats strong,
.legend-toggle {
  color: var(--uranium);
}

.stats div,
.spot-item,
.account-summary,
.auth-tabs button {
  border: 1px solid rgba(214, 255, 170, 0.11);
  background: rgba(19, 22, 21, 0.76);
  color: var(--ink);
}

.stats span,
.spot-meta,
.account-summary span,
.auth-message,
.field span {
  color: var(--muted);
}

.field input,
.field select {
  border: 1px solid rgba(214, 255, 170, 0.12);
  background: rgba(6, 8, 8, 0.76);
  color: var(--ink);
}

.field input::placeholder {
  color: #747d76;
}

.field input:focus,
.field select:focus {
  border-color: rgba(200, 255, 61, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.08);
}

.segmented span {
  border: 1px solid rgba(214, 255, 170, 0.11);
  background: rgba(19, 22, 21, 0.72);
  color: #dce4d9;
  font-size: 12px;
  font-weight: 850;
}

.segmented input:checked + span,
.auth-tabs button.active,
.account-button.premium {
  border-color: rgba(200, 255, 61, 0.62);
  background: rgba(200, 255, 61, 0.12);
  color: var(--uranium);
}

.primary-button {
  border: 1px solid rgba(184, 220, 105, 0.62);
  background: linear-gradient(180deg, #c9e679, #79cb62);
  color: #0c110b;
  box-shadow: 0 10px 28px rgba(110, 206, 100, 0.13);
}

.secondary-button,
.glass-button,
.icon-button,
.account-button {
  border: 1px solid rgba(214, 255, 170, 0.16);
  background: rgba(13, 15, 15, 0.8);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.glass-button:hover,
.icon-button:hover,
.account-button:hover,
.spot-item:hover {
  border-color: rgba(200, 255, 61, 0.62);
}

.spot-list-wrap {
  scrollbar-color: rgba(200, 255, 61, 0.4) rgba(13, 15, 15, 0.9);
}

.spot-item {
  background: rgba(16, 19, 18, 0.78);
  color: var(--ink);
}

.spot-item:hover {
  background: rgba(22, 27, 24, 0.92);
  transform: translateY(-1px);
}

.spot-title,
.account-summary strong {
  color: #fbfff5;
}

.spot-title > span:first-child {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(214, 255, 170, 0.13);
  background: rgba(200, 255, 61, 0.08);
  color: #d9ff7a;
  font-size: 10px;
}

.maps-chip {
  border: 1px solid rgba(214, 255, 170, 0.2);
  background: rgba(200, 255, 61, 0.12);
  color: var(--uranium);
  font-size: 10px;
}

.maps-chip:hover {
  border-color: rgba(200, 255, 61, 0.62);
}

.city-chip {
  display: inline-flex;
  align-items: center;
  max-width: 120px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(214, 255, 170, 0.16);
  border-radius: 7px;
  color: #dce4d9;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-chip.active {
  border-color: rgba(95, 207, 132, 0.82);
  background: rgba(95, 207, 132, 0.12);
  color: var(--uranium-2);
  box-shadow: inset 0 0 0 1px rgba(95, 207, 132, 0.16), 0 0 12px rgba(95, 207, 132, 0.1);
}

.legend-card {
  top: 96px;
  width: 198px;
}

.legend-toggle {
  border: 1px solid rgba(214, 255, 170, 0.14);
  border-radius: 6px;
  background: rgba(13, 15, 15, 0.72);
  font-size: 18px;
}

.legend-card.collapsed {
  width: 45px;
}

.legend-card.collapsed .legend-header {
  justify-content: center;
  padding: 8px;
}

.legend-card.collapsed .legend-header h2 {
  display: none;
}

.legend-items {
  color: #e2e8df;
  font-size: 11px;
  font-weight: 750;
}

.pin {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(7, 8, 8, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.42);
}

.pin::after {
  top: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  background: #080a08;
}

.pin-red { background: var(--uranium-2); }
.pin-yellow { background: var(--yellow); }
.pin-green { background: var(--teal); }
.pin-orange { background: var(--amber); }
.pin-grey { background: var(--grey); }
.pin-blue { background: var(--classic-blue); }

body.classic-map .pin-red,
body.classic-map .pin-green,
body.classic-map .pin-orange,
body.classic-map .pin-grey {
  background: var(--classic-blue);
}

body.classic-map .pin-yellow {
  background: var(--yellow);
}

.badge-new::before,
.badge-private::before {
  border-color: #080a08;
  color: #071006;
}

.badge-new::before {
  background: var(--blue);
}

.badge-private::before {
  content: "P";
  background: var(--red);
}

.offline-notice {
  right: 18px;
  bottom: 18px;
  left: auto;
  transform: none;
  width: auto;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(214, 255, 170, 0.16);
  background: rgba(12, 14, 14, 0.88);
  color: #dce7d8;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

.auth-overlay {
  background: rgba(4, 6, 6, 0.62);
  backdrop-filter: blur(8px);
}

.auth-card {
  max-width: min(430px, calc(100vw - 24px));
}

.auth-message.error {
  color: #ff8b92;
}

.auth-message.success {
  color: var(--uranium);
}

.leaflet-control-zoom {
  position: fixed !important;
  bottom: 18px !important;
  left: 18px !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: var(--shadow);
}

.leaflet-control-zoom a {
  border: 1px solid rgba(214, 255, 170, 0.16) !important;
  background: rgba(10, 12, 12, 0.9) !important;
  color: var(--uranium) !important;
}

.leaflet-control-attribution {
  border: 1px solid rgba(214, 255, 170, 0.11);
  border-radius: 6px 0 0 0;
  background: rgba(7, 8, 8, 0.78) !important;
  color: #a4ada4;
}

.leaflet-control-attribution a {
  color: #d4ff6c;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border: 1px solid rgba(214, 255, 170, 0.18);
  background: #111413;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
}

.popup-title {
  color: #fbfff5;
}

.popup-actions a,
.popup-actions button {
  border: 1px solid rgba(214, 255, 170, 0.16);
  background: rgba(7, 8, 8, 0.72);
  color: var(--uranium);
}

.popup-actions .favorite-star {
  width: 34px;
  justify-content: center;
  padding: 0;
  color: #7f887f;
  font-size: 18px;
  line-height: 1;
}

.popup-actions .favorite-star.active {
  border-color: rgba(229, 255, 107, 0.74);
  background: rgba(229, 255, 107, 0.14);
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(229, 255, 107, 0.32);
}

.cluster-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(8, 10, 8, 0.78);
  border-radius: 50%;
  background: var(--uranium-2);
  color: #071006;
  font-size: 11px;
  font-weight: 950;
  box-shadow:
    0 0 0 5px rgba(95, 207, 132, 0.18),
    0 9px 18px rgba(0, 0, 0, 0.3);
}

.cluster-marker.dense {
  width: 38px;
  height: 38px;
  font-size: 11px;
  box-shadow:
    0 0 0 6px rgba(95, 207, 132, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.32);
}

.cluster-marker.premium {
  background: var(--yellow);
  box-shadow:
    0 0 0 5px rgba(229, 255, 107, 0.18),
    0 9px 18px rgba(0, 0, 0, 0.3);
}

.cluster-marker.classic {
  background: var(--classic-blue);
  color: #fff;
  box-shadow:
    0 0 0 5px rgba(22, 119, 255, 0.16),
    0 9px 18px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
  .control-panel {
    top: auto;
    right: 10px;
    bottom: 72px;
    left: 66px;
    width: auto;
    max-height: min(68vh, calc(100vh - 178px));
  }

  .legend-card {
    top: 82px;
    right: auto;
    left: 12px;
    width: 180px;
  }

  .leaflet-control-zoom {
    bottom: 14px !important;
    left: 12px !important;
    margin: 0 !important;
  }
}

@media (max-width: 560px) {
  .brand {
    max-width: calc(100vw - 180px);
    padding: 9px 11px;
  }

  .brand h1 {
    font-size: 20px;
  }

  .topbar-actions {
    top: 12px;
    right: 12px;
    left: auto;
    width: auto;
  }

  .account-button {
    max-width: min(132px, calc(100vw - 184px));
    min-height: 39px;
    padding: 0 9px;
    font-size: 11px;
  }

  .glass-button {
    width: 74px;
    min-height: 39px;
    padding: 0 10px;
  }

  .icon-button {
    width: 39px;
    height: 39px;
    font-size: 10px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .legend-card {
    top: 74px;
    right: auto;
    left: 12px;
    width: 176px;
  }

  .legend-card.collapsed {
    width: 45px;
  }

  .legend-items {
    gap: 7px;
    padding: 3px 10px 11px;
    font-size: 10px;
  }

  .legend-header {
    padding: 10px 10px 5px;
  }

  .auth-overlay {
    padding: 16px;
    place-items: center start;
  }

  .auth-card {
    width: min(340px, calc(100vw - 32px));
    max-width: min(340px, calc(100vw - 32px));
    max-height: calc(100vh - 20px);
  }

  .offline-notice {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
    padding: 8px 10px;
    font-size: 11px;
  }
}

.locate-button {
  position: fixed;
  right: 18px;
  bottom: 58px;
  z-index: 660;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--uranium);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(200, 255, 61, 0.05);
}

.locate-button:hover {
  color: #f0ffb2;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48), 0 0 24px rgba(200, 255, 61, 0.18);
}

.satellite-button {
  position: fixed;
  left: 68px;
  bottom: 18px;
  z-index: 660;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(214, 255, 170, 0.16);
  border-radius: 8px;
  background: rgba(13, 15, 15, 0.82);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(200, 255, 61, 0.05);
  backdrop-filter: blur(14px);
}

.satellite-button span:first-child {
  font-size: 17px;
  line-height: 1;
}

.satellite-button.active,
.satellite-button:hover {
  border-color: rgba(200, 255, 61, 0.62);
  color: var(--uranium);
}

.filter-button {
  width: 42px;
  min-width: 42px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  color: var(--uranium);
}

.filter-sliders {
  display: grid;
  width: 24px;
  gap: 6px;
}

.filter-sliders span {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 9px rgba(200, 255, 61, 0.16);
}

.filter-sliders span::after {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--panel-strong);
  box-shadow: 0 0 0 1px rgba(7, 8, 8, 0.95), 0 0 10px rgba(200, 255, 61, 0.18);
  content: "";
  transform: translateY(-50%);
}

.filter-sliders span:nth-child(1)::after {
  right: 1px;
}

.filter-sliders span:nth-child(2)::after {
  left: 9px;
}

.filter-sliders span:nth-child(3)::after {
  left: 1px;
}

@media (max-width: 560px) {
  .control-panel {
    right: 8px;
    bottom: 60px;
    left: 62px;
    max-height: min(64vh, calc(100vh - 184px));
    transform: translateY(calc(100% + 78px));
  }

  .control-panel.open {
    transform: translateY(0);
  }

  .filter-button {
    width: 38px;
    min-width: 38px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }

  .locate-button {
    top: 184px;
    right: auto;
    bottom: auto;
    left: 12px;
    width: 38px;
    height: 38px;
  }

  .satellite-button {
    left: 58px;
    bottom: 14px;
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .filter-button.mobile-only {
    position: fixed;
    top: var(--map-buttons-top, 222px);
    left: 12px;
    z-index: 665;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(200, 255, 61, 0.05);
  }

  .locate-button {
    top: calc(var(--map-buttons-top, 222px) + 44px);
    right: auto;
    bottom: auto;
    left: 12px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 560px) {
  .filter-button.mobile-only {
    top: var(--map-buttons-top, 214px);
    left: 12px;
  }

  .locate-button {
    top: calc(var(--map-buttons-top, 214px) + 42px);
    width: 38px;
    height: 38px;
  }
}

/* Polished product layer */
:root {
  --premium: #bfff2e;
  --premium-soft: rgba(191, 255, 46, 0.15);
  --premium-line: rgba(191, 255, 46, 0.28);
  --cyan-soft: rgba(54, 216, 201, 0.14);
  --surface-deep: rgba(5, 8, 7, 0.9);
  --surface-glass: rgba(10, 15, 13, 0.76);
}

.public-site {
  background:
    radial-gradient(circle at 18% 18%, rgba(191, 255, 46, 0.16), transparent 28%),
    radial-gradient(circle at 82% 32%, rgba(54, 216, 201, 0.11), transparent 30%),
    linear-gradient(90deg, rgba(3, 5, 5, 0.96), rgba(3, 6, 5, 0.78) 46%, rgba(3, 5, 5, 0.58)),
    linear-gradient(to bottom, rgba(3, 5, 5, 0.2), rgba(3, 5, 5, 0.78));
}

.public-nav {
  padding: 20px 24px;
}

.public-brand,
.public-nav-actions,
.public-nav-cta {
  border-color: rgba(230, 255, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(191, 255, 46, 0.1), transparent 46%),
    rgba(5, 8, 7, 0.74);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

.public-brand {
  min-width: 250px;
}

.public-nav-actions {
  padding: 7px;
}

.public-nav-link,
.public-nav-cta {
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.public-nav-link.active,
.public-nav-link:hover,
.public-nav-cta:hover {
  border-color: rgba(191, 255, 46, 0.48);
  background: linear-gradient(135deg, rgba(191, 255, 46, 0.2), rgba(54, 216, 201, 0.08));
  color: #f4ffd9;
}

.public-nav-link:hover,
.public-nav-cta:hover,
.primary-button:hover,
.premium-buy-button:hover {
  transform: translateY(-1px);
}

.public-page {
  width: min(1140px, calc(100vw - 48px));
  padding-top: 72px;
}

.home-page {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 56px;
}

.eyebrow {
  color: var(--premium);
  letter-spacing: 0.04em;
}

.home-copy h2,
.shop-copy h2 {
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.52);
}

.home-copy > p:not(.eyebrow),
.shop-copy p {
  color: rgba(237, 246, 232, 0.86);
}

.public-actions #openMapBtn,
.premium-buy-button {
  border: 0;
  background:
    linear-gradient(135deg, #d8ff3d, #9be45b 55%, #56d8c9);
  color: #061006;
  box-shadow: 0 20px 58px rgba(163, 241, 68, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-panel,
.premium-bubble,
.control-panel,
.legend-card,
.auth-card {
  border-color: rgba(230, 255, 184, 0.16);
  background:
    linear-gradient(145deg, rgba(19, 28, 20, 0.92), rgba(6, 10, 9, 0.9)),
    rgba(6, 10, 9, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.home-panel {
  border-left: 3px solid rgba(191, 255, 46, 0.72);
}

.home-panel div {
  padding: 20px;
  background: linear-gradient(135deg, rgba(191, 255, 46, 0.08), rgba(54, 216, 201, 0.04));
}

.home-panel strong,
.shop-card h3,
.premium-bubble h3 {
  color: #fbfff1;
}

.home-panel span {
  color: rgba(225, 235, 220, 0.72);
}

.shop-page {
  align-content: start;
  padding-top: 54px;
}

.shop-offer {
  width: min(520px, 100%);
}

.premium-bubble {
  gap: 16px;
  padding: 26px;
  background:
    radial-gradient(circle at 82% 18%, rgba(191, 255, 46, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(20, 32, 20, 0.94), rgba(5, 8, 7, 0.92));
}

.premium-kicker {
  background: rgba(191, 255, 46, 0.13);
  color: #d7ff6b;
}

.premium-price strong {
  color: #fbfff1;
}

.premium-bubble li {
  color: rgba(238, 248, 233, 0.9);
}

.premium-note {
  color: rgba(222, 232, 216, 0.58);
}

.control-panel {
  border-left: 3px solid rgba(191, 255, 46, 0.62);
}

.stats div,
.field input,
.field select,
.segmented label,
.spot-card {
  border-color: rgba(230, 255, 184, 0.14);
  background: rgba(4, 8, 7, 0.62);
}

.stats strong {
  color: var(--premium);
}

.account-button,
.glass-button,
.icon-button,
.secondary-button {
  border-color: rgba(230, 255, 184, 0.16);
  background: rgba(5, 8, 7, 0.72);
  color: #f4ffd9;
}

@media (max-width: 980px) {
  .public-page {
    width: min(100vw - 32px, 1140px);
    padding-top: 42px;
  }

  .public-brand {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .public-nav {
    padding: 12px 14px 8px;
  }

  .public-page {
    width: min(100vw - 28px, 1140px);
  }

  .shop-copy {
    text-align: left;
  }

  .premium-bubble {
    padding: 20px;
  }
}

/* Category profile picker and mobile tightening */
.native-category-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.category-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.category-picker-button,
.category-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(230, 255, 184, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(191, 255, 46, 0.08), rgba(54, 216, 201, 0.03)),
    rgba(4, 8, 7, 0.7);
  color: #f5ffe9;
  text-align: left;
  font-weight: 850;
}

.category-picker span {
  text-transform: none;
}

.category-picker-button {
  min-height: 52px;
  padding: 7px 12px 7px 8px;
}

.category-picker.open .category-picker-button,
.category-picker-button:focus-visible {
  border-color: rgba(191, 255, 46, 0.62);
  box-shadow: 0 0 0 3px rgba(191, 255, 46, 0.12);
}

.category-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(191, 255, 46, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(191, 255, 46, 0.32), transparent 34%),
    rgba(8, 12, 10, 0.92);
  color: var(--premium);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 0 18px rgba(191, 255, 46, 0.08);
}

.category-chevron {
  color: rgba(231, 244, 225, 0.72);
  font-size: 16px;
}

.category-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  padding: 8px;
  overflow: auto;
  border: 1px solid rgba(191, 255, 46, 0.26);
  border-radius: 8px;
  background: rgba(5, 8, 7, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.38);
}

.category-menu[hidden] {
  display: none;
}

.category-option {
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  min-height: 58px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.category-picker-button #categoryPickerLabel,
.category-option > span:nth-child(2) {
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-option .category-avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.category-option:hover,
.category-option.active {
  border-color: rgba(191, 255, 46, 0.62);
  background:
    linear-gradient(135deg, rgba(191, 255, 46, 0.18), rgba(54, 216, 201, 0.07)),
    rgba(11, 18, 13, 0.96);
  color: #ffffff;
}

@media (max-width: 560px) {
  .public-site {
    overflow-x: hidden;
  }

  .public-nav {
    position: relative;
    gap: 14px;
  }

  .public-brand {
    max-width: calc(100vw - 152px);
  }

  .public-nav-actions {
    width: 100%;
  }

  .public-page {
    width: calc(100vw - 28px);
    padding-top: 54px;
  }

  .home-page {
    display: grid;
    grid-template-columns: 1fr !important;
    align-items: start;
    gap: 32px;
  }

  .home-copy,
  .shop-copy {
    width: 100%;
    max-width: none;
  }

  .home-copy h2,
  .shop-copy h2 {
    max-width: 100%;
    font-size: clamp(34px, 9.2vw, 42px);
    line-height: 1.06;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: normal;
  }

  .home-copy > p:not(.eyebrow),
  .shop-copy p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.68;
  }

  .home-panel {
    width: 100%;
  }

  .control-panel {
    right: 8px;
    left: 58px;
    bottom: 62px;
    max-height: min(70vh, calc(100vh - 170px));
  }

  .controls {
    gap: 10px;
    padding: 12px;
  }

  .category-menu {
    grid-template-columns: 1fr;
    max-height: 230px;
  }

  .category-option {
    min-height: 52px;
  }
}

/* iOS map direction */
:root {
  --ios-bg: rgba(248, 250, 252, 0.82);
  --ios-bg-strong: rgba(255, 255, 255, 0.92);
  --ios-text: #111827;
  --ios-muted: #6b7280;
  --ios-blue: #007aff;
  --ios-red: #ff3b30;
  --ios-line: rgba(17, 24, 39, 0.12);
}

body:not(.public-mode) .map-wrap::before,
body:not(.public-mode) .map-wrap::after {
  opacity: 0;
}

body.classic-map .leaflet-tile-pane {
  filter: saturate(1.04) contrast(1.02) brightness(1.02);
}

body.satellite-map .leaflet-tile-pane {
  filter: saturate(0.98) contrast(1.01) brightness(1);
}

body:not(.public-mode) .brand,
body:not(.public-mode) .control-panel,
body:not(.public-mode) .legend-card,
body:not(.public-mode) .account-button,
body:not(.public-mode) .glass-button,
body:not(.public-mode) .icon-button,
body:not(.public-mode) .satellite-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--ios-bg);
  color: var(--ios-text);
  box-shadow: 0 14px 42px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(22px) saturate(1.45);
}

body:not(.public-mode) .brand h1,
body:not(.public-mode) .panel-head h2,
body:not(.public-mode) .legend-header h2 {
  color: var(--ios-text);
}

body:not(.public-mode) .brand p,
body:not(.public-mode) .field > span,
body:not(.public-mode) .stats span,
body:not(.public-mode) .spot-meta,
body:not(.public-mode) .account-summary span {
  color: var(--ios-muted);
}

body:not(.public-mode) .brand-mark {
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.16);
}

body:not(.public-mode) .control-panel {
  border-left: 0;
  background: rgba(248, 250, 252, 0.86);
}

body:not(.public-mode) .panel-head,
body:not(.public-mode) .stats,
body:not(.public-mode) .controls {
  border-color: var(--ios-line);
}

body:not(.public-mode) .stats div,
body:not(.public-mode) .field input,
body:not(.public-mode) .field select,
body:not(.public-mode) .segmented label,
body:not(.public-mode) .spot-item,
body:not(.public-mode) .spot-card {
  border-color: rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

body:not(.public-mode) .stats strong {
  color: var(--ios-red);
}

body:not(.public-mode) .segmented span {
  color: var(--ios-text);
  background: rgba(255, 255, 255, 0.72);
}

body:not(.public-mode) .segmented input:checked + span {
  border-color: rgba(0, 122, 255, 0.34);
  background: rgba(0, 122, 255, 0.12);
  color: var(--ios-blue);
}

body:not(.public-mode) .category-picker-button,
body:not(.public-mode) .category-option {
  border-color: rgba(17, 24, 39, 0.09);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ios-text);
}

body:not(.public-mode) .category-picker.open .category-picker-button,
body:not(.public-mode) .category-picker-button:focus-visible {
  border-color: rgba(0, 122, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

body:not(.public-mode) .category-avatar {
  border-color: rgba(0, 122, 255, 0.18);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(255, 59, 48, 0.09));
  color: var(--ios-blue);
  box-shadow: none;
}

body:not(.public-mode) .category-menu {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(20px) saturate(1.4);
}

body:not(.public-mode) .category-option.active {
  border-color: rgba(0, 122, 255, 0.38);
  background: rgba(0, 122, 255, 0.12);
  color: var(--ios-blue);
}

body:not(.public-mode) .category-option.active::after {
  content: "✓";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  justify-self: end;
  align-self: center;
  border-radius: 50%;
  background: var(--ios-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

body:not(.public-mode) .category-option:hover {
  border-color: rgba(0, 122, 255, 0.24);
  background: rgba(0, 122, 255, 0.08);
  color: var(--ios-blue);
}

body:not(.public-mode) .pin-red,
body:not(.public-mode) .pin-yellow,
body:not(.public-mode) .pin-orange,
body:not(.public-mode) .pin-blue {
  background: var(--ios-red);
}

body:not(.public-mode) .cluster-marker,
body:not(.public-mode) .cluster-marker.premium,
body:not(.public-mode) .cluster-marker.classic {
  border-color: rgba(255, 255, 255, 0.9);
  background: var(--ios-red);
  color: #ffffff;
  box-shadow: 0 9px 22px rgba(255, 59, 48, 0.28);
}

body:not(.public-mode) .maps-chip,
body:not(.public-mode) .popup-actions a {
  background: rgba(0, 122, 255, 0.12);
  color: var(--ios-blue);
}

@media (max-width: 560px) {
  body:not(.public-mode) .control-panel {
    left: 54px;
    right: 8px;
    bottom: 64px;
    max-height: min(70vh, calc(100vh - 176px));
    border-radius: 8px;
  }

  body:not(.public-mode) .category-option.active::after {
    width: 22px;
    height: 22px;
  }
}
