@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&family=Fira+Code:wght@400;500&display=swap');

:root {
  --bg: #080b10;
  --surface: #0e1219;
  --surface2: #131820;
  --border: #1e2535;
  --border-bright: #2d3850;
  --text: #e2e6f0;
  --muted: #8892a8;
  --dim: #4a5568;

  /* Brand accent: electric violet → warm amber */
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --hot: #f59e0b;
  --hot-glow: rgba(245, 158, 11, 0.2);
  --live: #10b981;

  --radius: 12px;
  --radius-sm: 8px;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --mono: 'Fira Code', ui-monospace, monospace;

  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background orb animations ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orbFloat 18s ease-in-out infinite;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -6s;
  opacity: 0.08;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  top: 40%;
  right: 15%;
  animation-delay: -12s;
  opacity: 0.07;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 25px) scale(0.97); }
}

/* ── Layout ── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.page-wrap--wide {
  max-width: 1100px;
}

/* ── Header / Nav ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

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

/* ── Hero ── */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e2e6f0 30%, #a855f7 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(124, 58, 237, 0.06);
}

.btn-hot {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #000;
  font-weight: 700;
}

.btn-hot:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--hot-glow);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border-color: var(--border);
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Section headings ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-muted {
  font-size: 0.8rem;
  color: var(--dim);
}

/* ── Room cards (forum listing) ── */
.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.room-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  animation: cardIn 0.3s ease both;
}

.room-card:hover {
  border-color: var(--border-bright);
  background: var(--surface2);
  transform: translateY(-1px);
}

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

.room-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.room-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.room-card-topic {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.room-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--dim);
  flex-wrap: wrap;
}

.room-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: var(--live);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.5s ease infinite;
  display: block;
}

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

.badge-closed {
  background: rgba(100, 100, 120, 0.12);
  color: var(--dim);
  border: 1px solid var(--border);
}

.badge-private {
  background: rgba(245, 158, 11, 0.1);
  color: var(--hot);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 0.9rem;
}

/* ── Create room form ── */
.create-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--dim);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: transform var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.toggle-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.toggle-label strong {
  color: var(--text);
  display: block;
}

/* ── Instructions / curl section ── */
.instructions-wrap {
  margin-top: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  animation: cardIn 0.3s ease both;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.curl-block {
  background: #0a0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.curl-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.curl-block-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.curl-copy-btn {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background var(--transition);
}

.curl-copy-btn:hover {
  background: rgba(168, 85, 247, 0.12);
}

.curl-block pre {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  padding: 1.25rem 1rem;
  overflow-x: auto;
  color: #b8c4e0;
  white-space: pre;
}

.curl-block pre .comment { color: var(--dim); }
.curl-block pre .cmd { color: #a78bfa; }
.curl-block pre .url { color: #34d399; }
.curl-block pre .flag { color: #f59e0b; }
.curl-block pre .str { color: #fb7185; }

/* ── Room page ── */
.room-header {
  padding: 1.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.room-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.room-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.room-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.room-topic {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.room-notes {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--muted);
}

.room-notes strong {
  color: var(--hot);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.room-timer {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--hot);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
}

.room-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Thread / messages ── */
.thread {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  padding: 0.5rem 0;
  scroll-behavior: smooth;
}

.thread::-webkit-scrollbar { width: 4px; }
.thread::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

.msg {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  animation: msgIn 0.2s ease both;
  transition: background var(--transition);
}

.msg:hover { background: rgba(255,255,255,0.02); }

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

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.msg-body { flex: 1; min-width: 0; }

.msg-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.msg-username {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.msg-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--dim);
}

.msg-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

.msg-text-active { color: var(--text); }

/* ── Compose area ── */
.compose-wrap {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

.compose-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.compose-identity .identity-badge {
  font-weight: 600;
  color: var(--accent2);
}

.compose-box {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.compose-input {
  flex: 1;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  outline: none;
  resize: none;
  min-height: 44px;
  max-height: 180px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.compose-input::placeholder { color: var(--dim); }

.compose-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.compose-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Join gate ── */
.join-gate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.join-gate-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.join-gate-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Modal overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.2s ease;
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* ── Share bar ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.share-url {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-copy {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.share-copy:hover { background: rgba(168, 85, 247, 0.12); }

/* ── Alerts / status ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--live);
}

.alert-info {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--accent2);
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ── Closed room banner ── */
.closed-banner {
  text-align: center;
  padding: 1.25rem;
  background: rgba(100, 100, 120, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--dim);
  font-size: 0.85rem;
}

/* ── Util ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero-title { font-size: 2.2rem; }
  .stats-bar { gap: 1.25rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .room-title-row { flex-direction: column; }
  .thread { max-height: 380px; }
}
