/* meet.css — ATB store meetup map.
   Standalone page; pulls --bg/--accent/etc. from style.css. */

/* ─── Layout (fixed-footer aware) ─────────────────────────────── */
.meet-body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Reserve safe-area-inset-bottom inside body via border-box so flex
     children distribute (100dvh - safe-bot). Footer ends ABOVE iOS home
     indicator in PWA without being clipped. */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}
.meet-header { flex: none; }

.meet-controls {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, rgba(28,36,32,.55) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.meet-city-wrap {
  flex: 0 0 240px;
  min-width: 0;
  position: relative;
}

/* First-visit onboarding bubble — pinned just below the city input with a
   pulsing accent fill so users notice they can change it. Dismissed on
   first interaction (input focus, city change, or × click) and silenced
   forever via localStorage.s2atb_meet_city_seen. */
.meet-city-tip {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--accent, #ff8a1f);
  color: #1a0e00;
  padding: 6px 32px 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(255, 138, 31, .35);
  animation: meetCityTipBounce 2.2s ease-in-out infinite;
}
.meet-city-tip[hidden] { display: none !important; }
.meet-city-tip-close {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: #1a0e00;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.meet-city-tip-close:hover { background: rgba(0,0,0,.18); }
@keyframes meetCityTipBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .meet-city-tip { animation: none; }
}

.meet-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  margin-bottom: 4px;
}

.meet-combo {
  position: relative;
}

.meet-combo input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.meet-combo input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,138,31,.12);
}

.meet-combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #131914;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.meet-combo-opt {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .1s, color .1s;
}
.meet-combo-opt-count {
  font-size: 11px;
  color: var(--mute);
  font-weight: 600;
}
.meet-combo-opt:hover,
.meet-combo-opt.active {
  background: rgba(255,138,31,.08);
  color: var(--accent2);
}
.meet-combo-opt:last-child { border-bottom: 0; }
.meet-combo-empty {
  padding: 14px;
  font-size: 12px;
  color: var(--mute);
  text-align: center;
}
.meet-combo-section {
  padding: 6px 14px;
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(255,255,255,.03);
}

/* Locate pill — needs to be obvious */
.meet-locate-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  background: linear-gradient(135deg, rgba(255,138,31,.16) 0%, rgba(255,138,31,.06) 100%);
  border: 1px solid rgba(255,138,31,.4);
  border-radius: 10px;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  height: 40px;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(255,138,31,.2);
}
.meet-locate-pill:hover {
  background: linear-gradient(135deg, rgba(255,138,31,.28) 0%, rgba(255,138,31,.12) 100%);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,138,31,.22);
  transform: translateY(-1px);
}
.meet-locate-pill:active { transform: translateY(0); }
.meet-locate-pill.busy {
  pointer-events: none;
}
.meet-locate-pill.busy svg {
  animation: meetLocateSpin 1.2s linear infinite;
}
@keyframes meetLocateSpin {
  to { transform: rotate(360deg); }
}

.meet-stats {
  flex-basis: 100%;
  font-size: 11.5px;
  color: var(--mute);
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  margin-top: -2px;
}
.meet-stats b {
  color: var(--text);
  font-weight: 700;
}

/* Store search — find a specific ATB inside the current city */
.meet-store-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  align-items: center;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 8px 0 12px;
  transition: border-color .15s, box-shadow .15s;
}
.meet-store-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,138,31,.12);
}
.meet-store-search-ico {
  flex: none;
  color: var(--mute);
  margin-right: 8px;
}
.meet-store-search:focus-within .meet-store-search-ico { color: var(--accent2); }

.meet-store-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  height: 100%;
  min-width: 0;
}
.meet-store-search input::placeholder { color: var(--mute); }

.meet-store-search-clear {
  flex: none;
  background: transparent;
  border: 0;
  color: var(--mute);
  font-size: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.meet-store-search-clear:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.meet-store-search-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #131914;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 280px;
  overflow-y: auto;
  /* Sit ABOVE bottom-sheet (1500) — when user is searching, the dropdown
     should overlap the sheet, not hide behind it */
  z-index: 1600;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.meet-store-search-section {
  padding: 7px 14px;
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(255,255,255,.03);
  position: sticky; top: 0; z-index: 1;
}
.meet-store-search-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .1s;
}
.meet-store-search-row:hover,
.meet-store-search-row.active {
  background: rgba(255,138,31,.08);
}
.meet-store-search-row:last-child { border-bottom: 0; }
.meet-store-search-addr {
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meet-store-search-addr mark {
  background: rgba(255,138,31,.25);
  color: var(--accent2);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
}
.meet-store-search-time {
  font-size: 11px;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.meet-store-search-empty {
  padding: 14px;
  font-size: 12px;
  color: var(--mute);
  text-align: center;
}

/* ─── Map (fills remaining viewport above footer) ────────────── */

.meet-map-wrap {
  flex: 1;
  position: relative;
  width: 100%;
  min-height: 0;
}

/* On /meet.html the footer is a flex item, not fixed-overlay (style.css default).
   This removes the gap between map and footer. Internal padding-bottom is
   reset because body already accounts for safe-area-inset-bottom. */
.meet-body footer {
  position: relative;
  bottom: auto;
  flex: none;
  z-index: auto;
  padding-bottom: 10px;
}

/* Map needs a sane minimum so it never collapses to 0 if content is tall */

#map {
  width: 100%;
  height: 100%;
  background: #0a0d0a;
  transition: filter .3s ease;
}

.meet-map-wrap.locked #map {
  filter: blur(10px) saturate(.7) brightness(.7);
  pointer-events: none;
}

/* Leaflet polish */
.leaflet-container {
  background: #0a0d0a;
  font-family: inherit;
}
.leaflet-control-zoom a {
  background: rgba(28,36,32,.92) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(6px);
}
.leaflet-control-zoom a:hover {
  background: rgba(45,58,50,.98) !important;
  color: var(--accent) !important;
}
.leaflet-control-attribution {
  background: rgba(15,20,16,.7) !important;
  color: var(--mute) !important;
  font-size: 10px !important;
  backdrop-filter: blur(4px);
}
.leaflet-control-attribution a {
  color: var(--mute) !important;
}

/* Safety tip — top-right of map. Subtle reminder to meet in public, take care */
.meet-safety-tip {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15,20,16,.72);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255,138,31,.22);
  border-radius: 999px;
  padding: 7px 12px 7px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15px;
  color: #cdd1c9;
  z-index: 500;
  max-width: 240px;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.meet-safety-tip svg {
  flex: none;
  color: var(--accent2);
  filter: drop-shadow(0 0 4px rgba(255,179,71,.35));
}
.meet-safety-tip b { color: var(--text); font-weight: 700; }

@media (max-width: 600px) {
  .meet-safety-tip {
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 6px 10px 6px 9px;
    gap: 6px;
    max-width: 180px;
  }
}

/* Legend */
.meet-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(15,20,16,.8);
  backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text);
  z-index: 500;
  pointer-events: none;
}
.meet-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.meet-legend-pin {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(255,138,31,.7);
  flex: none;
}
.meet-legend-pin--hot {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(74,222,128,.8);
}

/* ─── Custom map pin ─────────────────────────────────────────── */

.meet-pin {
  background: transparent !important;
  border: 0 !important;
}

.meet-pin-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent));
  border: 2px solid #1a201a;
  box-shadow: 0 0 8px rgba(255,138,31,.65), 0 2px 4px rgba(0,0,0,.5);
  transition: transform .15s ease-out, box-shadow .15s;
  cursor: pointer;
}

.meet-pin:hover .meet-pin-inner {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(255,138,31,.95), 0 2px 6px rgba(0,0,0,.5);
}

.meet-pin--hot .meet-pin-inner {
  background: radial-gradient(circle at 30% 30%, #86efac, var(--ok));
  border-color: #1a201a;
  box-shadow: 0 0 12px rgba(74,222,128,.8), 0 2px 5px rgba(0,0,0,.5);
  animation: meetPinPulse 2.2s ease-in-out infinite;
}
@keyframes meetPinPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(74,222,128,.55), 0 2px 5px rgba(0,0,0,.5); }
  50%      { box-shadow: 0 0 22px rgba(74,222,128,1),   0 2px 5px rgba(0,0,0,.5); }
}

.meet-pin--mine .meet-pin-inner {
  background: radial-gradient(circle at 30% 30%, #c4b5fd, #8b5cf6);
  box-shadow: 0 0 14px rgba(139,92,246,.85), 0 2px 5px rgba(0,0,0,.5);
}

.meet-pin--selected .meet-pin-inner {
  transform: scale(1.3);
  border-color: #fff;
  animation: meetPinSelectedPulse 1.6s ease-in-out infinite;
}
@keyframes meetPinSelectedPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255,255,255,.45), 0 0 14px rgba(255,138,31,.85); }
  50%      { box-shadow: 0 0 32px rgba(255,255,255,.75), 0 0 26px rgba(255,138,31,1); }
}
/* When both hot+selected, swap orange halo for green — stays pulsing */
.meet-pin--hot.meet-pin--selected .meet-pin-inner {
  animation: meetPinSelectedPulseGreen 1.8s ease-in-out infinite;
}
@keyframes meetPinSelectedPulseGreen {
  0%, 100% { box-shadow: 0 0 18px rgba(255,255,255,.45), 0 0 16px rgba(74,222,128,.85); }
  50%      { box-shadow: 0 0 32px rgba(255,255,255,.75), 0 0 28px rgba(74,222,128,1); }
}
/* When mine+selected, purple halo */
.meet-pin--mine.meet-pin--selected .meet-pin-inner {
  animation: meetPinSelectedPulsePurple 1.8s ease-in-out infinite;
}
@keyframes meetPinSelectedPulsePurple {
  0%, 100% { box-shadow: 0 0 18px rgba(255,255,255,.45), 0 0 16px rgba(139,92,246,.85); }
  50%      { box-shadow: 0 0 32px rgba(255,255,255,.75), 0 0 28px rgba(139,92,246,1); }
}

@media (prefers-reduced-motion: reduce) {
  .meet-pin--hot .meet-pin-inner,
  .meet-pin--selected .meet-pin-inner,
  .meet-pin--hot.meet-pin--selected .meet-pin-inner,
  .meet-pin--mine.meet-pin--selected .meet-pin-inner { animation: none; }
}

/* ─── Overlays (auth-required + city-not-active) ─────────────── */

.meet-overlay {
  position: absolute;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10,13,10,.55);
  backdrop-filter: blur(2px);
  animation: meetOverlayFade .25s ease-out;
}
.meet-overlay[hidden] { display: none !important; }
@keyframes meetOverlayFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.meet-overlay-card {
  max-width: 420px;
  width: 100%;
  background: linear-gradient(180deg, #1d2520 0%, #131914 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow:
    0 16px 48px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,138,31,.06) inset;
}

.meet-overlay-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,31,.22) 0%, rgba(255,138,31,.04) 70%, transparent 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.meet-overlay-icon--mute {
  background: radial-gradient(circle, rgba(96,165,250,.18) 0%, rgba(96,165,250,.04) 70%, transparent 100%);
  color: var(--dup);
}

.meet-overlay-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.25;
}

.meet-overlay-text {
  font-size: 13px;
  line-height: 1.55;
  color: #b8c0b5;
  margin: 0 0 16px;
}
.meet-overlay-text b { color: var(--accent2); font-weight: 700; }

.meet-overlay-action {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6f00 100%) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 700 !important;
  letter-spacing: .3px;
  padding: 11px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(255,138,31,.25);
}
.meet-overlay-action:hover {
  box-shadow: 0 6px 22px rgba(255,138,31,.4);
}

.meet-overlay-hint {
  font-size: 11px;
  color: var(--mute);
  margin: 12px 0 0;
}

/* ─── Bottom sheet (store details) ───────────────────────────── */

.meet-sheet {
  position: fixed;
  left: 50%;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, calc(100% + 60px));
  background: linear-gradient(180deg, #1d2520 0%, #131914 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 14px;
  width: calc(100% - 24px);
  max-width: 440px;
  /* Sheet itself is fixed-size — no scroll. Only the voter list inside
     scrolls. Sheet shouldn't exceed 60% viewport so pin stays visible. */
  max-height: 60dvh;
  overflow: hidden;
  box-shadow:
    0 12px 48px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,138,31,.04) inset;
  transition: transform .26s cubic-bezier(.4,.0,.2,1), opacity .26s;
  z-index: 1500;
  opacity: 0;
}
.meet-sheet.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.meet-sheet-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  color: var(--mute);
  font-size: 22px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  transition: color .15s, background .15s;
  z-index: 2;
}
.meet-sheet-close:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.meet-sheet-addr {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  padding-right: 36px;
  line-height: 1.3;
}

.meet-sheet-meta {
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 8px;
}
.meet-meta-time { color: var(--accent2); font-weight: 600; }
.meet-meta-sep  { margin: 0 6px; opacity: .5; }

.meet-sheet-day {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  margin: 0 0 6px;
  text-align: center;
  padding: 4px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.meet-sheet-day b { color: var(--accent2); }

.meet-sheet-slot { margin-bottom: 8px; }

.meet-slot-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
  margin: 12px 0 8px;
}

.meet-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 6px;
}
.meet-slot-head .meet-slot-label {
  margin: 0;
  flex: 1;
}
.meet-slot-brand-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  isolation: isolate;
  padding: 4px 10px;
}
.meet-slot-brand-wrap::before {
  content: "";
  position: absolute;
  inset: -1px -3px;
  background:
    radial-gradient(ellipse 75% 90% at 50% 50%,
      rgba(255,255,255,.42) 0%,
      rgba(255,255,255,.14) 40%,
      rgba(255,255,255,0) 75%);
  filter: blur(5px);
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  animation: meetBrandPulse 3.6s ease-in-out infinite;
}
@keyframes meetBrandPulse {
  0%, 100% { opacity: .8; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .meet-slot-brand-wrap::before { animation: none; }
}
.meet-slot-brand {
  display: block;
  height: 21px;
  width: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.45));
}

/* Tabs row — horizontal, scrollable on mobile */
.meet-slot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.meet-slot-tab {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 4px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color .12s, background .12s, color .12s;
  min-width: 0;
}
.meet-slot-tab:hover {
  border-color: rgba(255,138,31,.4);
}
.meet-slot-tab.active {
  background: rgba(255,138,31,.14);
  border-color: var(--accent);
  color: var(--accent2);
  box-shadow: 0 4px 14px rgba(255,138,31,.16);
}
.meet-slot-tab.popular::after {
  content: "";
  position: absolute;
  /* highlighted via badge below instead */
}
.meet-slot-tab .tab-time { font-size: 13px; }
.meet-slot-tab .tab-count {
  font-size: 10px;
  color: var(--mute);
  font-weight: 600;
}
.meet-slot-tab.active .tab-count { color: var(--accent2); }
.meet-slot-tab.popular .tab-count {
  color: var(--ok);
  font-weight: 800;
}
.meet-slot-tab.mine {
  border-color: rgba(139,92,246,.6);
  background: rgba(139,92,246,.08);
}
.meet-slot-tab.mine .tab-time { color: #c4b5fd; }

.meet-slot-tab.past {
  opacity: .5;
  cursor: not-allowed;
  background: rgba(255,255,255,.015);
  border-color: rgba(255,255,255,.04);
  color: var(--mute);
  box-shadow: none;
  pointer-events: none;
}
.meet-slot-tab.past .tab-time {
  color: var(--mute);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,.15);
}
.meet-slot-tab.past .tab-count {
  color: var(--mute);
  font-size: 9px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* ─── Voter list under selected tab ──────────────────────────── */

.meet-voter-list {
  margin: 8px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* ~2.5 rows visible — half-cut row hints there's more to scroll */
  height: 90px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}

/* Custom WebKit scrollbar styling — applied to all scroll surfaces in meet */
.meet-sheet::-webkit-scrollbar,
.meet-voter-list::-webkit-scrollbar,
.meet-store-search-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.meet-sheet::-webkit-scrollbar-track,
.meet-voter-list::-webkit-scrollbar-track,
.meet-store-search-list::-webkit-scrollbar-track {
  background: transparent;
}
.meet-sheet::-webkit-scrollbar-thumb,
.meet-voter-list::-webkit-scrollbar-thumb,
.meet-store-search-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
.meet-sheet::-webkit-scrollbar-thumb:hover,
.meet-voter-list::-webkit-scrollbar-thumb:hover,
.meet-store-search-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,138,31,.4);
}
.meet-voter-list:empty { display: none; }

.meet-voter-empty {
  font-size: 12px;
  color: var(--mute);
  text-align: center;
  padding: 14px 8px;
  background: rgba(255,255,255,.02);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.meet-voter {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.meet-voter:hover {
  border-color: rgba(255,138,31,.32);
}
.meet-voter.mine {
  border-color: rgba(139,92,246,.4);
  background: rgba(139,92,246,.05);
}

.meet-voter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.meet-voter-counts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.meet-voter-cnt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  line-height: 1.2;
}
.meet-voter-cnt.need {
  background: rgba(74,222,128,.14);
  color: #86efac;
  border-color: rgba(74,222,128,.32);
}
.meet-voter-cnt.give {
  background: rgba(96,165,250,.14);
  color: #93c5fd;
  border-color: rgba(96,165,250,.32);
}
.meet-voter-cnt.zero {
  background: rgba(255,255,255,.04);
  color: var(--mute);
  border-color: rgba(255,255,255,.06);
}
.meet-voter-toggle {
  font-size: 11px;
  color: var(--mute);
  transition: transform .15s;
  flex: none;
  margin-left: 2px;
}
.meet-voter.expanded .meet-voter-toggle {
  transform: rotate(180deg);
}
.meet-voter-cards-wrap {
  margin-top: 6px;
  display: none;
}
.meet-voter.expanded .meet-voter-cards-wrap {
  display: block;
}

.meet-voter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.meet-voter-tag img,
.meet-voter-tag svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.meet-voter-tag:hover { color: var(--accent2); }
.meet-voter-tag-text { font-size: 12.5px; }

.meet-voter-mine-badge {
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139,92,246,.18);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 800;
}

.meet-voter-no-contact {
  font-size: 11.5px;
  color: var(--mute);
  font-style: italic;
}

.meet-voter-cards {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meet-voter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 11px;
  color: var(--mute);
  line-height: 1.4;
}
.meet-voter-line-label {
  font-weight: 700;
  color: var(--mute);
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-right: 4px;
  flex: none;
}

.meet-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #cdd1c9;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2px;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.meet-card-chip.match-need {
  background: rgba(74,222,128,.16);
  color: #86efac;
  border-color: rgba(74,222,128,.4);
  box-shadow: 0 0 8px rgba(74,222,128,.18);
}
.meet-card-chip.match-give {
  background: rgba(96,165,250,.16);
  color: #93c5fd;
  border-color: rgba(96,165,250,.4);
}

.meet-voter-summary {
  font-size: 11px;
  color: var(--mute);
  margin-top: 5px;
}
.meet-voter-summary b.need { color: #86efac; font-weight: 800; }
.meet-voter-summary b.give { color: #93c5fd; font-weight: 800; }

.meet-sheet-count {
  font-size: 12px;
  color: var(--mute);
  text-align: center;
  padding: 4px 0 8px;
  min-height: 16px;
  line-height: 1.35;
}
.meet-sheet-count b { color: var(--text); font-weight: 700; }
.meet-sheet-count--hot b { color: var(--ok); }

/* ─── Voting button ──────────────────────────────────────────── */

.meet-go-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6f00 100%);
  border: 0;
  color: #fff;
  padding: 11px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s, opacity .15s;
  box-shadow: 0 4px 16px rgba(255,138,31,.25);
}
.meet-go-btn:hover { box-shadow: 0 6px 22px rgba(255,138,31,.42); transform: translateY(-1px); }
.meet-go-btn:active { transform: translateY(0); }
.meet-go-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: linear-gradient(135deg, #4a3530 0%, #3a2520 100%);
  box-shadow: none;
  transform: none;
}

/* Busy state during async write — original text dims, spinner overlays
   centered, light shimmer sweeps across the button. */
.meet-go-btn.busy {
  pointer-events: none;
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.35);
}
.meet-go-btn.busy::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: meetBtnSpin .7s linear infinite;
  pointer-events: none;
}
.meet-go-btn.busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16) 50%, transparent);
  animation: meetBtnShimmer 1.4s linear infinite;
  pointer-events: none;
}
@keyframes meetBtnSpin {
  to { transform: rotate(360deg); }
}
@keyframes meetBtnShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .meet-go-btn.busy::before { animation-duration: 1.4s; }
  .meet-go-btn.busy::after  { animation: none; }
}
.meet-go-btn.cancel {
  background: linear-gradient(135deg, #3a4034 0%, #2a2f25 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.meet-go-btn.cancel:hover {
  background: linear-gradient(135deg, #4a5044 0%, #3a3f35 100%);
}
.meet-go-btn.switch-store {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 4px 16px rgba(139,92,246,.35);
}

/* Modals on /meet.html must sit above the bottom sheet (z-index 1500) */
#createExModal, #meModal { z-index: 2000; }

/* Create-exchange modal — pill switcher mirrors /exchange.html style */
.ex-contact-switch {
  position: relative;
  display: flex;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 10px;
}
.ex-contact-thumb {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: var(--accent);
  border-radius: 999px;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
.ex-contact-switch[data-type="instagram"] .ex-contact-thumb {
  transform: translateX(100%);
}
/* Higher specificity than .modal-box button (style.css) so the pill stays clean */
.modal-box .ex-contact-switch .ex-contact-opt {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--mute);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
  box-shadow: none;
}
.modal-box .ex-contact-switch .ex-contact-opt[aria-selected="true"] {
  color: #1a0e00;
}
.ex-contact-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .ex-contact-thumb { transition: none; }
}
.cx-err {
  color: #ff9a9a;
  font-size: 11.5px;
  margin: -2px 0 10px;
  line-height: 1.35;
}

/* "No exchange listing" prompt in sheet */
.meet-no-exchange {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96,165,250,.1) 0%, rgba(96,165,250,.02) 100%);
  border: 1px solid rgba(96,165,250,.32);
}
.meet-no-exchange-glyph {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(96,165,250,.22) 0%, transparent 70%);
  color: var(--dup);
}
.meet-no-exchange-text { flex: 1; font-size: 12px; line-height: 1.45; color: #cdd1c9; }
.meet-no-exchange-text b { color: #93c5fd; font-weight: 700; }

/* No-duplicates banner */
.meet-no-dupes {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,138,31,.1) 0%, rgba(255,138,31,.02) 100%);
  border: 1px solid rgba(255,138,31,.32);
}
.meet-no-dupes-glyph {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255,138,31,.22) 0%, transparent 70%);
  color: var(--accent);
}
.meet-no-dupes-text { flex: 1; font-size: 12px; line-height: 1.45; color: #cdd1c9; }
.meet-no-dupes-text b { color: #ffc16f; font-weight: 700; }
.meet-no-dupes-text a { color: var(--accent2); text-decoration: underline; }

.meet-sheet-foot {
  font-size: 10.5px;
  color: var(--mute);
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.35;
  min-height: 0;
}

/* ─── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .meet-controls {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px 10px;
  }
  .meet-city-wrap { flex: 1 1 100%; }
  .meet-store-search { flex: 1 1 60%; min-width: 140px; }
  .meet-locate-pill { padding: 9px 11px; flex: 0 0 auto; }
  .meet-locate-pill span { display: none; }
  .meet-locate-pill svg { margin: 0 1px; }
  .meet-stats {
    flex-basis: 100%;
    text-align: left;
    padding: 0;
    font-size: 11px;
  }
  .meet-legend {
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    padding: 6px 10px;
    gap: 3px;
  }
  .meet-sheet {
    width: calc(100% - 16px);
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 140px);
  }
  .meet-overlay-card {
    padding: 20px 16px 16px;
  }
  .meet-overlay-title { font-size: 15px; }
  .meet-overlay-text  { font-size: 12.5px; }
  .meet-slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  header.meet-header { padding: calc(10px + var(--safe-top)) 12px 8px; }
  .subtitle { font-size: 11px; }
}
