/* ══════════════════════════════════════════
   LINES.CSS — Bar Cards, Voting, Check-In, Feed
   ══════════════════════════════════════════ */

/* ── LINES HEADER ── */
.lines-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 12px;
}
.lines-view-toggle {
  display: flex; gap: 4px;
  background: var(--surface2); border-radius: 10px; padding: 3px;
  border: 1px solid var(--border);
}
.view-btn {
  background: transparent; border: none; color: var(--text2);
  padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.18s; font-family: inherit;
}
.view-btn.active { background: var(--accent); color: white; }

/* ── HOTTEST RIGHT NOW STRIP ── */
.hot-strip { margin-bottom: 12px; }
.hot-strip-title {
  background: linear-gradient(90deg, var(--gold), var(--neon-pink), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: neon-sweep 2s linear infinite;
  font-size: 13px !important; font-weight: 900 !important;
  letter-spacing: 1px !important; text-transform: uppercase !important;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.hot-cards {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.hot-cards::-webkit-scrollbar { display: none; }
.hot-card {
  flex-shrink: 0; background: var(--surface);
  border: 1px solid rgba(255,215,0,0.2) !important;
  border-radius: 14px;
  padding: 12px 14px; min-width: 130px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
  position: relative; overflow: hidden;
}
.hot-card:hover { transform: translateY(-5px) scale(1.04) !important; box-shadow: 0 12px 40px rgba(255,215,0,0.2) !important; }
.hot-card:active { transform: scale(0.97); }
.hot-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.08), transparent);
  animation: hot-shimmer 2s ease-in-out infinite; pointer-events: none;
}
@keyframes hot-shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.hot-card-flood { position: absolute; inset: 0; opacity: 0.06; pointer-events: none; }
.hot-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hot-card-emoji { font-size: 20px; }
.hot-card-rank { font-size: 11px; font-weight: 800; color: var(--text2); }
.hot-card-name { font-size: 13px; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-card-status { font-size: 11px; font-weight: 700; }
.hot-card-count { font-size: 11px; color: var(--text2); margin-top: 3px; }

/* ── HOTTEST STRIP (alternate layout) ── */
.hottest-strip { margin-bottom: 12px; }
.hottest-label {
  font-size: 11px; font-weight: 800; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.8px;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.hottest-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.hottest-scroll::-webkit-scrollbar { display: none; }
.hottest-chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  min-width: 140px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.hottest-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.hottest-chip:active { transform: scale(0.97); }
.hottest-chip-flood { position: absolute; inset: 0; opacity: 0.07; pointer-events: none; border-radius: 16px; }
.hottest-chip-emoji { font-size: 22px; margin-bottom: 6px; }
.hottest-chip-name { font-size: 13px; font-weight: 800; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hottest-chip-status { font-size: 12px; font-weight: 700; }
.hottest-chip-count { font-size: 11px; color: var(--text2); margin-top: 3px; }

/* ── THURSDAY BANNER ── */
.thursday-banner {
  background: var(--yellow);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; color: #1a1000;
  display: flex; align-items: center; gap: 8px;
}

/* ── SUMMARY STRIP ── */
.summary-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 12px;
}
.summary-chip {
  background: var(--surface); border: 1px solid var(--border) !important;
  border-radius: 12px; padding: 10px 12px; text-align: center;
  position: relative; overflow: hidden;
}
.summary-chip::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(180,79,255,0.05), transparent);
  animation: hot-shimmer 3s ease-in-out infinite; pointer-events: none;
}
.summary-chip-num { font-size: 26px !important; font-weight: 900 !important; letter-spacing: -0.5px; }
.summary-chip-lbl { font-size: 11px; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }

/* ── LIVE TICKER ── */
.live-ticker {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 12px;
  overflow: hidden;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.ticker-track {
  font-size: 12px; color: var(--text2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* ── BAR CARDS ── */
.bar-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s !important;
  position: relative;
}
.bar-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}
.bar-card:active { transform: scale(0.97) !important; }

.bar-card-flood {
  position: absolute; inset: 0; opacity: 0.04;
  transition: background 0.5s, opacity 0.5s;
  pointer-events: none; border-radius: 20px;
}
.bar-status-bar { height: 4px; width: 100%; transition: background 0.5s; }
.bar-card-inner { padding: 16px 18px 0; }

.bar-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px;
}
.bar-name-row { display: flex; align-items: center; gap: 8px; }
.bar-emoji-circle {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface2); display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
  border: 1px solid var(--border);
}
.bar-name { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.bar-address { font-size: 12px; color: var(--text2); margin-top: 1px; }
.bar-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bar-time { font-size: 11px; color: var(--text2); white-space: nowrap; }
.bar-report-badge {
  font-size: 11px; font-weight: 700; color: var(--text2);
  background: var(--surface2); border: 1px solid var(--border) !important;
  padding: 2px 8px; border-radius: 20px;
}

/* Status row */
.bar-status-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
}
.status-Dead   { background: rgba(0,255,136,0.12); color: var(--neon-green); border: 1px solid rgba(0,255,136,0.3); box-shadow: 0 0 12px rgba(0,255,136,0.2); }
.status-Busy   { background: rgba(255,215,0,0.12);  color: var(--gold);       border: 1px solid rgba(255,215,0,0.3);  box-shadow: 0 0 12px rgba(255,215,0,0.2); }
.status-Packed { background: rgba(255,45,120,0.12); color: var(--neon-pink);  border: 1px solid rgba(255,45,120,0.3); box-shadow: 0 0 16px rgba(255,45,120,0.3); animation: pill-flash 1.5s ease-in-out infinite; }
.status-NoData { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
@keyframes pill-flash {
  0%,100% { box-shadow: 0 0 16px rgba(255,45,120,0.3); }
  50%      { box-shadow: 0 0 30px rgba(255,45,120,0.6), 0 0 50px rgba(255,45,120,0.2); }
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: dot-pulse 1.2s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

/* Vibe meter */
.vibe-wrap { margin-bottom: 14px; }
.vibe-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text2); font-weight: 700;
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px;
}
.vibe-track { height: 12px !important; background: var(--surface2); border-radius: 6px !important; overflow: hidden; position: relative; }
.vibe-segments { display: flex; gap: 3px; height: 100%; }
.vibe-seg {
  flex: 1; border-radius: 3px; opacity: 0.12;
  transition: opacity 0.3s, transform 0.2s;
}
.vibe-seg.active { opacity: 1; }
.bar-card.is-packed .vibe-seg.active {
  animation: eq-bounce 0.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px currentColor);
}
.bar-card.is-packed .vibe-seg:nth-child(2n).active  { animation-delay: 0.08s; }
.bar-card.is-packed .vibe-seg:nth-child(3n).active  { animation-delay: 0.16s; }
.bar-card.is-packed .vibe-seg:nth-child(4n).active  { animation-delay: 0.24s; }
.bar-card.is-packed .vibe-seg:nth-child(5n).active  { animation-delay: 0.12s; }
@keyframes eq-bounce {
  from { transform: scaleY(0.6); opacity: 0.7; }
  to   { transform: scaleY(1.1); opacity: 1; }
}

/* Vote buttons */
.vote-row { display: flex; gap: 8px; padding: 0 18px 16px; }
.vote-btn {
  flex: 1; padding: 11px 0;
  border-radius: 12px; border: 1px solid var(--border) !important;
  background: var(--surface2) !important; color: var(--text);
  font-size: 13px; font-weight: 800 !important;
  cursor: pointer; transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1) !important; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative; overflow: hidden;
}
.vote-btn::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2), transparent 70%);
  transition: opacity 0.2s;
}
.vote-btn:hover::before { opacity: 1; }
.vote-btn-icon { font-size: 16px; }
.vote-btn-label { font-size: 11px; font-weight: 600; color: var(--text2); }
.vote-btn.dead:hover, .vote-btn.dead.selected   { border-color: var(--neon-green) !important; color: var(--neon-green) !important; background: rgba(0,255,136,0.08) !important; box-shadow: 0 0 16px rgba(0,255,136,0.3) !important; }
.vote-btn.busy:hover, .vote-btn.busy.selected   { border-color: var(--gold) !important; color: var(--gold) !important; background: rgba(255,215,0,0.08) !important; box-shadow: 0 0 16px rgba(255,215,0,0.3) !important; }
.vote-btn.packed:hover, .vote-btn.packed.selected{ border-color: var(--neon-pink) !important; color: var(--neon-pink) !important; background: rgba(255,45,120,0.08) !important; box-shadow: 0 0 16px rgba(255,45,120,0.3) !important; }
@keyframes vote-pop {
  0%  { transform: scale(1); }
  30% { transform: scale(1.18); }
  65% { transform: scale(0.95); }
  100%{ transform: scale(1); }
}
.vote-btn.popping { animation: vote-pop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.vote-btn:active { transform: scale(0.91) !important; }

/* Recent feed */
.bar-feed {
  border-top: 1px solid var(--border);
  padding: 10px 18px 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.feed-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text2);
}
.feed-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feed-status-text { font-weight: 700; }

/* ── FLAME BORDER WRAPPER — top bar ── */
.flame-wrap { position: relative; }
.flame-wrap::before {
  content: '';
  position: absolute; inset: -3px; border-radius: 24px; z-index: 0;
  background: linear-gradient(135deg, #ff6a00, var(--neon-pink), #ffd700, var(--neon-cyan), #ff6a00, var(--neon-pink));
  background-size: 400% 400%;
  animation: flame-border 1.5s ease infinite;
  filter: blur(1px);
}
.flame-wrap::after {
  content: ''; position: absolute; inset: -3px; border-radius: 24px; z-index: 0;
  background: linear-gradient(135deg, #ff6a00, var(--neon-pink), #ffd700, var(--neon-cyan), #ff6a00);
  background-size: 400% 400%;
  animation: flame-border 1.5s ease infinite;
  opacity: 0.6;
}
.flame-wrap .bar-card { position: relative; z-index: 1; }
@keyframes flame-border {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* JACKPOT label on top bar */
.jackpot-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  color: #000; font-size: 11px; font-weight: 900;
  padding: 3px 14px; border-radius: 20px; z-index: 2;
  letter-spacing: 1.5px; text-transform: uppercase;
  box-shadow: 0 0 16px var(--gold-glow);
  animation: jackpot-pulse 1s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes jackpot-pulse {
  0%,100% { box-shadow: 0 0 16px var(--gold-glow); }
  50%      { box-shadow: 0 0 30px var(--gold-glow), 0 0 50px rgba(255,215,0,0.3); }
}

/* PACKED CARD */
.bar-card.is-packed { animation: packed-alarm 1.5s ease-in-out infinite !important; }
@keyframes packed-alarm {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,45,120,0); }
  50%      { box-shadow: 0 0 40px 8px rgba(255,45,120,0.35), 0 0 80px 4px rgba(255,45,120,0.15); }
}
.bar-card.is-packed .bar-status-bar {
  height: 6px !important;
  background: linear-gradient(90deg, var(--neon-pink), var(--gold), #ff6a00, var(--neon-cyan), var(--neon-pink));
  background-size: 400% 100%;
  animation: fire-slide 0.8s linear infinite;
}
.bar-card.is-busy .bar-status-bar {
  background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold));
  background-size: 200% 100%;
  animation: fire-slide 1.5s linear infinite;
}
@keyframes fire-slide { 0%{background-position:0%} 100%{background-position:400%} }

/* Map / Grid view */
.map-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 12px;
}
.map-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 12px; text-align: center;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden; position: relative;
}
.map-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.map-card:active { transform: scale(0.97); }
.map-card-top { height: 4px; margin: -16px -12px 12px; transition: background 0.4s; }
.map-card-emoji { font-size: 30px; margin-bottom: 6px; }
.map-card-name  { font-size: 13px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.2px; }
.map-card-status { font-size: 12px; font-weight: 700; }
.map-card-vibe {
  height: 4px; background: var(--surface2); border-radius: 2px;
  margin-top: 10px; overflow: hidden;
}
.map-card-vibe-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.map-card-count { font-size: 11px; color: var(--text2); margin-top: 5px; font-weight: 600; }

/* Feed view */
.live-feed-view { display: none; }
.live-feed-view.active { display: block; }
.feed-entry {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
  animation: fadeIn 0.3s ease;
}
.feed-entry-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feed-entry-body { flex: 1; min-width: 0; }
.feed-entry-bar { font-size: 14px; font-weight: 700; }
.feed-entry-meta { font-size: 12px; color: var(--text2); margin-top: 2px; }
.feed-entry-badge {
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.refresh-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0 8px; margin-top: 4px;
}

/* ── CHECK-IN STRIP ── */
.checkin-strip {
  display: flex; gap: 8px; padding: 0 18px 14px;
  border-top: 1px solid var(--border);
}
.checkin-btn {
  flex: 1; padding: 10px 0;
  border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface2); color: var(--text);
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.checkin-btn-icon { font-size: 18px; }
.checkin-btn-label { font-size: 11px; font-weight: 600; color: var(--text2); }
.checkin-btn.line-active { border-color: var(--gold) !important; color: var(--gold) !important; background: rgba(255,215,0,0.1) !important; }
.checkin-btn.inside-active { border-color: var(--neon-green) !important; color: var(--neon-green) !important; background: rgba(0,255,136,0.1) !important; }
.checkin-btn:hover { border-color: var(--gold) !important; color: var(--gold) !important; background: rgba(255,215,0,0.08) !important; box-shadow: 0 0 14px rgba(255,215,0,0.2) !important; }
.checkin-btn:active { transform: scale(0.96); }

/* Bar stats row */
.bar-stats-row {
  display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.bar-stat {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; color: var(--text2);
}
.bar-stat-val { color: var(--text); font-weight: 800; }

/* ── CHECK-IN MODAL ── */
.checkin-modal-step { display: none; }
.checkin-modal-step.active { display: block; }

.headcount-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 12px 0;
}
.hc-btn {
  padding: 12px 0; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
  text-align: center;
}
.hc-btn:hover, .hc-btn.selected { border-color: var(--accent); background: rgba(124,106,247,0.1); color: var(--accent); }
.hc-btn:active { transform: scale(0.96); }

/* Active checkin banner on card */
.checkin-active-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 18px 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.checkin-timer { font-weight: 700; color: var(--yellow); }
.checkin-leave-btn {
  background: none; border: 1px solid var(--border); color: var(--text2);
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}

/* Still in line nudge modal */
.nudge-modal-box {
  background: var(--surface); border: 1px solid var(--border);
  padding: 24px; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 520px;
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* ══════════════════════════════════════════════
   LINES V2 — Polished Bar Cards
   ══════════════════════════════════════════════ */

/* Header */
.lines-last-updated-row {
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}

/* Tonight Banner */
.tonight-wrap-inner {
  overflow: hidden; border-radius: 18px;
}
.tonight-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.tonight-slide {
  min-width: 100%;
  background: linear-gradient(135deg,rgba(255,45,120,0.1),rgba(180,79,255,0.07));
  border: 1px solid rgba(255,45,120,0.18); border-radius: 18px;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.tonight-fire {
  font-size: 28px;
  animation: fire-flicker-v2 0.8s infinite alternate;
}
@keyframes fire-flicker-v2 {
  from { transform: scale(1) rotate(-2deg); }
  to   { transform: scale(1.1) rotate(2deg); }
}
.tonight-text { flex: 1; }
.tonight-label { font-size: 10px; font-weight: 800; color: var(--neon-pink); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.tonight-bar   { font-size: 15px; font-weight: 900; }
.tonight-sub   { font-size: 11px; color: var(--text2); margin-top: 1px; }
.tonight-status {
  padding: 4px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 800; white-space: nowrap; flex-shrink: 0;
}
.tonight-dots {
  display: flex; justify-content: center; gap: 5px; margin-top: 8px;
}
.tonight-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border); transition: all 0.3s; cursor: pointer;
}
.tonight-dot.active {
  background: var(--neon-pink); width: 14px; border-radius: 3px;
  box-shadow: 0 0 6px var(--neon-pink);
}

/* ── BAR CARD V2 ── */
.bar-card-v2 {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; margin-bottom: 12px; overflow: hidden;
  position: relative; transition: border-color 0.3s, box-shadow 0.3s;
}
/* Noise texture — pointer-events none, no z-index so it never covers content */
.bar-card-v2::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 22px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
}
/* Packed — use CSS transition on box-shadow only, NO animation, no stacking context */
.bar-card-v2.v2-packed {
  border-color: rgba(255,45,120,0.6);
  box-shadow: 0 0 0 1.5px rgba(255,45,120,0.5), 0 0 30px rgba(255,45,120,0.2);
}
.bar-card-v2.v2-busy {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 15px rgba(245,158,11,0.1);
}
.bar-card-v2.v2-collapsed { opacity: 0.6; }
/* Body and content always above noise overlay */
.bar-body-v2, .vote-row, .checkin-strip, .bar-friends-btn { position: relative; z-index: 2; }

/* Photo */
.bar-photo-v2 {
  width: 100%; height: 120px; position: relative; overflow: hidden;
  transition: height 0.4s ease;
}
.bar-photo-v2.photo-collapsed { height: 68px; }
.bar-photo-gradient-v2 {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  border-radius: 20px; overflow: hidden;
}
.bar-photo-overlay-v2 {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(3,3,8,0.92) 100%);
  border-radius: 20px; overflow: hidden;
}

/* Emoji */
.bar-emoji-v2 {
  font-size: 72px; position: relative; z-index: 2; line-height: 1;
  animation: emoji-float-v2 3s ease-in-out infinite;
  transition: font-size 0.3s;
}
.bar-photo-v2.photo-collapsed .bar-emoji-v2 { font-size: 30px; animation: none; }
@keyframes emoji-float-v2 {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
.bar-emoji-v2.emoji-shake {
  animation: emoji-shake-v2 0.4s ease-in-out infinite !important;
}
@keyframes emoji-shake-v2 {
  0%,100% { transform: translateX(0) rotate(-3deg); }
  25%      { transform: translateX(-4px) rotate(3deg); }
  75%      { transform: translateX(4px) rotate(-3deg); }
}

/* Status badge on photo */
.bar-status-badge-v2 {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  padding: 5px 12px; border-radius: 20px; font-size: 10px; font-weight: 800;
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12);
}
.status-badge-Packed { background: rgba(255,45,120,0.35); color: #fff; }
.status-badge-Busy   { background: rgba(245,158,11,0.35); color: #fff; }
.status-badge-Dead   { background: rgba(34,197,94,0.35);  color: #fff; }
.status-badge-NoData { background: rgba(136,136,204,0.2); color: var(--text2); }

/* Headcount badge */
.bar-headcount-v2 {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 800; color: white;
}

/* Crowd particles */
.bar-crowd-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1;
  border-radius: 20px;
}
.crowd-dot-anim {
  position: absolute; border-radius: 50%;
  animation: crowd-float-v2 linear infinite;
}
@keyframes crowd-float-v2 {
  0%   { transform: translateY(0) scale(1); opacity: 0.9; }
  100% { transform: translateY(-80px) scale(0); opacity: 0; }
}

/* Card body */
.bar-body-v2 { padding: 13px 16px 4px; }
.bar-top-v2 {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px;
}
.bar-name-v2    { font-size: 20px; font-weight: 900; letter-spacing: -0.3px; margin-bottom: 2px; }
.bar-address-v2 { font-size: 11px; color: var(--text2); font-weight: 600; }
.bar-report-meta-v2 { text-align: right; flex-shrink: 0; margin-left: 10px; }
.bar-report-time-v2 { font-size: 10px; color: var(--text2); font-weight: 700; }

/* Mission badge */
.bar-mission-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.25);
  color: var(--neon-green); padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 800; margin-bottom: 8px;
}
.mission-blink-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--neon-green);
  animation: blink-dot-v2 1.2s infinite; flex-shrink: 0;
}
@keyframes blink-dot-v2 { 0%,100%{opacity:1} 50%{opacity:0} }

/* Reporter avatars */
.reporters-row-sm {
  display: flex; align-items: center; gap: 5px; margin-bottom: 8px;
}
.reporter-avatar-sm {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; flex-shrink: 0;
}
.reporters-label-sm { font-size: 10px; color: var(--text2); font-weight: 600; }

/* Vibe segments v2 */
.vibe-row-new {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.vibe-label-new {
  font-size: 10px; font-weight: 800; color: var(--text2);
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.vibe-segs-wrap {
  flex: 1; display: flex; gap: 2px;
}
.vibe-seg-new {
  flex: 1; height: 7px; border-radius: 2px; background: var(--border);
  transition: all 0.5s;
}
.vibe-flames-new {
  font-size: 16px; animation: flame-v2 0.5s infinite alternate; flex-shrink: 0;
}
@keyframes flame-v2 { from{transform:scale(1)} to{transform:scale(1.15) translateY(-2px)} }
.vibe-pct-new { font-size: 11px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }

/* Meta pills */
.bar-meta-pills { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.wait-pill-v2 {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--border);
}
.wait-short  { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.25);  color: var(--green); }
.wait-medium { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: var(--yellow); }
.wait-long   { background: rgba(255,45,120,0.08); border-color: rgba(255,45,120,0.25); color: var(--neon-pink); }
.checkin-count-v2 { font-size: 10px; color: var(--text2); font-weight: 700; }

.bar-no-data-label { font-size: 11px; color: var(--text2); font-weight: 600; margin-bottom: 8px; }
.user-report-label { font-size: 11px; color: var(--text2); font-weight: 600; margin-bottom: 8px; }

/* ── ANIMATED FLAMES ── */
.vibe-flames-v2 {
  position: relative; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flame {
  position: absolute; bottom: 0;
  width: 8px; border-radius: 50% 50% 20% 20%;
  animation: flame-dance 0.6s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.flame-1 { height: 20px; background: linear-gradient(#ff2d78, #ff9500); left: 2px; animation-delay: 0s; }
.flame-2 { height: 28px; background: linear-gradient(#ff2d78, #ffd700); left: 50%; transform: translateX(-50%); animation-delay: 0.15s; }
.flame-3 { height: 18px; background: linear-gradient(#ff6b00, #ffd700); right: 2px; animation-delay: 0.3s; }
@keyframes flame-dance {
  0%   { transform: scaleX(1)   scaleY(1)   rotate(-3deg); }
  100% { transform: scaleX(0.8) scaleY(1.15) rotate(3deg); }
}
.flame-2 { animation-name: flame-dance-center; }
@keyframes flame-dance-center {
  0%   { transform: translateX(-50%) scaleX(1)   scaleY(1)   rotate(-2deg); }
  100% { transform: translateX(-50%) scaleX(0.85) scaleY(1.2) rotate(2deg); }
}

/* ── FLOATING EMBLEM ── */
/* Emblem sits inside bar-photo-v2 at a positive top offset — never outside overflow:hidden */
.bar-emblem-float {
  position: absolute; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.bar-emblem-glow {
  position: absolute; border-radius: 50%;
  filter: blur(22px);
  /* No animation — transform:scale on mobile creates compositing layer that buries disc */
}
.bar-emblem-disc {
  position: relative; z-index: 2; border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* Corner badges */
.bar-corner-badge {
  position: absolute; top: 10px; z-index: 4;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 800; color: white;
}
.bar-corner-left  { left: 10px; }
.bar-corner-right { right: 10px; }

/* Friends button */
.bar-friends-btn {
  width: 100%; padding: 10px 16px; background: rgba(0,255,136,0.06);
  border: none; border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--neon-green); font-family: inherit; font-size: 12px;
  font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: background 0.15s;
}
.bar-friends-btn:active { background: rgba(0,255,136,0.12); }
.bar-friend-av-sm {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: white;
  border: 1.5px solid var(--bg); margin-right: -6px; flex-shrink: 0;
}

/* ── BAR CARD EFFECTS ── */

/* Emblem pulse */
.emblem-effect-pulse .bar-emblem-glow {
  animation: emblem-glow-pulse 1.5s ease-in-out infinite !important;
}
.emblem-effect-pulse .bar-emblem-disc {
  animation: emblem-pulse-disc 1.5s ease-in-out infinite;
}
@keyframes emblem-pulse-disc {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* Emblem shake/bounce */
.emblem-effect-bounce .bar-emblem-disc {
  animation: emblem-bounce 0.8s ease-in-out infinite;
}
@keyframes emblem-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.emblem-effect-shake .bar-emblem-disc {
  animation: emblem-shake 0.4s ease-in-out infinite;
}
@keyframes emblem-shake {
  0%,100% { transform: translateX(0) rotate(-2deg); }
  50%      { transform: translateX(4px) rotate(2deg); }
}

/* Card border glow */
.card-effect-border-glow {
  /* Set via JS with inline style */
}

/* Card dim */
.card-effect-dim { opacity: 0.55 !important; }

/* Particles container */
.bar-card-particles {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 1; border-radius: 22px;
}
.bar-particle {
  position: absolute; border-radius: 50%;
  animation: particle-float linear infinite;
  opacity: 0;
}
@keyframes particle-float {
  0%   { transform: translateY(100%) scale(0); opacity: 0; }
  20%  { opacity: 0.8; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-60px) scale(0.3); opacity: 0; }
}

/* ── LINES VIEW TOGGLE ── */
.lines-view-toggle {
  display: flex; gap: 3px;
  background: rgba(255,255,255,0.04); border-radius: 12px; padding: 3px;
  border: 1px solid rgba(255,255,255,0.07);
}
.lines-view-toggle .view-btn {
  padding: 6px 9px; border-radius: 9px; border: none;
  background: none; color: rgba(255,255,255,0.35);
  font-size: 14px; cursor: pointer; transition: all 0.2s; line-height: 1;
}
.lines-view-toggle .view-btn.active {
  background: rgba(255,255,255,0.09); color: white;
}

/* ── GRID 2 — Mini Cards ── */
.lines-grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 0;
}
.g2-card {
  background: rgba(12,12,28,0.95); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; overflow: visible; position: relative;
  padding-top: 28px; transition: transform 0.2s; cursor: pointer;
}
.g2-card:active { transform: scale(0.97); }
.g2-card.g2-packed { animation: g2-packed-pulse 1.5s ease-in-out infinite; }
@keyframes g2-packed-pulse {
  0%,100% { box-shadow: 0 0 12px rgba(255,45,120,0.2); }
  50%      { box-shadow: 0 0 24px rgba(255,45,120,0.45); }
}
.g2-emblem-wrap {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; justify-content: center;
}
.g2-emblem-glow {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  filter: blur(12px); opacity: 0.55; animation: gpulse 2s ease-in-out infinite;
}
.g2-emblem { position: relative; z-index: 2; font-size: 22px; line-height: 1; }
.g2-body { padding: 6px 10px 0; text-align: center; }
.g2-name {
  font-size: 12px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g2-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 5px;
}
.g2-addr { font-size: 9px; color: rgba(255,255,255,0.3); margin-bottom: 8px; }
.g2-votes {
  display: flex; border-top: 1px solid rgba(255,255,255,0.06);
}
.g2-vote {
  flex: 1; padding: 8px 0; background: none; border: none;
  color: rgba(255,255,255,0.3); font-family: inherit;
  font-size: 9px; font-weight: 800; cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}
.g2-vote:last-child { border-right: none; }
.g2-vote.sel { color: white; }

/* ── GRID 3 — Tiles ── */
.lines-grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0;
}
.g3-tile {
  border-radius: 20px; position: relative; aspect-ratio: 1;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden;
  border: 1.5px solid transparent; transition: transform 0.2s;
  background: rgba(12,12,28,0.95);
}
.g3-tile:active { transform: scale(0.95); }
.g3-tile.g3-packed { animation: g3-border-pulse 1.5s ease-in-out infinite; }
@keyframes g3-border-pulse {
  0%,100% { box-shadow: 0 0 10px rgba(255,45,120,0.2); }
  50%      { box-shadow: 0 0 24px rgba(255,45,120,0.5); }
}
.g3-tile-bg { position: absolute; inset: 0; }
.g3-tile img, .g3-tile span { position: relative; z-index: 2; margin-bottom: 5px; }
.g3-name {
  font-size: 9px; font-weight: 800; text-align: center;
  position: relative; z-index: 2; padding: 0 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.g3-dot {
  width: 7px; height: 7px; border-radius: 50%;
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
}

/* ── LEAFLET MAP OVERRIDES ── */
.leaflet-container { background: #06060f; }
.leaflet-popup-content-wrapper {
  background: #0f0f1a !important; border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 14px !important; box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip-container { display: none; }
.leaflet-popup-close-button { color: rgba(255,255,255,0.4) !important; font-size: 18px !important; top: 8px !important; right: 8px !important; }

/* Map pin pulse */
@keyframes map-pin-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
