/* Odd Flock base stylesheet (v2.css layers the current design on top) */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overscroll-behavior-y: none;
}

body.no-scroll {
  overflow: hidden;
}

#app.map-home {
  padding: 0;
  max-width: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.nav-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  transition: transform 0.18s ease;
}

.gate-wrap {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: var(--scrim);
  -webkit-overflow-scrolling: touch;
}

.gate-wrap label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 14px 0 5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.lp-signup-modal.otp-active > *:not(.lp-signup-close):not(#gate-otp-panel) {
  display: none !important;
}

#gate-otp-panel {
  position: relative;
  padding-top: 8px;
}

.gate-otp-back {
  position: absolute;
  top: -2px;
  left: 0;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}

@media (hover:hover) and (pointer:fine){.gate-otp-back:hover{
  color: var(--text);
}}

.gate-otp-input {
  font-family: "DM Mono", "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gate-otp-input::placeholder {
  letter-spacing: 0.5em;
  color: var(--text-muted);
  opacity: 0.5;
}

.gate-otp-resend {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
}

@media (hover:hover) and (pointer:fine){.gate-otp-resend:hover{
  color: var(--text);
}}

.admin-auth-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 30px 26px 26px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

#admin-auth-panel {
  position: relative;
  padding-top: 8px;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  margin-left: -6px;
}

.avatar:first-child {
  margin-left: 0;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.intro-field-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 10px;
}

.host-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 10px;
}

.host-section-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.host-notice {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}

.map-host {
  position: fixed;
  top: var(--top-h);
  bottom: calc(var(--bot-h) + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 1;
  background: var(--surface-2);
}

[data-theme="dark"] .mapboxgl-ctrl-group {
  background-color: var(--surface);
  border: 1px solid var(--line);
}

[data-theme="dark"] .mapboxgl-ctrl-group button {
  filter: invert(0.8) hue-rotate(180deg);
}

.map-empty {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.map-empty-card {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 14px 34px var(--shadow);
}

.map-empty-card .me-emoji {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 12px;
}

.map-empty-card .me-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}

.map-empty-card .me-sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.map-empty-card .btn {
  width: 100%;
}

.map-filters::-webkit-scrollbar {
  display: none;
}

.cap-live {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  color: #cc1e1e;
}

.cap-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e23b3b;
  animation: blink 1.3s ease-in-out infinite;
}

#geocode-banner {
  position: fixed;
  top: calc(var(--top-h) + 10px);
  right: 12px;
  z-index: 1000;
}

.mapboxgl-popup,
.mapboxgl-marker {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.65;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

#host-map-picker {
  height: 260px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
}

.mapboxgl-ctrl-group .mapboxgl-ctrl-icon {
  filter: var(--map-ctrl-icon-filter, none);
}

.mapboxgl-ctrl-attrib {
  display: none !important;
  background: transparent !important;
}

@keyframes viewSlideUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Ambient view backdrops (Social / Calendar / Profile families) ──
   Scattered-light field behind the scrollable tabs: at night it reads as
   stars on a dark sky; by day the same recipe (dots colored from --text,
   which flips ink-dark / parchment-light per theme) reads as fine paper
   grain, which is the "grain texture" motif PRODUCT.md already names. A
   couple of gold-toned dots keep the one-accent thread present without
   ever building into a single dominant beam (the prior conic-gradient
   "vein" version read as one harsh diagonal streak — replaced outright,
   not patched). Oversized 10% past the viewport so the slow drift never
   exposes an edge. Transform-only animation (translate + a couple degrees
   of rotate, no scale/filter/blur) — same perf discipline as before,
   compositor-only, scoped to six tabs, not the whole session. z-index:-1
   tucks it behind every surface/card. */
#app[data-view="host"]::before,
#app[data-view="calendar"]::before,
#app[data-view="calendar-day"]::before,
#app[data-view="profile"]::before,
#app[data-view="achievements"]::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
        circle 1px at 20% 30%,
        color-mix(in srgb, var(--text) 55%, transparent),
        transparent 100%
      )
      0 0 / 150px 150px repeat,
    radial-gradient(
        circle 1px at 65% 15%,
        color-mix(in srgb, var(--text) 45%, transparent),
        transparent 100%
      )
      55px 85px / 190px 190px repeat,
    radial-gradient(
        circle 1.4px at 35% 70%,
        color-mix(in srgb, var(--text) 70%, transparent),
        transparent 100%
      )
      20px 130px / 260px 260px repeat,
    radial-gradient(
        circle 1.2px at 80% 55%,
        color-mix(in srgb, var(--silver) 65%, transparent),
        transparent 100%
      )
      95px 45px / 220px 220px repeat,
    radial-gradient(
        circle 1.6px at 50% 40%,
        color-mix(in srgb, var(--gold) 70%, transparent),
        transparent 100%
      )
      160px 210px / 340px 340px repeat,
    radial-gradient(1200px 760px at 88% -10%, var(--gold-tint), transparent 62%);
  animation: starDrift 80s ease-in-out infinite alternate;
}

[data-theme="dark"] #app[data-view="host"]::before,
[data-theme="dark"] #app[data-view="calendar"]::before,
[data-theme="dark"] #app[data-view="calendar-day"]::before,
[data-theme="dark"] #app[data-view="profile"]::before,
[data-theme="dark"] #app[data-view="achievements"]::before {
  /* Night sky: same recipe, brighter dots (var(--text) is near-white here)
     so it reads unmistakably as stars rather than grain. */
  background:
    radial-gradient(
        circle 1px at 20% 30%,
        color-mix(in srgb, var(--text) 70%, transparent),
        transparent 100%
      )
      0 0 / 150px 150px repeat,
    radial-gradient(
        circle 1px at 65% 15%,
        color-mix(in srgb, var(--text) 55%, transparent),
        transparent 100%
      )
      55px 85px / 190px 190px repeat,
    radial-gradient(
        circle 1.4px at 35% 70%,
        color-mix(in srgb, var(--text) 90%, transparent),
        transparent 100%
      )
      20px 130px / 260px 260px repeat,
    radial-gradient(
        circle 1.2px at 80% 55%,
        color-mix(in srgb, var(--silver) 80%, transparent),
        transparent 100%
      )
      95px 45px / 220px 220px repeat,
    radial-gradient(
        circle 1.8px at 50% 40%,
        color-mix(in srgb, var(--gold) 90%, transparent),
        transparent 100%
      )
      160px 210px / 340px 340px repeat,
    radial-gradient(1200px 760px at 88% -10%, var(--gold-tint), transparent 62%);
}

@keyframes starDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-1.6%, 1.1%) rotate(0.6deg);
  }
  100% {
    transform: translate(1.1%, -1.3%) rotate(-0.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app[data-view="host"]::before,
  #app[data-view="calendar"]::before,
  #app[data-view="calendar-day"]::before,
  #app[data-view="profile"]::before,
  #app[data-view="achievements"]::before {
    animation: none;
  }
}

@media (hover:hover) and (pointer:fine){.panel:hover::after{
  opacity: 1;
}}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.45s ease;
  pointer-events: none;
}

@media (hover:hover) and (pointer:fine){.btn:hover::after{
  background-position: -40% 0;
}}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transform: scale(0);
  animation: rippleAnim 0.5s ease-out forwards;
}

@keyframes rippleAnim {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@media (hover:hover) and (pointer:fine){.logo-wrap:hover{
  opacity: 0.75;
}}

.intro-card {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease !important;
}

.stagger-item {
  animation: staggerFade 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes staggerFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
}

.empty-state {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
  animation: viewSlideUp 0.4s var(--ease-pop) both;
}

/* A quiet gold bloom behind empty-state copy so "nothing here" reads as
   an intentional pause rather than a blank/broken panel. Purely ambient —
   no literal icon, since .empty-state covers unrelated contexts (no
   tickets, restricted, event-not-found) that shouldn't share one glyph. */
.empty-state::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 16%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  animation: emptyStateBloom 4.5s ease-in-out infinite;
}

@keyframes emptyStateBloom {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .empty-state::before {
    animation: none;
    opacity: 0.7;
  }
}

.live-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e23b3b;
  animation: blink 1.3s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(226, 59, 59, 0.2);
}

.map-caption {
  position: fixed;
  bottom: calc(var(--bot-h) + env(safe-area-inset-bottom) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  max-width: min(320px, calc(100vw - 24px));
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-soft);
  box-shadow: 0 2px 10px var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
  text-align: left;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

.map-caption-copy strong {
  color: inherit;
  font-weight: 800;
}

/* Only show the pulsing dot when something is actually live — otherwise
 * a blinking red dot next to "Nothing live right now" would contradict
 * its own copy. */
.map-caption:not(.has-live) .cap-live {
  display: none;
}

/* Flashier state once something is genuinely live right now — a warm red
 * glow instead of the flat neutral pill, so the pill itself reads as part
 * of the live signal rather than a plain caption. */
.map-caption.has-live {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #e23b3b 16%, var(--surface)),
    var(--surface)
  );
  border-color: color-mix(in srgb, #e23b3b 38%, var(--line));
  color: var(--text);
  box-shadow:
    0 2px 10px var(--shadow),
    0 0 22px color-mix(in srgb, #e23b3b 30%, transparent);
}

@keyframes captionSlideUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Ambient background blots (.blot-a/b/e reference drift1/drift2, which
   were referenced but never defined anywhere — the whole background
   never moved). Subtle, slow, transform-only so it reads as ambient
   texture rather than a distraction. */
@keyframes drift1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(3%, -4%) scale(1.05);
  }
}

@keyframes drift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-4%, 3%) scale(1.04);
  }
}

/* A dropdown anchored below the top bar, opened via #filter-toggle-btn next
 * to the search box — not a permanently-floating strip above the bottom
 * nav (the old placement covered map content and felt jarring on every
 * browse view whether or not you actually wanted to change a filter). */
.map-filters {
  position: fixed;
  top: calc(60px + env(safe-area-inset-top, 0px) + 8px);
  left: 12px;
  right: 12px;
  z-index: 1150;
  display: none;
  flex-direction: column;
  max-height: 60vh;
  overflow-y: auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  -webkit-overflow-scrolling: touch;
}

.map-filters.open {
  display: flex;
}

/* Category / Happening now / When — separate labelled groups (the
 * Eventbrite/Dice/Luma pattern) instead of a dozen chips in one
 * undifferentiated cluster. */
.filter-group + .filter-group {
  margin-top: 16px;
}

.filter-group-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-text, var(--accent));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-toggle-btn {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.filter-toggle-btn.active{
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #0a0a0a !important;
}
@media (hover:hover) and (pointer:fine){.filter-toggle-btn:hover{
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #0a0a0a !important;
}}

.filter-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.blot-a {
  width: 660px;
  height: 420px;
  border-radius: 44% 56% 62% 38% / 52% 42% 58% 48%;
  top: -180px;
  left: -140px;
  animation: drift1 34s ease-in-out infinite alternate;
}

.blot-b {
  width: 520px;
  height: 360px;
  border-radius: 58% 42% 38% 62% / 42% 60% 40% 58%;
  top: 220px;
  right: -160px;
  animation: drift2 29s ease-in-out infinite alternate;
}

.blot-c {
  width: 700px;
  height: 400px;
  border-radius: 40% 60% 54% 46% / 56% 38% 62% 44%;
  bottom: -180px;
  left: -80px;
  animation: drift3 38s ease-in-out infinite alternate;
}

.blot-d {
  width: 460px;
  height: 320px;
  top: 52%;
  right: -90px;
  border-radius: 62% 38% 42% 58% / 44% 56% 52% 48%;
  animation: drift4 26s ease-in-out infinite alternate;
}

.blot-e {
  width: 380px;
  height: 260px;
  bottom: 110px;
  left: 30%;
  border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  animation: drift1 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, -3%) scale(1.06);
  }
}

@keyframes drift4 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4%, 2%) scale(1.03);
  }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

[data-theme="light"] .bg-grain {
  opacity: 0.03;
}

[data-theme="dark"] .bg-grain {
  opacity: 0.045;
}

.btn.btn-outline {
  background: transparent !important;
}

.btn.btn-text {
  background: transparent !important;
}

@media (hover:hover) and (pointer:fine){.section-title:hover::before{
  transform: none !important;
  filter: none !important;
}}

.nav-link.active-tab::before {
  display: none !important;
}

.cu-toast-wrap {
  position: fixed;
  bottom: calc(var(--bot-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.cu-toast.error {
  border-color: #e23b3b;
  color: #e23b3b;
  background: color-mix(in srgb, #e23b3b 8%, var(--surface));
}

.cu-toast.success {
  border-color: var(--accent);
  color: var(--gold-text);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.gate-field-error {
  font-size: 12px;
  color: #e23b3b;
  font-weight: 600;
  margin: 4px 0 0;
  display: none;
}

.gate-field-error.show {
  display: block;
}

.cu-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.18s ease both;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.cu-confirm-sheet {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.22s var(--ease-expo) both;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cu-confirm-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.cu-confirm-body {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.5;
}

.cu-confirm-actions {
  display: flex;
  gap: 10px;
}

.cu-confirm-actions .btn {
  flex: 1;
}

.cu-confirm-actions .btn-cancel {
  flex: 1;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.prof-action-row:last-child {
  border-bottom: none;
}

.prof-action-label {
  flex: 1;
}

.lp-claim-btn:active {
  transform: translateY(0) scale(0.98);
}

.lp-claim-btn-text {
  position: relative;
  z-index: 1;
}

@media (hover:hover) and (pointer:fine){.lp-claim-btn:hover .lp-claim-shimmer{
  background-position: -50% 0;
}}

.lp-form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.lp-signup-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  /* Odd Flock's own theme background (day/night-driven, see [data-theme]),
     not a black scrim over a blurred backdrop — signing up/in should read
     as a real themed page, not a modal darkening the app behind it. */
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lp-signup-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lp-signup-overlay.open .lp-signup-modal {
  transform: scale(1) translateY(0);
}

.lp-signup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    transform 0.15s;
}

@media (hover:hover) and (pointer:fine){.lp-signup-close:hover{
  background: var(--line);
  transform: rotate(90deg);
}}

.card-xl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.card-xl-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.card-xl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  line-height: 1;
  flex-shrink: 0;
}

@media (hover:hover) and (pointer:fine){.card-xl-close:hover{
  transform: scale(1.1) rotate(90deg);
  background: rgba(255, 255, 255, 0.28);
}}

#app {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--top-h) + 12px) 20px calc(var(--bot-h) + 16px);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}#view-container,
.gate-wrap{
  -webkit-overflow-scrolling: touch;
}

.intro-card {
  padding: 16px;
  border-radius: 16px;
}

#map-caption-bar {
  animation: captionSlideUp 0.4s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  font-size: 11px;
}

#od-wrap {
  border-radius: 0;
  padding: 0;
  margin-top: 4px;
  color: var(--text);
}

#od-wrap * {
  box-sizing: border-box;
}

#od-wrap h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  font-family: var(--font-sans);
}

#od-wrap .pb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

#od-wrap .pb button {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 34px;
  font-family: var(--font-sans);
  transition: all 0.15s;
}

@media (hover:hover) and (pointer:fine){#od-wrap .pb button:hover{
  border-color: var(--accent);
  color: var(--gold-text);
}}

#od-wrap .pb button.a {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

#od-wrap .ctx {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  line-height: 1.6;
}

#od-wrap .ctx strong {
  font-weight: 600;
  color: var(--text-soft);
}

#od-wrap input[type="range"] {
  width: 100%;
  height: 28px;
  cursor: pointer;
  accent-color: var(--accent);
}

#od-wrap .tok {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.od-live-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px var(--shadow);
}

.od-live-loading {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.od-live-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.od-live-stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.od-live-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.od-live-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.od-live-stat-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
}

.od-live-rev-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}

.od-live-rev-row:last-child {
  border-bottom: none;
}

.od-live-rev-label {
  font-size: 12px;
  color: var(--text-muted);
}

.od-live-rev-sub {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 1px;
}

.od-live-rev-val {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.od-live-month {
  background: linear-gradient(
    135deg,
    rgba(94, 84, 240, 0.07),
    rgba(94, 84, 240, 0.02)
  );
  border: 1px solid rgba(94, 84, 240, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
}

.od-live-month-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 8px;
}

.od-live-month-stats {
  display: flex;
  gap: 20px;
}

.od-live-mstat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.od-live-mstat-key {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-outline:active {
  transform: scale(0.94) !important;
}

.back-btn:active {
  transform: scale(0.8) rotate(-10deg) !important;
}

.nav-link:active {
  transform: scale(0.84) !important;
}

@keyframes navTabPop {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.panel:active {
  transform: translateY(-1px) scale(0.99) !important;
}

.prof-action-row:active {
  background: var(--surface-2) !important;
  transform: scale(0.97) !important;
}

.view-enter {
  animation: viewSlideUp var(--dur-slow) var(--ease-pop) both;
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.cu-toast {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px !important;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.08) !important;
  max-width: 320px;
  text-align: center;
  animation: toastIn 0.4s var(--ease-pop) both !important;
  pointer-events: auto;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  letter-spacing: 0.01em;
}

.cu-toast.hiding {
  animation: toastOut 0.22s ease both !important;
}

@keyframes listIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.list-item-stagger > * {
  opacity: 0;
  animation: listIn 0.38s var(--ease-expo) both;
}

.list-item-stagger > *:nth-child(1) {
  animation-delay: 0.04s;
}

.list-item-stagger > *:nth-child(2) {
  animation-delay: 0.08s;
}

.list-item-stagger > *:nth-child(3) {
  animation-delay: 0.12s;
}

.list-item-stagger > *:nth-child(4) {
  animation-delay: 0.16s;
}

.list-item-stagger > *:nth-child(5) {
  animation-delay: 0.2s;
}

.list-item-stagger > *:nth-child(6) {
  animation-delay: 0.24s;
}

.list-item-stagger > *:nth-child(n + 7) {
  animation-delay: 0.28s;
}

.gate-input {
  transition:
    border-color 0.18s var(--ease-expo),
    box-shadow 0.18s var(--ease-expo) !important;
}

.gate-input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent) !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--text);
}

.hp-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
}

.hp-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
}

.hp-tier-row.active {
  border-color: var(--accent);
  background: var(--surface);
}

.hp-tier-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.hp-tier-fee {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-text);
  font-family: "DM Mono", monospace;
}

.gate-host-extra {
  animation: viewSlideUp 0.32s var(--ease-pop) both;
}

.host-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px;
}

.host-cat-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s var(--ease-expo);
  background: transparent;
  color: var(--text-muted);
}

.host-cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.06);
}

.gate-host-success {
  text-align: center;
  padding: 24px 16px;
  animation: viewSlideUp 0.35s var(--ease-pop) both;
}

.gate-host-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.gate-host-success-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.gate-host-success-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.review-card-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}

.review-card-email {
  font-size: 11.5px;
  color: var(--text-muted);
}

.review-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.review-status-badge.pending {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.review-status-badge.approved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.review-status-badge.rejected {
  background: rgba(226, 59, 59, 0.08);
  color: #e23b3b;
  border: 1px solid rgba(226, 59, 59, 0.18);
}

.review-status-badge.hidden {
  background: rgba(226, 59, 59, 0.08);
  color: #e23b3b;
  border: 1px solid rgba(226, 59, 59, 0.18);
}

.review-detail {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.review-detail:last-of-type {
  border-bottom: none;
}

.review-detail-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}

.review-detail-val {
  color: var(--text);
  line-height: 1.55;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.review-approve-btn {
  background: #22c55e !important;
  color: #fff !important;
  border-color: #22c55e !important;
}

.review-reject-btn {
  color: #e23b3b !important;
  border-color: rgba(226, 59, 59, 0.4) !important;
}

.review-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

.review-section-hd {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
  margin: 16px 0 8px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.stat-box {
  padding: 20px 10px !important;
  flex: 1;
  min-width: 80px;
  text-align: center !important;
  transition: background 0.15s ease !important;
  border-radius: 0 !important;
  background: var(--surface) !important;
  border: none !important;
  box-shadow: none !important;
}

@media (hover:hover) and (pointer:fine){.stat-box:hover{
  background: var(--surface-2) !important;
  transform: none !important;
}}

.gate-input,
.gate-wrap textarea,
select.gate-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1.5px solid var(--line) !important;
  background: var(--surface-2) !important;
  border-radius: 14px !important;
  padding: 0 16px !important;
  font-family: var(--font-sans);
  font-size: 15px !important;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease !important;
  height: 48px !important;
}

.gate-wrap textarea {
  height: auto !important;
  padding: 14px 16px !important;
}

.gate-input:focus,
.gate-wrap textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 16%, transparent) !important;
  outline: none !important;
}

.empty-state,
.review-empty {
  padding: 72px 28px !important;
  color: var(--text-muted) !important;
}

.review-empty-icon {
  font-size: 40px !important;
  margin-bottom: 16px !important;
  opacity: 0.4 !important;
}

.review-card {
  background: var(--surface);
  border: 1.5px solid var(--line) !important;
  border-radius: 18px !important;
  padding: 20px !important;
  margin-bottom: 10px;
  transition: box-shadow 0.18s ease !important;
}

@media (hover:hover) and (pointer:fine){.review-card:hover{
  box-shadow: 0 8px 32px var(--shadow) !important;
}}

#app:not(.map-home) {
  padding-top: calc(var(--top-h) + 16px) !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-bottom: calc(var(--bot-h) + 20px) !important;
}

.detail-host-byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-follow-host {
  padding: 3px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--gold-text);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.14s ease,
    color 0.14s ease;
}

@media (hover:hover) and (pointer:fine){.btn-follow-host:hover{
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}}

.btn-follow-host.following {
  background: var(--accent);
  color: #0a0a0a;
  border-color: transparent;
}

.host-reviewed-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #147136;
  font-weight: 700;
}

.host-byline-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

@media (hover:hover) and (pointer:fine){.host-byline-link:hover{
  color: var(--gold-text);
  text-decoration-color: currentColor;
}}

/* Cover uses the same gold gradient as buttons (--grad-gold) rather than a
 * per-host hue — DESIGN.md's One Thread Rule keeps gold the only accent
 * across the system — plus a soft dot texture so it reads as a banner
 * rather than a flat swatch. The avatar shows a real uploaded photo
 * (avatar_url, public.public_profiles) when the host has set one, falling
 * back to the monogram otherwise — never a stand-in for a photo that
 * doesn't exist. */
.host-profile-cover {
  height: 110px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(
      circle at 18px 18px,
      rgba(255, 255, 255, 0.16) 1.5px,
      transparent 1.5px
    ),
    var(--grad-gold);
  background-size:
    22px 22px,
    100% 100%;
}

/* Avatar overlaps the banner in its own row, decoupled from the name/
 * follow row below — a long host name wrapping to two lines must never be
 * able to paint over the banner (unreadable where it crosses the gold/
 * dark-background boundary), so only the (fixed-size, never-reflowing)
 * avatar is allowed to sit in the overlap band. */
.host-profile-avatar-wrap {
  margin-top: -34px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.host-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px;
  margin-bottom: 18px;
}

.host-profile-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-gold);
  border: 3px solid var(--bg);
  box-shadow: 0 4px 14px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #0a0a0a;
  overflow: hidden;
}

.host-profile-avatar-photo {
  background: var(--surface-2);
}
.host-profile-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.host-profile-member-since {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.host-profile-identity {
  flex: 1;
  min-width: 0;
}

.host-profile-identity h2 {
  margin: 0;
  overflow-wrap: break-word;
}

.host-profile-identity p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.host-profile-header .btn-follow-host {
  flex-shrink: 0;
  margin-top: 2px;
}

.host-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.host-stat {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
}

.host-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.host-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

.upcoming-chip {
  display: inline-flex !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  margin-left: var(--sp-2) !important;
  align-items: center !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--ch-divider) !important;
  border-radius: 6px !important;
  padding: 3px 10px !important;
  line-height: 1.6 !important;
}

.mchip:active {
  transform: scale(0.95) !important;
}

#view-container {
  will-change: opacity, transform;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-5) calc(var(--bot-h) + var(--sp-8));
}

.detail-desc {
  font-size: 14.5px !important;
  line-height: 1.68 !important;
  color: var(--text-soft) !important;
  margin-bottom: var(--sp-6) !important;
  letter-spacing: 0.005em !important;
}

[data-theme="dark"] .blot-d {
  background: #1a1a0a !important;
  opacity: 0.15 !important;
}

[data-theme="dark"] .blot-e {
  background: #3c2800 !important;
  opacity: 0.15 !important;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: calc(60px + env(safe-area-inset-top, 0px)) !important;
  background: color-mix(in srgb, var(--surface) 86%, transparent) !important;
  display: flex;
  align-items: flex-end !important;
  gap: 10px !important;
  padding: env(safe-area-inset-top, 0px) 20px 0 !important;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line-soft) !important;
  box-shadow: 0 1px 0 var(--line-soft) !important;
  backdrop-filter: blur(28px) saturate(2.2) !important;
  -webkit-backdrop-filter: blur(28px) saturate(2.2) !important;
  border-bottom-color: var(--line-soft) !important;
  padding-bottom: 8px !important;
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 38px !important;
  background: var(--surface-2) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-family: var(--font-sans) !important;
  color: var(--text) !important;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  border-color: transparent !important;
}

.search-input:focus {
  border-color: var(--accent) !important;
  background: var(--surface) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent) !important;
  outline: none !important;
}

.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1200 !important;
  background: transparent !important;
  border-top: none !important;
  display: flex !important;
  justify-content: space-around !important;
  padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top-color: var(--line-soft) !important;
  height: auto !important;
  border-radius: 26px !important;
  border: 1px solid var(--line) !important;
}

.nav-link {
  background: transparent !important;
  color: var(--text-muted) !important;
  padding: 7px 10px !important;
  min-width: 36px;
  min-height: 50px !important;
  font-size: 8.5px !important;
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
  border: none;
  cursor: pointer;
  transition: color 0.18s ease !important;
  border-radius: 14px !important;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px !important;
  position: relative !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  z-index: 1 !important;
}

.nav-link .nav-icon {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 22px !important;
  height: 22px !important;
  transition: transform 0.22s var(--ease-expo) !important;
  box-shadow: none !important;
}

@media (hover:hover) and (pointer:fine){.nav-link:hover{
  color: var(--text-soft) !important;
}}

@media (hover:hover) and (pointer:fine){.nav-link:hover .nav-icon{
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  transform: translateY(-2px) !important;
}}

.nav-link.active-tab .nav-icon {
  transform: scale(1.18) translateY(-2px) !important;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
  filter: drop-shadow(
    0 2px 8px color-mix(in srgb, var(--accent) 55%, transparent)
  ) !important;
}

.nav-link.active-tab::after {
  content: "" !important;
  position: absolute !important;
  bottom: 4px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--accent) !important;
  opacity: 0.8 !important;
}

.btn-small {
  padding: 8px 16px !important;
  font-size: 12.5px !important;
  border-radius: 10px !important;
}

@media (hover:hover) and (pointer:fine){.btn-text:hover{
  color: var(--gold-text) !important;
  transform: none !important;
}}

.lp-claim-btn {
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-deep)
  ) !important;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 38%, transparent) !important;
}

.mapboxgl-ctrl-group button:last-child {
  border-bottom: none !important;
}

[data-theme="dark"] .mapboxgl-ctrl-group .mapboxgl-ctrl-icon {
  filter: invert(0.75) !important;
}

.mapboxgl-ctrl-attrib-inner {
  font-size: 9px !important;
  opacity: 0.4 !important;
}

[data-theme="dark"] .mapboxgl-ctrl-attrib-inner {
  color: rgba(232, 232, 255, 0.5) !important;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.lp-signup-modal {
  border-radius: 20px !important;
  border: 1px solid var(--line) !important;
}

.lp-claim-btn {
  background: var(--accent) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  transition: background 0.14s ease !important;
}

@media (hover:hover) and (pointer:fine){.lp-claim-btn:hover{
  background: var(--accent-deep) !important;
  box-shadow: none !important;
  filter: none !important;
}}

[data-theme="dark"] .lp-claim-btn {
  color: #07071a !important;
}

.lp-claim-shimmer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.5s ease;
  pointer-events: none;
  display: none !important;
}

@media (hover:hover) and (pointer:fine){.btn:hover{
  filter: none !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
  background: var(--accent-deep) !important;
}}

[data-theme="dark"] .btn-outline {
  color: var(--text) !important;
}

@media (hover:hover) and (pointer:fine){[data-theme="dark"] .btn-outline:hover{
  color: var(--accent) !important;
}}

@media (hover:hover) and (pointer:fine){.mchip:hover{
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--accent) !important;
  color: var(--gold-text) !important;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface)) !important;
}}

[data-theme="dark"] .mchip {
  background: color-mix(in srgb, var(--surface) 85%, transparent) !important;
  border-color: rgba(232, 232, 255, 0.1) !important;
  color: rgba(232, 232, 255, 0.6) !important;
}

@media (hover:hover) and (pointer:fine){[data-theme="dark"] .mchip:hover{
  color: var(--accent) !important;
}}

[data-theme="dark"] .mchip.active {
  color: #07071a !important;
}

.bottom-nav::before {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  left: 12px !important;
  right: 12px !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
  background: var(--surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.14) !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

[data-theme="dark"] .bottom-nav::before {
  background: var(--surface) !important;
  border-color: rgba(232, 232, 255, 0.1) !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.65) !important;
}

[data-theme="dark"] .panel {
  background: var(--surface) !important;
  border-color: rgba(232, 232, 255, 0.08) !important;
}

@media (hover:hover) and (pointer:fine){[data-theme="dark"] .panel:hover{
  border-color: rgba(232, 184, 75, 0.25) !important;
}}

.intro-card {
  border-radius: 14px !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease !important;
}

@media (hover:hover) and (pointer:fine){.intro-card:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px var(--shadow) !important;
}}

.mapboxgl-ctrl-group {
  border-radius: 10px !important;
  box-shadow:
    0 2px 10px var(--shadow),
    0 0 0 1px var(--line) !important;
  border: none !important;
  overflow: hidden !important;
  background: transparent !important;
}

.mapboxgl-ctrl-group button {
  background: var(--surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--line-soft) !important;
  width: 34px !important;
  height: 34px !important;
  transition: background 0.15s !important;
}

@media (hover:hover) and (pointer:fine){.mapboxgl-ctrl-group button:hover{
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)) !important;
}}

.toast {
  border-radius: 12px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: var(--surface) !important;
  border: 1.5px solid var(--line) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  font-size: 13.5px !important;
}

input[type="date"],
input[type="email"],
input[type="number"],
input[type="text"]:not(.search-input),
input[type="time"],
select,
textarea {
  border-radius: 10px !important;
  border: 1.5px solid var(--line) !important;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  font-family: var(--font-sans) !important;
  transition:
    border-color 0.14s,
    box-shadow 0.14s !important;
}

input[type="date"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="text"]:not(.search-input):focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent) !important;
  outline: none !important;
  background: var(--surface) !important;
}

.live-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  color: #ef4444 !important;
  text-transform: uppercase;
  margin-left: 8px;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 6px !important;
  padding: 3px 9px !important;
  font-family: var(--font-sans) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

[data-theme="light"] .blot-a {
  background: #d4c8a8 !important;
  opacity: 0.45 !important;
}

[data-theme="light"] .blot-b {
  background: #e8d8a0 !important;
  opacity: 0.18 !important;
}

[data-theme="light"] .blot-c {
  background: #d0c090 !important;
  opacity: 0.28 !important;
}

[data-theme="light"] .blot-d {
  background: #c8b880 !important;
  opacity: 0.14 !important;
}

[data-theme="light"] .blot-e {
  background: #cba43a !important;
  opacity: 0.1 !important;
}

[data-theme="dark"] .blot-a {
  background: #2a2010 !important;
  opacity: 0.55 !important;
}

[data-theme="dark"] .blot-b {
  background: #1c1c14 !important;
  opacity: 0.4 !important;
}

[data-theme="dark"] .blot-c {
  background: #201808 !important;
  opacity: 0.35 !important;
}

.connect-header {
  margin-bottom: 8px !important;
  position: relative;
  padding-top: 4px;
}

.connect-header h2 {
  font-size: 26px !important;
  margin: 6px 0 4px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  color: var(--text) !important;
  letter-spacing: -0.04em !important;
}

.connect-header p {
  margin: 0;
  color: var(--text-muted) !important;
  font-size: 12px !important;
  letter-spacing: 0.01em !important;
  font-weight: 600 !important;
}

.connect-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--gold),
    var(--accent-deep)
  );
  background-size: 200% 100%;
  animation: gradientShift 4s linear infinite;
  border-radius: 99px;
  display: none !important;
}

.prof-action-list {
  background: var(--surface);
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  margin-bottom: 4px;
}

.prof-action-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px !important;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line) !important;
  font-family: var(--font-sans);
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    background var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-expo) !important;
}

@media (hover:hover) and (pointer:fine){.prof-action-row:hover{
  background: color-mix(in srgb, var(--accent) 5%, var(--surface)) !important;
}}

.prof-action-right {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Account avatar (Account header + Account details page) ────────────── */
.account-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-avatar-mono {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-2));
  color: var(--accent-deep, var(--text));
  font-weight: 800;
  letter-spacing: -0.02em;
}
.account-avatar-edit-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2.5px solid var(--surface);
}

.account-cover-edit-zone {
  position: relative;
  height: 110px;
  border-radius: var(--r-lg);
  cursor: pointer;
  background-size: cover;
  background-position: center;
  margin-bottom: 6px;
}
.account-cover-edit-empty {
  background:
    radial-gradient(
      circle at 18px 18px,
      rgba(255, 255, 255, 0.16) 1.5px,
      transparent 1.5px
    ),
    var(--grad-gold);
  background-size:
    22px 22px,
    100% 100%;
}
.account-cover-edit-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.btn-text {
  background: transparent !important;
  color: var(--text-muted) !important;
  padding: 6px 8px !important;
  font-size: 12px;
  box-shadow: none !important;
  filter: none !important;
}

.logo {
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  color: var(--accent) !important;
  background: none !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: var(--accent) !important;
  background-clip: text !important;
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px !important;
  background: var(--accent) !important;
  opacity: 0.9 !important;
  transition: opacity 0.22s ease;
  border-radius: 20px 20px 0 0 !important;
  display: none !important;
}

.section-title {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: var(--gold-text) !important;
  margin: 24px 0 11px;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  font-family: var(--font-sans) !important;
}

.section-title::before {
  content: "" !important;
  width: 16px !important;
  height: 2px !important;
  border-radius: 1px !important;
  background: var(--accent) !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  filter: none !important;
  transition: none !important;
  display: inline-block !important;
}

.nav-link.active-tab {
  color: var(--gold-text) !important;
  background: transparent !important;
  border-radius: 12px;
  animation: navTabPop var(--dur-slow) var(--ease-expo) both;
}

.bottom-nav::after {
  background: var(--accent) !important;
}

.mchip {
  display: flex;
  align-items: center;
  gap: 6px !important;
  background: var(--surface) !important;
  border: 1.5px solid var(--line) !important;
  color: var(--text-soft) !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  cursor: pointer;
  box-shadow: none !important;
  white-space: nowrap !important;
  flex-shrink: 0;
  min-height: 36px;
  transition:
    border-color 0.14s,
    background 0.14s,
    color 0.14s !important;
  height: 36px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  letter-spacing: 0.01em !important;
  border-color: var(--line) !important;
}

.mchip.active {
  color: #0a0a0a !important;
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  box-shadow: none !important;
}

.back-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  background: var(--surface) !important;
  border: 1.5px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  font-size: 13px !important;
  color: var(--text) !important;
  margin-bottom: 14px !important;
  transition:
    border-color 0.12s,
    background 0.12s !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.02em !important;
  padding: 6px 14px !important;
}

@media (hover:hover) and (pointer:fine){.back-btn:hover{
  background: color-mix(in srgb, var(--accent) 6%, var(--surface)) !important;
  transform: translateX(-2px);
  border-color: var(--accent) !important;
  color: var(--gold-text) !important;
}}

@media (hover:hover) and (pointer:fine){.lp-claim-btn:hover{
  transform: translateY(-2px);
  box-shadow:
    0 14px 44px color-mix(in srgb, var(--accent) 50%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.15);
  filter: brightness(1.06);
  background: var(--accent-deep) !important;
}}

.section-title,
h1,
h2,
h3 {
  letter-spacing: -0.02em !important;
}

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(
      ellipse 90% 55% at -5% -10%,
      var(--mesh-a),
      transparent 55%
    ),
    radial-gradient(
      ellipse 65% 45% at 108% 12%,
      var(--mesh-b),
      transparent 50%
    ),
    radial-gradient(
      ellipse 75% 55% at 55% 110%,
      var(--mesh-c),
      transparent 55%
    ),
    var(--bg);
  font-family: var(--font-sans);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition:
    background 0.25s ease,
    color 0.25s ease;
  font-feature-settings:
    "kern" 1,
    "liga" 1,
    "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

.panel {
  position: relative;
  background: var(--surface) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow:
    0 1px 2px var(--shadow),
    0 12px 28px -12px var(--shadow) !important;
  overflow: hidden !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease !important;
  will-change: transform, box-shadow;
  backdrop-filter: blur(24px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
  border-color: var(--line) !important;
}

@media (hover:hover) and (pointer:fine){.panel:hover{
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 14px 40px rgba(0, 0, 0, 0.09) !important;
  transform: translateY(-2px) !important;
  border-color: var(--line) !important;
}}

.btn,
.btn-outline,
.btn-text,
.nav-link {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease !important;
}

.btn-outline:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.search-input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent) !important;
  outline-offset: 2px !important;
}

[data-theme="light"] .bg-blot {
  opacity: 0.22 !important;
}

[data-theme="dark"] .bg-blot {
  opacity: 0.14 !important;
}

.blot-a,
.blot-b,
.blot-c,
.blot-d,
.blot-e {
  animation-duration: 42s !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

@media (hover:hover) and (pointer:fine){::-webkit-scrollbar-thumb:hover{
  background: var(--text-muted);
}}

[data-theme="light"] {
  --bg: #eceae4 !important;
  --bg-2: #e1ded6 !important;
  --surface: #f7f6f2 !important;
  --surface-2: #ebe8e1 !important;
  --text: #191a1c !important;
  --text-soft: #45474c !important;
  --text-muted: #6a6862 !important;
  --line: rgba(192, 138, 0, 0.42) !important;
  --line-soft: rgba(192, 138, 0, 0.18) !important;
  --accent: #c08a00 !important;
  --accent-deep: #966a0a !important;
  --gold: #c08a00 !important;
  --gold-text: #7a5900 !important;
  --gold-tint: rgba(192, 138, 0, 0.14) !important;
  --blot-color: var(--accent);
  /* red-700/green-600 rather than the more common red-600/green-500 —
   * checked against this theme's actual surfaces: #dc2626/#22C55E (the
   * values these replace) measured 4.47:1 for --danger text on --surface
   * (below the 4.5:1 AA floor) and 2.28:1 for a white icon on --success
   * (below the 3:1 floor for graphical objects). These two pass both. */
  --danger: #b91c1c !important;
  --success: #16a34a !important;
  --shadow: rgba(25, 26, 28, 0.08) !important;
  --scrim: rgba(240, 235, 224, 0.92) !important;
  --mesh-a: rgba(156, 123, 24, 0.022) !important;
  --mesh-b: rgba(156, 123, 24, 0.012) !important;
  --mesh-c: rgba(140, 146, 153, 0.02) !important;
  --ch-divider: rgba(28, 25, 23, 0.1);
  --ch-date-bg: rgba(71, 85, 105, 0.07);
  --ch-meta-icon: rgba(28, 25, 23, 0.3);
  --ch-panel-bg: #fdfcf9;
  --ch-input-bg: #eeecea;
  --silver: #7e848c !important;
  --silver-deep: #5e636b !important;
  --grad-gold: linear-gradient(
    145deg,
    #c9a227 0%,
    #a8841f 50%,
    #846814 100%
  ) !important;
  --grad-silver: linear-gradient(
    145deg,
    #aeb3ba 0%,
    #8b9098 50%,
    #6b7079 100%
  ) !important;
}

.btn:not(.btn-outline):not(.btn-text) {
  background: var(--accent) !important;
  box-shadow: none !important;
  border: none !important;
  color: #0a0a0a !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  transition:
    background 0.15s ease,
    transform 0.15s ease !important;
}

.btn:not(.btn-outline):not(.btn-text):active {
  transform: translateY(0) !important;
}

.btn-outline {
  background: transparent !important;
  color: var(--text) !important;
  border: 1.5px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-width: 1.5px !important;
  border-color: var(--line) !important;
  filter: none !important;
  border-radius: 12px !important;
}

@media (hover:hover) and (pointer:fine){.btn-outline:hover{
  background: color-mix(in srgb, var(--accent) 8%, transparent) !important;
  border-color: var(--accent) !important;
  color: var(--gold-text) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}}

.btn-outline,
.btn-text {
  box-shadow: none !important;
}

.prof-action-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0;
}

.prof-action-row.prof-action-danger .prof-action-label {
  color: #e06666 !important;
}

[data-theme="light"] .prof-action-row.prof-action-danger .prof-action-label {
  color: #c0392b !important;
}

.lp-claim-btn {
  background: var(--accent) !important;
  color: #0a0a0a !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 12px !important;
}

@media (hover:hover) and (pointer:fine){.lp-claim-btn:hover{
  background: var(--accent-deep) !important;
  box-shadow: none !important;
  filter: none !important;
}}

.panel,
.prof-action-row,
.review-card,
.stat-box {
  box-shadow: 0 1px 2px var(--shadow) !important;
}

[data-theme="dark"] .panel {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid var(--line) !important;
}

.search-input,
input[type="email"],
input[type="tel"],
input[type="text"],
select,
textarea {
  border-radius: 12px !important;
}

.bg-blot {
  position: fixed;
  background: var(--blot-color);
  z-index: 0;
  pointer-events: none;
  filter: blur(96px) !important;
  opacity: 0.045 !important;
}

/* PERF FIX: .bg-blot / .bg-grain live outside #gate-root and #app in
   index.html, so without this rule they kept blurring + transform-
   animating (5 elements, continuous 42s loops, 96px blur filter) behind
   the ENTIRE app for the whole session, not just the landing screen they
   were designed for. That's a constant compositor/filter tax on every
   view (map, lists, detail, modals) — measured as ~32fps average and
   36% dropped frames during normal navigation before this fix. Landing
   keeps its ambient texture; the moment real app UI is up, both are
   fully removed from the render tree. */
body.app-active .bg-blot,
body.app-active .bg-grain {
  display: none !important;
  animation: none !important;
}
.mchip{
  letter-spacing: -0.005em !important;
}

.event-badge {
  display: inline-flex !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  padding: 3px 9px !important;
  margin-bottom: var(--sp-3) !important;
  color: var(--cat-text, var(--cat, var(--gold-text))) !important;
  border-radius: 7px !important;
  align-items: center !important;
  text-transform: uppercase !important;
  line-height: 1.6 !important;
  background: color-mix(
    in srgb,
    var(--cat, var(--accent)) 15%,
    transparent
  ) !important;
  border: 1px solid
    color-mix(in srgb, var(--cat, var(--accent)) 32%, transparent) !important;
}

[data-theme="dark"] .event-badge {
  background: color-mix(
    in srgb,
    var(--cat, var(--accent)) 18%,
    transparent
  ) !important;
  color: color-mix(in srgb, var(--cat, var(--accent)) 85%, #fff) !important;
  border-color: color-mix(
    in srgb,
    var(--cat, var(--accent)) 36%,
    transparent
  ) !important;
}

/* Shared bigger event row — a square image plus a real synopsis (location,
   time, host) instead of a bare title-only line. Used by the calendar's
   List mode and Day view (eventListCardHtml in app.js); the whole card is
   the tap target, opening the full event page rather than acting on it
   inline. */

/* Ended events stay visible in Calendar (never on the map/browse — see
 * getFilteredEvents()) but read as inactive: muted image, faded copy, no
 * category-corner accent. Still fully tappable — opens the real detail
 * page, which is how you reach the host's other upcoming events. */

.lp-signup-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px !important;
  width: 100%;
  max-width: 440px !important;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 30px 26px 26px !important;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-mode-sel {
  display: flex;
  gap: 26px;
  margin: 2px 0 18px;
  border-bottom: 1px solid var(--line);
}

.auth-mode-btn {
  background: none;
  border: none;
  padding: 0 0 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  transition: color 0.15s ease;
}

.auth-mode-btn.active {
  color: var(--text);
}

.auth-mode-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.auth-hidden,
.lp-signup-modal .auth-hidden {
  display: none !important;
}

.gate-type-sel {
  display: flex !important;
  gap: 6px !important;
  margin-bottom: 20px;
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  padding: 5px !important;
  margin: 4px 0 20px !important;
}

.gate-type-btn {
  flex: 1 !important;
  padding: 11px 8px !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  line-height: 1.3;
  transition:
    background 0.15s ease,
    color 0.15s ease !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
}

.gate-type-btn.active {
  background: var(--accent) !important;
  color: #0a0a0a !important;
  box-shadow: none !important;
  transform: none !important;
}

.lp-form-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 7px !important;
}

.lp-form-title {
  font-size: 23px !important;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.15;
  margin-bottom: 6px !important;
}

.lp-form-sub {
  font-size: 13px !important;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
  margin-bottom: 20px !important;
}

.gate-field {
  margin-bottom: 15px !important;
}

.gate-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.gate-input {
  border-radius: 12px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  padding: 13px 15px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.gate-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.gate-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  background: var(--surface);
}

textarea.gate-input {
  resize: vertical;
  min-height: 74px;
  line-height: 1.5;
}

.gate-field-group-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 16px 0 8px;
}

.lp-claim-btn {
  width: 100%;
  padding: 17px 24px;
  background: var(--accent) !important;
  border: none;
  border-radius: 13px !important;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  color: #0a0a0a !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 40%, transparent) !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
  letter-spacing: 0.2px;
  margin-top: 6px !important;
}
/* One sweep on open (the pass "catching the light" as it's revealed), then
 * it rests — an infinite loop reads as decoration running forever rather
 * than a moment, the exact distinction Discord draws between its Profile
 * Effects (play once on open) and an ambient background loop. Re-triggers
 * naturally every time openExpandedCard() re-inserts this element. */.section-title{
  font-family: "DM Sans", var(--font-sans) !important;
  letter-spacing: -0.03em !important;
  font-weight: 800 !important;
}

.btn {
  border: none;
  padding: 11px 24px !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer;
  color: #0a0a0a !important;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-deep) 100%
  ) !important;
  border-radius: 999px !important;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.28s var(--ease-out),
    filter 0.2s !important;
  box-shadow:
    0 1px 2px var(--shadow),
    0 6px 16px -6px color-mix(in srgb, var(--accent) 45%, transparent) !important;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em !important;
  height: 44px !important;
}

@media (hover:hover) and (pointer:fine){.btn:not(.btn-outline):not(.btn-text):hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px -8px
    color-mix(in srgb, var(--accent) 62%, transparent) !important;
  filter: none !important;
  background: var(--accent-deep) !important;
}}

.btn:active {
  transform: scale(0.97) !important;
  opacity: 0.84;
  filter: brightness(0.98) !important;
}

.intro-card,
.lp-signup-modal,
.panel {
  border-radius: var(--r-lg) !important;
}

.report-reason-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.report-reason-option:last-of-type {
  border-bottom: none;
}

.report-reason-option input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bottom-nav,
.top-bar {
  backdrop-filter: blur(16px) saturate(1.25) !important;
  background: color-mix(in srgb, var(--surface) 78%, transparent) !important;
}

:root {
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --top-h: calc(60px + env(safe-area-inset-top, 0px));
  --bot-h: calc(62px + env(safe-area-inset-bottom, 0px));
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.14s;
  --dur-med: 0.26s;
  --dur-slow: 0.42s;
  --radius-card: 20px;
  --radius-pill: 999px;
  --radius-sm: 12px;
  --blur-glass: blur(24px) saturate(2);
  --nav-h: 72px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --transition-spring: cubic-bezier(0.22, 1, 0.36, 1);
  /* Gentle overshoot: entrances/tab pops land with a small spring. */
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-display:
    "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", "Consolas", monospace;
  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover:
    0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.1),
    0 28px 60px rgba(0, 0, 0, 0.13);
  --shadow-btn: 0 2px 8px rgba(0, 0, 0, 0.14), 0 6px 20px rgba(0, 0, 0, 0.1);
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --gutter: 24px;
  --lp-gutter: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --hero-sky: linear-gradient(
    180deg,
    #f6efd9 0%,
    #f2e8d0 30%,
    #ece2c4 55%,
    #e7ddc0 78%,
    #eceae4 100%
  );
  --dio-back: #c9c0ab;
  --dio-front: #7d7259;
  --dio-front-2: #948870;
  --dio-chimney: #f2ead6;
  --dio-face: #efe6d2;
  --dio-win: #e3d4a8;
  --dio-clock: #f7f0dc;
  --dio-glow-op: 0;
}

[data-theme="dark"] {
  --bg: #0d0e10 !important;
  --bg-2: #08090a !important;
  --surface: #16181b !important;
  --surface-2: #1f2226 !important;
  --text: #ece9e1 !important;
  --text-soft: #b4b0a7 !important;
  --text-muted: #88857c !important;
  --line: rgba(255, 207, 51, 0.35) !important;
  --line-soft: rgba(255, 207, 51, 0.16) !important;
  --accent: #ffcf33 !important;
  --accent-deep: #e0a800 !important;
  --gold: #ffcf33 !important;
  --gold-text: #ffcf33 !important;
  --gold-tint: rgba(255, 207, 51, 0.18) !important;
  --blot-color: var(--accent);
  /* Lighter than the light-theme --danger/--success values — measured
   * against this theme's actual --surface (#16181b): the light-theme reds
   * read too dark against near-black to hit 4.5:1, so dark mode needs its
   * own brighter step (red-400/green-600 rather than red-700/green-600). */
  --danger: #f87171 !important;
  --success: #16a34a !important;
  --shadow: rgba(0, 0, 0, 0.6) !important;
  --scrim: rgba(10, 10, 10, 0.92) !important;
  --mesh-a: rgba(255, 207, 51, 0.05) !important;
  --mesh-b: rgba(168, 132, 31, 0.02) !important;
  --mesh-c: rgba(198, 202, 209, 0.02) !important;
  --ch-divider: rgba(245, 244, 239, 0.1);
  --ch-date-bg: rgba(148, 163, 184, 0.1);
  --ch-meta-icon: rgba(245, 244, 239, 0.28);
  --ch-panel-bg: #1c1b17;
  --ch-input-bg: #25231e;
  --silver: #c6cad1 !important;
  --silver-deep: #9aa0a8 !important;
  --grad-gold: linear-gradient(
    145deg,
    #e7c766 0%,
    #c9a227 42%,
    #9c7b18 100%
  ) !important;
  --grad-silver: linear-gradient(
    145deg,
    #edeff2 0%,
    #c6cad1 45%,
    #9aa0a8 100%
  ) !important;
  --hero-sky: linear-gradient(
    180deg,
    #03040b 0%,
    #0a1028 36%,
    #1a1d44 66%,
    #2e2854 86%,
    #413561 100%
  );
  --dio-back: #0c111e;
  --dio-front: #11141d;
  --dio-front-2: #151924;
  --dio-chimney: #1b2029;
  --dio-face: #e8edf2;
  --dio-win: #ffd98a;
  --dio-clock: #f4dfa2;
  --dio-glow-op: 0.85;
}

/* Background loading transitions for seamless boot */

/* ── Event Approvals & Host Reviews UI ─────────────────────── */

.review-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.review-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.review-section-hd {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin: 0 0 16px 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover:hover) and (pointer:fine){.review-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  gap: 12px;
}

.review-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}

.review-card-email {
  font-size: 13px;
  color: var(--text-muted);
}

.review-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}

.review-status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.review-status-badge.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.review-status-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.review-status-badge.hidden {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.review-detail {
  margin-bottom: 14px;
}

.review-detail:last-of-type {
  margin-bottom: 0;
}

.review-detail-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.review-detail-val {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.review-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.review-actions .btn {
  font-weight: 700;
  padding: 12px;
  letter-spacing: 0.5px;
}

.review-approve-btn {
  background: var(--accent);
  color: #fff;
  border: none;
}

@media (hover:hover) and (pointer:fine){.review-approve-btn:hover{
  filter: brightness(1.1);
}}

.review-reject-btn {
  color: var(--text-muted);
  border-color: var(--border);
  background: transparent;
}

@media (hover:hover) and (pointer:fine){.review-reject-btn:hover{
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: #dc2626;
}}

/* ── Landing page: mobile grid fix ─────────────────────────────────────────
 * The stylesheet had NO @media queries at all, so every fixed multi-column
 * grid on the landing page rendered unchanged down to phone widths — e.g.
 * .lp-features-grid (3 columns) and .lp-venues-inner (2 columns, 60px gap)
 * squeezed their content into ~120px slivers, wrapping every word onto its
 * own line. Stack these to a single column below the tablet breakpoint;
 * desktop/tablet keep their original multi-column layout untouched. */

/* ══════════════════════════════════════════════════════════════════
   POLISH PASS — tactility, micro-interactions & smoother theme flip.
   Additive layer: transform/opacity-first, all motion reduced-safe.
   ══════════════════════════════════════════════════════════════════ */

/* Primary button: keep the gold gradient alive on hover (was flattening
   to a solid tone) and let the shadow bloom read as a warmer gold glow. */
@media (hover:hover) and (pointer:fine){.btn:not(.btn-outline):not(.btn-text):hover{
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 92%, #fff) 0%,
    var(--accent-deep) 100%
  ) !important;
  box-shadow:
    0 2px 6px var(--shadow),
    0 14px 34px -10px color-mix(in srgb, var(--accent) 60%, transparent) !important;
}}

/* Give the light-sweep a cleaner ease so it reads as a wipe, not a fade. */
.btn::after {
  transition: background-position 0.6s var(--ease-out) !important;
}

/* Category filter chips — flat at rest, tactile on interaction: a soft
   lift + ambient shadow bloom on hover, a crisp settle on press. */
.mchip {
  transition:
    border-color 0.16s var(--ease-out),
    background 0.16s var(--ease-out),
    color 0.16s var(--ease-out),
    transform 0.16s var(--ease-out),
    box-shadow 0.22s var(--ease-out) !important;
  will-change: transform;
}
@media (hover:hover) and (pointer:fine){.mchip:hover{
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--accent) 30%, transparent) !important;
}}
.mchip:active {
  transform: translateY(0) scale(0.96) !important;
  box-shadow: none !important;
}
@media (hover:hover) and (pointer:fine){.mchip.active:hover{
  box-shadow: 0 6px 18px -5px color-mix(in srgb, var(--accent) 55%, transparent) !important;
}}

/* Bottom-nav press feedback: the icon dips slightly when tapped. */
.nav-link:active .nav-icon {
  transform: translateY(1px) scale(0.92) !important;
  transition: transform 0.1s var(--ease-out) !important;
}

/* Live caption dot: add an outward pulse ring bloom behind the blink so
   "Live" reads as a real-time heartbeat, not a static swatch. */
.cap-live .dot {
  position: relative;
}
.cap-live .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #e23b3b;
  animation: capLivePulse 1.9s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes capLivePulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

/* Softer, eased day/night flip on the core chrome surfaces so the 6am/6pm
   theme change glides rather than snapping between palettes. */
body,
.top-bar,
.map-caption,
.mchip {
  transition:
    background-color 0.55s var(--ease-out),
    color 0.55s var(--ease-out),
    border-color 0.55s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .btn::after,
  .btn-ripple {
    animation: none !important;
    transition: none !important;
  }
  .mchip:active,.nav-link:active .nav-icon{
    transform: none !important;
  }
@media (hover:hover) and (pointer:fine){.mchip:hover{
    transform: none !important;
  }}
  .cap-live .dot::after {
    animation: none !important;
    display: none;
  }
  body,
  .top-bar,
  .map-caption,
  .mchip {
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   POLISH PASS 2 — event pins, list cards, detail view, back button.
   ══════════════════════════════════════════════════════════════════ */

/* Pins: give the whole marker a spring-in entrance instead of appearing
   instantly with the map tiles, and firm up the hover/select response
   with a touch of easing so it feels like a physical lift, not a snap. */

/* Event list cards: match the same tactile hover-bloom + a crisp active
   press state that was missing (hover existed, press didn't). */

/* Detail view: the hero image gets a slow, subtle Ken-Burns drift while
   visible (purely decorative, never blocks content) and the card itself
   settles in with a soft rise rather than appearing flatly. */

/* Attendee chips: gentle lift on hover so the "who's going" row feels
   browsable, not static text. */

/* Back button: match the nav's tap-dip feedback. */
.back-btn:active {
  transform: translateX(-2px) scale(0.94) !important;
  transition: transform 0.1s var(--ease-out) !important;
}

@media (prefers-reduced-motion: reduce) {
  .back-btn:active {
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   POLISH PASS 3 — gate / first-run auth screen.
   ══════════════════════════════════════════════════════════════════ */

/* Sign up ↔ Log in tab: the active underline eases in on switch
   instead of just appearing, so the click reads as a deliberate move. */
.auth-mode-btn.active::after {
  animation: authTabIn 0.24s var(--ease-out) both;
}
@keyframes authTabIn {
  0% {
    transform: scaleX(0.4);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Join as attendee / Become a host segmented control: give the active
   pill a small confident pop and a press state on the inactive side. */
.gate-type-btn.active {
  animation: gateTypePop 0.2s var(--ease-out);
}
@keyframes gateTypePop {
  0% {
    transform: scale(0.94);
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
.gate-type-btn:not(.active):active {
  background: var(--line-soft) !important;
}

/* Modal open: soften the scale-in curve so it settles rather than snaps. */
.lp-signup-modal {
  transition: transform 0.34s var(--ease-out) !important;
}

@media (prefers-reduced-motion: reduce) {
  .auth-mode-btn.active::after,
  .gate-type-btn.active {
    animation: none !important;
  }
}

/* The live-pulse dot (blink) and ambient landing blobs (drift1-4, heroBlob)
   run as infinite loops with no reduced-motion guard anywhere else in this
   file — freeze them here rather than at each of their ~10 call sites. */
@media (prefers-reduced-motion: reduce) {
  .cap-live .dot,
  .live-chip .dot {
    animation: none !important;
  }

  .blot-a,
  .blot-b,
  .blot-c,
  .blot-d,
  .blot-e {
    animation: none !important;
  }
}

/* view-enter fires on every navigation and stagger-item/list-item-stagger
   fire on every panel/list within it, so this is the most-triggered
   motion in the app, yet had no reduced-motion guard at all. Freeze in
   place (still visible, just no slide/pop/stagger delay). */
@media (prefers-reduced-motion: reduce) {
  .view-enter,
  .stagger-item,
  .list-item-stagger > * {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Door-scanner binary feedback — a bouncer needs to read this at a glance in
   a dark venue, not squint at a small toast. One reused overlay; pointer-
   events:none so it never blocks the next scan or a manual tap underneath. */
.scanner-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.scanner-flash.flash-green,
.scanner-flash.flash-red {
  animation: scannerFlash 0.55s ease-out;
}

.scanner-flash.flash-green {
  background: #22c55e;
}

.scanner-flash.flash-red {
  background: #ef4444;
}

@keyframes scannerFlash {
  0% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scanner-flash.flash-green,
  .scanner-flash.flash-red {
    animation: none;
    opacity: 0.75;
  }
}

.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;
}

/* ── Checkout — sleeker mobile + desktop layout ────────────────────────────
 * Researched against DICE/Eventbrite/Stripe's own mobile-checkout guidance:
 * collapse the order recap to one line on mobile (tap to expand — the full
 * breakdown was already shown once on the Book screen, so this is a recap,
 * not a first disclosure), pin the Pay button in the thumb zone instead of
 * inline at the bottom of a tall scrolling page, and never collapse the
 * recap on desktop — it moves into an always-open sticky rail instead. This
 * is the app's first real in-app-view breakpoint (every other screen is a
 * fluid single column at any width) — scoped entirely under
 * #app[data-view="checkout"] so it can't affect any other view. */

#app[data-view="checkout"] #view-container {
  padding-bottom: 92px;
  /* #view-container's own will-change:opacity,transform (base rule above)
   * makes it a containing block for position:fixed descendants per spec —
   * so .checkout-cta-bar below was never actually fixed to the real
   * viewport, it was fixed relative to THIS scrolling column instead,
   * drifting as content (the real Stripe card form) grew taller and
   * colliding with whatever followed it. Same gotcha already hit once in
   * this codebase (see the app.dataset.view comment in 09-host-
   * analytics.js) — same fix: opt this view back out of it.
   *
   * will-change:auto alone wasn't enough — confirmed by moving the CTA
   * bar to a live page (document.body.appendChild) and watching it snap
   * to the correct position, then moving it back under #view-container
   * and watching it break again, with every containing-block-triggering
   * *property* (transform/filter/backdrop-filter/contain/perspective)
   * checked and reading `none`/`auto` throughout the whole ancestor
   * chain. The actual cause: .view-enter's `animation: viewSlideUp ...
   * both` is still an ACTIVE running animation targeting `transform` —
   * browsers key containing-block creation off "has an animation
   * currently in effect on transform", not off the resolved value, so
   * even overriding the resolved value with `transform: none !important`
   * (an earlier attempt at this fix) doesn't stop it: the animation
   * itself has to be turned off. `animation: none` does that. Trade-off:
   * checkout loses the slide-up entrance every other view gets, in
   * exchange for the Pay button actually being fixed to the screen. */
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

/* Wraps #checkout-status (skeleton) + #payment-element in the same card
 * language as .checkout-summary — before this, the Payment Element sat in a
 * bare, uncornered div next to a fully-branded summary panel, the single
 * biggest reason the payment column read as a foreign form dropped into a
 * bespoke page rather than Stripe's own colorBackground/theme values
 * (already matched to --surface) actually being the problem. */
.checkout-payment-panel {
  padding: 20px;
}

.checkout-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 4px;
}

.checkout-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.checkout-skeleton-row {
  width: 100%;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--line-soft) 37%,
    var(--surface-2) 63%
  );
  background-size: 400% 100%;
  animation: checkout-shimmer 1.4s ease infinite;
}

@keyframes checkout-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* JS toggles this to "flex" once the Payment Element fires 'ready' — total
 * and button appear together rather than the button popping in alone. */
.checkout-cta-bar {
  display: none;
  align-items: center;
  gap: 14px;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px) + 14px);
  z-index: 1100;
  max-width: 688px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow:
    0 12px 32px -8px var(--shadow),
    0 2px 8px var(--shadow);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
}

.checkout-pay-btn {
  flex: 1;
  padding: 13px;
  font-size: 14.5px;
}

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

/* Mobile-only compaction — DICE/Eventbrite's mobile checkout runs noticeably
 * tighter than a desktop one (smaller header, slimmer recap bar, shorter
 * copy) rather than just a scaled-down version of the wide layout. Scoped to
 * max-width so the >=860px two-column layout above is untouched byte-for-
 * byte. The header/trust text itself doesn't change per breakpoint — the
 * markup wraps the extra clause in .checkout-header-suffix/.checkout-trust-
 * suffix and this just hides them below 860px, so the desktop copy stays
 * exactly what it already was. */
@media (max-width: 859px) {
  #app[data-view="checkout"] .connect-header {
    margin-bottom: 4px !important;
  }
  #app[data-view="checkout"] .connect-header h2 {
    font-size: 19px !important;
    margin: 4px 0 2px !important;
  }
  #app[data-view="checkout"] .connect-header p {
    font-size: 11px !important;
  }

  .checkout-status {
    padding: 4px 0 2px;
  }
  .checkout-skeleton {
    gap: 8px;
  }
  .checkout-skeleton-row {
    height: 14px;
  }

  /* Belt-and-suspenders alongside the will-change fix above: .checkout-
   * cta-bar is position:fixed and contributes no flow height, so whatever
   * follows it in the DOM (.checkout-footer-note) would otherwise render
   * directly against #payment-element's real bottom edge — fine when the
   * mounted Stripe form is short, but colliding with the bar once it has
   * its actual card-field height. This guarantees clearance regardless of
   * how tall the real payment element turns out to be. */
  #payment-element {
    margin-bottom: 88px;
  }

  .checkout-cta-bar {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 16px;
    bottom: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px) + 10px);
  }
  .checkout-pay-btn {
    padding: 11px;
    font-size: 13.5px;
  }

  #app[data-view="checkout"] #view-container {
    padding-bottom: 82px;
  }
}

/* The global toast (.cu-toast-wrap, bottom: calc(var(--bot-h) + 12px)) and
 * the fixed Pay bar above (bottom: calc(var(--bot-h) + ... + 10/14px)) both
 * anchor to nearly the same offset from the bottom nav, so a toast fired
 * mid-checkout (e.g. "Payment is processing…" from submitStripePayment()/
 * finalizeStripePayment() in 10-account-payments.js) renders directly on top of the
 * Pay button/total it's describing — the toast wins on z-index (9999 vs the
 * bar's 1100), so the exact message explaining what just happened covers the
 * button the buyer just pressed. Push toasts above the bar height while this
 * view is active; desktop's bar is position:static (see below), so no
 * adjustment is needed there. */
#app[data-view="checkout"] .cu-toast-wrap {
  bottom: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px) + 84px);
}

@media (min-width: 860px) {
  #app[data-view="checkout"] #view-container {
    max-width: 920px;
    padding-bottom: 0;
  }
  #app[data-view="checkout"] .cu-toast-wrap {
    bottom: calc(var(--bot-h) + 12px);
  }
  #app[data-view="checkout"] .checkout-cta-bar {
    position: static;
    max-width: none;
    margin: 18px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
  }
}
