/* ============================================================
   HANGOUT — Phase 1 Design System
   Dark entertainment theme · Mobile-first
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --bg-hover: #1c1c28;
  --border: #2a2a3a;
  --text: #f5f5f7;
  --text-muted: #9a9aad;
  --accent: #a855f7;       /* electric purple */
  --accent-2: #ec4899;     /* neon pink */
  --accent-3: #f97316;     /* orange */
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #eab308;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 60px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #c084fc; }

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo:hover { color: var(--text); }

.logo-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 9px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.logo-text { font-size: 1.05rem; }

.logo-sm .logo-icon { width: 28px; height: 28px; font-size: 14px; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }

.inline-form { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  font-family: inherit;
  text-decoration: none;
  color: var(--text);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(168,85,247,.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(168,85,247,.5); color: #fff; }

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(18,18,26,.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 6px 10px;
  min-width: 56px;
}
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--accent); }

.nav-icon { font-size: 1.25rem; line-height: 1; }

.bottom-nav-post .post-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 48px;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(168,85,247,.18), transparent 70%);
  pointer-events: none;
}

.location-bar { margin-bottom: 20px; }

.btn-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.btn-location:hover { border-color: var(--accent); }

.search-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}

.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.search-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

.search-btn { flex-shrink: 0; }

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

.filter-select {
  flex: 1;
  min-width: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--accent); }

/* ---------- Sections ---------- */
.section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }

.section-cta {
  padding: 48px 0 64px;
}

/* ---------- Auth ---------- */
.auth-section {
  min-height: calc(100dvh - var(--header-h) - var(--bottom-nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header .logo { justify-content: center; margin-bottom: 20px; }

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-form .form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.optional { font-weight: 400; opacity: 0.7; }

.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.form-control:focus { border-color: var(--accent); }

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-row.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.link-sm { font-size: 0.85rem; }

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

.role-pill {
  flex: 1;
  min-width: 140px;
}

.role-pill input { display: none; }

.role-pill span {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.role-pill input:checked + span {
  border-color: var(--accent);
  background: rgba(168,85,247,.12);
  color: var(--accent);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Admin ---------- */
.admin-section { padding: 32px 0 64px; }

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-admin { background: rgba(168,85,247,.2); color: var(--accent); }
.badge-business { background: rgba(249,115,22,.2); color: var(--accent-3); }
.badge-individual { background: rgba(34,197,94,.15); color: var(--success); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  max-width: 90vw;
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.toast-success { background: #14532d; color: #bbf7d0; border: 1px solid #166534; }
.toast-error { background: #7f1d1d; color: #fecaca; border: 1px solid #991b1b; }

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}
.toast-close:hover { opacity: 1; }

/* ---------- Error pages ---------- */
.error-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Phase 2: Event cards & discovery ---------- */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .event-grid { grid-template-columns: repeat(3, 1fr); }
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168,85,247,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  color: inherit;
}

.event-card-media {
  height: 120px;
  background: linear-gradient(135deg, #1a1028, #12121a 60%, #1a1220);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  position: relative;
}
.event-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(239,68,68,.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.event-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.event-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.event-card-venue {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
}
.event-card-price {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent);
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168,85,247,.15);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 600;
}
.chip-sm { padding: 2px 8px; font-size: 0.7rem; margin: 2px; }

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.btn-location-secondary {
  margin-left: 8px;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Map page */
.map-page {
  position: relative;
  height: calc(100dvh - var(--header-h) - var(--bottom-nav-h));
}
@media (min-width: 768px) {
  .map-page { height: calc(100dvh - var(--header-h)); }
}
.map-toolbar {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 500;
}
.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(18,18,26,.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.hangout-map {
  width: 100%;
  height: 100%;
  background: #0d0d14;
  z-index: 1;
}
.map-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  pointer-events: none;
}
.map-drawer-inner {
  pointer-events: auto;
  margin: 0 12px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  max-height: 40%;
  overflow: auto;
  box-shadow: var(--shadow);
}

/* Event detail */
.event-detail { padding-bottom: 40px; }
.event-hero {
  position: relative;
  margin-bottom: 20px;
}
.event-hero-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #2a1450, #12121a);
  display: grid;
  place-items: center;
}
.event-hero-icon { font-size: 4rem; }
.event-hero-content {
  margin-top: -40px;
  position: relative;
  z-index: 1;
}
.event-hero-content h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 10px 0 8px;
}
.event-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.event-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.price-tag {
  margin-left: auto;
  font-weight: 800;
  color: var(--accent);
  font-size: 1.05rem;
}
.event-description h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.event-description p {
  color: var(--text-muted);
  line-height: 1.6;
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.event-mini-map {
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 8px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow: auto;
}
.modal-card h3 { margin-bottom: 12px; }
.place-results { margin: 12px 0; }
.place-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  margin-bottom: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}
.place-result:hover { border-color: var(--accent); }

.mt-2 { margin-top: 0.5rem; }

/* Leaflet dark-ish tiles still fine; tweak popup */
.leaflet-popup-content-wrapper {
  background: #16161f;
  color: #f5f5f7;
  border-radius: 12px;
}
.leaflet-popup-tip { background: #16161f; }

/* Phase 3 profiles */
.profile-avatar-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--bg);
  background: var(--bg-card);
  flex-shrink: 0;
}
.profile-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 0.7em;
  vertical-align: middle;
  margin-left: 4px;
}
.profile-hero-content { margin-top: -48px; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* Phase 5 social */
.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.social-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(168,85,247,.12);
}
.comments-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.comment-form { margin-bottom: 20px; }
.comments-list { display: flex; flex-direction: column; gap: 14px; }
.comment {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.comment-reply {
  margin-top: 10px;
  margin-left: 16px;
  background: var(--bg);
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.comment-body { font-size: 0.92rem; color: var(--text); margin-bottom: 6px; }
.comment-meta { display: flex; gap: 12px; }

/* Phase 7 live */
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(239,68,68,.5);
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.crowd-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 14px 12px;
}
.crowd-meter {
  margin: 12px 0 20px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.crowd-levels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.crowd-levels button {
  flex: 1;
  min-width: 56px;
  padding: 8px 4px;
  font-size: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.crowd-levels button:hover { border-color: var(--accent); }
.crowd-meter-bar[data-level="5"] .crowd-label { color: #f87171; }
.crowd-meter-bar[data-level="4"] .crowd-label { color: #fb923c; }
.crowd-meter-bar[data-level="3"] .crowd-label { color: #fbbf24; }
.crowd-meter-bar[data-level="2"] .crowd-label { color: #a3e635; }
.crowd-meter-bar[data-level="1"] .crowd-label { color: #94a3b8; }
.checkin-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.notif-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  font-size: 0.65rem;
  line-height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  vertical-align: top;
  margin-left: 2px;
}
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: block;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}
.notif-item.is-unread { border-color: var(--accent); background: rgba(168,85,247,.08); }
.notif-title { font-weight: 600; font-size: 0.95rem; }
.notif-body { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.notif-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

.gallery-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.gallery-img {
  height: 120px;
  width: auto;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.reviews-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.reviews-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }

.pwa-install-bar {
  position: fixed;
  left: 12px; right: 12px; bottom: 72px;
  z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  font-size: 0.9rem;
}
.pwa-install-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (min-width: 768px) {
  .pwa-install-bar { left: auto; right: 24px; bottom: 24px; max-width: 380px; }
}


/* Install App — header (not a floating toast) */
button.nav-install-app {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}
button.nav-install-app:hover {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
}
.nav-install-app-mobile {
  display: none;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .nav-install-app-mobile:not([hidden]) {
    display: inline-flex;
  }
  button.nav-install-app {
    display: none !important;
  }
}
.header-inner {
  gap: 10px;
}
