/* ================================
   Callejeandola v2 — Global UI Kit
   Base para TODO tu front-end
   ================================ */

:root {
  /* Dark base */
  --bg: #070A10;
  --bg2: #0b0f17;

  /* Surfaces */
  --surface: rgba(255, 255, 255, .06);
  --surface2: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .12);

  /* Text */
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .68);

  /* Brand colors (skate vibe: neon + bold) */
  --p1: #7C3AED;
  /* purple */
  --p2: #22D3EE;
  /* cyan */
  --p3: #F97316;
  /* orange */
  --good: #22C55E;

  --shadow: 0 14px 32px rgba(0, 0, 0, .45);
  --radius: 18px;
  --rsm: 12px;

  --container: 1180px;
  --pad: 20px;

  --ring: 0 0 0 3px rgba(34, 211, 238, .25);

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* Optional light theme hook */
[data-theme="light"] {
  --bg: #f7f7fb;
  --bg2: #ffffff;
  --surface: rgba(10, 12, 16, .05);
  --surface2: rgba(10, 12, 16, .08);
  --stroke: rgba(10, 12, 16, .12);
  --text: rgba(10, 12, 16, .92);
  --muted: rgba(10, 12, 16, .62);
  --shadow: 0 14px 32px rgba(0, 0, 0, .14);
  --ring: 0 0 0 3px rgba(124, 58, 237, .18);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 560px at 10% 10%, rgba(124, 58, 237, .16), transparent 55%),
    radial-gradient(900px 520px at 86% 10%, rgba(34, 211, 238, .12), transparent 55%),
    radial-gradient(900px 520px at 70% 92%, rgba(249, 115, 22, .10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  padding-bottom: 92px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(124, 58, 237, .30);
}

.container {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

@media (max-width: 900px) {
  .container.shell:has(.view[data-view="profile"].is-active) {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
}

.micro {
  font-size: .88rem;
  line-height: 1.4;
}

/* Typography helpers */
.h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem);
  letter-spacing: -0.03em;
}

.h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.sub {
  margin: .3rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Surfaces */
.surface {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card__image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  display: grid;
  gap: 10px;
}

.card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.spot-card,
.event-card,
.shop-card {
  overflow: hidden;
}

.shop-detail-hero {
  height: 220px;
  background: #0b111a;
}

.shop-detail-hero img {
  object-fit: contain;
  background: #0b111a;
}

.detail-actions--icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.detail-actions--icons .icon-btn {
  text-decoration: none;
}


.event-card .card__image,
.shop-card .card__image {
  height: 180px;
  background: #0b111a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card .card__image img,
.shop-card .card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.event-detail-hero,
.shop-detail-hero {
  height: 220px;
  background: #0b111a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-detail-hero img,
.shop-detail-hero img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #0b111a;
}

.spot-card .card__image img,
.detail-hero:not(.event-detail-hero):not(.shop-detail-hero) img {
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, .95), rgba(34, 211, 238, .92));
  border-color: rgba(255, 255, 255, .18);
  color: color-mix(in srgb, var(--bg2) 85%, #000);
}

.btn-secondary {
  background: rgba(255, 255, 255, .08);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .10);
  box-shadow: none;
}

.btn.is-saved,
.btn-secondary.is-saved {
  color: #f8fafc;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.26), transparent 45%),
    rgba(15, 23, 42, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.38),
    0 10px 26px rgba(34, 211, 238, 0.12);
}

.mini-item--empty {
  opacity: 0.82;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, .07);
}

.icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.icon-btn.is-active {
  color: #f472b6;
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.28), transparent 42%),
    rgba(30, 41, 59, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(244, 114, 182, 0.38),
    0 10px 26px rgba(244, 114, 182, 0.14);
}


/* Badges & chips */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .05);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: .82rem;
}

.badge--soft {
  border-color: color-mix(in srgb, var(--p2) 45%, transparent);
  background: color-mix(in srgb, var(--p2) 12%, transparent);
  color: color-mix(in srgb, var(--text) 88%, var(--p2));
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, .20);
  font-weight: 850;
  font-size: .86rem;
}

.chip-btn {
  cursor: pointer;
}

.chip-btn.is-active {
  border-color: color-mix(in srgb, var(--p2) 45%, transparent);
  background: color-mix(in srgb, var(--p2) 14%, transparent);
}

/* Appbar */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
  backdrop-filter: blur(12px);
}

.appbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.appbar,
.container,
.appbar__inner {
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  /* height: 60px; */
  height: clamp(50px, 6vw, 90px);

  width: auto;
  display: block;
}

@media (min-width: 320px) {
  .brand__logo {
    width: 150px;
  }
}


@media (min-width: 768px) {
  .brand__logo {
    height: 70px;
  }
}

@media (min-width: 1200px) {
  .brand__logo {
    height: auto;
  }
}

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

/* extra for bottom nav */
.shell {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: start;
}

.panel {
  min-width: 0;
}

.side {
  display: grid;
  gap: 14px;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  margin-bottom: 12px;
}

.tab {
  flex: 1;
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.tab.is-active {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

/* Views */
.view {
  display: none;
}

.view.is-active {
  display: block;
}

.view__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
}

@media (max-width: 640px) {
  .view__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Segmented */
.segmented {
  display: flex;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}

.seg {
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.seg.is-active {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.search {
  flex: 1;
  min-width: 240px;
}

.search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .18);
}

.search input:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.kpi {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
}

.kpi__num {
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.kpi__label {
  color: var(--muted);
  font-size: .88rem;
}

@media (max-width: 760px) {
  /* .kpis {
    display: flex;
    flex-wrap: nowrap;
  }

  .kpi {
    flex: 0 0 31%;
    min-width: 96px;
    padding: 12px;
  } */

  .kpi .kpi__num,
  .kpi .stat__num {
    font-size: 18px;
  }

  .kpi .kpi__label,
  .kpi .stat__label {
    font-size: 12px;
  }


}

/* Cards list */
.cards {
  display: grid;
  gap: 12px;
}

/* Spot card */
.spot {
  display: grid;
  gap: 10px;
}

.spot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spot__name {
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 0;
}

.spot__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: color-mix(in srgb, var(--muted) 92%, var(--text));
  font-size: .92rem;
}

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

/* Masonry for clips */
.masonry {
  columns: 2;
  column-gap: 12px;
}

@media (max-width: 760px) {
  .masonry {
    columns: 1;
  }
}

.clip {
  break-inside: avoid;
  margin: 0 0 12px;
  padding: 12px;
}

.clip__thumb {
  height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 211, 238, .16), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(124, 58, 237, .14), transparent 55%),
    rgba(255, 255, 255, .04);
  position: relative;
  overflow: hidden;
}

.clip__thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  opacity: .9;
}

.clip__title {
  margin: 10px 0 6px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.clip__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
}

/* Events */
.event {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: start;
}

.event__date {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 12px 10px;
  text-align: center;
}

.event__month {
  font-weight: 950;
  letter-spacing: .12em;
  color: color-mix(in srgb, var(--p2) 78%, var(--text));
  font-size: .9rem;
}

.event__day {
  font-weight: 950;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.event__title {
  margin: 0 0 6px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.event__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
  margin-top: 8px;
}

/* Right side map */
.map {
  padding: 14px;

}

.map__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.map__canvas {
  height: 280px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, .18);
  background:
    radial-gradient(circle at 25% 35%, rgba(34, 211, 238, .12), transparent 45%),
    radial-gradient(circle at 70% 55%, rgba(124, 58, 237, .12), transparent 45%),
    rgba(255, 255, 255, .03);
  position: relative;
  overflow: hidden;
}

.map-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  z-index: 2;
}

.map-route-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.58));
  box-shadow: none;
}

.map-route-panel__head {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.map-route-panel__label {
  color: #22d3ee;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.map-route-panel__head strong {
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.25;
}

.map-route-panel .muted {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.map-route-panel__coords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.map-route-panel__coords span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 11px;
  font-weight: 800;
}

.map-route-panel__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.map-route-panel__actions .btn {
  min-height: 40px;
}

.pin {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .95), rgba(124, 58, 237, .95));
  position: absolute;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .35);
}

.pin::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  position: absolute;
  inset: 0;
  margin: auto;
}

.pin--a {
  left: 32%;
  top: 44%;
}

.pin--b {
  left: 68%;
  top: 58%;
  transform: scale(.85);
  opacity: .95;
}

.pin--c {
  left: 56%;
  top: 26%;
  transform: scale(.72);
  opacity: .92;
}

.map__foot {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Community block */
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.community__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Profile */
.profile {
  display: grid;
  gap: 14px;
}

.profile__card {
  padding: 16px;
}

.profile__top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-gate {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.profile-gate__card {
  width: min(100%, 520px);
  text-align: center;
  padding: 28px;
}

.profile-gate__actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* =========================
   PROFILE UI POLISH v0.19
   ========================= */

.profile-shell {
  display: grid;
  gap: 16px;
  padding-bottom: 104px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.16), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(124, 92, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.08), transparent 36%);
  opacity: 0.7;
}

.profile-card>* {
  position: relative;
  z-index: 1;
}

.profile-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.profile-head h2,
.profile-card h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

#profileUserMeta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #94a3b8;
}

.profile-grid {
  display: grid;
  gap: 12px;
}

.profile-grid .form-field {
  margin: 0;
}

.profile-grid .form-field label,
.profile-card .form-field label {
  display: block;
  margin-bottom: 7px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-grid input,
.profile-grid textarea,
.profile-card input,
.profile-card textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 15px;
  padding: 11px 13px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.16);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-grid input:focus,
.profile-grid textarea:focus,
.profile-card input:focus,
.profile-card textarea:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-grid textarea {
  resize: vertical;
  min-height: 92px;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.profile-actions .btn {
  min-height: 44px;
  border-radius: 16px;
  font-weight: 950;
}

.profile-activity {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.profile-activity__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-activity__head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.profile-activity__grid {
  display: grid;
  gap: 12px;
}

.profile-activity-card {
  padding: 13px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.10), transparent 34%),
    rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.profile-activity-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-activity-card__head h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}

.profile-activity-card__head span {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 950;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-item {
  min-height: 42px;
  border-radius: 15px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.40);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

#emailVerifyBox {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 38%),
    rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.20);
}

#emailVerifyBox h3,
#emailVerifyBox h4 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: 14px;
}

#emailVerifyBox p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.4;
}

#emailVerifyBox .btn,
#emailVerifyBox button {
  min-height: 38px;
  border-radius: 14px;
  font-weight: 950;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  margin: 16px 0;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.auth-switch__btn {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  color: #94a3b8;
  font-weight: 950;
  background: transparent;
  cursor: pointer;
}

.auth-switch__btn.is-active {
  color: #020617;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
}

.password-field {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  align-items: center;
}

.password-toggle {
  height: 44px;
  border-radius: 15px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.70);
  border: 1px solid rgba(148, 163, 184, 0.16);
  cursor: pointer;
}

.password-eye-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 720px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-grid-full {
    grid-column: 1 / -1;
  }

  .profile-actions {
    grid-template-columns: 1fr 1fr;
  }

  .profile-activity__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 950;
  background: linear-gradient(135deg, rgba(249, 115, 22, .95), rgba(34, 211, 238, .85));
  color: color-mix(in srgb, var(--bg2) 80%, #000);
}

.profile__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.stat {
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
}

.stat__num {
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.stat__label {
  color: var(--muted);
  font-size: .88rem;
}

.profile__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
}

/* Empty state */
.empty {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03);
  text-align: center;
}

.empty__icon {
  font-size: 2rem;
}

/*========= Bottom nav ========= */

.bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;

  width: min(100%, 430px) !important;
  min-height: 76px !important;

  display: grid !important;
  grid-template-columns: 1fr 1fr 64px 1fr 1fr !important;
  align-items: center !important;
  gap: 0 !important;

  padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px) !important;

  z-index: 999 !important;

  background:
    linear-gradient(180deg, rgba(10, 15, 26, 0.98), rgba(3, 7, 18, 1)) !important;

  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;

  box-shadow:
    0 -18px 48px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;

  overflow: visible !important;
}

.bottom-nav .route-hub::before {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.34), transparent 62%),
    radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 70%);
  filter: blur(2px);
  z-index: -1;
}

.bottom-nav .bn {
  min-width: 0 !important;
  min-height: 54px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: grid !important;
  place-items: center !important;
  gap: 3px !important;
}

.bottom-nav .bn__icon {
  font-size: 1.12rem !important;
  line-height: 1 !important;
}

.bottom-nav .bn__label {
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.bottom-nav .bn.is-active {
  color: #f8fafc !important;
}

.bottom-nav .route-hub {
  width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 !important;

  transform: translateY(-12px) !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  display: grid !important;
  grid-template-rows: 44px auto !important;
  place-items: center !important;

  justify-self: center !important;
  align-self: center !important;
  overflow: visible !important;
}

.bottom-nav .bn {
  min-width: 0 !important;
  min-height: 54px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: grid !important;
  place-items: center !important;
  gap: 3px !important;
}

.bottom-nav .route-hub::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 46%, rgba(34, 211, 238, 0.38), transparent 58%),
    radial-gradient(circle at 50% 55%, rgba(124, 92, 255, 0.24), transparent 64%);
  filter: blur(2px);
  z-index: -1;
}

.route-hub__icon,
.bottom-nav .route-hub__icon {
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  background: transparent !important;
}

.route-hub__img {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  filter:
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(34, 211, 238, 0.5)) !important;
}

.route-hub__label {
  display: block !important;
  margin-top: -2px !important;
  color: #e0f2fe !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55) !important;
}

.bottom-nav .route-hub.is-ready::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 11px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.9);
}

@keyframes routeHubPulse {
  0% {
    transform: translateY(-12px) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.1);
  }

  100% {
    transform: translateY(-12px) scale(1);
  }
}

/* ========= ANIMACIONES PARA CUANDO SE VA A UN SPOT =========ss */

.bottom-nav .route-hub.is-ready .route-hub__img {
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.44)) drop-shadow(0 0 20px rgba(34, 211, 238, 0.78)) !important;
}

.bottom-nav .route-hub.is-pulsing {
  animation: routeHubPulse 700ms ease-in-out 2;
}

@keyframes routeHubPulse {
  0% {
    transform: translateY(-15px) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.12);
  }

  100% {
    transform: translateY(-15px) scale(1);
  }
}

/* ========= ROUTE ========= */

.route-map-preview {
  position: relative;
  height: 136px;
  margin-bottom: 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at 76% 70%, rgba(124, 92, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.route-map-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
}

.route-map-preview__path {
  position: absolute;
  left: 34%;
  top: 22%;
  width: 4px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, #7c5cff);
  transform: rotate(28deg);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
}

.route-map-preview__pin {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow:
    0 0 0 5px rgba(34, 211, 238, 0.16),
    0 0 18px rgba(34, 211, 238, 0.55);
}

.route-map-preview__pin--start {
  left: 31%;
  top: 30%;
}

.route-map-preview__pin--end {
  right: 26%;
  bottom: 25%;
  background: #7c5cff;
}

.route-map-preview__avatar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 950;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow:
    0 16px 36px rgba(34, 211, 238, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.route-map-preview__avatar img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

/* ========= MAP ========= */
.map-app-btn {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}


.map-route-panel__actions .map-app-btn {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.map-route-panel__actions .map-app-btn--waze {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(34, 211, 238, 0.95));
}

.map-route-panel__actions .map-app-btn--google {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), transparent 42%),
    rgba(30, 41, 59, 0.95);
}

.map-route-panel__actions .map-app-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.map-app-btn__icon {
  width: 23px;
  height: 23px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.24);
}

.bn {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 10px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  justify-items: center;
  cursor: pointer;
}

.bn__icon {
  font-size: 1.1rem;
}

.bn__label {
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .01em;
}

.bn.is-active {
  color: var(--text);
}

@media (max-width: 980px) {
  .bottom-nav {
    display: flex;
  }
}

/* Modal */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.modal__card {
  background: rgba(15, 20, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  width: min(92vw, 520px);
  padding: 18px;
}

.detail-modal {
  display: grid;
  gap: 16px;
  padding-inline: 2px;
}

.detail-hero {
  width: 100%;
  height: 210px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-modal .detail-hero img {
  object-fit: contain;
  background: #0b111a;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-grid {
  display: grid;
  gap: 10px;
}

.detail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  padding: 4px 2px 8px;

}

.detail-gallery img {
  flex: 0 0 120px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.detail-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 96px;
}

.detail-thumb img {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

@media (max-width: 520px) {
  .modal__card {
    width: min(88vw, 420px);
    padding: 16px;
  }

  .detail-hero {
    height: 190px;
  }
}

.modal__head {
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.modal__body {
  padding: 12px 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .55);
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 80;
}

/* ---------- Sponsors ribbon ---------- */
.sponsors {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: color-mix(in srgb, var(--bg2) 64%, transparent);
  backdrop-filter: blur(10px);
}

.sponsors__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.sponsors__badge {
  flex: 0 0 auto;
}

.marquee {
  overflow: hidden;
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}

.marquee__track {
  display: flex;
  gap: 14px;
  padding: 10px 12px;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.sponsor {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .20);
  font-weight: 950;
  letter-spacing: .08em;
  font-size: .78rem;
  color: color-mix(in srgb, var(--text) 86%, var(--p2));
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------- Status row ---------- */
.status-row {
  margin: 6px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.status {
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
}

/* ---------- View transition (simple + clear) ---------- */
.view {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.view.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Busy overlay ---------- */
.busy {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  /* z-index: 100; */
}

.busy.is-open {
  display: grid;
  /* ✅ ON cuando el JS agrega la clase */
}

.busy__card {
  width: min(520px, calc(100% - 24px));
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.busy__title {
  font-weight: 950;
  letter-spacing: -.02em;
}

.busy__sub {
  margin-top: 2px;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: color-mix(in srgb, var(--p2) 70%, #fff);
  animation: spin .8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

/* Flash highlight: ayuda a entender que cambió el contenido */
.flash {
  animation: flashPulse .42s ease;
  border-radius: 14px;
}

@keyframes flashPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, .0);
  }

  30% {
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, .0);
  }
}

/* ========================================
   NAV RESPONSIVE FINAL 
======================================== */

/* ===== DEFAULT (DESKTOP FIRST) ===== */
.tabs {
  display: flex;
}

.bottom-nav {
  display: none;
}

/* ===== MOBILE ===== */
@media screen and (max-width: 768px) {

  /* Oculta tabs completamente */
  .tabs {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* Bottom nav correcta */
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    width: 100%;
    transform: none;

    border-radius: 0;
    padding: 6px 4px;

    z-index: 999;
  }

  .bn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    gap: 4px;
    min-height: 58px;
  }

}

/* ===== DESKTOP ===== */
@media screen and (min-width: 769px) {

  .tabs {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }

  .bottom-nav {
    display: none !important;
  }
}

/* =========================================
   LANGUAGE SELECTOR
========================================= */

.language-selector {
  position: relative;
}

.lang-trigger {
  position: relative;
}

.lang-menu-global {
  position: fixed;
  top: 0;
  left: 0;

  min-width: 180px;
  padding: 8px;

  border-radius: 16px;
  border: 1px solid var(--stroke);

  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(12px);

  z-index: 99999;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.language-selector {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.lang-option.is-active {
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(34, 211, 238, 0.22);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .lang-menu {
    right: 0;
    min-width: 170px;
  }
}

@media (max-width: 480px) {
  .lang-menu {
    right: -10px;
    top: 52px;
  }
}

/* ===== Language menu: simple y anclado al icono ===== */
.lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-menu-global {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-menu-global[hidden] {
  display: none !important;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .lang-menu-global {
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
  }
}

.mobile-filters {
  display: none;
  margin-bottom: 12px;
}

.filter-select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #17202b;
  color: #ffffff;
  padding: 0 14px;
  font: inherit;
  appearance: auto;
}

.filter-select option {
  background: #111827;
  color: #ffffff;
}

@media (max-width: 768px) {
  .mobile-filters {
    display: block;
  }

  .chips {
    display: none;
  }
}

/* CAMBIOS */

@media (max-width: 900px) {
  .side {
    display: none;
  }

  body.is-map-open .side {
    display: grid;
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg);
  }

  body.is-map-open .bottom-nav {
    display: none;
  }

  body.is-map-open .appbar {
    display: none;
  }
}

[hidden] {
  display: none !important;
}

.profile-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.profile-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.16), transparent 30%),
    rgba(15, 23, 42, 0.88);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-grid-full {
  grid-column: 1 / -1;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.profile-activity {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.profile-activity__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-activity__head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
}

.profile-activity__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-activity-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.1), transparent 38%),
    rgba(15, 23, 42, 0.68);
}

.profile-activity-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-activity-card__head h4 {
  margin: 0;
  font-size: 14px;
  color: #f8fafc;
}

.profile-activity-card__head span {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  background: rgba(34, 211, 238, 0.18);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28);
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.mini-item strong {
  color: #f8fafc;
  font-size: 13px;
}

@media (max-width: 760px) {
  .profile-activity__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }
}

.profile-card input,
.profile-card textarea,
.profile-card select,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 22, 0.98));
  color: #f8fafc;
  caret-color: #22d3ee;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-card textarea,
.form-field textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

.profile-card input::placeholder,
.profile-card textarea::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(203, 213, 225, 0.58);
}

.profile-card input:focus,
.profile-card textarea:focus,
.profile-card select:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-card input:-webkit-autofill,
.profile-card input:-webkit-autofill:hover,
.profile-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc;
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #dbeafe;
  font-weight: 700;
  font-size: 13px;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.88);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.password-toggle:hover {
  transform: translateY(-1px);
  background: rgba(51, 65, 85, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.38),
    0 8px 22px rgba(34, 211, 238, 0.12);
}

.profile-card .btn,
.profile-actions .btn {
  min-height: 46px;
  border-radius: 16px;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
  margin: 18px 0;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-switch__btn {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: #94a3b8;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.auth-switch__btn.is-active {
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(34, 211, 238, 0.95));
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.18);
}

.password-toggle {
  position: absolute;
  right: 8px;
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.88);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.password-toggle:hover {
  transform: translateY(-1px);
  background: rgba(51, 65, 85, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.38),
    0 8px 22px rgba(34, 211, 238, 0.12);
}

.password-field input {
  padding-right: 56px;
}

.password-eye-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entity-media {
  position: relative;
  min-height: 132px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 34%),
    radial-gradient(circle at 80% 80%, rgba(124, 92, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.entity-media__mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.18);
  z-index: 1;
}

.entity-media span {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: rgba(248, 250, 252, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.entity-media:not(.is-fallback) .entity-media__mark,
.entity-media:not(.is-fallback) span {
  display: none;
}

.entity-media.is-fallback .entity-media__mark,
.entity-media.is-fallback span {
  display: grid;
}

.route-modal {
  display: grid;
  gap: 14px;
}

.route-modal__mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-weight: 900;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.2);
}

.route-modal h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
}

.route-modal__coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.route-modal__coords span {
  padding: 10px 12px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.route-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/***************************************************  */
.route-modal {
  display: grid;
  gap: 14px;
}

.route-modal__mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-weight: 950;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.2);
}

.route-modal h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
}

.route-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.route-modal__details {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 10px;
}

.route-modal__details summary {
  cursor: pointer;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.route-modal__coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.route-modal__coords span {
  padding: 10px 12px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   REAL MAP VIEW — LEAFLET
   ========================= */

.real-map-shell {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.real-map {
  width: 100%;
  height: 100%;
  min-height: 310px;
  z-index: 1;
}

.leaflet-container {
  background: #020617;
  font-family: inherit;
}

.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(2, 6, 23, 0.72) !important;
  color: rgba(226, 232, 240, 0.7) !important;
}

.leaflet-control-attribution a {
  color: #22d3ee !important;
}

.cj-map-popup {
  min-width: 190px;
  color: #e5e7eb;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}

.leaflet-popup-content {
  margin: 12px;
}

.cj-map-popup strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 14px;
}

.cj-map-popup span {
  display: block;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.cj-map-popup button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 13px;
  color: #020617;
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
}

.cj-map-marker {
  width: 34px;
  height: 34px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow:
    0 12px 28px rgba(34, 211, 238, 0.34),
    0 0 0 5px rgba(34, 211, 238, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.cj-map-marker--event {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #f97316, #ec4899);
}

.cj-map-marker--shop {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #22c55e, #22d3ee);
}

/* =========================
   ROUTE HUD — CJ NAV STYLE
   ========================= */

.real-map-shell {
  position: relative;
}

.route-hud {
  position: absolute;
  left: 31px;
  top: 455px;
  right: 31px;
  z-index: 700;

  min-height: 86px;

  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.route-hud[hidden] {
  display: none;
}

.route-hud__arrow {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #020617;
  font-size: 34px;
  font-weight: 950;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow:
    0 14px 34px rgba(34, 211, 238, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.route-hud__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.route-hud__label {
  color: #22d3ee;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-hud strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 950;
  text-wrap: balance;
}

.route-hud small {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}


.leaflet-control-attribution {
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.72;
  font-size: 9px !important;
  border-radius: 10px 0 0 0;
}

.leaflet-control-attribution:hover {
  max-width: 260px;
  opacity: 1;
}

.route-fallback,
#mapRoutePanel {
  display: none !important;
}

.email-verify-box {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.14), transparent 38%),
    rgba(15, 23, 42, 0.72);
}

.email-verify-box[hidden] {
  display: none !important;
}

.email-verify-box strong {
  color: #f8fafc;
}

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

.email-verify-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* =========================
   ONBOARDING WIZARD
   ========================= */

.tour-active {
  overflow: hidden;
}

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 120px, rgba(2, 6, 23, 0.36) 210px),
    rgba(2, 6, 23, 0.34);
}

.tour-spotlight {
  position: fixed;
  z-index: 10000;
  border-radius: 18px;
  pointer-events: none;
  transition:
    top 220ms ease,
    left 220ms ease,
    width 220ms ease,
    height 220ms ease;
  box-shadow:
    0 0 0 9999px rgba(2, 6, 23, 0.72),
    0 0 2px rgba(34, 211, 238, 0.95),
    0 0 26px rgba(34, 211, 238, 0.42);
}

.tour-card {
  position: fixed;
  z-index: 10001;
  pointer-events: auto;
  display: grid;
  gap: 12px;
  padding: 10px;
  border-radius: 24px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 16% 12%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition:
    top 220ms ease,
    left 220ms ease,
    width 220ms ease;
}

.tour-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tour-card__eyebrow,
.tour-card__count {
  color: #22d3ee;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tour-card h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 950;
}

.tour-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}

.tour-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.tour-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.34);
  transition: width 220ms ease;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.tour-actions__right {
  display: flex;
  gap: 8px;
}

.tour-btn {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
}

.tour-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.tour-btn--primary {
  color: #020617;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
}

.tour-btn--soft {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.tour-btn--ghost {
  color: #94a3b8;
  background: transparent;
}

.tour-help-btn {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 95;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.92), rgba(34, 211, 238, 0.92));
  box-shadow:
    0 18px 42px rgba(34, 211, 238, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

body.tour-active .tour-help-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.92);
}

.tour-help-btn span {
  font-size: 20px;
  font-weight: 950;
}

@media (min-width: 769px) {
  .tour-help-btn {
    right: calc(50% - 210px);
  }
}

/* =========================================
   FREE / BASIC CLEAN UI v0.20
   Visual simple, limpio y menos plástico
   ========================================= */

:root {
  --free-bg: #070b14;
  --free-bg2: #0b1220;
  --free-card: rgba(13, 21, 38, 0.92);
  --free-card2: rgba(9, 16, 30, 0.96);
  --free-border: rgba(148, 163, 184, 0.13);
  --free-border-strong: rgba(148, 163, 184, 0.20);
  --free-text: #f8fafc;
  --free-muted: #94a3b8;
  --free-cyan: #22d3ee;
}

/* Base visual */
body {
  background:
    radial-gradient(720px 420px at 50% -12%, rgba(34, 211, 238, 0.10), transparent 60%),
    linear-gradient(180deg, var(--free-bg) 0%, var(--free-bg2) 58%, #070b14 100%);
  color: var(--free-text);
}

/* Header más limpio */
.appbar {
  background: rgba(7, 11, 20, 0.94) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10) !important;
  backdrop-filter: blur(12px);
}

.appbar__inner {
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand__logo {
  max-height: 52px;
  width: 150px;
  object-fit: contain;
}

/* Layout móvil controlado */
@media (max-width: 768px) {
  :root {
    --pad: 16px;
  }

  .container {
    width: min(100%, calc(100% - 32px));
  }

  .shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .panel {
    min-width: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* Encabezados de cada vista */
.view__head {
  margin: 8px 0 14px;
  padding: 4px 2px 0;
}

.view__head .h1,
.view__head h1 {
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--free-text);
}

.view__head .sub,
.view__head p {
  color: var(--free-muted);
  font-size: 15px;
  line-height: 1.45;
}

/* Search y filtros */
.toolbar {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
}

.search {
  min-width: 0;
  width: 100%;
}

.search input,
.filter-select,
input,
select,
textarea {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--free-text);
  box-shadow: none;
}

.search input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
}

.search input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.search input:focus,
.filter-select:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.50);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.mobile-filters {
  margin-bottom: 12px;
}

.filter-select {
  width: auto;
  min-width: 118px;
  min-height: 46px;
  border-radius: 16px;
  padding: 0 14px;
}

/* Status */
.status-row {
  display: grid;
  gap: 10px;
  margin: 14px 0 12px;
}

.status {
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.35;
}

/* KPIs más fresa, menos brillantes */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.kpi,
.stat {
  min-height: 78px;
  border-radius: 18px;
  padding: 13px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--free-border);
  box-shadow: none;
}

.kpi__num,
.stat__num {
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  color: var(--free-text);
}

.kpi__label,
.stat__label {
  margin-top: 6px;
  color: var(--free-muted);
  font-size: 12px;
  line-height: 1.25;
}

/* Cards principales */
.cards {
  display: grid;
  gap: 14px;
}

.card,
.spot-card,
.event-card,
.shop-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(180deg, var(--free-card), var(--free-card2));
  border: 1px solid var(--free-border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

/* Apaga overlays viejos que hacen look plástico */
.card::before,
.spot-card::before,
.event-card::before,
.shop-card::before {
  content: none !important;
}

.card__image {
  height: 156px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: #0b111a;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .card__image img,
.shop-card .card__image img {
  object-fit: cover;
}

/* Card content */
.spot {
  gap: 12px;
}

.spot__top {
  align-items: center;
}

.spot__name,
.event__title,
.card h3,
.h3 {
  color: var(--free-text);
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.spot__meta,
.event__meta,
.card p,
.muted {
  color: var(--free-muted);
}

.spot__meta {
  display: grid;
  gap: 5px;
  font-size: 14px;
  line-height: 1.35;
}

/* Chips */
.chip,
.badge,
.pill,
.tag {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.13);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 850;
}

.badge--soft,
.chip-btn.is-active,
.chip.is-active {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.10);
  border-color: rgba(34, 211, 238, 0.24);
}

/* Botones */
.btn {
  min-height: 42px;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: none;
}

.btn-primary {
  color: #041017;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  border: 0;
}

.btn-secondary,
.btn-ghost {
  color: var(--free-text);
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.icon-btn {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: none;
}

/* Empty states */
.empty,
.empty-state,
.no-results {
  min-height: 120px;
  border-radius: 22px;
  padding: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--free-muted);
  background: rgba(15, 23, 42, 0.54);
  border: 1px dashed rgba(148, 163, 184, 0.18);
}

/* Bottom nav: no tocar demasiado el route hub */
.bottom-nav {
  background: rgba(5, 9, 16, 0.96) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.38) !important;
}

.bottom-nav .bn {
  color: rgba(226, 232, 240, 0.62) !important;
}

.bottom-nav .bn.is-active {
  color: #f8fafc !important;
}

.toast {
  background: rgba(10, 18, 33, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* =========================================
   v0.20 PATCH — Header + Toolbar fix
   Corrige search, filtros y botones superiores
   ========================================= */

.appbar {
  background: rgba(7, 11, 20, 0.96) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

.appbar__inner {
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  width: 150px !important;
  max-width: 52vw !important;
  height: auto !important;
  max-height: 54px !important;
  object-fit: contain !important;
}

.appbar__actions {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.appbar__actions .icon-btn,
#btnLanguage,
#btnTheme {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #e2e8f0 !important;
  background: rgba(15, 23, 42, 0.82) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  box-shadow: none !important;
}

.lang-wrap {
  position: relative;
}

.lang-menu-global {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  min-width: 166px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(10, 18, 33, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.lang-option {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  color: #f8fafc;
  background: transparent;
  font-weight: 800;
}

.lang-option:active,
.lang-option:hover {
  background: rgba(34, 211, 238, 0.10);
}

.toolbar {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin: 14px 0 18px !important;
  width: 100% !important;
}

.search {
  width: 100% !important;
  min-width: 0 !important;
}

.search input,
#qSpots,
#qEvents,
#qShops {
  width: 100% !important;
  max-width: none !important;
  min-height: 50px !important;
  display: block !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

.search input:focus,
#qSpots:focus,
#qEvents:focus,
#qShops:focus {
  border-color: rgba(34, 211, 238, 0.52) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08) !important;
}

.mobile-filters {
  display: flex !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

.filter-select {
  width: auto !important;
  min-width: 124px !important;
  max-width: 180px !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  border-radius: 16px !important;
  background: rgba(15, 23, 42, 0.82) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: #f8fafc !important;
}

@media (max-width: 768px) {
  .chips {
    display: none !important;
  }
}

@media (min-width: 720px) {
  .toolbar {
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
  }

  .chips {
    grid-column: 1 / -1;
  }
}

.kpis {
  margin-top: 14px !important;
  margin-bottom: 18px !important;
}

.cards {
  gap: 16px !important;
}

.card,
.spot-card,
.event-card,
.shop-card {
  margin-top: 0 !important;
}


/* =========================================
   MAP VALUE POLISH v0.21
   Route HUD + mobile map UX
   ========================================= */

.real-map-shell {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: #020617;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.real-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.leaflet-control-attribution {
  opacity: 0.68;
  font-size: 9px;
  background: rgba(2, 6, 23, 0.64) !important;
  color: rgba(226, 232, 240, 0.62) !important;
}

.leaflet-control-attribution a {
  color: rgba(34, 211, 238, 0.86) !important;
}

.map-locate,
.map-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.map-locate {
  color: #67e8f9 !important;
  font-size: 20px;
  font-weight: 950;
}

/* HUD encima del mapa, tipo navegación */
.route-hud {
  position: absolute;
  left: 14px;
  top: 14px;
  right: 14px;
  z-index: 700;
  min-height: 86px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.route-hud[hidden] {
  display: none !important;
}

.route-hud__arrow {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 950;
  color: #020617;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.28);
}

.route-hud__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.route-hud__label {
  color: #22d3ee;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-hud__body strong {
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}


/* ================================================================================================ */



/* Panel debajo del mapa: fallback discreto */
.map-route-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.12), transparent 36%),
    rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.map-route-panel[hidden] {
  display: none !important;
}

.map-route-panel__head {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.map-route-panel__label {
  color: #22d3ee;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-route-panel__head strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.14;
}

.map-route-status {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.10);
  font-size: 12px;
  line-height: 1.3;
}

.map-route-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #22d3ee;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.12);
}

.map-route-panel__coords {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.map-route-panel__coords[hidden] {
  display: none !important;
}

.map-route-panel__coords span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.10);
  font-size: 11px;
  font-weight: 800;
}

.map-app-btn {
  min-height: 42px;
  margin-top: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.88);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.map-app-btn+.map-app-btn {
  margin-left: 8px;
}

.map-app-btn--waze {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 42%),
    rgba(15, 23, 42, 0.92);
}

.map-app-btn--google {
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.18), transparent 42%),
    rgba(15, 23, 42, 0.92);
}

/* Leaflet markers/popups */
.cj-map-marker {
  width: 34px;
  height: 34px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #7c5cff, #22d3ee);
  box-shadow:
    0 12px 28px rgba(34, 211, 238, 0.30),
    0 0 0 5px rgba(34, 211, 238, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.cj-map-marker--active {
  animation: cjMapPulse 900ms ease-in-out infinite alternate;
}

@keyframes cjMapPulse {
  from {
    transform: scale(1);
    filter: brightness(1);
  }

  to {
    transform: scale(1.08);
    filter: brightness(1.18);
  }
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}

.leaflet-popup-content {
  margin: 12px;
}

.cj-map-popup {
  min-width: 190px;
  color: #e5e7eb;
}

.cj-map-popup strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 14px;
}

.cj-map-popup span {
  display: block;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.cj-map-popup button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 13px;
  color: #020617;
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
}

/* =========================================
   MAP VALUE POLISH — Internal route first
   ========================================= */

#btnMapRouteWaze,
#btnMapRouteGoogle {
  display: none !important;
}

.map-route-panel {
  margin-top: 12px;
}

.map-route-status {
  margin-top: 10px;
}

.route-hud {
  pointer-events: none;
}

.real-map-shell {
  position: relative;
}

.cj-route-line-label {
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

#btnMapRouteWaze,
#btnMapRouteGoogle,
#btnRouteWaze,
#btnRouteGoogle {
  display: none !important;
}

.route-preview--internal {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
}

.route-preview__icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #020617;
  font-size: 28px;
  font-weight: 950;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
}

/* =========================================
   v0.21 PATCH — Compact internal map HUD
   ========================================= */
/* 
#mapCard,
.map-surface,
.real-map-shell {
  position: relative;
}

/* El HUD debe ser compacto, no una card gigante */
#routeHud.route-hud {
  position: absolute !important;
  top: 79px !important;
  left: 29px !important;
  right: 29px !important;
  z-index: 750 !important;

  min-height: 68px !important;
  padding: 10px 12px !important;
  border-radius: 22px !important;

  display: grid !important;
  grid-template-columns: 48px 1fr !important;
  align-items: center !important;
  gap: 10px !important;

  background:
    radial-gradient(circle at 16% 10%, rgba(34, 211, 238, 0.18), transparent 36%),
    rgba(2, 6, 23, 0.92) !important;

  border: 1px solid rgba(34, 211, 238, 0.24) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

  backdrop-filter: blur(14px);
  pointer-events: none;
}

#routeHud[hidden] {
  display: none !important;
}

#routeHud .route-hud__arrow {
  width: 48px !important;
  height: 48px !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 25px !important;
  line-height: 1 !important;
}

#routeHud .route-hud__body {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

#routeHud .route-hud__label {
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0.12em !important;
  color: #22d3ee !important;
  text-transform: uppercase !important;
}

#routeHud strong,
#routeHudTitle {
  display: block !important;
  max-width: 100% !important;
  color: #f8fafc !important;
  font-size: 16px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
  white-space: normal !important;
}

/* El estado NO debe vivir dentro del HUD principal */
#routeHud .map-route-status,
#routeHud #mapRouteStatus,
#routeHud .map-route-panel__coords,
#routeHud #mapRouteCoords {
  display: none !important;
}

/* Mapa con altura suficiente para que el HUD no lo mate */
.real-map-shell {
  top: 80px;
  min-height: 360px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

.real-map,
#realMap {
  min-height: 360px !important;
}

/* Panel inferior: discreto, no protagonista */
#mapRoutePanel.map-route-panel {
  margin-top: 12px !important;
  padding: 12px !important;
  border-radius: 20px !important;
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  box-shadow: none !important;
}

#mapRoutePanel .route-preview--internal {
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 10px !important;
  align-items: center !important;
}

#mapRoutePanel .route-preview__icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  font-size: 22px !important;
}

/* Si el panel tiene coordenadas, que sean pequeñas */
#mapRoutePanel .map-route-panel__coords {
  margin-top: 8px !important;
}

#mapRoutePanel .map-route-panel__coords span {
  min-height: 26px !important;
  font-size: 10px !important;
}

/* Waze/Google siguen ocultos: Callejeandola map primero */
#btnMapRouteWaze,
#btnMapRouteGoogle,
#btnRouteWaze,
#btnRouteGoogle {
  display: none !important;
}

*
/* =========================================
   DEMO CLEANUP — compact entity action row
   ========================================= */

.entity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.entity-row__text {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.entity-row__location {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
}

.entity-row__location span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.entity-row__pin {
  flex: 0 0 auto;
  font-size: 13px;
}

.entity-row__time {
  margin: 0;
  padding-left: 21px;
  font-size: 12px;
  line-height: 1.25;
}

.entity-row__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.entity-icon-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.entity-icon-btn:hover {
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.12);
}

.entity-icon-btn.is-active {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.14);
}

/* =========================================
   DEMO CLEANUP — compact entity action row
   ========================================= */

.entity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.entity-row__text {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.entity-row__location {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
}

.entity-row__location span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.entity-row__pin {
  flex: 0 0 auto;
  font-size: 13px;
}

.entity-row__time {
  margin: 0;
  padding-left: 21px;
  font-size: 12px;
  line-height: 1.25;
}

.entity-row__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.entity-icon-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.entity-icon-btn:hover {
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.12);
}

.entity-icon-btn.is-active {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.14);
}

/* =========================================
   MOBILE ENTRY FLOW
========================================= */

.desktop-qr-gate,
.mobile-splash,
.location-gate {
  position: fixed;
  inset: 0;
  z-index: 20000;
}

.desktop-qr-gate {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.16), transparent 34%),
    #020617;
}

.desktop-qr-gate__card {
  width: min(440px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
  text-align: center;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.24);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.desktop-qr-gate__logo {
  width: 180px;
  max-width: 80%;
  object-fit: contain;
}

.desktop-qr-gate__card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.desktop-qr-gate__card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.45;
}

.desktop-qr-gate__qr {
  padding: 12px;
  border-radius: 22px;
  background: #f8fafc;
}

.desktop-qr-gate__qr img {
  display: block;
  width: 220px;
  height: 220px;
}

.mobile-splash {
  display: grid;
  place-items: center;
  background: black;
  transition: opacity 280ms ease, transform 280ms ease;
}

.mobile-splash.is-leaving {
  opacity: 0;
  transform: scale(1.02);
}

.mobile-splash__inner {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.mobile-splash__gif {
  width: min(190px, 62vw);
  max-height: 190px;
  object-fit: contain;
}

.mobile-splash__inner p {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.location-gate {
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(14px);
}

.location-gate__card {
  width: min(360px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.18), transparent 32%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.location-gate__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
  color: #020617;
  font-size: 24px;
}

.location-gate__card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.location-gate__card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.4;
}

.location-gate__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.location-gate__actions .btn {
  min-height: 44px;
  border-radius: 16px;
}

@media (max-width: 767px) {
  .desktop-qr-gate {
    display: none !important;
  }
}

@media (min-width: 768px) and (pointer: fine) {

  .mobile-splash,
  .location-gate {
    display: none !important;
  }
}

/* =========================================
   PRELAUNCH — LIST / GRID MODE
========================================= */

.entity-view-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.entity-view-toggle__label {
  padding-left: 6px;
  color: var(--text, #0f172a);
  font-size: 18px;
  font-weight: 900;
}

.entity-view-toggle__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.entity-view-toggle__btn {
  width: 42px;
  min-width: 42px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(15, 23, 42, 0.62);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.entity-view-toggle__btn.is-active {
  background: var(--accent, #22d3ee);
  color: #020617;
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.22);
}

/* LIST MODE */

#spotsList[data-view-mode="list"],
#eventsList[data-view-mode="list"] {
  grid-template-columns: 1fr;
}

/* GRID MODE */

#spotsList[data-view-mode="grid"],
#eventsList[data-view-mode="grid"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

#spotsList[data-view-mode="grid"] .card,
#eventsList[data-view-mode="grid"] .card {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#spotsList[data-view-mode="grid"] .card__body,
#eventsList[data-view-mode="grid"] .card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

#spotsList[data-view-mode="grid"] .spot__name,
#eventsList[data-view-mode="grid"] .event__title {
  min-height: 32px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* GRID: location arriba, acciones abajo */

#spotsList[data-view-mode="grid"] .entity-row,
#eventsList[data-view-mode="grid"] .entity-row {
  width: 100%;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: start;
}

#spotsList[data-view-mode="grid"] .entity-row__text,
#eventsList[data-view-mode="grid"] .entity-row__text {
  min-width: 0;
  width: 100%;
}

#spotsList[data-view-mode="grid"] .entity-row__location,
#eventsList[data-view-mode="grid"] .entity-row__location {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: rgba(226, 232, 240, 0.72);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

#spotsList[data-view-mode="grid"] .entity-row__pin,
#eventsList[data-view-mode="grid"] .entity-row__pin {
  flex: 0 0 auto;
  display: inline-flex;
}

#spotsList[data-view-mode="grid"] .entity-row__location span:last-child,
#eventsList[data-view-mode="grid"] .entity-row__location span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#spotsList[data-view-mode="grid"] .entity-row__actions,
#eventsList[data-view-mode="grid"] .entity-row__actions {
  width: 100%;
  display: flow;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

#spotsList[data-view-mode="grid"] .entity-icon-btn,
#eventsList[data-view-mode="grid"] .entity-icon-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

/* TABLET / DESKTOP PREVIEW */

@media (min-width: 768px) {

  #spotsList[data-view-mode="grid"],
  #eventsList[data-view-mode="grid"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================
   ROUTE OVERLAY — WAZE-LIKE MAP FINAL
========================================= */

body.is-cj-route-overlay-open {
  overflow: hidden !important;
}

.cj-route-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

.cj-route-overlay[hidden],
body:not(.is-cj-route-overlay-open) #cjRouteOverlay {
  display: none !important;
}

/* Dedicated route map */

.cj-route-map-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #e5e7eb;
}

.cj-route-map-host #cjRouteLeafletMap,
.cj-route-leaflet-map {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #e5e7eb !important;
}

/* Header */

.cj-route-overlay__top {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.cj-route-overlay__back,
.cj-route-overlay__close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.cj-route-overlay__title {
  min-width: 0;
  padding: 9px 12px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.cj-route-overlay__title span {
  display: block;
  overflow: hidden;
  color: rgba(15, 23, 42, 0.55);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cj-route-overlay__title strong {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Leaflet controls */

.cj-route-map-host .leaflet-top.leaflet-left {
  top: 76px !important;
  left: 12px !important;
}

.cj-route-map-host .leaflet-control-zoom {
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
}

.cj-route-map-host .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  border: 0 !important;
}

/* Bottom sheet */

.cj-route-sheet {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 5;
  width: min(calc(100vw - 24px), 430px);
  transform: translateX(-50%);
  padding: 10px 12px 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
}

.cj-route-sheet__handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.cj-route-sheet__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cj-route-sheet__main strong {
  display: block;
  color: #020617;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cj-route-sheet__main small {
  display: block;
  margin-top: 5px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.cj-route-sheet__badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
  font-size: 11px;
  font-weight: 950;
}

.cj-route-sheet p {
  margin: 10px 0 12px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.cj-route-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cj-route-sheet__actions .btn {
  min-height: 42px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 950;
  color: #000;
}

/* Live navigation brand */

.cj-route-live-brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.18), transparent 36%),
    rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cj-route-live-brand[hidden] {
  display: none !important;
}

.cj-route-live-brand__logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  color: #020617;
  font-size: 12px;
  font-weight: 950;
}

.cj-route-live-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cj-route-live-brand__logo img+b {
  display: none;
}

.cj-route-live-brand strong {
  display: block;
  color: #020617;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
}

.cj-route-live-brand small {
  display: block;
  margin-top: 3px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.cj-route-sheet.is-live {
  border: 1px solid rgba(34, 211, 238, 0.36);
}

.cj-route-sheet.is-live .cj-route-sheet__badge {
  background: rgba(34, 211, 238, 0.16);
  color: #0369a1;
}

#btnCjRouteStart.is-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
}

.cj-route-btn-logo {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.14);
  color: #020617;
  font-size: 9px;
  font-weight: 950;
}

.cj-route-btn-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cj-route-btn-logo img+b {
  display: none;
}

/* Kill legacy map while route overlay is active */

#mapView[hidden],
body:not(.is-map-open) #mapView,
body.is-cj-route-overlay-open #mapView {
  display: none !important;
}

body.is-cj-route-overlay-open .bottom-nav,
body.is-cj-route-overlay-open #btnOnboardingHelp,
body.is-cj-route-overlay-open #desktopQrGate,
body.is-cj-route-overlay-open #mobileSplash,
body.is-cj-route-overlay-open #locationGate {
  display: none !important;
}

/* Small devices */

@media (max-width: 360px) {
  .cj-route-overlay__top {
    left: 8px;
    right: 8px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .cj-route-overlay__back,
  .cj-route-overlay__close {
    width: 38px;
    height: 38px;
  }

  .cj-route-sheet {
    width: calc(100vw - 18px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  }
}

/* =========================================
   LIVE NAVIGATION — COMPACT HUD + MARKER
========================================= */

.cj-route-live-hud {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 8;
  width: min(calc(100vw - 22px), 430px);
  min-height: 72px;
  transform: translateX(-50%);

  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;

  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.cj-route-live-hud[hidden] {
  display: none !important;
}

.cj-route-live-hud__control {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;

  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;

  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

#btnCjLiveStop {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.cj-route-live-hud__summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.cj-route-live-hud__logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;

  border-radius: 15px;
  background: #020617;
  color: #fff;
}

.cj-route-live-hud__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cj-route-live-hud__logo b {
  font-size: 10px;
  font-weight: 950;
}

.cj-route-live-hud__text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cj-route-live-hud__text strong {
  overflow: hidden;
  color: #020617;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cj-route-live-hud__text small {
  overflow: hidden;
  color: rgba(15, 23, 42, 0.62);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Live marker */

.cj-live-user-marker-wrap {
  border: 0 !important;
  background: transparent !important;
}

.cj-live-user-marker {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}

.cj-live-user-marker__pulse {
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.28);
  animation: cj-live-marker-pulse 1.8s ease-out infinite;
}

.cj-live-user-marker__logo {
  position: relative;
  z-index: 2;

  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;

  border: 4px solid #fff;
  border-radius: 999px;
  background: #020617;
  color: #fff;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.36);
}

.cj-live-user-marker__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cj-live-user-marker__logo b {
  font-size: 9px;
  font-weight: 950;
}

.cj-live-user-marker__arrow {
  position: absolute;
  z-index: 3;
  bottom: 0;

  color: #22d3ee;
  font-size: 17px;
  line-height: 1;

  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff;
}

@keyframes cj-live-marker-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.75);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

body.is-cj-live-navigation .cj-route-sheet {
  display: none !important;
}

@media (max-width: 360px) {
  .cj-route-live-hud {
    width: calc(100vw - 16px);
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 7px;
    padding: 8px;
  }

  .cj-route-live-hud__control {
    width: 44px;
    height: 44px;
  }
}



/* =========================================
   ROUTE START PROGRESS + RE-CENTER
========================================= */

#btnCjRouteStart {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#btnCjRouteStart::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.34);
  transform: scaleX(0);
  transform-origin: left center;
}

#btnCjRouteStart.is-loading::before {
  animation: cj-route-start-progress 900ms ease forwards;
}

#btnCjRouteStart.is-loading {
  cursor: wait;
}

@keyframes cj-route-start-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.cj-route-recenter {
  position: fixed;
  right: 14px;
  bottom: 104px;
  z-index: 7;

  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 0 14px;
  border: 0;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;

  font-size: 13px;
  font-weight: 900;

  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.cj-route-recenter[hidden] {
  display: none !important;
}

.cj-route-recenter>span {
  white-space: nowrap;
}

/* =========================================
   LIVE NAVIGATION — CLEAN HUD + FULL LOGO
========================================= */

/* Eliminados del HTML, pero ocultos por seguridad */
.cj-route-live-hud__control {
  display: none !important;
}

/* HUD inferior: solo logo + ETA/distancia */
.cj-route-live-hud {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 8;

  width: min(calc(100vw - 20px), 430px);
  min-height: 74px;
  transform: translateX(-50%);

  display: block;
  padding: 10px 14px;

  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;

  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
}

.cj-route-live-hud[hidden] {
  display: none !important;
}

.cj-route-live-hud__summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.cj-route-live-hud__logo {
  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  overflow: visible;
  border-radius: 16px;
  background: transparent;
}

.cj-route-live-hud__logo img {
  width: 54px;
  height: 54px;

  display: block;
  object-fit: contain;

  filter: drop-shadow(0 7px 8px rgba(2, 6, 23, 0.28));
}

.cj-route-live-hud__logo b {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 14px;
  background: #020617;
  color: #ffffff;

  font-size: 11px;
  font-weight: 950;
}

.cj-route-live-hud__text {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.cj-route-live-hud__text strong {
  overflow: hidden;

  color: #020617;
  font-size: 19px;
  font-weight: 950;
  line-height: 1;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.cj-route-live-hud__text small {
  overflow: hidden;

  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 750;

  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Marcador completo, sin círculo que recorte el icono */

.cj-live-user-marker-wrap {
  border: 0 !important;
  background: transparent !important;
}

.cj-live-user-marker {
  position: relative;

  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;
}

.cj-live-user-marker__pulse {
  position: absolute;
  inset: 10px;

  border-radius: 999px;
  background: rgba(34, 211, 238, 0.24);

  animation: cj-live-marker-pulse 1.8s ease-out infinite;
}

.cj-live-user-marker__image {
  position: relative;
  z-index: 2;

  width: 58px;
  height: 58px;

  display: block;
  object-fit: contain;

  filter: drop-shadow(0 8px 8px rgba(2, 6, 23, 0.40));
}

.cj-live-user-marker__fallback {
  position: relative;
  z-index: 2;

  width: 44px;
  height: 44px;

  place-items: center;

  border: 4px solid #ffffff;
  border-radius: 999px;

  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  color: #020617;

  font-size: 10px;
  font-weight: 950;
}

.cj-live-user-marker__fallback:not([hidden]) {
  display: grid;
}

.cj-live-user-marker__arrow {
  position: absolute;
  z-index: 3;
  bottom: 0;

  color: #22d3ee;
  font-size: 17px;
  line-height: 1;

  text-shadow:
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    2px 2px 0 #ffffff;
}

@keyframes cj-live-marker-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.75);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* Re-center único */

.cj-route-recenter {
  right: 12px;
  bottom: 98px;
  z-index: 9;
}

@media (max-width: 360px) {
  .cj-route-live-hud {
    width: calc(100vw - 16px);
    padding: 8px 12px;
  }

  .cj-route-live-hud__summary {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
  }

  .cj-route-live-hud__logo,
  .cj-route-live-hud__logo img {
    width: 48px;
    height: 48px;
  }
}

/* =========================================
   LIVE NAVIGATION — INLINE RE-CENTER
========================================= */

.cj-route-live-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.cj-route-live-hud[hidden] {
  display: none !important;
}

.cj-route-live-hud .cj-route-recenter {
  position: static !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;

  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border: 0;
  border-radius: 16px;

  background: rgba(15, 23, 42, 0.09);
  color: #0f172a;

  font-size: 18px;
  font-weight: 950;

  box-shadow: none;
  backdrop-filter: none;
}

.cj-route-live-hud .cj-route-recenter[hidden] {
  display: none !important;
}

.cj-route-live-hud .cj-route-recenter span {
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .cj-route-live-hud {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 7px;
  }

  .cj-route-live-hud .cj-route-recenter {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 15px;
  }

  .cj-route-live-hud .cj-route-recenter span {
    display: none;
  }
}

/* =========================================
   ROUTE DESTINATION — FINISH FLAG
========================================= */

.cj-route-destination-marker-wrap {
  border: 0 !important;
  background: transparent !important;
}

.cj-route-destination-marker {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  font-size: 36px;
  line-height: 1;

  transform-origin: 50% 100%;

  filter:
    drop-shadow(0 4px 3px rgba(255, 255, 255, 0.9)) drop-shadow(0 8px 8px rgba(2, 6, 23, 0.38));

  animation: cj-route-finish-flag 1.4s ease-in-out infinite;
}

@keyframes cj-route-finish-flag {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-3px) rotate(3deg);
  }
}

/* =========================================
   BETA FINAL POLISH — ENTITY TOOLBAR
   Spots first · Events/Shops compatible
========================================= */

/* -----------------------------------------
   Search and filters container
----------------------------------------- */

.entity-toolbar {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns:
    minmax(220px, 1fr) auto;

  align-items: center;
  gap: 12px;

  margin: 16px 0;
}

.entity-toolbar__search {
  position: relative;

  width: 100%;
  min-width: 0;
}

.entity-toolbar__search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 2;

  transform: translateY(-50%);

  color: rgba(226, 232, 240, 0.62);

  font-size: 20px;
  line-height: 1;

  pointer-events: none;
}

.entity-toolbar__search input {
  width: 100%;
  min-width: 0;
  min-height: 52px;

  display: block;

  padding:
    0 18px 0 48px;

  border:
    1px solid rgba(148, 163, 184, 0.18);

  border-radius: 18px;

  outline: 0;

  background:
    rgba(7, 15, 29, 0.86);

  color: #f8fafc;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.entity-toolbar__search input::placeholder {
  color: rgba(203, 213, 225, 0.52);
}

.entity-toolbar__search input:focus {
  border-color:
    rgba(34, 211, 238, 0.64);

  background:
    rgba(8, 18, 34, 0.98);

  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.09);
}

/* -----------------------------------------
   Mobile select
----------------------------------------- */

.entity-toolbar__mobile-filter {
  min-width: 174px;
}

.filter-select-wrap {
  position: relative;
  width: 100%;
}

.filter-select {
  width: 100%;
  min-height: 52px;

  appearance: none;
  -webkit-appearance: none;

  padding:
    0 44px 0 16px;

  border:
    1px solid rgba(148, 163, 184, 0.18);

  border-radius: 18px;

  outline: 0;

  background:
    rgba(7, 15, 29, 0.9);

  color: #f8fafc;

  font-family: inherit;
  font-size: 14px;
  font-weight: 800;

  cursor: pointer;
}

.filter-select:focus {
  border-color:
    rgba(34, 211, 238, 0.64);

  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.09);
}

.filter-select-wrap__arrow {
  position: absolute;
  top: 50%;
  right: 16px;

  transform:
    translateY(-52%) rotate(0deg);

  color: #e2e8f0;

  font-size: 18px;
  font-weight: 900;
  line-height: 1;

  pointer-events: none;
}

/*
 * El listado desplegado internamente por Chrome/Windows
 * seguirá usando parcialmente estilos del sistema.
 * El control cerrado sí mantiene el diseño de la app.
 */
.filter-select option {
  background: #0c1524;
  color: #f8fafc;
}

/* -----------------------------------------
   Desktop chips
----------------------------------------- */

.entity-toolbar__chips {
  grid-column: 1 / -1;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 0;
}

.entity-toolbar__chips .chip-btn {
  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 14px;

  border:
    1px solid rgba(148, 163, 184, 0.16);

  border-radius: 999px;

  background:
    rgba(15, 23, 42, 0.68);

  color:
    rgba(226, 232, 240, 0.78);

  font-family: inherit;
  font-size: 12px;
  font-weight: 850;

  cursor: pointer;

  transition:
    transform 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.entity-toolbar__chips .chip-btn:hover {
  color: #f8fafc;

  border-color:
    rgba(34, 211, 238, 0.34);

  background:
    rgba(34, 211, 238, 0.08);
}

.entity-toolbar__chips .chip-btn:active {
  transform: scale(0.96);
}

.entity-toolbar__chips .chip-btn.is-active {
  border-color:
    rgba(34, 211, 238, 0.55);

  background:
    rgba(34, 211, 238, 0.14);

  color: #67e8f9;
}

/* -----------------------------------------
   KPIs
----------------------------------------- */

.entity-kpis {
  width: 100%;

  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  margin:
    0 0 12px;
}

.entity-kpi {
  min-width: 0;
  min-height: 76px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 12px 13px;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 18px;

  background:
    linear-gradient(180deg,
      rgba(17, 28, 47, 0.88),
      rgba(9, 18, 33, 0.88));

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.entity-kpi .kpi__num {
  color: #f8fafc;

  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.entity-kpi .kpi__label {
  overflow: hidden;

  margin-top: 7px;

  color:
    rgba(203, 213, 225, 0.6);

  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;

  white-space: nowrap;
  text-overflow: ellipsis;
}

/* -----------------------------------------
   Status
----------------------------------------- */

.entity-status-row {
  width: 100%;

  margin:
    0 0 16px;
}

.entity-status {
  margin: 0;

  color:
    rgba(203, 213, 225, 0.66);

  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* =========================================
   BETA FINAL POLISH — LIST/GRID SWITCH
========================================= */

.entity-view-toggle {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin:
    8px 0 12px;
}

.entity-view-toggle__label {
  min-width: 0;

  color: #f8fafc;

  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.entity-view-toggle__actions {
  flex: 0 0 auto;

  display: inline-grid;
  grid-template-columns:
    repeat(2, 42px);

  gap: 5px;

  padding: 4px;

  border:
    1px solid rgba(148, 163, 184, 0.13);

  border-radius: 15px;

  background:
    rgba(8, 16, 30, 0.78);
}

.entity-view-toggle__btn {
  width: 42px;
  height: 38px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 11px;

  background: transparent;
  color:
    rgba(203, 213, 225, 0.58);

  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
}

.entity-view-toggle__btn.is-active {
  background:
    rgba(34, 211, 238, 0.14);

  color: #67e8f9;

  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.22);
}

/* =========================================
   BETA FINAL POLISH — SPOT CARDS
========================================= */

#spotsList {
  width: 100%;
  min-width: 0;
}

/* -----------------------------------------
   List mode
----------------------------------------- */

#spotsList[data-view-mode="list"] {
  grid-template-columns: 1fr;
  gap: 12px;
}

#spotsList[data-view-mode="list"] .spot-card {
  min-width: 0;

  display: grid;
  grid-template-columns:
    minmax(126px, 32%) minmax(0, 1fr);

  align-items: stretch;
  gap: 0;

  padding: 0;

  overflow: hidden;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 22px;

  background:
    linear-gradient(145deg,
      rgba(15, 26, 44, 0.95),
      rgba(7, 15, 28, 0.96));
}

#spotsList[data-view-mode="list"] .spot-card>.entity-media {
  width: 100%;
  height: 100%;
  min-height: 150px;

  margin: 0;

  border: 0;
  border-radius: 0;

  aspect-ratio: auto;
}

#spotsList[data-view-mode="list"] .spot-card .card__body {
  min-width: 0;

  display: flex;
  flex-direction: column;

  padding: 16px;
}

#spotsList[data-view-mode="list"] .spot__name {
  display: -webkit-box;
  overflow: hidden;

  margin: 0 0 14px;

  color: #f8fafc;

  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#spotsList[data-view-mode="list"] .entity-row {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;

  margin-top: auto;
}

/* -----------------------------------------
   Grid mode
----------------------------------------- */

#spotsList[data-view-mode="grid"] {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  align-items: stretch;
  gap: 14px;
}

#spotsList[data-view-mode="grid"] .spot-card {
  min-width: 0;
  height: 100%;

  display: flex;
  flex-direction: column;

  padding: 0;

  overflow: hidden;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 21px;

  background:
    linear-gradient(145deg,
      rgba(15, 26, 44, 0.95),
      rgba(7, 15, 28, 0.98));
}

#spotsList[data-view-mode="grid"] .spot-card>.entity-media {
  width: 100%;
  height: auto;

  margin: 0;

  border: 0;
  border-radius: 0;

  aspect-ratio: 4 / 3;
}

#spotsList[data-view-mode="grid"] .spot-card .card__body {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 13px;
}

#spotsList[data-view-mode="grid"] .spot__name {
  display: -webkit-box;
  overflow: hidden;

  min-height: 2.3em;

  margin: 0 0 13px;

  color: #f8fafc;

  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#spotsList[data-view-mode="grid"] .entity-row {
  width: 100%;
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;

  margin-top: auto;
}

#spotsList[data-view-mode="grid"] .entity-row__location {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 5px;

  margin: 0;

  font-size: 11px;
  line-height: 1.3;
}

#spotsList[data-view-mode="grid"] .entity-row__location span:last-child {
  display: -webkit-box;
  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#spotsList[data-view-mode="grid"] .entity-row__actions {
  width: 100%;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;
}

/* -----------------------------------------
   Shared card media
----------------------------------------- */

#spotsList .entity-media {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(135deg,
      rgba(34, 211, 238, 0.13),
      rgba(124, 58, 237, 0.15));
}

#spotsList .entity-media img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

#spotsList .entity-media__mark {
  position: absolute;
  top: 10px;
  left: 10px;

  min-width: 34px;
  height: 30px;

  display: grid;
  place-items: center;

  padding: 0 8px;

  border:
    1px solid rgba(255, 255, 255, 0.18);

  border-radius: 10px;

  background:
    rgba(2, 6, 23, 0.66);

  color: #ffffff;

  font-size: 10px;
  font-weight: 950;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#spotsList .entity-media>span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;

  overflow: hidden;

  color: #ffffff;

  font-size: 11px;
  font-weight: 850;

  white-space: nowrap;
  text-overflow: ellipsis;

  text-shadow:
    0 2px 7px rgba(0, 0, 0, 0.78);
}

/* -----------------------------------------
   Location and action buttons
----------------------------------------- */

#spotsList .entity-row__location {
  color:
    rgba(203, 213, 225, 0.65);
}

#spotsList .entity-row__pin {
  flex: 0 0 auto;
}

#spotsList .entity-row__actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  gap: 8px;
}

#spotsList .entity-icon-btn {
  min-width: 42px;
  min-height: 42px;

  display: inline-grid;
  place-items: center;

  padding: 0;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.78);

  color: #e2e8f0;

  font-size: 16px;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

#spotsList .entity-icon-btn:hover {
  border-color:
    rgba(34, 211, 238, 0.38);

  background:
    rgba(34, 211, 238, 0.1);

  color: #67e8f9;
}

#spotsList .entity-icon-btn:active {
  transform: scale(0.94);
}

#spotsList .entity-icon-btn.is-active {
  border-color:
    rgba(244, 63, 94, 0.32);

  background:
    rgba(244, 63, 94, 0.12);

  color: #fb7185;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (min-width: 769px) {
  .entity-toolbar__mobile-filter {
    display: none;
  }
}

@media (max-width: 900px) {
  #spotsList[data-view-mode="grid"] {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .entity-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;

    margin:
      14px 0;
  }

  .entity-toolbar__mobile-filter {
    display: block;
    min-width: 0;
  }

  .entity-toolbar__chips {
    display: none;
  }

  .entity-toolbar__search input,
  .filter-select {
    min-height: 50px;
    border-radius: 17px;
  }

  .entity-kpis {
    gap: 8px;
  }

  .entity-kpi {
    min-height: 70px;
    padding: 11px;
  }

  .entity-kpi .kpi__num {
    font-size: 20px;
  }

  .entity-kpi .kpi__label {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  #spotsList[data-view-mode="list"] .spot-card {
    grid-template-columns:
      112px minmax(0, 1fr);

    border-radius: 19px;
  }

  #spotsList[data-view-mode="list"] .spot-card>.entity-media {
    min-height: 134px;
  }

  #spotsList[data-view-mode="list"] .spot-card .card__body {
    padding: 13px;
  }

  #spotsList[data-view-mode="list"] .spot__name {
    margin-bottom: 10px;
    font-size: 16px;
  }

  #spotsList[data-view-mode="list"] .entity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  #spotsList[data-view-mode="grid"] {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  #spotsList[data-view-mode="grid"] .spot-card {
    border-radius: 18px;
  }

  #spotsList[data-view-mode="grid"] .spot-card .card__body {
    padding: 10px;
  }

  #spotsList[data-view-mode="grid"] .spot__name {
    min-height: 2.35em;

    margin-bottom: 10px;

    font-size: 14px;
  }

  #spotsList[data-view-mode="grid"] .entity-row {
    gap: 10px;
  }

  #spotsList[data-view-mode="grid"] .entity-row__actions {
    gap: 6px;
  }

  #spotsList[data-view-mode="grid"] .entity-icon-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;

    border-radius: 11px;
  }
}

@media (max-width: 340px) {
  .entity-toolbar__search input {
    padding-right: 13px;
    padding-left: 43px;

    font-size: 13px;
  }

  .entity-kpi {
    padding:
      10px 8px;
  }

  .entity-kpi .kpi__num {
    font-size: 18px;
  }

  .entity-kpi .kpi__label {
    font-size: 9px;
  }

  #spotsList[data-view-mode="grid"] {
    gap: 8px;
  }

  #spotsList[data-view-mode="grid"] .spot-card .card__body {
    padding: 9px;
  }

  #spotsList[data-view-mode="grid"] .spot__name {
    font-size: 13px;
  }
}

/* =========================================
   BETA FINAL POLISH — LIST/GRID SWITCH
========================================= */

.entity-view-toggle {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin:
    8px 0 12px;
}

.entity-view-toggle__label {
  min-width: 0;

  color: #f8fafc;

  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.entity-view-toggle__actions {
  flex: 0 0 auto;

  display: inline-grid;
  grid-template-columns:
    repeat(2, 42px);

  gap: 5px;

  padding: 4px;

  border:
    1px solid rgba(148, 163, 184, 0.13);

  border-radius: 15px;

  background:
    rgba(8, 16, 30, 0.78);
}

.entity-view-toggle__btn {
  width: 42px;
  height: 38px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 11px;

  background: transparent;
  color:
    rgba(203, 213, 225, 0.58);

  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
}

.entity-view-toggle__btn.is-active {
  background:
    rgba(34, 211, 238, 0.14);

  color: #67e8f9;

  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.22);
}

/* =========================================
   BETA FINAL POLISH — SPOT CARDS
========================================= */

#spotsList {
  width: 100%;
  min-width: 0;
}

/* -----------------------------------------
   List mode
----------------------------------------- */

#spotsList[data-view-mode="list"] {
  grid-template-columns: 1fr;
  gap: 12px;
}

#spotsList[data-view-mode="list"] .spot-card {
  min-width: 0;

  display: grid;
  grid-template-columns:
    minmax(126px, 32%) minmax(0, 1fr);

  align-items: stretch;
  gap: 0;

  padding: 0;

  overflow: hidden;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 22px;

  background:
    linear-gradient(145deg,
      rgba(15, 26, 44, 0.95),
      rgba(7, 15, 28, 0.96));
}

#spotsList[data-view-mode="list"] .spot-card>.entity-media {
  width: 100%;
  height: 100%;
  min-height: 150px;

  margin: 0;

  border: 0;
  border-radius: 0;

  aspect-ratio: auto;
}

#spotsList[data-view-mode="list"] .spot-card .card__body {
  min-width: 0;

  display: flex;
  flex-direction: column;

  padding: 16px;
}

#spotsList[data-view-mode="list"] .spot__name {
  display: -webkit-box;
  overflow: hidden;

  margin: 0 0 14px;

  color: #f8fafc;

  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#spotsList[data-view-mode="list"] .entity-row {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;

  margin-top: auto;
}

/* -----------------------------------------
   Grid mode
----------------------------------------- */

#spotsList[data-view-mode="grid"] {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  align-items: stretch;
  gap: 14px;
}

#spotsList[data-view-mode="grid"] .spot-card {
  min-width: 0;
  height: 100%;

  display: flex;
  flex-direction: column;

  padding: 0;

  overflow: hidden;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 21px;

  background:
    linear-gradient(145deg,
      rgba(15, 26, 44, 0.95),
      rgba(7, 15, 28, 0.98));
}

#spotsList[data-view-mode="grid"] .spot-card>.entity-media {
  width: 100%;
  height: auto;

  margin: 0;

  border: 0;
  border-radius: 0;

  aspect-ratio: 4 / 3;
}

#spotsList[data-view-mode="grid"] .spot-card .card__body {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 13px;
}

#spotsList[data-view-mode="grid"] .spot__name {
  display: -webkit-box;
  overflow: hidden;

  min-height: 2.3em;

  margin: 0 0 13px;

  color: #f8fafc;

  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#spotsList[data-view-mode="grid"] .entity-row {
  width: 100%;
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;

  margin-top: auto;
}

#spotsList[data-view-mode="grid"] .entity-row__location {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 5px;

  margin: 0;

  font-size: 11px;
  line-height: 1.3;
}

#spotsList[data-view-mode="grid"] .entity-row__location span:last-child {
  display: -webkit-box;
  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#spotsList[data-view-mode="grid"] .entity-row__actions {
  width: 100%;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;
}

/* -----------------------------------------
   Shared card media
----------------------------------------- */

#spotsList .entity-media {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(135deg,
      rgba(34, 211, 238, 0.13),
      rgba(124, 58, 237, 0.15));
}

#spotsList .entity-media img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

#spotsList .entity-media__mark {
  position: absolute;
  top: 10px;
  left: 10px;

  min-width: 34px;
  height: 30px;

  display: grid;
  place-items: center;

  padding: 0 8px;

  border:
    1px solid rgba(255, 255, 255, 0.18);

  border-radius: 10px;

  background:
    rgba(2, 6, 23, 0.66);

  color: #ffffff;

  font-size: 10px;
  font-weight: 950;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#spotsList .entity-media>span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;

  overflow: hidden;

  color: #ffffff;

  font-size: 11px;
  font-weight: 850;

  white-space: nowrap;
  text-overflow: ellipsis;

  text-shadow:
    0 2px 7px rgba(0, 0, 0, 0.78);
}

/* -----------------------------------------
   Location and action buttons
----------------------------------------- */

#spotsList .entity-row__location {
  color:
    rgba(203, 213, 225, 0.65);
}

#spotsList .entity-row__pin {
  flex: 0 0 auto;
}

#spotsList .entity-row__actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  gap: 8px;
}

#spotsList .entity-icon-btn {
  min-width: 42px;
  min-height: 42px;

  display: inline-grid;
  place-items: center;

  padding: 0;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.78);

  color: #e2e8f0;

  font-size: 16px;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

#spotsList .entity-icon-btn:hover {
  border-color:
    rgba(34, 211, 238, 0.38);

  background:
    rgba(34, 211, 238, 0.1);

  color: #67e8f9;
}

#spotsList .entity-icon-btn:active {
  transform: scale(0.94);
}

#spotsList .entity-icon-btn.is-active {
  border-color:
    rgba(244, 63, 94, 0.32);

  background:
    rgba(244, 63, 94, 0.12);

  color: #fb7185;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (min-width: 769px) {
  .entity-toolbar__mobile-filter {
    display: none;
  }
}

@media (max-width: 900px) {
  #spotsList[data-view-mode="grid"] {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .entity-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;

    margin:
      14px 0;
  }

  .entity-toolbar__mobile-filter {
    display: block;
    min-width: 0;
  }

  .entity-toolbar__chips {
    display: none;
  }

  .entity-toolbar__search input,
  .filter-select {
    min-height: 50px;
    border-radius: 17px;
  }

  .entity-kpis {
    gap: 8px;
  }

  .entity-kpi {
    min-height: 70px;
    padding: 11px;
  }

  .entity-kpi .kpi__num {
    font-size: 20px;
  }

  .entity-kpi .kpi__label {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  #spotsList[data-view-mode="list"] .spot-card {
    grid-template-columns:
      112px minmax(0, 1fr);

    border-radius: 19px;
  }

  #spotsList[data-view-mode="list"] .spot-card>.entity-media {
    min-height: 134px;
  }

  #spotsList[data-view-mode="list"] .spot-card .card__body {
    padding: 13px;
  }

  #spotsList[data-view-mode="list"] .spot__name {
    margin-bottom: 10px;
    font-size: 16px;
  }

  #spotsList[data-view-mode="list"] .entity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  #spotsList[data-view-mode="grid"] {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  #spotsList[data-view-mode="grid"] .spot-card {
    border-radius: 18px;
  }

  #spotsList[data-view-mode="grid"] .spot-card .card__body {
    padding: 10px;
  }

  #spotsList[data-view-mode="grid"] .spot__name {
    min-height: 2.35em;

    margin-bottom: 10px;

    font-size: 14px;
  }

  #spotsList[data-view-mode="grid"] .entity-row {
    gap: 10px;
  }

  #spotsList[data-view-mode="grid"] .entity-row__actions {
    gap: 6px;
  }

  #spotsList[data-view-mode="grid"] .entity-icon-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;

    border-radius: 11px;
  }
}

@media (max-width: 340px) {
  .entity-toolbar__search input {
    padding-right: 13px;
    padding-left: 43px;

    font-size: 13px;
  }

  .entity-kpi {
    padding:
      10px 8px;
  }

  .entity-kpi .kpi__num {
    font-size: 18px;
  }

  .entity-kpi .kpi__label {
    font-size: 9px;
  }

  #spotsList[data-view-mode="grid"] {
    gap: 8px;
  }

  #spotsList[data-view-mode="grid"] .spot-card .card__body {
    padding: 9px;
  }

  #spotsList[data-view-mode="grid"] .spot__name {
    font-size: 13px;
  }
}

/* =========================================
   BETA POLISH — SPOTS TOOLBAR FINAL
   Search + Filter + Compact KPIs + Help
========================================= */

.beta-spots-toolbar,
.beta-spots-toolbar * {
  box-sizing: border-box;
}

.beta-spots-toolbar {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 9px;
  margin: 13px 0 11px;
}

/* -----------------------------------------
   Search
----------------------------------------- */

.beta-spots-search {
  width: 100%;
  min-width: 0;
}

.beta-spots-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  display: block;
  padding: 0 15px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 17px;
  outline: none;
  background: rgba(7, 15, 29, 0.88);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 26px rgba(2, 6, 23, 0.12);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.beta-spots-search input::placeholder {
  color: rgba(203, 213, 225, 0.5);
}

.beta-spots-search input:focus {
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(9, 19, 36, 0.98);
  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------
   Filter + mini KPIs
   3 columnas iguales: filtro, visibles, favoritos
----------------------------------------- */

.beta-spots-control-row {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns:
    minmax(132px, 1.38fr) minmax(70px, 0.81fr) minmax(70px, 0.81fr);

  align-items: stretch;
  gap: 7px;
}

.beta-spots-filter {
  position: relative;
  width: 100%;
  min-width: 0;
}

.beta-spots-filter .filter-select {
  width: 100%;
  height: 50px;
  min-height: 50px;

  display: block;
  padding: 0 34px 0 17px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(8, 17, 32, 0.96);
  color: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.beta-spots-filter .filter-select:focus {
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.09);
}

.beta-spots-filter .filter-select option {
  background: #0b1423;
  color: #f8fafc;
}

.beta-spots-mini-kpis {
  display: contents;
}

.beta-spots-filter {
  width: 100%;
  min-width: 0;
}

.beta-spots-filter .filter-select {
  width: 100%;
  height: 50px;
  min-height: 50px;

  display: block;

  padding: 0 30px 0 14px;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;

  outline: none;

  appearance: none;
  -webkit-appearance: none;

  background-color: rgba(8, 17, 32, 0.96);
  background-image:
    url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23E2E8F0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px 14px;

  color: #f8fafc;

  font-family: inherit;
  font-size: 12px;
  font-weight: 850;

  cursor: pointer;
}

.beta-spots-filter .filter-select:focus {
  border-color: rgba(34, 211, 238, 0.58);

  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.09);
}

.beta-spots-filter .filter-select option {
  background: #0b1423;
  color: #f8fafc;
}




.beta-spots-mini-kpi {
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 15px;
  background:
    linear-gradient(180deg,
      rgba(17, 28, 47, 0.92),
      rgba(8, 16, 31, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.beta-spots-mini-kpi strong {
  color: #f8fafc;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.beta-spots-mini-kpi span {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(203, 213, 225, 0.68);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.beta-spots-mini-kpi b {
  color: rgba(34, 211, 238, 0.9);
  font-size: 10px;
  line-height: 1;
}

/* -----------------------------------------
   Filtros rápidos paralelos
----------------------------------------- */

.beta-spots-chips {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.beta-spots-chips .chip-btn {
  min-width: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.72);
  font-family: inherit;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.beta-spots-chips .chip-btn:hover {
  color: #f8fafc;
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.08);
}

.beta-spots-chips .chip-btn:active {
  transform: scale(0.95);
}

.beta-spots-chips .chip-btn.is-active {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.52);
  background: rgba(34, 211, 238, 0.14);
}

/* -----------------------------------------
   Status
----------------------------------------- */

.beta-spots-status-row {
  margin: 0 0 13px;
}

.beta-spots-status-row .status {
  display: block;
  color: rgba(226, 232, 240, 0.82);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

/* =========================================
   BETA POLISH — HELP BUTTON FINAL
========================================= */

#btnOnboardingHelp.tour-help-btn {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 12000 !important;

  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;

  display: grid !important;
  place-items: center !important;

  padding: 0 !important;

  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 16px !important;

  background:
    radial-gradient(circle at 30% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 34%),
    linear-gradient(135deg,
      rgba(34, 211, 238, 0.96),
      rgba(124, 58, 237, 0.94)) !important;

  color: #ffffff !important;

  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;

  box-shadow:
    0 14px 34px rgba(34, 211, 238, 0.28),
    0 8px 22px rgba(2, 6, 23, 0.34) !important;

  transform: none !important;
  cursor: pointer !important;
}

/* El botón de ayuda no debe tapar la navegación inferior */
#btnOnboardingHelp.tour-help-btn.is-bottom,
#btnOnboardingHelp.tour-help-btn[data-placement="bottom"] {
  top: calc(env(safe-area-inset-top, 0px) + 14px) !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
}

/* -----------------------------------------
   Responsive fino para 320px
----------------------------------------- */

@media (max-width: 340px) {
  .beta-spots-toolbar {
    gap: 8px;
    margin-top: 12px;
  }

  .beta-spots-search input {
    height: 46px;
    font-size: 12px;
    border-radius: 15px;
  }

  .beta-spots-control-row {
    grid-template-columns:
      minmax(132px, 1.42fr) minmax(66px, 0.79fr) minmax(66px, 0.79fr);

    gap: 6px;
  }

  .beta-spots-filter .filter-select {
    height: 48px;
    min-height: 48px;

    padding-left: 15px;
    padding-right: 32px;

    font-size: 13px;

    border-radius: 17px;
  }

  .beta-spots-mini-kpi {
    height: 48px;
    min-height: 48px;
    padding: 7px 6px;
    border-radius: 14px;
  }

  .beta-spots-mini-kpi strong {
    font-size: 16px;
  }

  .beta-spots-mini-kpi span {
    gap: 3px;
    font-size: 8.5px;
  }

  .beta-spots-chips {
    gap: 5px;
  }

  .beta-spots-chips .chip-btn {
    min-height: 34px;
    padding: 0 4px;
    font-size: 9.5px;
    border-radius: 11px;
  }

  #btnOnboardingHelp.tour-help-btn {
    top: 12px !important;
    right: 18px !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;

    border-radius: 14px !important;
  }
}

/* =========================================
   BETA POLISH — EVENTS + SHOPS TOOLBARS
========================================= */

.beta-events-toolbar,
.beta-events-toolbar *,
.beta-shops-toolbar,
.beta-shops-toolbar * {
  box-sizing: border-box;
}

.beta-events-toolbar,
.beta-shops-toolbar {
  width: 100%;
  min-width: 0;

  display: grid;
  gap: 9px;

  margin: 13px 0 13px;
}

/* -----------------------------------------
   Search
----------------------------------------- */

.beta-events-search,
.beta-shops-search {
  width: 100%;
  min-width: 0;
}

.beta-events-search input,
.beta-shops-search input {
  width: 100%;
  min-width: 0;
  height: 48px;

  display: block;

  padding: 0 15px;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 17px;

  outline: none;

  background: rgba(7, 15, 29, 0.88);
  color: #f8fafc;

  font-family: inherit;
  font-size: 13px;
  font-weight: 750;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 26px rgba(2, 6, 23, 0.12);

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.beta-events-search input::placeholder,
.beta-shops-search input::placeholder {
  color: rgba(203, 213, 225, 0.5);
}

.beta-events-search input:focus,
.beta-shops-search input:focus {
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(9, 19, 36, 0.98);

  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------
   Events row
----------------------------------------- */

.beta-events-control-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(132px, 1.38fr) minmax(70px, 0.81fr) minmax(70px, 0.81fr);

  align-items: stretch;
  gap: 7px;
}

.beta-events-filter {
  position: relative;

  width: 100%;
  min-width: 0;
}

.beta-events-mini-kpis {
  display: contents;
}

/* -----------------------------------------
   Shops row
----------------------------------------- */
.beta-shops-control-row {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns:
    minmax(106px, 1.18fr) minmax(56px, 0.72fr) minmax(56px, 0.72fr) minmax(56px, 0.72fr);

  align-items: stretch;
  gap: 6px;
}

.beta-shops-filter {
  position: relative;

  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;

  flex: 0 0 132px !important;
}

.beta-shops-mini-kpis {
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* -----------------------------------------
   Selects
----------------------------------------- */


.beta-spots-filter,
.beta-events-filter,
.beta-shops-filter {
  position: relative;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: initial !important;
}

.beta-spots-filter .filter-select,
.beta-events-filter .filter-select,
.beta-shops-filter .filter-select {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  display: block !important;
  padding: 0 34px 0 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 18px !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: rgba(8, 17, 32, 0.96) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23E2E8F0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 18px 18px !important;
  color: #f8fafc !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}


.beta-spots-filter .filter-select:focus,
.beta-events-filter .filter-select:focus,
.beta-shops-filter .filter-select:focus {
  border-color: rgba(34, 211, 238, 0.58) !important;

  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.09);
}

.beta-events-filter .filter-select option,
.beta-shops-filter .filter-select option {
  background: #0b1423;
  color: #f8fafc;
}



/* -----------------------------------------
   Mini KPI cards
----------------------------------------- */

.beta-events-mini-kpi,
.beta-shops-mini-kpi {
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;

  display: grid;
  align-content: center;
  gap: 3px;

  padding: 7px 8px;

  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 15px;

  background:
    linear-gradient(180deg,
      rgba(17, 28, 47, 0.92),
      rgba(8, 16, 31, 0.94));

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.beta-events-mini-kpi strong,
.beta-shops-mini-kpi strong {
  color: #f8fafc;

  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.beta-events-mini-kpi span,
.beta-shops-mini-kpi span {
  min-width: 0;
  overflow: hidden;

  display: flex;
  align-items: center;
  gap: 4px;

  color: rgba(203, 213, 225, 0.68);

  font-size: 8.8px;
  font-weight: 760;
  line-height: 1.1;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.beta-events-mini-kpi b,
.beta-shops-mini-kpi b {
  color: rgba(34, 211, 238, 0.9);

  font-size: 10px;
  line-height: 1;
}

/* -----------------------------------------
   Quick chips
----------------------------------------- */

.beta-events-chips,
.beta-shops-chips {
  width: 100%;
  min-width: 0;

  display: grid;
  gap: 6px;

  margin: 0;
}

.beta-events-chips {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.beta-shops-chips {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.beta-events-chips .chip-btn,
.beta-shops-chips .chip-btn {
  min-width: 0;
  min-height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 4px;

  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 11px;

  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.72);

  font-family: inherit;
  font-size: 9.5px;
  font-weight: 850;

  white-space: nowrap;

  cursor: pointer;

  transition:
    transform 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.beta-events-chips .chip-btn:hover,
.beta-shops-chips .chip-btn:hover {
  color: #f8fafc;
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.08);
}

.beta-events-chips .chip-btn:active,
.beta-shops-chips .chip-btn:active {
  transform: scale(0.95);
}

.beta-events-chips .chip-btn.is-active,
.beta-shops-chips .chip-btn.is-active {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.52);
  background: rgba(34, 211, 238, 0.14);
}

/* -----------------------------------------
   Responsive 320px
----------------------------------------- */

@media (max-width: 340px) {

  .beta-spots-control-row,
  .beta-events-control-row {
    grid-template-columns:
      minmax(128px, 1.34fr) minmax(66px, 0.83fr) minmax(66px, 0.83fr);
    gap: 6px;
  }


  .beta-events-toolbar,
  .beta-shops-toolbar {
    gap: 8px;
    margin-top: 12px;
  }

  .beta-events-search input,
  .beta-shops-search input {
    height: 46px;
    font-size: 12px;
    border-radius: 15px;
  }

  .beta-events-control-row {
    grid-template-columns:
      minmax(126px, 1.34fr) minmax(66px, 0.83fr) minmax(66px, 0.83fr);
    gap: 6px;
  }

  .beta-shops-control-row {
    grid-template-columns:
      minmax(100px, 1.18fr) minmax(52px, 0.72fr) minmax(52px, 0.72fr) minmax(52px, 0.72fr);
    gap: 6px;
  }

  .beta-shops-filter {
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    flex: 0 0 128px !important;
  }

  .beta-shops-mini-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .beta-spots-filter .filter-select,
  .beta-events-filter .filter-select,
  .beta-shops-filter .filter-select {
    height: 48px !important;
    min-height: 48px !important;

    padding-left: 11px !important;
    padding-right: 30px !important;

    background-position: right 11px center !important;
    background-size: 17px 17px !important;

    font-size: 11px !important;

    border-radius: 16px !important;
  }

  .beta-events-mini-kpi,
  .beta-shops-mini-kpi {
    height: 48px;
    min-height: 48px;

    padding: 7px 6px;

    border-radius: 14px;
  }

  .beta-events-mini-kpi strong,
  .beta-shops-mini-kpi strong {
    font-size: 16px;
  }

  .beta-events-mini-kpi span,
  .beta-shops-mini-kpi span {
    gap: 3px;
    font-size: 8px;
  }

  .beta-events-chips,
  .beta-shops-chips {
    gap: 5px;
  }

  .beta-events-chips .chip-btn,
  .beta-shops-chips .chip-btn {
    min-height: 32px;
    padding: 0 3px;

    font-size: 8.5px;

    border-radius: 10px;
  }
}

/* =========================================
   BETA POLISH — EVENTS + SHOPS CARDS
========================================= */

#eventsList,
#shopsList {
  width: 100%;
  min-width: 0;
}

/* -----------------------------------------
   LIST MODE — Events + Shops
----------------------------------------- */

#eventsList[data-view-mode="list"],
#shopsList[data-view-mode="list"] {
  grid-template-columns: 1fr;
  gap: 12px;
}

#eventsList[data-view-mode="list"] .event-card,
#shopsList[data-view-mode="list"] .shop-card {
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(112px, 32%) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg,
      rgba(15, 26, 44, 0.95),
      rgba(7, 15, 28, 0.96));
}

#eventsList[data-view-mode="list"] .event-card>.entity-media,
#shopsList[data-view-mode="list"] .shop-card>.entity-media {
  width: 100%;
  height: 100%;
  min-height: 134px;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

#eventsList[data-view-mode="list"] .event-card .card__body,
#shopsList[data-view-mode="list"] .shop-card .card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 13px;
}

#eventsList[data-view-mode="list"] .event__title,
#shopsList[data-view-mode="list"] .shop-card .h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#shopsList[data-view-mode="list"] .shop-card .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

#eventsList[data-view-mode="list"] .entity-row,
#shopsList[data-view-mode="list"] .entity-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

#eventsList[data-view-mode="list"] .entity-row__text,
#shopsList[data-view-mode="list"] .entity-row__text {
  min-width: 0;
}

#eventsList[data-view-mode="list"] .entity-row__location,
#shopsList[data-view-mode="list"] .entity-row__location {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: rgba(203, 213, 225, 0.65);
  font-size: 12px;
  line-height: 1.3;
}

#eventsList[data-view-mode="list"] .entity-row__location span:last-child,
#shopsList[data-view-mode="list"] .entity-row__location span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#eventsList[data-view-mode="list"] .entity-row__actions,
#shopsList[data-view-mode="list"] .entity-row__actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}


#eventsList[data-view-mode="list"] .entity-icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
}

/* -----------------------------------------
   GRID MODE — Events + Shops
----------------------------------------- */

#eventsList[data-view-mode="grid"],
#shopsList[data-view-mode="grid"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

#eventsList[data-view-mode="grid"] .event-card,
#shopsList[data-view-mode="grid"] .shop-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg,
      rgba(15, 26, 44, 0.95),
      rgba(7, 15, 28, 0.98));
}

#eventsList[data-view-mode="grid"] .event-card>.entity-media,
#shopsList[data-view-mode="grid"] .shop-card>.entity-media {
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

#eventsList[data-view-mode="grid"] .event-card .card__body,
#shopsList[data-view-mode="grid"] .shop-card .card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

#eventsList[data-view-mode="grid"] .event__title,
#shopsList[data-view-mode="grid"] .shop-card .h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.35em;
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#shopsList[data-view-mode="grid"] .shop-card .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}

#shopsList[data-view-mode="grid"] .shop-card .badge {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#eventsList[data-view-mode="grid"] .entity-row,
#shopsList[data-view-mode="grid"] .entity-row {
  width: 100%;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

#eventsList[data-view-mode="grid"] .entity-row__text,
#shopsList[data-view-mode="grid"] .entity-row__text {
  min-width: 0;
}

#eventsList[data-view-mode="grid"] .entity-row__location,
#shopsList[data-view-mode="grid"] .entity-row__location {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  color: rgba(203, 213, 225, 0.65);
  font-size: 11px;
  line-height: 1.3;
}

#eventsList[data-view-mode="grid"] .entity-row__location span:last-child,
#shopsList[data-view-mode="grid"] .entity-row__location span:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#eventsList[data-view-mode="grid"] .entity-row__actions,
#shopsList[data-view-mode="grid"] .entity-row__actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#eventsList[data-view-mode="grid"] .entity-row__actions:has(.entity-icon-btn + .entity-icon-btn),
#shopsList[data-view-mode="grid"] .entity-row__actions:has(.entity-icon-btn + .entity-icon-btn) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* -----------------------------------------
   Shared buttons
----------------------------------------- */

#eventsList .entity-icon-btn,
#shopsList .entity-icon-btn {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;

  font-size: 16px;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

#eventsList .entity-icon-btn:hover,
#shopsList .entity-icon-btn:hover {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
}

#eventsList .entity-icon-btn:active,
#shopsList .entity-icon-btn:active {
  transform: scale(0.94);
}

/* =========================================
   BETA POLISH — EVENTS ACTION ALIGNMENT
========================================= */

#eventsList .entity-row,
#eventsList[data-view-mode="list"] .entity-row,
#eventsList[data-view-mode="grid"] .entity-row {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-top: auto !important;
}

#eventsList .entity-row__location,
#eventsList[data-view-mode="list"] .entity-row__location,
#eventsList[data-view-mode="grid"] .entity-row__location {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  color: rgba(203, 213, 225, 0.65) !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}

#eventsList .entity-row__location span:last-child,
#eventsList[data-view-mode="list"] .entity-row__location span:last-child,
#eventsList[data-view-mode="grid"] .entity-row__location span:last-child {
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

#eventsList .entity-row__actions,
#eventsList[data-view-mode="list"] .entity-row__actions,
#eventsList[data-view-mode="grid"] .entity-row__actions {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#eventsList .entity-icon-btn,
#eventsList[data-view-mode="list"] .entity-icon-btn,
#eventsList[data-view-mode="grid"] .entity-icon-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 13px !important;
}

/* =========================================
   BETA FINAL — SHOPS TOOLBAR + LIST
========================================= */

.view[data-view="shops"] .entity-view-toggle,
.view[data-view="shops"] .chips,
.view[data-view="shops"] .beta-shops-chips {
  display: none !important;
}

.view[data-view="shops"] .beta-shops-toolbar,
.view[data-view="shops"] .beta-shops-toolbar * {
  box-sizing: border-box;
}

.view[data-view="shops"] .beta-shops-toolbar {
  width: 100%;
  min-width: 0;
  display: grid !important;
  gap: 9px;
  margin: 13px 0 10px;
}

.view[data-view="shops"] .beta-shops-search {
  width: 100%;
  min-width: 0;
}

.view[data-view="shops"] .beta-shops-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  display: block;
  padding: 0 15px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 17px;
  outline: none;
  background: rgba(7, 15, 29, 0.88);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
}

.view[data-view="shops"] .beta-shops-search input::placeholder {
  color: rgba(203, 213, 225, 0.5);
}

.view[data-view="shops"] .beta-shops-control-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(132px, 1.5fr) minmax(72px, 0.75fr) minmax(72px, 0.75fr);
  align-items: stretch;
  gap: 7px;
}

.view[data-view="shops"] .beta-shops-filter {
  width: 100%;
  min-width: 0;
  display: block !important;
  margin: 0 !important;
}

.view[data-view="shops"] .beta-shops-filter::after {
  display: none !important;
}

.view[data-view="shops"] .beta-shops-filter .filter-select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  display: block;
  padding: 0 30px 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(8, 17, 32, 0.96);
  background-image:
    url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23E2E8F0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px 16px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.view[data-view="shops"] .beta-shops-mini-kpi {
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 5px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 15px;
  background:
    linear-gradient(180deg,
      rgba(17, 28, 47, 0.92),
      rgba(8, 16, 31, 0.94));
}

.view[data-view="shops"] .beta-shops-mini-kpi strong {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.view[data-view="shops"] .beta-shops-mini-kpi span {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(203, 213, 225, 0.68);
  font-size: 8px;
  font-weight: 760;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.view[data-view="shops"] .beta-shops-status-row {
  margin: 0 0 18px !important;
}

.view[data-view="shops"] .beta-shops-status-row .status {
  display: block !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
}

.view[data-view="shops"] .beta-shops-section-title {
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 0 12px !important;
  padding: 0 14px !important;
  color: #f8fafc !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
}

.view[data-view="shops"] #shopsList {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

.view[data-view="shops"] #shopsList .shop-card {
  min-width: 0;
  display: grid !important;
  grid-template-columns:
    minmax(112px, 32%) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg,
      rgba(15, 26, 44, 0.95),
      rgba(7, 15, 28, 0.96));
}

/* .view[data-view="shops"] #shopsList .shop-card>.entity-media {
  width: 100%;
  height: 100%;
  min-height: 134px;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
} */

/* .view[data-view="shops"] #shopsList .shop-card > .entity-media {
  width: 132px;
  min-width: 132px;
  height: 132px;
  min-height: 132px;
  margin: 12px 0 12px 12px;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

.view[data-view="shops"] #shopsList .shop-card > .entity-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: #ffffff;
} */

/* PRELAUNCH FINAL: shops same layout as spots/events */
.view[data-view="shops"] #shopsList .shop-card {
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: stretch !important;

  padding: 16px !important;
  min-height: 164px !important;
  overflow: hidden !important;
}

.view[data-view="shops"] #shopsList .shop-card > .entity-media {
  width: 112px !important;
  min-width: 112px !important;
  height: 132px !important;
  min-height: 132px !important;

  margin: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;

  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.16), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.18), transparent 42%),
    rgba(8, 18, 35, 0.94) !important;
}

.view[data-view="shops"] #shopsList .shop-card > .entity-media img {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center !important;

  padding: 8px !important;
  background: transparent !important;
}

.view[data-view="shops"] #shopsList .shop-card .card__body {
  min-width: 0 !important;
  padding: 0 !important;
  justify-content: center !important;
}

.view[data-view="shops"] #shopsList .shop-card .card__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.view[data-view="shops"] #shopsList .shop-card .h3 {
  max-width: 170px !important;
  font-size: 1rem !important;
  line-height: 1.08 !important;
}


.view[data-view="shops"] #shopsList .shop-card .card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 13px;
}

.view[data-view="shops"] #shopsList .shop-card .card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.view[data-view="shops"] #shopsList .shop-card .h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.view[data-view="shops"] #shopsList .entity-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

.view[data-view="shops"] #shopsList .entity-row__location {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: rgba(203, 213, 225, 0.65);
  font-size: 12px;
  line-height: 1.3;
}

.view[data-view="shops"] #shopsList .entity-row__actions {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.view[data-view="shops"] #shopsList .entity-icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
}

/* =========================================================
   UNIFIED DETAIL VIEW (SPOTS / EVENTS / SHOPS)
   ========================================================= */

#modal.entity-detail-modal,
#modal .entity-detail-shell {
  border: 0;
  padding: 0;
  background: transparent;
}

#modal[open] {
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 8, 18, 0.78);
  backdrop-filter: blur(10px);
}

.entity-detail-shell {
  width: min(100%, 460px);
}

.entity-detail-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(34, 211, 238, 0.10), transparent 42%),
    radial-gradient(90% 90% at 100% 0%, rgba(124, 58, 237, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(6, 16, 32, 0.98), rgba(4, 11, 24, 0.98));
  border: 1px solid rgba(80, 140, 255, 0.18);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.entity-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #7c3aed, #22d3ee);
  opacity: 0.9;
}

.entity-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.entity-detail-head__copy {
  min-width: 0;
  flex: 1;
}

.entity-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 6px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(16, 30, 56, 0.78);
  border: 1px solid rgba(90, 126, 255, 0.18);
  color: rgba(226, 232, 240, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.entity-detail-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.entity-detail-sub {
  margin: 8px 0 0;
  color: rgba(203, 213, 225, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.entity-detail-close {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(86, 114, 181, 0.28);
  border-radius: 50%;
  background: rgba(12, 22, 42, 0.92);
  color: #dbeafe;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.entity-detail-close:hover {
  transform: scale(1.04);
  background: rgba(18, 34, 62, 0.98);
  border-color: rgba(56, 189, 248, 0.34);
}

.entity-detail-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(23, 31, 47, 0.96), rgba(18, 25, 39, 0.96));
  min-height: 210px;
}

.entity-detail-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.entity-detail-hero--fallback {
  min-height: 230px;
  display: grid;
  place-items: center;
}

.entity-detail-hero--fallback span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  padding: 18px;
}

.entity-detail-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.entity-detail-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 19, 34, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.entity-detail-label {
  color: rgba(148, 163, 184, 0.9);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entity-detail-value {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.entity-detail-description {
  margin: 0 0 18px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 15px;
  line-height: 1.7;
}

.entity-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.entity-detail-route {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #04111f;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.25);
}

.entity-detail-secondary {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 24, 40, 0.74);
  color: #e5eefb;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 480px) {
  #modal[open] {
    padding: 14px;
  }

  .entity-detail-card {
    border-radius: 22px;
    padding: 16px;
  }

  .entity-detail-title {
    font-size: 19px;
  }

  .entity-detail-hero img {
    height: 210px;
  }

  .entity-detail-hero--fallback {
    min-height: 190px;
  }

  .entity-detail-row {
    padding: 10px 12px;
  }

  .entity-detail-value {
    font-size: 15px;
  }

  .entity-detail-description {
    font-size: 14px;
    line-height: 1.65;
  }

  .entity-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .entity-detail-route,
  .entity-detail-secondary {
    width: 100%;
  }
}

/* =========================================
   UNIFIED DETAIL MODAL BODY
========================================= */

.entity-detail-view {
  display: grid;
  gap: 16px;
}

.entity-detail-hero {
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 36%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.14), transparent 36%),
    rgba(15, 23, 42, 0.72);
}

.entity-detail-hero img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
}

.entity-detail-view--event .entity-detail-hero img,
.entity-detail-view--shop .entity-detail-hero img {
  object-fit: contain;
  background: rgba(15, 23, 42, 0.9);
}

.entity-detail-main {
  display: grid;
  gap: 13px;
}

.entity-detail-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
  font-size: 12px;
  font-weight: 950;
}

.entity-detail-title {
  margin: 0;
  color: #f8fafc;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.entity-detail-grid {
  display: grid;
  gap: 10px;
}

.entity-detail-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.entity-detail-label {
  color: rgba(148, 163, 184, 0.86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entity-detail-value {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.entity-detail-description {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  line-height: 1.65;
}

.entity-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.entity-detail-route {
  min-width: 110px;
  min-height: 48px;
  border-radius: 16px;
}

#modal.modal[open] {
  width: min(92vw, 380px) !important;
  max-width: 380px !important;
  max-height: calc(100dvh - 22px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
}

#modal .modal__card {
  width: 100% !important;
  max-height: calc(100dvh - 22px) !important;
  overflow: hidden !important;
  padding: 14px !important;
  border-radius: 22px !important;
}

#modal .modal__body {
  min-height: 0 !important;
  overflow: hidden !important;
}

.entity-detail-view {
  display: grid !important;
  gap: 12px !important;
}

.entity-detail-main {
  display: grid !important;
  gap: 10px !important;
}

.entity-detail-hero {
  width: 100% !important;
  height: 172px !important;
  min-height: 172px !important;
  max-height: 172px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.14), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(124, 58, 237, 0.16), transparent 34%),
    rgba(15, 23, 42, 0.82) !important;
}

.entity-detail-hero .entity-media,
.entity-detail-hero>.entity-media,
.detail-hero .entity-media,
.detail-hero>.entity-media {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.entity-detail-hero .entity-media img,
.entity-detail-hero>.entity-media img,
.detail-hero .entity-media img,
.detail-hero>.entity-media img {
  width: 100% !important;
  height: 100% !important;

  display: block !important;

  object-fit: cover !important;
  object-position: center center !important;

  border-radius: 0 !important;
}

.entity-detail-hero .entity-media__mark,
.detail-hero .entity-media__mark,
.entity-detail-hero .entity-media>span,
.detail-hero .entity-media>span {
  display: none !important;
}

.entity-detail-view--spot .entity-detail-badge {
  display: none !important;
}

.entity-detail-view--spot .entity-detail-title {
  margin-top: 0 !important;
}

.entity-detail-description {
  overflow: hidden !important;

  display: -webkit-box !important;

  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;

  font-size: 13px !important;
  line-height: 1.55 !important;
}

.entity-detail-route {
  width: 100% !important;
  min-height: 44px !important;
  border-radius: 15px !important;
}

@media (max-width: 380px) {
  #modal.modal[open] {
    width: min(90vw, 360px) !important;
  }

  #modal .modal__card {
    padding: 12px !important;
  }

  .entity-detail-hero {
    height: 164px !important;
    min-height: 164px !important;
    max-height: 164px !important;
  }
}

/* =========================================
   BETA FINAL — DETAIL CAROUSEL
========================================= */

.entity-detail-carousel {
  position: relative;

  width: 100%;
  height: 100%;
  min-height: 100%;

  overflow: hidden;

  border-radius: inherit;
}

.entity-detail-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: none;

  margin: 0;
}

.entity-detail-slide.is-active {
  display: block;
}

.entity-detail-slide img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;
}

.entity-detail-carousel--fallback {
  display: grid;
  place-items: center;

  color: #f8fafc;

  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(124, 58, 237, 0.18), transparent 34%),
    rgba(15, 23, 42, 0.92);
}

.entity-detail-carousel--fallback span {
  padding: 16px;

  color: #f8fafc;

  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.entity-detail-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 4;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;

  background: rgba(3, 7, 18, 0.58);
  color: #f8fafc;

  font-size: 24px;
  font-weight: 800;
  line-height: 1;

  transform: translateY(-50%);

  cursor: pointer;
  backdrop-filter: blur(10px);
}

.entity-detail-carousel-btn--prev {
  left: 10px;
}

.entity-detail-carousel-btn--next {
  right: 10px;
}

.entity-detail-dots {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  z-index: 4;

  display: flex;
  justify-content: center;
  gap: 6px;
}

.entity-detail-dot {
  width: 6px;
  height: 6px;

  padding: 0;

  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.42);

  cursor: pointer;
}

.entity-detail-dot.is-active {
  width: 18px;
  background: #22d3ee;
}

.entity-detail-view--spot .entity-detail-badge {
  display: none !important;
}

/* =========================================
   BETA FINAL — PROFILE COMPETITION POLISH
========================================= */
/* 
.view[data-view="profile"] {
  padding-bottom: 112px;
} */

.view[data-view="profile"] .profile-shell {
  width: 100%;
  min-width: 0;

  display: grid;
  gap: 16px;
}

.view[data-view="profile"] .profile-card {
  position: relative;

  overflow: hidden;

  padding: 16px;

  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;

  background:
    radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.13), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(9, 18, 34, 0.98), rgba(5, 12, 25, 0.98));

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.view[data-view="profile"] .profile-card::before {
  content: "";

  position: absolute;
  inset: 0 0 auto;
  height: 3px;

  background:
    linear-gradient(90deg,
      rgba(34, 211, 238, 0.92),
      rgba(124, 58, 237, 0.94),
      rgba(34, 211, 238, 0.92));
}

.view[data-view="profile"] .view[data-view="profile"] #profileAvatar {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;

  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.35), transparent 22%),
    linear-gradient(135deg, #22d3ee, #7c3aed);

  color: #03101d;

  font-size: 18px;
  font-weight: 950;

  box-shadow:
    0 14px 34px rgba(34, 211, 238, 0.22);
}

.view[data-view="profile"] .profile-head {
  display: flex;
  align-items: center;
  gap: 13px;

  margin-bottom: 16px;
}

.view[data-view="profile"] .profile-card h2,
.view[data-view="profile"] .profile-card h3 {
  margin: 12px 0 6px;

  color: #f8fafc;

  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.view[data-view="profile"] .profile-card .muted {
  color: rgba(203, 213, 225, 0.72);

  font-size: 13px;
  line-height: 1.55;
}

.view[data-view="profile"] .micro {
  font-size: 12px;
}

/* Auth */
.view[data-view="profile"] .auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;

  margin: 18px 0 15px;
  padding: 5px;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;

  background: rgba(2, 6, 23, 0.36);
}

.view[data-view="profile"] .auth-switch__btn {
  min-height: 42px;

  border: 0;
  border-radius: 14px;

  background: transparent;
  color: rgba(226, 232, 240, 0.68);

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;
}

.view[data-view="profile"] .auth-switch__btn.is-active {
  background:
    linear-gradient(135deg,
      rgba(34, 211, 238, 0.22),
      rgba(124, 58, 237, 0.22));

  color: #f8fafc;

  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.32);
}

/* Forms */
.view[data-view="profile"] form,
.view[data-view="profile"] .profile-grid {
  display: grid;
  gap: 13px;
}

.view[data-view="profile"] .profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view[data-view="profile"] .profile-grid-full {
  grid-column: 1 / -1;
}

.view[data-view="profile"] .form-field {
  display: grid;
  gap: 7px;
}

.view[data-view="profile"] .form-field label {
  color: rgba(226, 232, 240, 0.82);

  font-size: 12px;
  font-weight: 900;
}

.view[data-view="profile"] .form-field input,
.view[data-view="profile"] .form-field textarea,
.view[data-view="profile"] .form-field select {
  width: 100%;
  min-height: 48px;

  padding: 0 14px;

  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;

  outline: none;

  background: rgba(7, 15, 29, 0.88);
  color: #f8fafc;

  font-family: inherit;
  font-size: 13px;
  font-weight: 760;
}

.view[data-view="profile"] .form-field select {
  appearance: none;
  -webkit-appearance: none;

  padding-right: 34px;

  background-image:
    url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23E2E8F0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.view[data-view="profile"] .form-field input[readonly] {
  color: rgba(226, 232, 240, 0.72);
  cursor: not-allowed;
}

.view[data-view="profile"] .form-field input:focus,
.view[data-view="profile"] .form-field textarea:focus,
.view[data-view="profile"] .form-field select:focus {
  border-color: rgba(34, 211, 238, 0.58);

  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.09);
}

.view[data-view="profile"] .field-hint {
  color: rgba(148, 163, 184, 0.78);

  font-size: 11px;
  line-height: 1.35;
}

/* Password */
.view[data-view="profile"] .password-field {
  position: relative;
}

.view[data-view="profile"] .password-field input {
  padding-right: 52px;
}

.view[data-view="profile"] .password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;

  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;

  transform: translateY(-50%);

  cursor: pointer;
}

/* Beta ribbon */
.profile-beta-ribbon {
  display: grid;
  gap: 5px;

  margin: 0 0 16px;
  padding: 14px;

  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 20px;

  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.15), transparent 38%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
}

.profile-beta-ribbon span {
  width: fit-content;

  padding: 4px 9px;

  border-radius: 999px;

  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;

  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-beta-ribbon strong {
  color: #f8fafc;

  font-size: 18px;
  font-weight: 950;
}

.profile-beta-ribbon small {
  color: rgba(203, 213, 225, 0.72);

  font-size: 12px;
  line-height: 1.45;
}

/* Panels */
.profile-competition-panel {
  display: grid;
  gap: 13px;

  margin: 0 0 15px;
  padding: 14px;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;

  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 38%),
    rgba(2, 6, 23, 0.30);
}

.profile-section-head h3 {
  margin: 0 0 4px !important;

  font-size: 18px !important;
}

/* Terms */
.profile-terms-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;

  margin: 10px 0 14px;
  padding: 12px;

  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 18px;

  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.10), transparent 38%),
    rgba(15, 23, 42, 0.58);

  color: rgba(226, 232, 240, 0.82);

  font-size: 12px;
  line-height: 1.45;
}

.profile-terms-check input {
  margin-top: 2px;
}

.terms-inline {
  margin: 0;

  color: rgba(203, 213, 225, 0.72);

  font-size: 12px;
  line-height: 1.45;
}

.terms-inline a,
.profile-terms-check a {
  color: #67e8f9;
  font-weight: 850;
}

/* Buttons */
.view[data-view="profile"] .btn-primary {
  width: 100%;
  min-height: 48px;

  border-radius: 16px;

  background:
    linear-gradient(135deg, #22d3ee, #38bdf8);

  color: #03101d;

  font-size: 14px;
  font-weight: 950;
}

.profile-location-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;

  margin-top: 14px;
}

.profile-actions .btn {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
}

/* Email verification */
.email-verify-box {
  margin: 0 0 16px;
  padding: 13px;

  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 18px;

  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), transparent 38%),
    rgba(15, 23, 42, 0.70);
}

.email-verify-box[hidden] {
  display: none !important;
}

.email-verify-form {
  display: grid;
  gap: 9px;

  margin-top: 10px;
}

.email-verify-form input {
  width: 100%;
  min-height: 44px;

  padding: 0 13px;

  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 15px;

  background: rgba(7, 15, 29, 0.88);
  color: #f8fafc;

  font-size: 13px;
  font-weight: 850;
}

/* Activity */
.profile-activity {
  margin-top: 16px;
  padding-top: 16px;

  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.profile-activity__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 12px;
}

.profile-activity__head h3 {
  margin: 0;

  color: #f8fafc;

  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.profile-activity__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-activity-card {
  padding: 14px;

  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;

  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.10), transparent 38%),
    rgba(15, 23, 42, 0.60);
}

.profile-activity-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  margin-bottom: 10px;
}

.profile-activity-card__head h4 {
  margin: 0;

  color: #f8fafc;

  font-size: 14px;
  font-weight: 950;
}

.profile-activity-card__head span {
  min-width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 999px;

  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;

  font-size: 12px;
  font-weight: 950;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-item {
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  padding: 10px 12px;

  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;

  background: rgba(2, 6, 23, 0.42);
}

.mini-item strong {
  color: #f8fafc;

  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 420px) {
  .view[data-view="profile"] .profile-grid {
    grid-template-columns: 1fr;
  }

  .view[data-view="profile"] .profile-card {
    padding: 14px;
  }

  .profile-competition-panel {
    padding: 13px;
  }
}

/* =========================================
   BETA FINAL — LEGAL MODALS   
========================================= */

.legal-modal-content {
  display: grid;
  gap: 12px;

  color: rgba(226, 232, 240, 0.86);

  font-size: 14px;
  line-height: 1.65;
}

.legal-modal-content p {
  margin: 0;
}

.legal-modal-content strong {
  color: #f8fafc;
}

/* =========================================
   APP TOAST — CLEAN MOBILE MESSAGE
========================================= */

#toast {
  position: fixed;
  right: auto;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 9999;

  width: auto;
  min-width: 220px;
  max-width: min(300px, calc(100vw - 32px));

  padding: 13px 15px;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px !important;

  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));

  color: #f8fafc;

  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  opacity: 0;
  pointer-events: none;

  transform: translateX(-50%) translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

#toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast[hidden] {
  display: none !important;
}

#toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast[hidden] {
  display: none !important;
}

#toast[data-type="success"] {
  border-color: rgba(34, 211, 238, 0.36);
}

#toast[data-type="error"] {
  border-color: rgba(248, 113, 113, 0.38);
}

/* =========================================
   APP TOAST — FIXED MOBILE MESSAGE
========================================= */

#toast {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  z-index: 99999 !important;

  width: auto !important;
  min-width: 230px;
  max-width: min(310px, calc(100vw - 32px));

  padding: 13px 15px;

  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px !important;

  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));

  color: #f8fafc;

  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  opacity: 0;
  pointer-events: none;

  transform: translateX(-50%) translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

#toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast[hidden] {
  display: none !important;
}

#toast[data-type="success"] {
  border-color: rgba(34, 211, 238, 0.42);
}

#toast[data-type="error"] {
  border-color: rgba(248, 113, 113, 0.42);
}

/* =========================================
   PROFILE — POST LOGIN CLEANUP
========================================= */

.view[data-view="profile"] .form-field:has(#profileAddress),
.view[data-view="profile"] .form-field:has(#profileFootStance),
.view[data-view="profile"] .form-field:has(#btnDetectProfileCountry),
.view[data-view="profile"] .profile-terms-check {
  display: none !important;
}

.view[data-view="profile"] #profileCountryStatus {
  display: none !important;
}

.view[data-view="profile"] .profile-competition-panel {
  margin-bottom: 12px;
}

.view[data-view="profile"] .profile-actions {
  margin-top: 12px;
  padding-top: 0;
}

.view[data-view="profile"] .profile-activity {
  margin-top: 14px;
}

.view[data-view="profile"] .profile-card {
  min-height: auto !important;
}

.view[data-view="profile"] .profile-shell {
  padding-bottom: 24px;
}

/* =========================================
   SPOTS — PRELAUNCH PAGER POLISH
========================================= */

.spots-pager {
  position: relative;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;

  margin: 16px 16px 16px;
  padding: 10px;

  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 22px;

  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));

  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.spots-pager__btn {
  min-height: 40px;
  padding: 0 14px;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;

  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;

  font-size: 12px;
  font-weight: 950;

  cursor: pointer;
}

.spots-pager__btn:first-child {
  justify-self: start;
}

.spots-pager__btn:last-child {
  justify-self: end;
}

.spots-pager__btn:not(:disabled):active {
  transform: scale(0.98);
}

.spots-pager__btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.spots-pager__status {
  min-width: 46px;
  padding: 9px 10px;

  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;

  font-size: 12px;
  font-weight: 950;
  text-align: center;
}