/* ==========================================================================
   POILEPIWKO - WARSZAWA (Warsaw Beer Price Map & Pub Crawl)
   Reverse-Engineered & Designed from "Vad Kostar Olen"
   ========================================================================== */

:root {
  --bg-dark: #0d1615;
  --bg-panel: #142220;
  --bg-card: rgba(23, 37, 34, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(249, 115, 22, 0.45);
  
  --primary: #f97316;       /* Neon Beer Orange */
  --primary-glow: rgba(249, 115, 22, 0.35);
  
  --price-low: #22c55e;     /* <= 12 PLN (Green) */
  --price-mid: #f59e0b;     /* 13-18 PLN (Amber) */
  --price-high: #ef4444;    /* 19+ PLN (Red/Coral) */
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

/* Header & Ticker */
header {
  background: linear-gradient(180deg, #111e1c 0%, rgba(17, 30, 28, 0.95) 100%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  flex-shrink: 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  gap: 12px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 10px var(--primary));
  animation: float-beer 3.5s ease-in-out infinite;
}

@keyframes float-beer {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.logo-title span.logo-main {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-title span.glow {
  color: var(--primary);
  text-shadow: 0 0 18px var(--primary-glow);
}

.city-badge {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-report {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn-report:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.81rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.btn-roulette-header:hover {
  border-color: rgba(244, 63, 94, 0.5) !important;
  color: #fda4af !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.3) !important;
}

/* Header "Więcej" Dropdown */
.header-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.header-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.header-more-btn .more-chevron {
  font-size: 9px;
  opacity: 0.7;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-dropdown-wrap.open .header-more-btn .more-chevron {
  transform: rotate(180deg);
}

.header-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: rgba(14, 23, 21, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 9999;
  flex-direction: column;
  gap: 3px;
  animation: dropdown-fade-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header-dropdown-wrap.open .header-more-menu {
  display: flex;
}

.more-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 10px;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.more-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.more-menu-item:active {
  transform: scale(0.98);
}

.more-menu-item .menu-item-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.more-menu-item .menu-item-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.more-menu-item .menu-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.more-menu-item .menu-item-desc {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
}

.btn-simulate-warsaw {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  transition: all 0.2s ease;
}

.btn-simulate-warsaw:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.55);
}

.btn-retry-gps {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retry-gps:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Real-time Ticker (Vad Kostar Olen style) */
.ticker-bar {
  background: #090e0e;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.ticker-track {
  display: inline-flex;
  gap: 28px;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-item strong {
  color: #fff;
}

.tag-down { color: var(--price-low); font-weight: 700; }
.tag-up { color: var(--price-high); font-weight: 700; }
.tag-special { color: var(--primary); font-weight: 700; }

/* Main App Container */
.app-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - 84px);
  overflow: hidden;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #0b1110;
  z-index: 1;
}

/* Floating Controls Overlay */
.map-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 800;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 580px;
}

.overlay-panel {
  pointer-events: auto;
  background: rgba(14, 23, 21, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

/* Search Row */
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 12px 9px 38px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.09);
}

/* District Selector Row */
.district-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.district-select-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.district-icon {
  position: absolute;
  left: 11px;
  pointer-events: none;
  font-size: 14px;
  z-index: 2;
}

.district-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 30px 8px 34px;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: all 0.2s ease;
}

.district-select:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.25);
}

.district-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.district-select optgroup {
  background: #141f1c;
  color: var(--primary);
  font-weight: 700;
}

.district-select option {
  background: #111a18;
  color: #e5e7eb;
  font-weight: 500;
  padding: 4px 8px;
}

.district-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: var(--text-dim);
  pointer-events: none;
}

/* Filter Chips */
.filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.filter-chip.chip-green.active {
  background: var(--price-low);
  border-color: var(--price-low);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.filter-chip.chip-amber.active {
  background: var(--price-mid);
  border-color: var(--price-mid);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.filter-chip.chip-red.active {
  background: var(--price-high);
  border-color: var(--price-high);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.filter-chip.chip-favorites.active {
  background: #f43f5e;
  border-color: #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

.filter-chip.chip-non-alcoholic.active {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Legend Pill */
.legend-pill {
  position: absolute;
  bottom: 24px;
  left: 18px;
  z-index: 800;
  background: rgba(14, 23, 21, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.green { background: var(--price-low); box-shadow: 0 0 8px var(--price-low); }
.legend-dot.red { background: var(--price-high); box-shadow: 0 0 8px var(--price-high); }
.legend-dot.closed {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid #94a3b8;
  color: #94a3b8;
  font-size: 7px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* Leaflet Custom Price Markers */
.price-badge-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), 0 0 12px currentColor;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.price-badge-marker:hover {
  transform: scale(1.18);
  z-index: 1000 !important;
}

.marker-low {
  background: #16a34a;
  color: #fff;
}

.marker-mid {
  background: #d97706;
  color: #fff;
}

.marker-high {
  background: #dc2626;
  color: #fff;
}

.marker-craft-halo::after {
  content: "★";
  position: absolute;
  top: -9px;
  right: -6px;
  background: #7c3aed;
  color: #fff;
  font-size: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

/* Closed Bar Marker (Vad Kostar Ölen Style) */
.price-badge-marker.marker-closed {
  background: rgba(30, 41, 59, 0.88) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.45) !important;
  color: #94a3b8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.marker-closed .closed-x {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* Cluster Markers (Leaflet.markercluster) */
.beer-cluster-wrap {
  background: none;
  border: none;
}

.beer-cluster {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.beer-cluster:hover {
  transform: scale(1.1);
}

.beer-cluster-low {
  background: #15803d;
  border: 2px solid #4ade80;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.35);
}

.beer-cluster-mid {
  background: #b45309;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

.beer-cluster-high {
  background: #b91c1c;
  border: 2px solid #f87171;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.35);
}

.beer-cluster-closed {
  background: rgba(30, 41, 59, 0.88);
  border: 2px solid rgba(148, 163, 184, 0.45);
  color: #94a3b8;
}

.cluster-count {
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 800;
}

.cluster-sub {
  font-size: 0.6rem;
  line-height: 1;
  margin-top: 2px;
  font-weight: 600;
}

/* City Overview Markers (When zoomed out to Poland level) */
.city-overview-marker {
  text-align: center;
  cursor: pointer;
}

.city-overview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  background: rgba(13, 22, 21, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.city-overview-box:hover {
  border-color: var(--primary);
  transform: scale(1.08);
  background: rgba(22, 36, 34, 0.95);
}

.city-overview-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

.city-overview-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.city-overview-marker.coming-soon .city-overview-box {
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.72;
}

.city-overview-marker.coming-soon .city-overview-name {
  color: #94a3b8;
}

.city-overview-marker.coming-soon .city-overview-sub {
  color: #64748b;
  font-size: 0.64rem;
}

/* ==========================================================================
   Custom Leaflet Popup Overhaul (Modern Native App Profiling)
   ========================================================================== */
.leaflet-popup {
  margin-bottom: 24px;
}

.leaflet-popup-content-wrapper {
  background: rgba(13, 23, 21, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 0 25px rgba(249, 115, 22, 0.1) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip-container {
  width: 36px;
  height: 16px;
}

.leaflet-popup-tip {
  background: rgba(13, 23, 21, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Custom Styled Popup Close Button (Circular Glass Pill) */
.leaflet-container a.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font: 13px/1 Arial, sans-serif !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  z-index: 20 !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  transform: scale(1.08);
}

/* Venue Card inside Popup */
.venue-card {
  padding: 15px 16px 13px 16px;
  width: 296px;
  max-width: calc(100vw - 42px);
  box-sizing: border-box;
}

.venue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-right: 28px; /* Breathing room for close button */
}

.venue-title-group {
  min-width: 0;
  flex: 1;
}

.venue-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.venue-badge-verified {
  color: #22c55e;
  font-size: 0.95rem;
  font-weight: 800;
}

.venue-old-name {
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
}

.venue-district {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
  line-height: 1.3;
}

.venue-dist-tag {
  font-size: 0.74rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.venue-dist-tag.distant {
  color: #64748b;
  font-weight: 500;
}

.venue-meta-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.venue-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.1;
}

.venue-status-badge.open {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.venue-status-badge.closed {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.venue-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.venue-status-badge.open .status-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.venue-status-badge.closed .status-dot {
  background: #94a3b8;
}

.venue-hours-chip {
  font-size: 0.71rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* Featured Price Box */
.venue-price-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  padding: 9px 12px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-beer-info {
  min-width: 0;
  flex: 1;
}

.price-beer-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-beer-brand {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-val {
  font-size: 1.42rem;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.price-val .price-currency {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.85;
}

.price-val.low { color: var(--price-low); text-shadow: 0 0 14px rgba(34, 197, 94, 0.35); }
.price-val.mid { color: var(--price-mid); text-shadow: 0 0 14px rgba(245, 158, 11, 0.35); }
.price-val.high { color: var(--price-high); text-shadow: 0 0 14px rgba(239, 68, 68, 0.35); }

/* Extra details chips row */
.venue-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.venue-chip {
  font-size: 0.71rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 7px;
  line-height: 1.2;
}

.venue-chip strong {
  color: #fff;
}

.venue-chip.craft {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: #fb923c;
  font-weight: 600;
}

.venue-chip.hh {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-weight: 600;
}

.venue-chip.chip-bezalko {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 600;
}

/* Action Buttons (50/50 Grid - Never Clips) */
.venue-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.venue-btn-confirm,
.venue-btn-edit {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.venue-btn-confirm {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.32);
}

.venue-btn-confirm:hover {
  background: rgba(34, 197, 94, 0.28);
  border-color: #4ade80;
  transform: translateY(-1px);
}

.venue-btn-edit {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.venue-btn-edit:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.venue-nav-wrap {
  margin-top: 6px;
}

.venue-btn-map {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.18s ease;
}

.venue-btn-map:hover {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.venue-btn-map .nav-arrow {
  color: var(--primary);
  font-size: 0.85rem;
  transition: transform 0.18s ease;
}

.venue-btn-map:hover .nav-arrow {
  transform: translateX(2px);
}

.venue-proof-wrap {
  margin-top: 8px;
  text-align: center;
}

.venue-proof-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.venue-proof-badge:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

/* Sidebar Leaderboard Drawer */
.sidebar-drawer {
  position: absolute;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100%;
  background: rgba(14, 23, 21, 0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 900;
  transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.sidebar-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ranking-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ranking-tabs::-webkit-scrollbar {
  display: none;
}

.ranking-tab {
  flex: 1 0 auto;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.ranking-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

.drawer-header-top h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Universal Modal & Drawer Close Button (Circular Glass Pill) */
.modal-close,
.btn-close-drawer {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.modal-close:hover,
.btn-close-drawer:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.modal-close:active,
.btn-close-drawer:active {
  background: rgba(249, 115, 22, 0.25) !important;
  border-color: rgba(249, 115, 22, 0.6) !important;
  color: #f97316 !important;
  transform: scale(0.94) !important;
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranked-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ranked-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateX(-3px);
}

.ranked-pos {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-dim);
  width: 24px;
  text-align: center;
}

.ranked-card:nth-child(1) .ranked-pos { color: #f59e0b; }
.ranked-card:nth-child(2) .ranked-pos { color: #94a3b8; }
.ranked-card:nth-child(3) .ranked-pos { color: #b45309; }

.ranked-info {
  flex: 1;
  min-width: 0;
}

.ranked-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranked-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ranked-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--price-low);
  text-align: right;
  white-space: nowrap;
}

/* Modal for "Zglos cene" (Crowdsourcing) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 10050; /* Higher than mobile bottom dock (9990) */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active,
.modal-backdrop[style*="display: flex"],
.modal-backdrop[style*="display:flex"] {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-backdrop:not(.active):not([style*="display: flex"]):not([style*="display:flex"]) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.modal-card {
  background: #13211f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 36px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 20px 26px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: auto;
  box-sizing: border-box;
}

.modal-backdrop.active .modal-card,
.modal-backdrop[style*="display: flex"] .modal-card,
.modal-backdrop[style*="display:flex"] .modal-card {
  transform: translateY(0) scale(1) !important;
}

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

.modal-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.modal-icon-badge {
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 12px;
  flex-shrink: 0;
}

.modal-head h2,
.modal-head h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.25;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.btn-submit {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
  transition: all 0.2s;
}

.btn-submit:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.07);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* Mode Toggle in Report Modal (Nowy bar vs Zmiana nazwy) */
.report-mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 4px;
}

.report-mode-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.report-mode-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.report-mode-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}

/* Rename Selector Box */
.rename-selector-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.rename-suggestions-list {
  max-height: 180px;
  overflow-y: auto;
  background: #0f1917;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  margin-top: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

.rename-suggestion-item {
  padding: 9px 12px;
  font-size: 0.82rem;
  color: #fff;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.rename-suggestion-item:last-child {
  border-bottom: none;
}

.rename-suggestion-item:hover {
  background: rgba(249, 115, 22, 0.2);
}

.rename-item-name {
  font-weight: 700;
  color: #fbbf24;
}

.rename-item-sub {
  color: var(--text-muted);
  font-size: 0.74rem;
  margin-left: 8px;
}

#rename-selected-badge {
  margin-top: 8px;
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#btn-clear-rename-selection {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0 4px;
}

.rename-edit-toggle-row {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.address-match-alert {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 0.76rem;
  color: #bae6fd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-match-rename {
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-match-rename:hover {
  background: #0369a1;
}

/* Former / Old Venue Name Badge */
.venue-old-name {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

/* Barometer Modal Styling */
.modal-card-wide {
  max-width: 640px;
  width: 95%;
  max-height: 88vh;
  overflow-y: auto;
}

.barometer-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.baro-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.baro-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.baro-card.baro-green {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.06);
}

.baro-card.baro-amber {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}

.baro-card.baro-blue {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
}

.baro-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  font-weight: 600;
}

.baro-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.baro-green .baro-val { color: var(--price-low); }
.baro-amber .baro-val { color: var(--price-mid); }
.baro-blue .baro-val { color: #38bdf8; }

.baro-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.baro-compare-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 16px;
  gap: 10px;
}

.compare-side {
  flex: 1;
}

.compare-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.compare-name {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin: 2px 0 3px;
}

.compare-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.compare-vs {
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--text-dim);
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.baro-list-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.baro-sort-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}

.district-bars-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.district-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.district-bar-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.d-row-name {
  width: 110px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-row-bar-wrap {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.d-row-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.d-row-price {
  width: 65px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e5e7eb;
}

.baro-fun-facts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(249, 115, 22, 0.06);
  border: 1px dashed rgba(249, 115, 22, 0.25);
  border-radius: 10px;
  padding: 9px 12px;
}

.fun-fact {
  font-size: 0.72rem;
  color: #d1d5db;
  line-height: 1.4;
}

.fun-fact strong {
  color: var(--primary);
}

/* Photo Upload Styles */
.photo-upload-container {
  position: relative;
  margin-top: 4px;
}

.photo-file-input {
  display: none;
}

.photo-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.photo-upload-label:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary);
  color: #fff;
}

.photo-preview-box {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.photo-preview-box img {
  max-height: 120px;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.btn-remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venue-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.venue-proof-badge:hover {
  background: rgba(56, 189, 248, 0.22);
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  background: #1c2624;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 10px;
  text-align: center;
}

/* Floating Action Button (FAB) */
.fab-add-bar {
  position: fixed;
  bottom: 24px;
  right: 22px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-add-bar:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.65);
  background: #ea580c;
}

.fab-add-bar:active {
  transform: translateY(0) scale(0.97);
}

/* Header Center Live Status Capsule */
.header-center {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.live-clock-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  cursor: default;
  transition: all 0.2s ease;
}

.live-clock-badge:hover {
  background: rgba(255, 255, 255, 0.06);
}

.live-clock-badge .clock-icon {
  font-size: 0.85rem;
}

/* Floating My Location Button (Desktop Map Control) */
.fab-locate-float {
  position: fixed;
  bottom: 94px;
  right: 14px;
  left: auto;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: rgba(14, 23, 21, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-locate-float span:not(.locate-icon) {
  display: none;
}

.fab-locate-float .locate-icon {
  font-size: 17px;
  line-height: 1;
}

.fab-locate-float:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--primary);
  transform: scale(1.06);
}

.fab-locate-float:active {
  transform: scale(0.95);
}

/* Desktop Dark Leaflet Zoom Controls */
.leaflet-bottom.leaflet-right {
  bottom: 14px !important;
  right: 14px !important;
}

.leaflet-bottom.leaflet-right .leaflet-control-zoom {
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  background: rgba(14, 23, 21, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.leaflet-control-zoom a {
  background-color: transparent !important;
  color: #e2e8f0 !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  transition: all 0.15s ease !important;
}

.leaflet-control-zoom a:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

.leaflet-control-zoom a:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* ========================================================================== */
/* Universal App Layout (Unified Mobile-First Clean UI for All Devices)       */
/* Legacy desktop layout is permanently archived in desktop-legacy-reference.md*/
/* ========================================================================== */
header,
.ticker-bar,
.map-overlay,
.btn-mobile-search-toggle,
.fab-add-bar,
.legend-pill,
.leaflet-control-zoom {
  display: none !important;
}

  .app-body {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    position: relative !important;
  }

  #map {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    z-index: 1 !important;
  }

  /* Venue Card Popup on mobile */
  .venue-card {
    width: 290px;
    max-width: calc(100vw - 36px);
    padding: 14px 14px 12px 14px;
  }

  /* Top Floating Glass Controls */
  .mobile-floating-top {
    display: flex !important;
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 14px));
    left: 14px;
    right: 14px;
    z-index: 950;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    pointer-events: none;
  }

  .mobile-floating-top > * {
    pointer-events: auto;
  }

  .fab-top-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background: rgba(14, 23, 21, 0.85);
    background: -webkit-linear-gradient(bottom, rgba(12, 20, 18, 0.94), rgba(16, 26, 23, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    padding: 0;
    flex-shrink: 0;
  }

  .fab-top-btn:active {
    transform: scale(0.92);
    background: rgba(249, 115, 22, 0.25);
    border-color: #f97316;
  }

  .fab-top-btn.has-filters {
    border-color: #f97316;
    color: #f97316;
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.45);
  }

  .fab-badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f97316;
    border: 1.5px solid #0d1615;
    box-shadow: 0 0 6px #f97316;
  }

  /* Top Brand Logo Pill */
  .fab-brand-pill {
    background: rgba(14, 23, 21, 0.88);
    background: -webkit-linear-gradient(bottom, rgba(12, 20, 18, 0.96), rgba(16, 26, 23, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-appearance: none;
    appearance: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    letter-spacing: -0.2px;
  }

  .fab-brand-pill .brand-pill-icon {
    font-size: 15px;
    line-height: 1;
  }

  .fab-brand-pill .brand-pill-text {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
  }

  .fab-brand-pill .brand-pill-tld {
    color: #f97316;
    font-weight: 700;
  }

  .mobile-floating-top .fab-brand-pill {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .mobile-floating-top .fab-brand-pill:active {
    transform: translateX(-50%) scale(0.94) !important;
  }

  .mobile-floating-top #btn-top-search {
    margin-left: auto !important;
  }

  /* Floating Add Bar Pill (Bottom Left) */
  .floating-add-pill {
    display: inline-flex !important;
    position: fixed;
    bottom: calc(58px + env(safe-area-inset-bottom, 20px));
    left: 14px;
    z-index: 920;
    background: rgba(14, 23, 21, 0.88);
    background: -webkit-linear-gradient(bottom, rgba(12, 20, 18, 0.94), rgba(16, 26, 23, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 7px 14px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-appearance: none;
    appearance: none;
  }

  .floating-add-pill .pill-plus {
    color: #f97316;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }

  .floating-add-pill:active {
    transform: scale(0.92);
    border-color: #f97316;
  }

  /* Mobile Floating Action Stack (Bottom Right on Map) */
  .fab-stack-right {
    display: flex !important;
    position: fixed !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 20px)) !important;
    right: 14px !important;
    left: auto !important;
    top: auto !important;
    z-index: 920 !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-end !important;
    pointer-events: none !important;
  }

  .fab-stack-right > * {
    pointer-events: auto !important;
  }

  /* Ruletka button - Glowing round neon circle button on map */
  .fab-roulette-float {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 4px 18px rgba(244, 63, 94, 0.6), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .fab-roulette-float:active {
    transform: scale(0.92) !important;
  }

  .fab-roulette-float span:not(.roulette-float-icon) {
    display: none !important;
  }

  .fab-roulette-float .roulette-float-icon {
    font-size: 24px !important;
    line-height: 1 !important;
  }

  /* Kompas button */
  .fab-compass-float {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(234, 88, 12, 0.95)) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 3px 14px rgba(249, 115, 22, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .fab-compass-float:active {
    transform: scale(0.92) !important;
  }

  .fab-compass-float span:not(.compass-icon) {
    display: none !important;
  }

  .fab-compass-float .compass-icon {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  /* Locate GPS button */
  .fab-locate-float {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(14, 23, 21, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 2px solid #f97316 !important;
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.4), 0 4px 16px rgba(0, 0, 0, 0.65) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .fab-locate-float:active {
    transform: scale(0.92) !important;
  }

  .fab-locate-float span:not(.locate-icon) {
    display: none !important;
  }

  .fab-locate-float .locate-icon {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  /* Pub Quiz button in mobile floating action stack */
  .fab-pubquiz-float {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .fab-pubquiz-float:active {
    transform: scale(0.92) !important;
  }

  .fab-pubquiz-float span:not(.quiz-float-icon) {
    display: none !important;
  }

  .fab-pubquiz-float .quiz-float-icon {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  /* Native iPhone TabBar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(49px + env(safe-area-inset-bottom, 20px));
    padding-top: 4px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background: rgba(14, 23, 21, 0.85);
    background: -webkit-linear-gradient(bottom, rgba(12, 20, 18, 0.95), rgba(16, 26, 23, 0.82));
    backdrop-filter: blur(25px) saturate(190%);
    -webkit-backdrop-filter: blur(25px) saturate(190%);
    border-top: 0.5px solid rgba(255, 255, 255, 0.16);
    z-index: 9990;
    align-items: stretch;
    justify-content: space-around;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
  }

  .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 44px;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
  }

  .nav-item:active {
    opacity: 0.6;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }

  .nav-avatar-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.45);
    display: block;
    transition: all 0.2s ease;
  }

  .nav-item.active .nav-avatar-photo {
    border-color: #fb923c;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.85);
    transform: scale(1.08);
  }

  .nav-avatar-emoji {
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", -apple-system-body, sans-serif;
    color: inherit;
    white-space: nowrap;
    line-height: 12px;
    margin-top: 3px;
    margin-bottom: 0;
    text-align: center;
    display: block;
    -webkit-font-smoothing: antialiased;
  }

  .nav-item.active {
    color: var(--primary);
  }

  .nav-item.active .nav-label {
    font-weight: 700;
    color: #fb923c;
  }

  /* Center Hero Mascot Button */
  .nav-item.nav-item-hero {
    position: relative;
    top: -14px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    margin: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
  }

  .nav-item.nav-item-hero .hero-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #111e1c;
    background: radial-gradient(circle, #1a2e2a 0%, #0d1715 100%);
    border: 2.5px solid #f97316;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.55), 0 4px 14px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-item.nav-item-hero:active .hero-ring {
    transform: scale(0.90);
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.85);
  }

  .hero-syrenka-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  /* Mobile Search Sheet */
  .mobile-search-sheet {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 14px));
    left: 12px;
    right: 12px;
    z-index: 10010;
    background: rgba(15, 24, 22, 0.97);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(85dvh - env(safe-area-inset-bottom, 20px));
    max-height: calc(85vh - env(safe-area-inset-bottom, 20px));
    animation: slideDownSearch 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDownSearch {
    from { opacity: 0; transform: translateY(-16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .mobile-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
  }

  .mobile-search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.92rem;
    outline: none;
  }

  .mobile-search-bar input::placeholder {
    color: #64748b;
    font-size: 0.82rem;
  }

  .btn-close-search {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
  }

  .mobile-search-quick-districts {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .mobile-search-quick-districts::-webkit-scrollbar { display: none; }

  .m-dist-chip {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
  }

  .m-dist-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }

  .m-dist-chip.chip-find-friends {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
    font-weight: 700;
  }
  .m-dist-chip.chip-find-friends:hover,
  .m-dist-chip.chip-find-friends:active {
    background: rgba(59, 130, 246, 0.4);
    color: #ffffff;
  }

  .m-dist-chip.chip-roulette {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.45);
    color: #fda4af;
    font-weight: 700;
  }
  .m-dist-chip.chip-roulette:hover,
  .m-dist-chip.chip-roulette:active {
    background: rgba(244, 63, 94, 0.35);
    color: #ffffff;
  }

  .m-dist-chip.chip-happyhour {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fcd34d;
    font-weight: 700;
  }
  .m-dist-chip.chip-happyhour:hover,
  .m-dist-chip.chip-happyhour:active {
    background: rgba(245, 158, 11, 0.35);
    color: #ffffff;
  }

  .m-dist-chip.chip-quiz {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(167, 139, 250, 0.45);
    color: #c4b5fd;
    font-weight: 700;
  }
  .m-dist-chip.chip-quiz:hover,
  .m-dist-chip.chip-quiz:active {
    background: rgba(139, 92, 246, 0.38);
    color: #ffffff;
  }

  .mobile-search-results {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 45vh;
    padding-right: 2px;
  }

  .m-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .m-search-item:active {
    background: rgba(255, 255, 255, 0.08);
  }

  .m-search-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .m-search-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
  }

  .m-search-sub {
    font-size: 0.72rem;
    color: #94a3b8;
  }

  .m-search-price {
    font-size: 1rem;
    font-weight: 800;
    color: #22c55e;
  }

  /* Centered Modals with Safe Area support on mobile */
  .modal-backdrop {
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: calc(16px + env(safe-area-inset-top, 20px)) 14px calc(24px + env(safe-area-inset-bottom, 20px)) 14px !important;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-card {
    margin: auto !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 20px) - env(safe-area-inset-bottom, 20px) - 36px) !important;
    max-height: calc(100vh - env(safe-area-inset-top, 20px) - env(safe-area-inset-bottom, 20px) - 36px) !important;
    border-radius: 20px !important;
    padding: 22px 18px 24px 18px !important;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer {
    margin-top: 18px;
    margin-bottom: 0;
  }

  .sidebar-drawer {
    position: fixed !important;
    width: 100% !important;
    left: auto !important;
    right: -100% !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top, 16px);
    bottom: calc(49px + env(safe-area-inset-bottom, 20px)) !important;
    height: calc(100% - 49px - env(safe-area-inset-bottom, 20px)) !important;
    height: calc(100dvh - 49px - env(safe-area-inset-bottom, 20px)) !important;
    box-sizing: border-box !important;
    z-index: 9980 !important;
    background: #0d1615 !important;
    background: rgba(13, 22, 21, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: none !important;
  }

  .sidebar-drawer.open {
    right: 0 !important;
  }

  /* When ranking drawer or any modal is open on mobile, hide floating map controls completely */
  body.drawer-open .mobile-floating-top,
  body.drawer-open .floating-add-pill,
  body.drawer-open .fab-stack-right,
  body.drawer-open .fab-locate-float,
  body:has(.sidebar-drawer.open) .mobile-floating-top,
  body:has(.sidebar-drawer.open) .floating-add-pill,
  body:has(.sidebar-drawer.open) .fab-stack-right,
  body:has(.sidebar-drawer.open) .fab-locate-float,
  body:has(.modal-backdrop.active) .mobile-floating-top,
  body:has(.modal-backdrop.active) .floating-add-pill,
  body:has(.modal-backdrop.active) .fab-stack-right,
  body:has(.modal-backdrop.active) .fab-locate-float {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .baro-kpis {
    grid-template-columns: 1fr 1fr;
  }

/* ========================================================================== */
/* Desktop Spatial Enhancements (Screens >= 641px)                            */
/* Retains clean mobile-first app layout with centered floating islands       */
/* ========================================================================== */
@media (min-width: 641px) {
  /* Floating Top Island Centered */
  .mobile-floating-top {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 580px !important;
    max-width: calc(100vw - 40px) !important;
    top: 20px !important;
  }

  /* Floating Bottom Nav Dock Centered */
  .mobile-bottom-nav {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 480px !important;
    max-width: calc(100vw - 40px) !important;
    bottom: 20px !important;
    height: 60px !important;
    padding: 6px 16px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  }

  /* Floating Add Pill on Desktop (Bottom Left) */
  .floating-add-pill {
    bottom: 24px !important;
    left: 24px !important;
    padding: 9px 18px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
  }

  .floating-add-pill:hover {
    transform: translateY(-2px) scale(1.04) !important;
    border-color: rgba(249, 115, 22, 0.65) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(249, 115, 22, 0.35) !important;
  }

  /* Floating Action Stack on Desktop (Bottom Right) */
  .fab-stack-right {
    bottom: 24px !important;
    right: 24px !important;
  }

  /* Micro-interactions & Hovers on Desktop */
  .fab-top-btn:hover {
    transform: translateY(-1px) scale(1.06) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
  }

  .fab-brand-pill:hover {
    transform: translateX(-50%) translateY(-1px) scale(1.04) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
  }

  .fab-roulette-float:hover {
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 6px 24px rgba(244, 63, 94, 0.8), 0 2px 10px rgba(0, 0, 0, 0.8) !important;
  }

  .fab-pubquiz-float:hover {
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.75), 0 2px 10px rgba(0, 0, 0, 0.8) !important;
  }

  .fab-compass-float:hover {
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.75), 0 2px 10px rgba(0, 0, 0, 0.8) !important;
  }

  .fab-locate-float:hover {
    transform: translateY(-2px) scale(1.08) !important;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.65), 0 6px 22px rgba(0, 0, 0, 0.8) !important;
  }

  .nav-item {
    cursor: pointer !important;
    transition: transform 0.15s ease, color 0.15s ease !important;
  }

  .nav-item:hover {
    color: #f1f5f9 !important;
  }

  .nav-item:hover .nav-icon {
    transform: scale(1.12) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .nav-item-hero:hover .hero-ring {
    transform: scale(1.08) !important;
    box-shadow: 0 0 26px rgba(249, 115, 22, 0.8), 0 6px 18px rgba(0, 0, 0, 0.9) !important;
  }

  /* Desktop Search Sheet */
  .mobile-search-sheet {
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 580px !important;
    max-width: calc(100vw - 40px) !important;
    top: 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  }

  /* Desktop Sidebar Drawer (Ranking) */
  .sidebar-drawer {
    width: 420px !important;
    max-width: 90vw !important;
    right: -440px !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.7) !important;
  }

  .sidebar-drawer.open {
    right: 0 !important;
  }
}

@media (max-width: 380px) {
  .logo-title {
    font-size: 0.94rem;
  }
  .badge-legal-18 {
    padding: 0 6px;
    font-size: 0.68rem;
  }
  .venue-card {
    width: 275px;
    padding: 12px 12px 10px 12px;
  }
  .venue-name {
    font-size: 1.05rem;
  }
  .price-val {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   Age Gate (18+ Polish Law Requirement) & Legal / Privacy Modal Styles
   ========================================================================== */

/* 18+ Badge in Desktop Header */
.badge-legal-18 {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-legal-18:hover {
  background: rgba(249, 115, 22, 0.28);
  border-color: #f97316;
  transform: translateY(-1px);
}

/* Age Gate Backdrop */
.age-gate-backdrop {
  z-index: 25000 !important;
  background: rgba(8, 14, 13, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: none;
}

.age-gate-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
}

/* Age Gate Card */
.age-gate-card {
  max-width: 440px;
  text-align: center;
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(249, 115, 22, 0.15);
  padding: 30px 24px;
}

.age-gate-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.age-gate-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.age-gate-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.age-gate-law-note {
  font-size: 0.73rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.age-gate-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 16px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-age-confirm {
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4);
  transition: all 0.2s;
}

.btn-age-confirm:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-age-deny {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-age-deny:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.age-denied-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 14px;
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 16px;
}

.btn-age-exit {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.8rem;
}

.age-gate-footer {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

/* Legal Footer in Ranking Drawer */
.drawer-legal-footer {
  padding: 14px 16px 20px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  margin-top: auto;
}

.legal-warning-text {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 6px;
}

.btn-legal-link {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* Legal Modal Body */
.legal-modal-body {
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-section h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.legal-section p, .legal-section ul {
  margin: 0;
}

.legal-section ul {
  padding-left: 20px;
  margin-top: 6px;
}

.legal-section li {
  margin-bottom: 4px;
}

/* ==========================================================================
   PWA Installation Banner & iOS Guide Styles
   ========================================================================== */

/* Drawer PWA Button */
.drawer-pwa-wrap {
  margin-bottom: 12px;
}

.btn-drawer-pwa {
  width: 100%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16) 0%, rgba(234, 88, 12, 0.22) 100%);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.15);
}

.btn-drawer-pwa:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.28) 0%, rgba(234, 88, 12, 0.35) 100%);
  color: #fff;
  border-color: #f97316;
  transform: translateY(-1px);
}

/* Floating PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom, 20px));
  left: 12px;
  right: 12px;
  z-index: 9980;
  background: rgba(15, 24, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(249, 115, 22, 0.18);
  animation: slide-up-banner 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 641px) {
  /* On desktop/computer, completely hide PWA install banner */
  .pwa-install-banner,
  #drawer-pwa-wrap {
    display: none !important;
  }
}

@keyframes slide-up-banner {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-banner-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pwa-banner-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.pwa-banner-info {
  min-width: 0;
}

.pwa-banner-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.pwa-banner-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-pwa-action {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  transition: all 0.2s ease;
}

.btn-pwa-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.55);
}

.btn-pwa-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-pwa-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* PWA iOS Guide Modal */
.pwa-ios-card {
  max-width: 420px;
  padding: 24px 20px;
}

.pwa-ios-app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.pwa-app-icon-preview {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.pwa-ios-app-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.pwa-ios-app-sub {
  font-size: 0.74rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pwa-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-step-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
  flex: 1;
}

.pwa-safari-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.76rem;
  margin-top: 6px;
}

.pwa-safari-add-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.76rem;
  margin-top: 6px;
}

.pwa-ios-pointer-hint {
  margin-top: 16px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px dashed rgba(249, 115, 22, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fed7aa;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pwa-ios-arrow {
  font-size: 1.3rem;
  color: var(--primary);
  animation: bounce-down 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ==========================================================================
   Pub Crawl Generator Styles (poilepiwko)
   ========================================================================== */

/* Filter Chip Pub Crawl */
.chip-crawl {
  background: rgba(249, 115, 22, 0.16) !important;
  border-color: rgba(249, 115, 22, 0.45) !important;
  color: #fb923c !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.chip-crawl:hover {
  background: rgba(249, 115, 22, 0.3) !important;
  transform: translateY(-1px);
}

/* Pub Crawl Modal Head Subtitle */
.modal-head-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.35;
}

/* Form Grid */
.crawl-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.crawl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crawl-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
}

.crawl-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.crawl-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}

.crawl-select option, .crawl-select optgroup {
  background: #111a18;
  color: #fff;
}

/* Pills Row for Stops and Vibes */
.crawl-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crawl-pill-btn {
  flex: 1;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crawl-pill-btn span {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
}

.crawl-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.crawl-pill-btn.active {
  background: rgba(249, 115, 22, 0.18);
  border-color: #f97316;
  color: #fff;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.2);
}

.crawl-pill-btn.active span {
  color: #fb923c;
}

/* Generate Button */
.crawl-generate-wrap {
  margin-top: 16px;
  margin-bottom: 12px;
}

.btn-generate-crawl {
  width: 100%;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  border: none;
  font-size: 0.94rem;
  font-weight: 800;
  padding: 13px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-generate-crawl:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(249, 115, 22, 0.55);
}

/* Generated Result Container */
.crawl-result-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fade-in-result 0.3s ease-out;
}

@keyframes fade-in-result {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Summary Bar */
.crawl-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
  text-align: center;
}

.crawl-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crawl-stat-label {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.crawl-stat-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}

.crawl-stat-val.highlight {
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* Timeline of Stops */
.crawl-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 0;
}

.crawl-stop-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.2s;
}

.crawl-stop-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(249, 115, 22, 0.35);
}

.crawl-stop-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
  margin-top: 2px;
}

.crawl-stop-info {
  min-width: 0;
  flex: 1;
}

.crawl-stop-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.crawl-stop-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.crawl-stop-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: #4ade80;
  white-space: nowrap;
}

.crawl-stop-address {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.crawl-stop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.crawl-stop-chip {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.crawl-stop-chip.craft {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  font-weight: 600;
}

.crawl-stop-chip.hh {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 600;
}

/* Leg transit connector */
.crawl-leg-transit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.74rem;
  color: #38bdf8;
  font-weight: 600;
}

.crawl-leg-dots {
  width: 2px;
  height: 16px;
  background: repeating-linear-gradient(to bottom, #38bdf8 0, #38bdf8 3px, transparent 3px, transparent 6px);
  margin-left: 5px;
}

/* Bottom Actions */
.crawl-actions-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.btn-crawl-primary {
  flex: 1.2;
  min-width: 140px;
  background: #16a34a;
  color: #fff;
  border: none;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-crawl-primary:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-crawl-secondary {
  flex: 1;
  min-width: 130px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s;
  box-sizing: border-box;
}

.btn-crawl-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-crawl-ghost {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-crawl-ghost:hover {
  border-color: #cbd5e1;
  color: #fff;
}

/* Active Crawl Floating Banner on Map */
.active-crawl-bar {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  background: rgba(15, 24, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #f97316;
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(249, 115, 22, 0.25);
  display: flex;
  align-items: center;
  gap: 14px;
  width: auto;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  animation: drop-down-crawl 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drop-down-crawl {
  from { opacity: 0; transform: translate(-50%, -15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.active-crawl-title {
  font-size: 0.84rem;
  color: #fff;
}

.active-crawl-title strong {
  color: #fb923c;
}

.active-crawl-step-indicator {
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.25;
}

.active-crawl-step-indicator strong {
  color: #fb923c;
}

.active-crawl-step-indicator .crawl-current-name {
  color: #fff;
  font-weight: 800;
}

.active-crawl-step-indicator .crawl-current-price {
  color: #4ade80;
  font-weight: 800;
  font-size: 0.76rem;
  margin-left: 2px;
}

.active-crawl-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
}

.active-crawl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-crawl-action-checkin {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-crawl-action-checkin:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.65);
}

.btn-crawl-action-checkin:active {
  transform: scale(0.96);
}

.btn-crawl-action-gmaps {
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-crawl-action-gmaps:hover {
  background: #15803d;
}

.btn-crawl-action-details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-crawl-action-clear {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-crawl-action-clear:hover {
  background: #ef4444;
  color: #fff;
}

/* Custom Marker on Map for Pub Crawl Stops */
.crawl-marker-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.85), 0 4px 10px rgba(0, 0, 0, 0.85);
  border: 2px solid #fff;
  animation: pulse-crawl-marker 2s infinite ease-in-out;
}

@keyframes pulse-crawl-marker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 22px rgba(249, 115, 22, 1), 0 4px 12px rgba(0, 0, 0, 0.9); }
}

.crawl-marker-badge.visited-stop {
  background: linear-gradient(135deg, #16a34a 0%, #10b981 100%) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.8), 0 3px 8px rgba(0, 0, 0, 0.7) !important;
  animation: none !important;
}

.crawl-marker-badge.active-stop {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.5), 0 0 24px rgba(249, 115, 22, 0.95) !important;
  transform: scale(1.18);
  animation: pulse-crawl-marker 1.2s infinite ease-in-out !important;
}

/* ==========================================================================
   Happy Hours & Piwny Paszport Warszawy Styles
   ========================================================================== */

/* Passport Badge in Header Center */
.badge-passport {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

.badge-passport:hover {
  background: rgba(234, 179, 8, 0.22);
  border-color: #facc15;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.4);
}

.btn-hh-header {
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
}

.btn-hh-header:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3) !important;
}

/* Happy Hour Modal */
.happyhour-modal-card {
  max-width: 640px;
}

.hh-modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.15);
}

.hh-tab {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.hh-tab:hover {
  color: #fff;
}

.hh-tab.active {
  color: #fbbf24;
}

.hh-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #fbbf24;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.hh-modal-body {
  padding: 16px 20px 24px;
}

.hh-now-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.hh-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

.hh-now-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
}

/* Day Pills for Calendar */
.hh-days-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.hh-day-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s;
}

.hh-day-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hh-day-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

/* Happy Hour Cards */
.hh-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.hh-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.2s;
  cursor: pointer;
}

.hh-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.hh-card-info {
  min-width: 0;
  flex: 1;
}

.hh-card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.hh-card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  text-transform: uppercase;
}

.hh-card-tag.active-now {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  animation: pulse-hh-tag 2s infinite;
}

@keyframes pulse-hh-tag {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hh-card-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 3px;
}

.hh-card-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hh-card-prices {
  text-align: right;
  flex-shrink: 0;
}

.hh-price-promo {
  font-size: 1.15rem;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.hh-price-regular {
  font-size: 0.74rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-top: 2px;
}

.hh-countdown-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fb923c;
  background: rgba(249, 115, 22, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
  display: inline-block;
}

/* ==========================================================================
   Piwny Paszport Warszawy Styles
   ========================================================================== */

.passport-modal-card {
  max-width: 660px;
}

.passport-modal-body {
  padding: 16px 20px 24px;
}

/* Hero Level Card */
.passport-hero-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(249, 115, 22, 0.12) 100%);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.passport-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.passport-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.2);
  border: 2px solid #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.35);
}

.passport-rank-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.passport-rank-sub {
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.passport-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.passport-progress-bar-bg {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.passport-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #eab308 0%, #f97316 100%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.passport-progress-label {
  font-size: 0.68rem;
  color: #cbd5e1;
  text-align: right;
  font-weight: 600;
}

/* 4 KPI Grid */
.passport-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

@media (max-width: 500px) {
  .passport-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.passport-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.passport-stat-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.passport-stat-num.highlight {
  color: #facc15;
}

.passport-stat-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Section Titles */
.passport-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.passport-section-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Badges Showcase Grid */
.passport-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.passport-badge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  cursor: pointer;
}

.passport-badge-card.unlocked {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.15);
}

.passport-badge-card.unlocked:hover {
  transform: translateY(-2px);
  border-color: #facc15;
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.25);
}

.passport-badge-card.locked {
  opacity: 0.45;
  filter: grayscale(0.85);
}

.badge-card-icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.badge-card-name {
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.badge-card-desc {
  font-size: 0.66rem;
  color: #cbd5e1;
  line-height: 1.2;
}

.badge-card-status {
  font-size: 0.62rem;
  font-weight: 700;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 4px;
}

.passport-badge-card.unlocked .badge-card-status {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.passport-badge-card.locked .badge-card-status {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* Visited Venues List */
.passport-venues-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.passport-venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #cbd5e1;
  transition: all 0.15s;
}

.passport-venue-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.passport-venue-title {
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.passport-venue-title:hover {
  color: #f97316;
}

.btn-remove-visited {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.72rem;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-remove-visited:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* Passport Footer Actions */
.passport-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-passport-share {
  flex: 1;
  background: linear-gradient(135deg, #eab308 0%, #f97316 100%);
  color: #0b1312;
  font-weight: 900;
  font-size: 0.84rem;
  padding: 11px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.35);
}

.btn-passport-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5);
}

.btn-passport-reset {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-passport-reset:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Venue Social & Actions Row (Favorites & Share) */
.venue-social-row {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  width: 100%;
}

.btn-fav-toggle,
.btn-share-venue {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-fav-toggle:hover,
.btn-share-venue:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-fav-toggle.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.55);
  color: #fb7185;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.btn-fav-toggle.active:hover {
  background: rgba(244, 63, 94, 0.3);
}

.btn-share-venue:active {
  transform: scale(0.97);
}

/* "Byłem tu!" Button in Popups & Cards */
.btn-toggle-visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
}

.btn-toggle-visited:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-toggle-visited.visited {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ade80;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.btn-toggle-visited.visited:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Visited Marker on Map */
.marker-visited-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

/* Floating Toast Notification (Centered on Screen) */
.passport-toast {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 30000;
  background: rgba(14, 23, 21, 0.96);
  background: -webkit-linear-gradient(bottom, rgba(12, 20, 18, 0.98), rgba(16, 26, 23, 0.92));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(249, 115, 22, 0.6);
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.85), 0 0 24px rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  animation: toast-drop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@media (max-width: 600px) {
  .passport-toast {
    top: calc(72px + env(safe-area-inset-top, 14px));
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    max-width: calc(100vw - 28px);
    border-radius: 999px;
    padding: 9px 18px;
  }
}

@keyframes toast-drop {
  from { opacity: 0; transform: translate(-50%, -18px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.toast-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  animation: toast-wiggle 0.6s ease-in-out;
}

@keyframes toast-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg) scale(1.15); }
  75% { transform: rotate(12deg) scale(1.15); }
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: #facc15;
  letter-spacing: -0.01em;
}

.toast-desc {
  font-size: 0.74rem;
  color: #e2e8f0;
  margin-top: 1px;
}

/* ==========================================================================
   USER AUTHENTICATION, PROFILES & COMMUNITY ("Untappd + Strava")
   ========================================================================== */

/* Header Auth Badge */
.badge-auth {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.badge-auth:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.badge-auth.logged-in {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(234, 179, 8, 0.5);
  color: #facc15;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}

@media (max-width: 600px) {
  .badge-auth {
    height: 34px;
    padding: 0 9px;
    font-size: 0.72rem;
    border-radius: 9px;
  }
}

/* Auth Modal */
.auth-modal-card {
  max-width: 420px;
  width: 100%;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
  margin: 14px 0 16px 0;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Social OAuth Buttons (Google & Apple) */
.auth-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-oauth {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-oauth .oauth-icon {
  flex-shrink: 0;
  display: block;
}

.btn-oauth-google {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-oauth-google:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.btn-oauth-google:active {
  transform: scale(0.98);
}

.btn-oauth-apple {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-oauth-apple:hover {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-oauth-apple:active {
  transform: scale(0.98);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 6px 0 2px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-divider span {
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Auth & Profile Forms styling */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form .form-group,
.profile-edit-form .form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.auth-form label,
.profile-edit-form label {
  display: block !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  text-align: left !important;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.profile-edit-form input[type="text"],
.profile-edit-form textarea {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  color: #fff !important;
  font-size: 0.92rem !important;
  font-family: inherit !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.auth-form input[type="text"]::placeholder,
.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder,
.profile-edit-form input[type="text"]::placeholder,
.profile-edit-form textarea::placeholder {
  color: #64748b !important;
  font-size: 0.88rem !important;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.profile-edit-form input[type="text"]:focus,
.profile-edit-form textarea:focus {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28), inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.label-with-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.auth-sublink {
  font-size: 0.74rem;
  color: #fb923c;
  font-weight: 600;
  text-decoration: none;
}
.auth-sublink:hover {
  text-decoration: underline;
  color: #fed7aa;
}

.input-with-prefix {
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.input-with-prefix:focus-within {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.28), inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.input-prefix {
  padding: 0 0 0 14px !important;
  color: #f97316 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  user-select: none !important;
}

.input-with-prefix input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 12px 14px 12px 6px !important;
  color: #fff !important;
  font-size: 0.92rem !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: auto !important;
}

.input-hint {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.avatar-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.avatar-picker::-webkit-scrollbar {
  display: none;
}

.avatar-option {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-appearance: none;
  appearance: none;
}

.avatar-option:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

.avatar-option.selected {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5) !important;
  transform: scale(1.1);
}

/* Profile Photo Uploader & Avatar Styles */
.profile-photo-uploader {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 6px;
}

.photo-preview-wrap {
  position: relative;
  flex-shrink: 0;
  width: 66px;
  height: 66px;
}

.photo-preview-frame {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2.5px solid #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.photo-preview-emoji {
  font-size: 2.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.btn-change-photo-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f59e0b;
  color: #111;
  border: 2px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-change-photo-badge:hover {
  transform: scale(1.12);
  background: #fbbf24;
}

.photo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.btn-upload-photo {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-upload-photo:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: #fbbf24 !important;
  color: #fff !important;
}

.btn-text-danger {
  background: none;
  border: none;
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 2px 0;
  transition: color 0.15s ease;
}

.btn-text-danger:hover {
  color: #ef4444;
  text-decoration: underline;
}

.photo-hint-text {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.25;
}

.avatar-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 6px 0;
  color: #64748b;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.avatar-divider::before,
.avatar-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-hero-photo,
.public-profile-photo,
.auth-avatar-photo,
.user-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.auth-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
}

.btn-auth-submit,
.btn-primary {
  width: 100% !important;
  padding: 13px 18px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  margin-top: 6px !important;
  text-decoration: none !important;
}

.btn-auth-submit:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #fb923c, #f97316) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.55) !important;
}

.btn-auth-submit:active,
.btn-primary:active {
  transform: translateY(0) !important;
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 600;
}

.auth-success-msg {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 600;
}

/* User Profile Modal */
.profile-modal-card,
.public-profile-card {
  max-width: 480px;
  width: 100%;
}

.profile-hero-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.25), rgba(15, 23, 42, 0.9));
  border: 2px solid #facc15;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.3);
}

.profile-hero-names {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-hero-names h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.profile-handle {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
}

.profile-rank-pill {
  font-size: 0.72rem;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
  display: inline-block;
}

/* Goin' Style Profile UI */
.modal-card-goin {
  max-width: 480px;
  width: 100%;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 90vh !important;
  border-radius: 24px !important;
  background: #091218 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  .modal-backdrop:has(.modal-card-goin) {
    padding: 0 !important;
    align-items: flex-start !important;
  }
  .modal-card-goin {
    max-width: 100% !important;
    width: 100% !important;
    height: 100dvh !important;
    height: 100vh !important;
    max-height: 100dvh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 24px)) !important;
  }
}

.goin-modal-header {
  padding-top: calc(env(safe-area-inset-top, 24px) + 14px) !important;
  padding-bottom: 12px;
  padding-left: max(18px, env(safe-area-inset-left, 18px));
  padding-right: max(18px, env(safe-area-inset-right, 18px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0c1b26;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.goin-header-drag-bar {
  position: absolute;
  top: calc(env(safe-area-inset-top, 8px) + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  pointer-events: none;
}

.modal-close-goin {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  position: relative;
  z-index: 60;
}

.modal-close-goin:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.06) !important;
}

.modal-close-goin:active {
  background: rgba(249, 115, 22, 0.55) !important;
  border-color: #f97316 !important;
  transform: scale(0.92) !important;
}

.goin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 60;
}

.btn-header-share {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

.btn-header-share:hover {
  background: rgba(249, 115, 22, 0.35) !important;
  border-color: #f97316 !important;
  color: #fb923c !important;
  transform: scale(1.06) !important;
}

.btn-header-share:active {
  background: rgba(249, 115, 22, 0.6) !important;
  transform: scale(0.92) !important;
}

.brand-pill {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Hero Section */
.profile-goin-hero {
  background: linear-gradient(180deg, #0c1b26 0%, #152b3c 70%, #10212f 100%);
  padding: 10px 18px 28px 18px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  position: relative;
}

.goin-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.goin-hero-left {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.goin-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.goin-name-row h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.user-num-badge {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22) 0%, rgba(249, 115, 22, 0.25) 100%);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
  user-select: all;
}

.goin-handle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.goin-handle-row .profile-handle {
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 600;
}

.profile-rank-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fb923c;
  background: rgba(249, 115, 22, 0.14);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.goin-bio-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 8px 0 10px 0;
  line-height: 1.42;
  word-break: break-word;
}

.goin-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.goin-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  color: #e2e8f0;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.goin-tag-icon {
  font-size: 0.82rem;
}

.goin-tag-val {
  color: #f8fafc;
  font-weight: 600;
}

/* Profile Actions Bar (Clean 2-Button Row) */
.profile-hero-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-hero-action-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.btn-hero-action.btn-hero-edit {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

.btn-hero-action.btn-hero-edit:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-hero-action.btn-hero-story {
  background: linear-gradient(135deg, #e11d48 0%, #c026d3 50%, #7c3aed 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 4px 16px rgba(192, 38, 211, 0.35);
}

.btn-hero-action.btn-hero-story:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #d946ef 50%, #8b5cf6 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 38, 211, 0.55);
}

.btn-hero-action:active {
  transform: scale(0.97);
}

/* Avatar Frame */
.goin-hero-right {
  flex-shrink: 0;
}

.goin-avatar-frame {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.goin-avatar-badge {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #09131a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  user-select: none;
}

/* ==========================================================================
   Unified Dark Glass Stats Grid
   ========================================================================== */
.profile-stats-unified {
  margin: 14px 16px 14px 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.stat-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.stat-unit-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.stat-unit-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-family: inherit;
}

.stat-unit-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stat-unit-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* ==========================================================================
   Compact Level Progress Card (Clean Polish UI)
   ========================================================================== */
.profile-progress-card-clean {
  margin: 0 16px 14px 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.progress-clean-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.progress-clean-title {
  color: #cbd5e1;
}

.progress-clean-pct {
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.78rem;
}

.progress-clean-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-clean-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #38bdf8 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Achievements Section */
.profile-goin-achievements {
  margin: 0 16px 16px 16px;
  text-align: left;
}

.achievements-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.achievements-section-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.achievements-section-toggle:active {
  transform: scale(0.99);
}

.achievements-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.achievements-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.achievements-count-badge {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.achievements-toggle-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
}

.achievements-chevron {
  font-size: 0.68rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.achievements-section-toggle.active .achievements-chevron {
  transform: rotate(180deg);
}

.achievements-collapse-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.2s ease;
  overflow: hidden;
  margin-top: 0;
}

.achievements-collapse-wrapper.expanded {
  grid-template-rows: 1fr;
  margin-top: 10px;
}

.achievements-collapse-wrapper > .achievements-list {
  min-height: 0;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.18s ease;
}

.achievement-card.unlocked {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.achievement-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
}

.achievement-card.unlocked .achievement-icon-bubble {
  background: rgba(34, 197, 94, 0.22);
}

.achievement-info {
  flex: 1;
  min-width: 0;
}

.achievement-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.achievement-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ==========================================================================
   Single Elegant Community Banner
   ========================================================================== */
.profile-community-banner {
  margin: 12px 16px 14px 16px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: #ffffff;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.profile-community-banner:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}

.profile-community-banner:active {
  transform: scale(0.99);
}

.comm-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.comm-banner-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.comm-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comm-banner-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
}

.comm-banner-sub {
  font-size: 0.7rem;
  color: #94a3b8;
}

.comm-banner-arrow {
  font-size: 0.95rem;
  color: #93c5fd;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.profile-community-banner:hover .comm-banner-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Minimal Logout Link
   ========================================================================== */
.profile-logout-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 16px 14px 16px;
}

.btn-logout-clean {
  background: transparent;
  border: none;
  color: #ef4444;
  opacity: 0.7;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-logout-clean:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
}

/* Edit Profile Modal Dialog / Sheet */
.modal-card-edit-profile {
  max-width: 480px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #0f1e2c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  animation: popInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .modal-card-edit-profile {
    width: 95%;
    padding: 16px;
    max-height: 86vh;
    border-radius: 18px;
  }
}

.profile-edit-form {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.profile-footer-bar {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.btn-profile-back {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-profile-back:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.btn-profile-back:active {
  transform: scale(0.98);
}

.btn-profile-quiz {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 179, 8, 0.25) 100%) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  color: #fef08a !important;
}

.btn-profile-quiz:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3) 0%, rgba(234, 179, 8, 0.35) 100%) !important;
  border-color: #facc15 !important;
}

/* Pub Quiz Modal & Interactive Game */
.pubquiz-modal-card {
  max-width: 480px;
  width: 100%;
}

.pubquiz-hero {
  background: linear-gradient(180deg, #0c1b26 0%, #172c3d 70%, #10212f 100%);
  padding: 14px 18px 20px 18px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  text-align: center;
}

.pubquiz-hero-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fb923c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.pubquiz-hero h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.pubquiz-hero p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.pubquiz-nav-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 4px;
}

.pubquiz-tab-pill {
  flex: 1;
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.pubquiz-tab-pill.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pubquiz-tab-pane {
  padding: 16px;
}

/* Quiz Lobby / Start */
.quiz-lobby-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
}

.quiz-lobby-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.quiz-lobby-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 12px 0;
}

.quiz-cat-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.quiz-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.quiz-cat-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-cat-btn.active {
  background: rgba(249, 115, 22, 0.14);
  border-color: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.2);
}

.quiz-cat-ico {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.quiz-cat-text {
  display: flex;
  flex-direction: column;
}

.quiz-cat-text strong {
  font-size: 0.82rem;
  color: #f8fafc;
}

.quiz-cat-text small {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 1px;
}

.quiz-settings-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.quiz-setting-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
}

.quiz-setting-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
}

.quiz-setting-val {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.78rem;
}

.quiz-setting-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quiz-pill-btn {
  flex: 1 1 auto;
  min-width: 44px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
  font-family: inherit;
  white-space: nowrap;
}

.quiz-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.quiz-pill-btn.active {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
  font-weight: 700;
}

.quiz-lobby-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-meta-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.quiz-meta-pill strong {
  color: #fbbf24;
}

.btn-quiz-cta {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 12px;
}

/* Question Playing Screen */
.quiz-play-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quiz-step-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.quiz-timer-pill {
  font-size: 0.76rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.quiz-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316 0%, #fbbf24 100%);
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-card-question {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 14px;
}

.quiz-q-category {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.quiz-q-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  width: 100%;
}

.quiz-option-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.quiz-option-letter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.quiz-option-btn.correct {
  background: rgba(34, 197, 94, 0.22) !important;
  border-color: #22c55e !important;
  color: #86efac !important;
}

.quiz-option-btn.correct .quiz-option-letter {
  background: #22c55e;
  color: #064e3b;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.quiz-option-btn.wrong .quiz-option-letter {
  background: #ef4444;
  color: #ffffff;
}

.quiz-feedback-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.quiz-feedback-ico {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quiz-feedback-msg {
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.btn-quiz-next {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.86rem;
}

/* Quiz Results Screen */
.quiz-result-hero {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
}

.quiz-result-badge-ico {
  font-size: 3.2rem;
  margin-bottom: 6px;
}

.quiz-result-hero h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.quiz-res-score-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 10px 0;
}

.quiz-res-num {
  font-size: 3rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
}

.quiz-res-total {
  font-size: 1.4rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
}

.quiz-res-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.quiz-unlocked-notice {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.quiz-res-actions {
  display: flex;
  gap: 10px;
}

.quiz-res-actions > button {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Pub Quiz Live Venues Tab */
.pubquiz-venues-intro {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 8px;
  line-height: 1.4;
}

.quiz-day-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quiz-day-filter::-webkit-scrollbar {
  display: none;
}
.quiz-day-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.quiz-day-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}
.quiz-day-chip.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

.pubquiz-venues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pubquiz-venue-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.venue-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.venue-day-badge {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.venue-card-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.btn-venue-show-map {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #38bdf8;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.btn-venue-show-map:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
}

/* Community Modal ("Untappd + Strava dla Warszawy") */
.community-modal-card {
  max-width: 520px;
  width: 100%;
}

.community-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
  margin: 12px 0 14px 0;
  gap: 3px;
}

.comm-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  white-space: nowrap;
}

.comm-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

.feed-header-banner {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comm-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.feed-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: all 0.18s;
}
.feed-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.feed-avatar {
  font-size: 1.6rem;
  flex-shrink: 0;
  cursor: pointer;
}

.feed-info {
  flex: 1;
  min-width: 0;
}

.feed-user-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.feed-username {
  font-weight: 800;
  font-size: 0.84rem;
  color: #fff;
  cursor: pointer;
}
.feed-username:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.feed-handle {
  font-size: 0.72rem;
  color: #94a3b8;
}

.feed-action-text {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.35;
}

.feed-venue-name {
  color: #facc15;
  font-weight: 700;
  cursor: pointer;
}
.feed-venue-name:hover {
  text-decoration: underline;
}

.feed-time {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 3px;
}

.user-search-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.user-search-wrap input {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.search-results-list,
.following-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

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

.user-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user-card-avatar {
  font-size: 1.4rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.user-card-name {
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
}

.user-card-handle {
  font-size: 0.72rem;
  color: #38bdf8;
}

.btn-follow-toggle {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-follow-toggle:hover {
  background: rgba(56, 189, 248, 0.28);
}
.btn-follow-toggle.following {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.btn-follow-toggle.following:hover {
  background: rgba(239, 68, 68, 0.28);
}

.empty-state-hint {
  text-align: center;
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 30px 16px;
  line-height: 1.45;
}

.pubprof-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.pubprof-actions button {
  flex: 1;
}

.pubprof-section-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pubprof-badges-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.pubprof-badge-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
}

.badge-chip-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.badge-chip-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
}

.badge-chip-desc {
  font-size: 0.72rem;
  color: #94a3b8;
}

.feed-avatar-anon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feed-author-anon {
  font-weight: 700;
  color: #f97316;
  font-size: 0.84rem;
}

/* ==========================================================================
   Piwny Kompas / Beer Radar Styles
   ========================================================================== */

.fab-stack-right {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.fab-roulette-float {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.45);
  transition: all 0.2s ease;
}
.fab-roulette-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.65);
}
.fab-roulette-float:active {
  transform: scale(0.96);
}

.fab-pubquiz-float {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.5);
  transition: all 0.2s ease;
}
.fab-pubquiz-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.65);
}

.fab-compass-float {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(234, 88, 12, 0.95));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.45);
  transition: all 0.2s ease;
}
.fab-compass-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.6);
}

.chip-compass {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #fb923c !important;
  border-color: rgba(249, 115, 22, 0.45) !important;
  font-weight: 800 !important;
}
.chip-compass:hover {
  background: rgba(249, 115, 22, 0.3) !important;
}

.compass-modal-backdrop {
  z-index: 20000;
  background: rgba(4, 9, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.compass-modal-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(165deg, rgba(17, 28, 32, 0.96) 0%, rgba(10, 16, 20, 0.98) 100%);
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(249, 115, 22, 0.18);
  border-radius: 20px;
  padding: 22px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.compass-modal-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.compass-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.compass-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compass-badge-icon {
  font-size: 2rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
}

.compass-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.compass-sub-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Filter pills */
.compass-filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.compass-filter-pills::-webkit-scrollbar {
  display: none;
}

.compass-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s;
}

.compass-pill.active {
  background: rgba(249, 115, 22, 0.2);
  border-color: #f97316;
  color: #fed7aa;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
}

/* Radar & Dial Container */
.compass-dial-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 10px 0;
}

.compass-radar-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 28, 30, 0.95) 0%, rgba(6, 12, 14, 0.98) 100%);
  border: 2px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 35px rgba(249, 115, 22, 0.12);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Sweep line animation */
.compass-radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(249, 115, 22, 0.22) 360deg);
  animation: radar-sweep 4s linear infinite;
  pointer-events: none;
}

@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Concentric Rings */
.compass-rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.compass-rings .ring-1 { width: 60px; height: 60px; }
.compass-rings .ring-2 { width: 120px; height: 120px; }
.compass-rings .ring-3 { width: 175px; height: 175px; }

/* Cardinal Directions */
.compass-cardinal {
  position: absolute;
  font-family: monospace;
  font-weight: 800;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.compass-north { top: 8px; left: 50%; transform: translateX(-50%); color: #f97316; font-size: 0.9rem; }
.compass-south { bottom: 8px; left: 50%; transform: translateX(-50%); }
.compass-east { right: 10px; top: 50%; transform: translateY(-50%); }
.compass-west { left: 10px; top: 50%; transform: translateY(-50%); }

/* Animated Pointer Needle */
.compass-needle-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  transform: rotate(0deg);
  transition: transform 0.22s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.needle-arrow {
  color: #f97316;
  font-size: 1.6rem;
  line-height: 1;
  margin-top: 14px;
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.9));
  animation: pulse-arrow 1.6s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.needle-beer-icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 2px;
}

.needle-line {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, #f97316, transparent);
  margin-top: 2px;
}

.compass-center-core {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* Floating HUD Metrics */
.compass-hud {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
}

.hud-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hud-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.hud-val.highlight {
  color: #34d399;
}

/* Target Venue Panel */
.compass-venue-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compass-panel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-compass-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-compass-nav:hover {
  background: rgba(249, 115, 22, 0.25);
  border-color: #f97316;
}

.compass-index-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.compass-target-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.target-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.target-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.target-district-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.14);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.target-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.target-beer {
  color: #f1f5f9;
  font-weight: 600;
}

/* Actions Row */
.compass-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-compass-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-compass-action.btn-gmaps {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.btn-compass-action.btn-gmaps:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
  transform: translateY(-1px);
}

.btn-compass-action.btn-show-map {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-compass-action.btn-show-map:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-compass-action.btn-stamp {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}
.btn-compass-action.btn-stamp:hover {
  background: rgba(52, 211, 153, 0.25);
}

.compass-tip-bar {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  padding-top: 2px;
}

@media (max-width: 640px) {
  .fab-roulette-float span:not(.roulette-float-icon),
  .fab-pubquiz-float span:not(.quiz-float-icon),
  .fab-compass-float span:not(.compass-icon) {
    display: none !important;
  }
  .fab-roulette-float,
  .fab-pubquiz-float,
  .fab-compass-float {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 20px;
  }
}

/* ==========================================================================
   Comprehensive Filter Modal (Prices, Hours, Vibe, Districts) & Sticky Pill
   ========================================================================== */
.btn-filter-pill {
  position: -webkit-sticky !important;
  position: sticky !important;
  left: 0 !important;
  z-index: 4 !important;
  background: #14221f !important;
  background: linear-gradient(135deg, #1b2d29, #13211e) !important;
  border: 1px solid rgba(249, 115, 22, 0.45) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  gap: 6px !important;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(249, 115, 22, 0.2) !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.btn-filter-pill:hover {
  background: linear-gradient(135deg, #243a35, #192b27) !important;
  border-color: rgba(249, 115, 22, 0.7) !important;
  transform: translateY(-1px);
}

.btn-filter-pill.has-filters {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  border-color: #f97316 !important;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.6), 0 0 14px var(--primary-glow) !important;
}

.filter-active-count-badge {
  background: #fff;
  color: #c2410c;
  font-size: 0.68rem;
  font-weight: 900;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.filter-modal-card {
  max-width: 480px;
  padding: 20px 18px 20px 18px;
}

.filter-modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Price Cards Grid */
.filter-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.filter-price-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.filter-price-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-price-card .price-card-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.filter-price-card .price-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.filter-price-card .price-card-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.filter-price-card.active {
  background: rgba(249, 115, 22, 0.16);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

.filter-price-card.tier-low.active {
  background: rgba(34, 197, 94, 0.16);
  border-color: var(--price-low);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.filter-price-card.tier-mid.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--price-mid);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.filter-price-card.tier-high.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: var(--price-high);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* Slider */
.filter-slider-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 4px;
}

.filter-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.filter-slider-header strong {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
}

.filter-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  outline: none;
}

.filter-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 4px;
}

/* Toggle Buttons */
.filter-toggle-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.filter-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.filter-toggle-btn .toggle-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.filter-toggle-btn .toggle-text {
  flex: 1;
  min-width: 0;
}

.filter-toggle-btn .toggle-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.filter-toggle-btn .toggle-desc {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.filter-toggle-btn .toggle-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-toggle-btn.active {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.45);
}

.filter-toggle-btn.active .toggle-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* District Chips inside modal */
.filter-district-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-dist-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.filter-dist-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.filter-dist-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Modal Footer */
.filter-modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-filter-reset {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn-filter-reset:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-filter-apply {
  flex: 1;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}

.btn-filter-apply:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ==========================================================================
   Virtual Toast / Cheers ("Stuknij się kuflem")
   ========================================================================== */
.btn-pubprof-toast {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-pubprof-toast:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}
.btn-pubprof-toast:active {
  transform: scale(0.96);
}

.btn-feed-cheers {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-family: inherit;
}
.btn-feed-cheers:hover {
  background: rgba(245, 158, 11, 0.26);
  color: #ffffff;
  transform: scale(1.03);
}

.cheers-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cheers-backdrop-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  animation: cheersDimFade 1.8s ease forwards;
}

.cheers-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cheers-clink-stage {
  position: relative;
  width: 260px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cheers-mug {
  font-size: 4.8rem;
  position: absolute;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}

.cheers-left {
  left: 20px;
  animation: cheersLeftClink 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cheers-right {
  right: 20px;
  animation: cheersRightClink 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cheers-spark {
  font-size: 3rem;
  position: absolute;
  z-index: 3;
  animation: cheersSparkPop 1.8s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.cheers-toast-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #f59e0b;
  color: #fde68a;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.45), 0 4px 12px rgba(0, 0, 0, 0.6);
  animation: cheersBannerSlide 1.8s ease forwards;
  text-align: center;
  max-width: 90vw;
}

@keyframes cheersLeftClink {
  0% { transform: translateX(-60px) rotate(-35deg) scale(0.8); opacity: 0; }
  25% { transform: translateX(-15px) rotate(-10deg) scale(1.1); opacity: 1; }
  40% { transform: translateX(25px) rotate(18deg) scale(1.28); }
  60% { transform: translateX(5px) rotate(0deg) scale(1.05); }
  85% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateY(40px) scale(0.9); opacity: 0; }
}

@keyframes cheersRightClink {
  0% { transform: translateX(60px) rotate(35deg) scale(0.8); opacity: 0; }
  25% { transform: translateX(15px) rotate(10deg) scale(1.1); opacity: 1; }
  40% { transform: translateX(-25px) rotate(-18deg) scale(1.28); }
  60% { transform: translateX(-5px) rotate(0deg) scale(1.05); }
  85% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateY(40px) scale(0.9); opacity: 0; }
}

@keyframes cheersSparkPop {
  0%, 35% { transform: scale(0); opacity: 0; }
  40% { transform: scale(1.7); opacity: 1; filter: drop-shadow(0 0 18px #f59e0b); }
  65% { transform: scale(1.1); opacity: 0.8; }
  85% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes cheersBannerSlide {
  0% { transform: translateY(20px) scale(0.9); opacity: 0; }
  35% { transform: translateY(0) scale(1.04); opacity: 1; }
  85% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}

@keyframes cheersDimFade {
  0% { opacity: 0; }
  30% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==========================================================================
   Instagram Story Card Preview Modal
   ========================================================================== */
.modal-card-story {
  max-width: 440px;
  width: 92%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  background: #0f1016;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

.story-preview-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
  overflow: hidden;
  max-height: 60vh;
}

.story-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14);
  background: #161722;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.story-loading-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #11131b;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
}

.story-spinner-icon {
  font-size: 2.2rem;
  animation: spinMug 1.5s infinite ease-in-out;
}

@keyframes spinMug {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.story-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.story-actions-bar button {
  padding: 12px 8px;
  font-size: 0.82rem;
}

/* ==========================================================================
   🎲 Piwna Ruletka ("Wylosuj bar na dziś")
   ========================================================================== */
.modal-card-roulette {
  max-width: 480px;
  width: 92%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: rgba(15, 20, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(244, 63, 94, 0.35);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(244, 63, 94, 0.2);
  box-sizing: border-box;
  overflow: hidden;
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-icon-roulette {
  background: linear-gradient(135deg, #f43f5e, #ec4899) !important;
}

.roulette-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(92vh - 80px);
}

.roulette-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.roulette-group-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roulette-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.roulette-chips-scroll::-webkit-scrollbar {
  display: none;
}

.roulette-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.roulette-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.roulette-chip.active {
  background: rgba(244, 63, 94, 0.22);
  border-color: #f43f5e;
  color: #fda4af;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

/* Slot machine drum stage */
.roulette-slot-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 6px;
}

.roulette-indicator-top,
.roulette-indicator-bottom {
  font-size: 13px;
  line-height: 1;
  color: #f43f5e;
  text-shadow: 0 0 8px #f43f5e;
  z-index: 5;
  animation: pulseIndicator 1.2s infinite ease-in-out;
}

.roulette-indicator-top {
  margin-bottom: 3px;
}

.roulette-indicator-bottom {
  margin-top: 3px;
}

@keyframes pulseIndicator {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(2px); opacity: 1; text-shadow: 0 0 14px #f43f5e; }
}

.roulette-drum-viewport {
  width: 100%;
  height: 94px;
  background: linear-gradient(180deg, #0b0f19 0%, #151b2c 50%, #0b0f19 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.4);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.8), inset 0 -8px 16px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244, 63, 94, 0.15);
}

.roulette-drum-viewport::before,
.roulette-drum-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  pointer-events: none;
  z-index: 2;
}

.roulette-drum-viewport::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(11, 15, 25, 0.9), transparent);
}

.roulette-drum-viewport::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.9), transparent);
}

.roulette-drum-reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.roulette-reel-card {
  height: 94px;
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  text-align: center;
  box-sizing: border-box;
}

.roulette-reel-idle .reel-idle-icon {
  font-size: 26px;
  margin-bottom: 2px;
}

.roulette-reel-idle .reel-idle-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.roulette-reel-idle .reel-idle-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.roulette-item-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  line-height: 1.2;
}

.roulette-item-meta {
  font-size: 0.78rem;
  color: #fb923c;
  font-weight: 700;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.roulette-item-price {
  color: #4ade80;
  font-weight: 800;
}

/* Result Card */
.roulette-result-card {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.14) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.55);
  border-radius: 18px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 63, 94, 0.25);
  animation: rouletteResultIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rouletteResultIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.roulette-result-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  color: #fda4af;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(244, 63, 94, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.roulette-result-alert {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef08a;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  margin: 6px auto 10px;
  line-height: 1.35;
  text-align: center;
  max-width: 90%;
}

.roulette-result-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin: 2px 0 6px;
  line-height: 1.2;
}

.roulette-result-price-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.roulette-price-pill {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
}

.roulette-beer-name {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.roulette-result-meta {
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.roulette-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 12px;
}

.roulette-tag-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.roulette-result-buttons {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}

.btn-roulette-action-map {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.45);
  transition: all 0.15s ease;
}

.btn-roulette-action-map:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.65);
}

.btn-roulette-action-share {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  padding: 10px 12px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-roulette-action-share:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Spin Button */
.roulette-spin-container {
  margin-top: 4px;
}

.btn-spin-roulette {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #d946ef 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-spin-roulette:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.7);
}

.btn-spin-roulette:active {
  transform: scale(0.97);
}

.btn-spin-roulette:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spin-roulette .spin-dice {
  font-size: 1.25rem;
  animation: bounceDice 1s infinite alternate;
}

@keyframes bounceDice {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-3px) rotate(15deg); }
}

/* ==========================================================================
   🗺️ Pub Crawl Live Tracker & Celebration Modal
   ========================================================================== */
.modal-card-celebration {
  position: relative;
  max-width: 480px;
  width: 92%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0d121f;
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(250, 204, 21, 0.2);
  box-sizing: border-box;
  overflow: hidden;
  padding: 24px 20px 20px;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.celebration-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.celebration-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  max-height: calc(92vh - 60px);
}

.celebration-trophy-badge {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 8px;
  animation: bounceTrophy 1.3s infinite ease-in-out;
}

@keyframes bounceTrophy {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); text-shadow: 0 0 20px rgba(250, 204, 21, 0.8); }
}

.celebration-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}

.celebration-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 16px;
  max-width: 90%;
}

.celebration-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}

.celebration-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.celebration-stat-box .stat-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fb923c;
}

.celebration-stat-box .stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 2px;
  text-transform: uppercase;
}

.celebration-badge-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(249, 115, 22, 0.12));
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-sizing: border-box;
  margin-bottom: 14px;
}

.celebration-badge-card .badge-icon-wrap {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.celebration-badge-card .badge-tag {
  font-size: 0.65rem;
  font-weight: 900;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.celebration-badge-card .badge-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  margin: 1px 0;
}

.celebration-badge-card .badge-desc {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.25;
}

.celebration-stops-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.celebration-stop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  text-align: left;
}

.celebration-stop-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.celebration-stop-check {
  color: #4ade80;
  font-weight: 900;
  font-size: 0.9rem;
}

.celebration-stop-name {
  color: #fff;
  font-weight: 700;
}

.celebration-stop-price {
  color: #4ade80;
  font-weight: 800;
  font-size: 0.76rem;
}

.celebration-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-celebration-share {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 18px !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-celebration-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.65);
}

.btn-celebration-story {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  padding: 10px 16px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-celebration-story:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

.btn-celebration-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s;
}

.btn-celebration-close:hover {
  color: #fff;
}