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

:root {
  --bg: #0A0A0A;
  --bg-elevated: #141414;
  --bg-card: #1A1A1A;
  --bg-sheet: #161616;
  --surface: #111111;
  --orange: #FF5A1F;
  --orange-glow: rgba(255, 90, 31, 0.15);
  --green-live: #22C55E;
  --green-glow: rgba(34, 197, 94, 0.2);
  --yellow: #FACC15;
  --blue-quiet: #3B82F6;
  --blue-quiet-glow: rgba(59, 130, 246, 0.15);
  --red: #EF4444;
  --text-primary: #F5F5F5;
  --text-secondary: #A3A3A3;
  --text-muted: #6B6B6B;
  --border: #2A2A2A;
  --border-light: #333333;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none;
}

/* ═══════════════════════════════════════════════
   APP SHELL — black bg with inset map card
   ═══════════════════════════════════════════════ */
.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #000;
  padding: 64px 12px 12px;
}

/* ═══════════════════════════════════════════════
   NAV BAR — Figma-matched, responsive top/bottom
   ═══════════════════════════════════════════════ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.85);
  pointer-events: none;
}
.nav-bar > * { pointer-events: all; }

.nav-bar__menu {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  border: 0.667px solid #222;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-bar__menu:hover { border-color: #444; }
.nav-bar__menu svg { width: 18px; height: 18px; }

.nav-bar__logo {
  display: flex;
  align-items: center;
}
.nav-bar__logo svg { height: 20px; width: auto; }

.nav-bar__spacer { flex: 1; }

.nav-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-bar__stars {
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: #292929;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
}
.nav-bar__stars:hover {
  background: #333;
  transform: scale(1.03);
}

.nav-bar__bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #292929;
  border: 0.667px solid #292929;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-bar__bell:hover { background: #333; }
.nav-bar__bell svg { width: 18px; height: 18px; }
.nav-bar__bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #EF4444;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.nav-bar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  flex-shrink: 0;
}
.nav-bar__avatar:hover { transform: scale(1.08); }

.nav-bar__cta {
  padding: 8px 16px;
  border-radius: 100px;
  background: #292929;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
}
.nav-bar__cta:hover { background: #333; }

/* ── Mobile filters: two floating dropdowns ── */
.mobile-filters {
  display: none;
}

/* ── Mobile ≤480px: nav-bar moves to bottom, mobile filters appear ── */
@media (max-width: 480px) {
  .app {
    padding: 12px 12px calc(76px + env(safe-area-inset-bottom, 0px) + 12px) 12px;
  }
  .nav-bar {
    top: auto;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    padding-bottom: calc(12px + max(0px, env(safe-area-inset-bottom)));
  }
  .nav-bar__logo { flex: 0; }
  .pulse-filter { display: none !important; }
  .mobile-filters {
    display: flex;
    position: fixed;
    top: max(16px, env(safe-area-inset-top, 16px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    gap: 8px;
    pointer-events: none;
  }
  .mobile-filters > * { pointer-events: all; }
  .mobile-filter-select {
    padding: 8px 28px 8px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(12px);
    color: var(--text-secondary);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: var(--font-body);
    transition: var(--transition);
  }
  .mobile-filter-select:focus {
    outline: none;
    border-color: var(--orange);
    color: var(--orange);
  }
  .mobile-filter-select.active {
    border-color: var(--orange);
    color: var(--orange);
    background-color: rgba(255, 90, 31, 0.1);
  }
  .mobile-filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
  }
  .locate-btn { bottom: 20px; }
  .nudge-banner { top: 0; border-radius: 24px 24px 0 0; }
  .sheet__body { padding-bottom: 100px; }
}

/* ── Check-in Nudge Banner ── */
.nudge-banner {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(14,14,14,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.nudge-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nudge-banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.nudge-banner__text {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}

.nudge-banner__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.nudge-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nudge-btn {
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.nudge-btn--stay {
  background: var(--green-live);
  color: white;
}

.nudge-btn--stay:hover { background: #1DB954; }

.nudge-btn--leave {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.nudge-btn--leave:hover { border-color: var(--text-secondary); color: var(--text-secondary); }

/* ── Map ── */
.map-view {
  flex: 1;
  position: relative;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
}

.mapboxgl-ctrl-logo { pointer-events: none !important; }

#map {
  width: 100%;
  height: 100%;
}

/* ── Pulse filter bar (inside map-view) ── */
.pulse-filter {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.pulse-filter > * { pointer-events: all; }

.filter-chip {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-chip:hover { border-color: var(--text-muted); }

.filter-chip.active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 90, 31, 0.1);
}

.filter-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.filter-chip--nearme.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.1);
}

.filter-chip--watching.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.1);
}

.radius-select-wrapper {
  position: relative;
}

.radius-select {
  padding: 8px 32px 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-family: var(--font-body);
}

.radius-select:hover { border-color: var(--text-muted); }

.radius-select:focus {
  outline: none;
  border-color: var(--yellow);
  color: var(--yellow);
}

.radius-select.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background-color: rgba(250, 204, 21, 0.1);
}

.radius-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ── Near me button ── */
.locate-btn {
  position: absolute;
  bottom: 24px;
  right: 16px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20,20,20,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.locate-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ═══════════════════════════════════════════════
   BOTTOM SHEET
   ═══════════════════════════════════════════════ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sheet-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 301;
  background: var(--bg-sheet);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.bottom-sheet.open { transform: translateY(0); }

.sheet__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 20px 32px;
  min-height: 0;
}

/* Court detail header */
.court-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.court-header__info { flex: 1; }

.court-header__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}

.court-header__address {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.court-header__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.court-tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.court-tag--outdoor { background: rgba(34,197,94,0.1); color: var(--green-live); border: 1px solid rgba(34,197,94,0.2); }
.court-tag--indoor { background: rgba(59,130,246,0.1); color: #3B82F6; border: 1px solid rgba(59,130,246,0.2); }
.court-tag--lit { background: rgba(250,204,21,0.1); color: var(--yellow); border: 1px solid rgba(250,204,21,0.2); }

.court-header__status {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.court-header__status-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.btn--sheet-close {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
}
.btn--sheet-close:hover { border-color: #666; color: var(--text-primary); }

.status-dot-lg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.status-dot-lg--active { background: var(--green-glow); }
.status-dot-lg--packed { background: var(--orange-glow); }
.status-dot-lg--quiet { background: rgba(59, 130, 246, 0.15); }

.status-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-label--active { color: var(--green-live); }
.status-label--packed { color: var(--orange); }
.status-label--quiet { color: #3B82F6; }

/* Mobile: stack sheet status items vertically (X → bell → status) */
@media (max-width: 480px) {
  .court-header__status {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  /* Reorder: close=1, bell=2, status=3 (HTML is bell, status, close) */
  .court-header__status .btn--watch { order: 2; }
  .court-header__status .court-header__status-group { order: 3; }
  .court-header__status .btn--sheet-close { order: 1; }
  /* Limit court name to 2 lines on mobile */
  .court-header__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Pulse stats */
.pulse-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

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

.pulse-stat__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.pulse-stat__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Forecast chart */
.forecast-section { margin-bottom: 24px; }

.forecast-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.forecast-chart-container { display: flex; align-items: stretch; }

.forecast-yaxis {
  display: flex; flex-direction: column; justify-content: space-between;
  padding-bottom: 22px; padding-right: 8px; height: 100px; flex-shrink: 0;
}

.forecast-yaxis__label {
  font-family: var(--font-mono); font-size: 8px; font-weight: 500;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
  line-height: 1; text-align: right; white-space: nowrap;
}

.forecast-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 100px; padding-bottom: 22px; position: relative; flex: 1;
}

.forecast-chart::before, .forecast-chart::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--border); pointer-events: none; z-index: 0;
}
.forecast-chart::before { bottom: calc(22px + 78px * 0.5); }
.forecast-chart::after { bottom: calc(22px + 78px * 0.85); }

.forecast-bar-wrapper {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; height: 100%; justify-content: flex-end; position: relative;
  cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 1;
}

.forecast-bar {
  width: 100%; border-radius: 0; min-height: 4px;
  transition: filter 0.15s ease;
  border: 1px solid #0077F6;
  background: transparent;
}

.forecast-bar-wrapper:hover .forecast-bar,
.forecast-bar-wrapper.tapped .forecast-bar { filter: brightness(1.25); }

.forecast-bar--today { background: #0077F6; }

.forecast-label { font-size: 9px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.forecast-label--now { color: #fff; }

.forecast-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 10px 14px; min-width: 150px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.forecast-bar-wrapper:hover .forecast-tooltip,
.forecast-bar-wrapper.tapped .forecast-tooltip {
  opacity: 1; transform: translateX(-50%) scale(1);
}

.forecast-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 5px solid transparent;
  border-top-color: var(--border-light);
}

.forecast-tooltip__day { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }
.forecast-tooltip__level { font-size: 11px; font-weight: 600; margin-bottom: 4px; color: #0077F6; }
.forecast-tooltip__peak { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); }

.forecast-yaxis__label--active { color: #fff; }

/* Checked-in players */
.checkins-section { margin-bottom: 24px; }

.checkin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkin-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.checkin-player:hover {
  border-color: var(--border-light);
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════
   PLAYER CARD MODAL
   ═══════════════════════════════════════════════ */
.player-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.player-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.player-modal {
  background: var(--bg-sheet);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.player-modal-overlay.active .player-modal {
  transform: translateY(0);
}

.player-modal__header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.player-modal__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8C42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.player-modal__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.player-modal__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.player-modal__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-glow);
  padding: 3px 8px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 4px;
}

.player-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.player-modal__close:hover { border-color: var(--text-secondary); color: var(--text-primary); }

.player-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.player-modal__stat {
  background: var(--bg-sheet);
  padding: 16px;
  text-align: center;
}

.player-modal__stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.player-modal__stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.player-modal__ratings {
  padding: 16px 20px;
}

.player-modal__rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.player-modal__rating-row:last-child { border-bottom: none; }

.player-modal__rating-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.player-modal__rating-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.player-modal__history {
  padding: 0 20px 20px;
}

.player-modal__history-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.player-modal__game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.player-modal__game:last-child { border-bottom: none; }

.player-modal__game-result {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.player-modal__game-result--w { background: var(--green); }
.player-modal__game-result--l { background: var(--red); }
.player-modal__game-result--d { background: var(--text-muted); }

.player-modal__game-detail { flex: 1; color: var(--text-secondary); }
.player-modal__game-time { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.checkin-player__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8C42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.checkin-player__info { flex: 1; }

.checkin-player__name {
  font-size: 14px;
  font-weight: 600;
}

.checkin-player__meta {
  font-size: 11px;
  color: var(--text-muted);
}

.checkin-player__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  background: var(--orange-glow);
  padding: 3px 8px;
  border-radius: 100px;
}

.empty-checkins {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.checkin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.checkin-loading__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: sheetSpin 0.7s linear infinite;
}

@keyframes sheetSpin {
  to { transform: rotate(360deg); }
}

/* Directions button */
/* ── Court Leaderboard ── */
.leaderboard-section { margin-top: 20px; margin-bottom: 24px; }
.leaderboard-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.leaderboard-title-row .forecast-title { margin-bottom: 0; }
.leaderboard-info-btn {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--text-muted);
  background: none; color: var(--text-muted); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: var(--font-body); line-height: 1; padding: 0;
}
.leaderboard-info-btn:hover { border-color: var(--orange); color: var(--orange); }
.leaderboard-tooltip {
  display: none; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
  font-size: 12px; color: var(--text-secondary); line-height: 1.5;
}
.leaderboard-tooltip.visible { display: block; }
.leaderboard-tooltip strong { color: var(--text-primary); }
.leaderboard-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer;
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-rank {
  width: 22px; text-align: center; font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
}
.leaderboard-rank--1 { color: #FFD700; }
.leaderboard-rank--2 { color: #C0C0C0; }
.leaderboard-rank--3 { color: #CD7F32; }
.leaderboard-avatar {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
  background: var(--border);
}
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-stats { font-size: 11px; color: var(--text-muted); }
.leaderboard-score {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--orange); flex-shrink: 0;
}
.leaderboard-empty {
  text-align: center; padding: 16px 0; font-size: 13px;
  color: var(--text-muted);
}

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

.court-report {
  text-align: center;
  padding: 8px 0 4px;
}

.court-report__btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  opacity: 0.7;
  transition: var(--transition);
}

.court-report__btn:hover { opacity: 1; color: var(--orange); }

.court-report__done {
  color: var(--text-muted);
  font-size: 12px;
  opacity: 0.6;
}

/* ── Sign-Up Modal ── */
.signup-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.signup-modal.active { display: flex; }

.signup-modal__card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px 28px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  position: relative;
}

.signup-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.signup-modal__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 12px;
}

.signup-modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.signup-modal__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

.signup-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 10px;
  border: none;
}

.signup-modal__btn--google {
  background: white;
  color: #333;
}

.signup-modal__btn--google:hover { background: #f0f0f0; }

.signup-modal__btn--apple {
  background: #000;
  color: white;
  border: 1px solid #333;
}

.signup-modal__btn--apple:hover { background: #1a1a1a; }

.signup-modal__footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Player Sheet / Career Badge Area ── */
.player-sheet__badge,
.career-badge {
  text-align: center;
  padding: 0 16px 12px;
}
.career-badge {
  margin-bottom: 8px;
  padding-top: 16px;
  padding-bottom: 4px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--orange-glow);
  border: 1px solid rgba(255, 90, 31, 0.3);
  color: var(--orange);
}
.badge-court {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Report Modal ── */
.report-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.report-modal.active { display: flex; }

.report-modal__card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 380px;
}

.report-modal__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.report-modal__desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.report-modal__options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.report-modal__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.report-modal__option:hover { border-color: var(--orange); }
.report-modal__option.selected { border-color: var(--orange); background: rgba(255,90,31,0.1); }

.report-modal__note {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-body);
  resize: none;
  margin-bottom: 16px;
}

.report-modal__note::placeholder { color: var(--text-muted); }
.report-modal__note:focus { outline: none; border-color: var(--orange); }

.report-modal__actions { display: flex; gap: 10px; }
.report-modal__actions .btn { flex: 1; padding: 12px; font-size: 14px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}

.btn--primary {
  background: var(--orange);
  color: white;
}

.btn--primary:hover {
  background: #FF6B35;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 90, 31, 0.3);
}

.btn--primary:active { transform: translateY(0); }

.btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn--secondary:hover { border-color: var(--text-muted); }

.btn--watch {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.btn--watch svg { flex-shrink: 0; }
.btn--watch:hover { border-color: var(--yellow); }
.btn--watch-active { border-color: var(--yellow); background: rgba(250,204,21,0.1); }

.btn--success {
  background: var(--green-live);
  color: white;
}

.btn--success:hover { background: #1DAE51; }

.btn--checkout {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn--checkout:hover { background: rgba(239,68,68,0.1); }

/* ═══════════════════════════════════════════════
   CHECK-IN CONFIRMATION TOAST
   ═══════════════════════════════════════════════ */
.toast {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 500;
  background: var(--bg-card);
  border: 1px solid var(--green-live);
  border-radius: var(--radius);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  max-width: 90%;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

@media (max-width: 480px) {
  .toast {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(-20px);
    max-width: none;
    width: auto;
  }
  .toast.visible {
    transform: translateX(0) translateY(0);
  }
}

.toast__icon { font-size: 18px; }
.toast__text span { color: var(--green-live); }

/* ═══════════════════════════════════════════════
   PROFILE SCREEN
   ═══════════════════════════════════════════════ */
.profile-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  padding: 0 0 32px;
}

.profile-screen.open { transform: translateX(0); }

.profile-back {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 16px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  width: 100%;
  font-family: var(--font-body);
}

.profile-back:hover { color: var(--text-primary); }

.profile-content { padding: 0 20px; }

.profile-card {
  text-align: center;
  padding: 32px 0 28px;
}

.profile-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8C42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: white;
  margin: 0 auto 16px;
  border: 3px solid rgba(255,255,255,0.1);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.profile-card__avatar:hover::after {
  content: '📷';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 50%;
}

.profile-card__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.profile-card__location {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-card__founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--orange-glow);
  border: 1px solid rgba(255, 90, 31, 0.3);
  color: var(--orange);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

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

.profile-stat__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.profile-stat__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.profile-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 32px;
  margin-bottom: 14px;
}

/* History timeline */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.history-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.history-item__info { flex: 1; }

.history-item__title {
  font-size: 14px;
  font-weight: 600;
}

.history-item__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.history-item__time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Watched courts */
.watched-courts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.watched-court-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.watched-court-item:hover { border-color: var(--yellow); }

.watched-court-item__icon {
  font-size: 16px;
  flex-shrink: 0;
}

.watched-court-item__name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watched-court-item__type {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.watched-court-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.watched-court-item__remove:hover { color: var(--orange); background: rgba(255,90,31,0.1); }

.watched-courts-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* Phase 2 teaser */
.phase2-teaser {
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.phase2-teaser__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.phase2-teaser__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   CAREER CARD
   CSS-composited: cover bg + cutout PNG overlay
   ═══════════════════════════════════════════════ */
.career-card-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.career-card {
  width: 100%;
  max-width: 343px;
  aspect-ratio: 343 / 578;
  border-radius: 16px;
  border: 1px solid #F74501;
  box-shadow: 0 8px 32px rgba(0,0,0,0.9);
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Cover background layer */
.career-card__cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

/* Dark gradient overlay — fades bottom to black for text readability */
.career-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.97) 0%,
    rgba(0,0,0,0.7) 38%,
    rgba(0,0,0,0.15) 65%,
    transparent 100%
  );
  z-index: 1;
}

/* Player cutout — sits on top of gradient */
.career-card__cutout {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 82%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
  /* Soft fade into black at bottom so feet blend */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 14%);
  mask-image: linear-gradient(to top, transparent 0%, black 14%);
}

/* Name block — top of card, split layout */
.career-card__name-block {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.career-card__name-row {
  display: flex;
  align-items: center;
}

.career-card__name-row--first {
  justify-content: flex-start;
  padding: 14px 0 0 0;
}

.career-card__name-row--last {
  justify-content: flex-end;
  margin-top: -4px;
}

.career-card__name-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
  padding: 4px 14px;
}

.career-card__name-accent {
  height: 8px;
  flex: 1;
  max-width: 80px;
}

.career-card__name-accent--orange { background: #F74501; }
.career-card__name-accent--blue   { background: #3B82F6; }

/* Bottom stats block */
.career-card__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 14px 14px;
}

/* W / L / D row */
.career-card__wld {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
}

.career-card__wld-col {
  text-align: center;
}

.career-card__wld-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  display: block;
}

.career-card__wld-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  display: block;
}

/* Rating rows */
.career-card__ratings {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.career-card__rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.career-card__rating-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.career-card__rating-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.career-card__rating-value--skill { color: #F74501; }
.career-card__rating-value--social { color: var(--yellow); }

/* Placeholder / processing states */
.career-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(20,20,20,0.9);
}

.career-card__placeholder-icon {
  font-size: 36px;
  opacity: 0.5;
}

.career-card__placeholder-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.career-card__processing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.88);
  z-index: 10;
}

.career-card__processing-spinner {
  font-size: 32px;
  animation: spin-pulse 1.2s ease-in-out infinite;
}

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

.career-card__processing-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   ONBOARDING MODAL (post-OAuth: name + photo)
   ═══════════════════════════════════════════════ */
.onboarding-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
}

.onboarding-modal.active { display: flex; }

.onboarding-modal__card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px 28px 32px;
  width: 90%;
  max-width: 360px;
  text-align: center;
}

.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboarding-modal__logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 20px;
  opacity: 0.8;
}

.onboarding-modal__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.15;
}

.onboarding-modal__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 280px;
}

.onboarding-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 6px;
}

.onboarding-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 15px 16px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-body);
  text-align: left;
  transition: var(--transition);
}

.onboarding-input::placeholder { color: var(--text-muted); }
.onboarding-input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,90,31,0.04);
}

.onboarding-error {
  color: var(--red);
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 4px;
  text-align: center;
}

.onboarding-modal__footer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Avatar upload area */
.onboarding-avatar-upload {
  cursor: pointer;
  text-align: center;
  margin-bottom: 4px;
}

.onboarding-avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 auto 12px;
  border: 2px dashed var(--border-light);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.onboarding-avatar-upload:hover .onboarding-avatar-preview {
  border-color: var(--orange);
  transform: scale(1.03);
}

.onboarding-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.onboarding-avatar-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.onboarding-avatar-upload:hover .onboarding-avatar-label {
  color: var(--orange);
}

/* ═══════════════════════════════════════════════
   PHOTO PROMPT MODAL (before starting a game)
   ═══════════════════════════════════════════════ */
.photo-prompt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.photo-prompt-modal.active { display: flex; }

.photo-prompt-modal__card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 36px 28px 28px;
  width: 90%;
  max-width: 340px;
  text-align: center;
}

.photo-prompt-modal__icon {
  font-size: 42px;
  margin-bottom: 14px;
  display: block;
}

.photo-prompt-modal__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.photo-prompt-modal__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 4px;
}

/* Avatar image utility */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── Composite avatar: cover bg + cutout layered in a circle ── */
.avatar-composite {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
}
.avatar-composite__cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.avatar-composite__cutout {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  height: 130%;
  width: auto;
  object-fit: contain;
  object-position: top center;
}

/* ═══════════════════════════════════════════════
   MAPBOX OVERRIDES
   ═══════════════════════════════════════════════ */
.mapboxgl-popup-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5) !important;
}

.mapboxgl-popup-tip { border-top-color: var(--bg-card) !important; }
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip { border-top-color: var(--bg-card) !important; }
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip { border-bottom-color: var(--bg-card) !important; }
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { border-right-color: var(--bg-card) !important; }
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { border-left-color: var(--bg-card) !important; }
.mapboxgl-popup-close-button { display: none; }
.mapboxgl-ctrl-group { background: rgba(20,20,20,0.9) !important; border: 1px solid var(--border-light) !important; border-radius: 8px !important; }
.mapboxgl-ctrl-group button { background: transparent !important; }
.mapboxgl-ctrl-group button span { filter: invert(1); }
.mapboxgl-ctrl-attrib { display: none !important; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes marker-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.5; }
  50% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; }
}

@keyframes checkin-pop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
/* ═══════════════════════════════════════════════
   IN-APP ALERT MODAL
   ═══════════════════════════════════════════════ */
.alert-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.alert-modal.active { display: flex; }

.alert-modal__card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px 28px 28px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  animation: alertSlideUp 0.25s ease forwards;
}

@keyframes alertSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-modal__icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.alert-modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.alert-modal__message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: pre-line;
}

.alert-modal__btn {
  width: 100%;
  flex: none;
}

/* ═══════════════════════════════════════════════
   SEARCH THIS AREA BUTTON
   ═══════════════════════════════════════════════ */
.search-area-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 50;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.search-area-btn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.search-area-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}

.search-area-btn:active {
  transform: translateX(-50%) scale(0.97);
}

/* ═══════════════════════════════════════════════
   LOG OUT BUTTON
   ═══════════════════════════════════════════════ */
.logout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  margin-bottom: 16px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--red);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--red);
}

/* ═══════════════════════════════════════════════
   NAV DRAWER
   ═══════════════════════════════════════════════ */

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 901;
  width: 280px;
  max-width: 80vw;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer__header {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.nav-drawer__header-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #878787;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 16px;
}

.nav-drawer__close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.nav-drawer__close:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.nav-drawer__links {
  flex: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-drawer__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  line-height: 24px;
}

.nav-drawer__link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-drawer__link--active {
  color: #F74501;
  background: rgba(255,90,31,0.06);
}

.nav-drawer__link--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #F74501;
  border-radius: 0 3px 3px 0;
}

.nav-drawer__link--soon {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: default;
}

.nav-drawer__link--soon:hover {
  color: var(--text-muted);
  background: transparent;
}

.nav-drawer__link-label {
  flex: 1;
}

.nav-drawer__link-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(107,107,107,0.2);
  color: var(--text-muted);
}

.nav-drawer__link-selector {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-drawer__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.nav-drawer__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-drawer__user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8C42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-drawer__user-info {
  flex: 1;
}

.nav-drawer__user-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-drawer__user-stars {
  font-size: 12px;
  color: var(--yellow);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* ── Upload Processing Overlay ── */
/* ═══ Referral Prompt Modal ═══ */
.referral-prompt {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.referral-prompt.active { display: flex; }
.referral-prompt__card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 24px; max-width: 360px; width: 100%; text-align: center;
  animation: referralSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes referralSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.referral-prompt__icon { font-size: 40px; margin-bottom: 12px; }
.referral-prompt__title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 10px;
}
.referral-prompt__desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 16px;
}
.referral-prompt__reward {
  font-family: var(--font-mono); font-size: 13px; color: var(--orange);
  padding: 8px 16px; background: rgba(247,69,1,0.08); border: 1px solid rgba(247,69,1,0.15);
  border-radius: 100px; display: inline-block; margin-bottom: 20px;
}

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.85);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.upload-overlay.active { display: flex; }
.upload-overlay__spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #FF5A1F;
  border-radius: 50%;
  animation: uploadSpin .7s linear infinite;
}
@keyframes uploadSpin { to { transform: rotate(360deg); } }
.upload-overlay__text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
}

/* Alert modal button row for confirm mode */
.alert-modal__buttons {
  display: flex;
  gap: 10px;
}

.alert-modal__buttons .alert-modal__btn {
  flex: 1;
}

/* ═══ Alerts Screen ═══ */
.alerts-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  padding: 0 0 32px;
}
.alerts-screen.open { transform: translateX(0); }
.alerts-content { padding: 0 20px; }
.alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.alerts-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.alerts-mark-all {
  background: none;
  border: none;
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.alerts-list { display: flex; flex-direction: column; gap: 8px; }

.alert-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.alert-card:hover { background: #1f1f1f; }
.alert-card--unread {
  border-left: 3px solid var(--orange);
}
.alert-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.alert-card__body { flex: 1; min-width: 0; }
.alert-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.alert-card__text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.alert-card__time {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.alerts-empty {
  text-align: center;
  padding: 60px 20px;
}
.alerts-empty__icon { font-size: 40px; margin-bottom: 12px; }
.alerts-empty__text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.alerts-empty__sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══ Add to Home Screen Banner (iOS) ═══ */
.a2hs-banner {
  position: fixed;
  bottom: 70px;
  left: 12px;
  right: 12px;
  max-width: 456px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 500;
  animation: a2hsSlideUp 0.4s ease-out;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
@keyframes a2hsSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.a2hs-banner__content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.a2hs-banner__icon {
  font-size: 24px;
  flex-shrink: 0;
}
.a2hs-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.a2hs-banner__text strong {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.a2hs-banner__text span {
  font-size: 11px;
  color: var(--text-secondary);
}
.a2hs-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.a2hs-banner__how {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}
.a2hs-banner__dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* ══════════════════════════════
   QR REFERRAL OVERLAY
   ══════════════════════════════ */
.nav-bar__qr {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #292929;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-bar__qr:hover { background: #333; }
.nav-bar__qr svg { width: 18px; height: 18px; }

.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.qr-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.qr-overlay__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 28px;
  max-width: 340px;
  width: calc(100% - 40px);
}

.qr-overlay__badge {
  display: inline-block;
  background: #1a1400;
  border: 1px solid #FF5A1F;
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #FF5A1F;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.qr-overlay__label {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.qr-overlay__qr-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-overlay__qr-wrap canvas {
  display: block;
  width: 220px !important;
  height: 220px !important;
}

.qr-overlay__code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.qr-overlay__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  margin-bottom: 24px;
}

.qr-overlay__url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #555;
  margin-bottom: 24px;
  word-break: break-all;
  text-align: center;
}

.qr-overlay__actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.qr-overlay__btn {
  flex: 1;
  padding: 12px 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.qr-overlay__btn:hover { opacity: 0.85; }
.qr-overlay__btn--share {
  background: #F74501;
  color: #fff;
}
.qr-overlay__btn--copy {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
}

.qr-overlay__close {
  position: absolute;
  top: max(env(safe-area-inset-top, 12px), 12px);
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.qr-overlay__close:hover { background: rgba(255,255,255,0.2); }

.qr-overlay__toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #22C55E;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 100px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.qr-overlay__toast.active { opacity: 1; }
