/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .06s, background .15s, border-color .15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.btn:hover  { background: rgba(255,255,255,.07); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid rgba(125,211,252,.45); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, rgba(125,211,252,.25), rgba(167,139,250,.25));
  border-color: rgba(125,211,252,.40);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(125,211,252,.35), rgba(167,139,250,.35));
}

.btn-sm   { font-size: 13px; padding: 6px 12px; }
.btn-xs   { font-size: 12px; padding: 4px 10px; border-radius: 8px; }
.btn-full { width: 100%; }

.btn-ok {
  background: rgba(52,211,153,.12);
  border-color: rgba(52,211,153,.3);
  color: var(--ok);
}
.btn-ok:hover { background: rgba(52,211,153,.20); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: var(--line); }

/* ── CARD ───────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

.card-inner { padding: 20px 18px; }

/* ── SECTION HEAD / KICKER ──────────────────────────────────── */
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; }

/* ── PILLS ──────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.pill-accent { background: rgba(125,211,252,.08); border-color: rgba(125,211,252,.2); color: var(--accent); }
.pill-ok     { background: rgba(52,211,153,.10);  border-color: rgba(52,211,153,.25); color: var(--ok); }

/* ── STATUS BADGES ──────────────────────────────────────────── */
.live-badge, .soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}

.live-badge { background: var(--ok); color: #0b0d12; }
.soon-badge { background: #f7b267;   color: #2a1a00; }

.live-dot, .soon-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.live-dot { background: #0b0d12; animation: pulse 1.5s infinite; }
.soon-dot { background: #2a1a00; }

/* ── AVATARS ────────────────────────────────────────────────── */
.avatars { display: flex; align-items: center; }

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(125,211,252,.25), rgba(167,139,250,.25));
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  margin-right: -8px;
}
.avatar:last-child { margin-right: 0; }

/* ── CAPACITY BAR ───────────────────────────────────────────── */
.capacity-wrap { margin-bottom: 12px; }

.capacity-bar {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  transition: width .4s ease;
}

.capacity-label { font-size: 11px; color: var(--muted); font-weight: 700; }

/* ── PARTICIPANTS ROW ───────────────────────────────────────── */
.participants-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.participants-names { font-size: 12px; color: var(--muted); margin-left: 14px; }

.participants-locked {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .7;
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.micro   { font-size: 13px; color: var(--muted); }

/* ── INSTALL PROMPT ─────────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom) + 10px);
  left: 12px; right: 12px;
  z-index: 50;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  animation: slideUp .25s ease;
}
.install-banner[hidden] { display: none; }
.install-banner-icon  { font-size: 26px; flex-shrink: 0; }
.install-banner-text  { flex: 1; min-width: 0; }
.install-banner-title { font-size: 14px; font-weight: 700; color: var(--text); }
.install-banner-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.install-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.install-banner-close {
  background: none; border: none; color: var(--muted);
  font-size: 16px; cursor: pointer; padding: 4px; flex-shrink: 0;
  line-height: 1;
}
.install-banner-close:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .install-banner { animation: none; } }
