/* ============================================================
   BizzMixer — Design System (Spec §1, locked)
   Dark, professional, slightly industrial. No gradients, no glow,
   no oversized marketing cards. Radius 4–10px. Inter throughout.
   ============================================================ */

:root {
  --bg: #17191D;
  --sidebar: #141619;
  --surface: #1E2228;
  --elevated: #252A32;
  --border: #343A43;
  --text: #F3F4F6;
  --muted: #A1A8B3;
  --accent: #36A879;
  --accent-hover: #2F956B;
  --accent-ink: #0E241B;
  --error: #D95757;
  --error-bg: #2E1D1F;
  --accent-bg: #1C2B25;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --sidebar-w: 248px;
  --topbar-h: 56px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0 0 8px; font-weight: 600; line-height: 1.25; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error-text { color: var(--error); }

button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
}
.wordmark:hover { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elevated);
  color: var(--text);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { background: #2C333E; text-decoration: none; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-danger { border-color: var(--error); color: var(--error); background: transparent; }
.btn-danger:hover { background: var(--error-bg); }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input, textarea.input, select.input {
  width: 100%;
  padding: 9px 11px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}
.input:focus { border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 72px; }
.input::placeholder { color: #6B7280; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
}
.check-row input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; }
.check-row .check-sub { display: block; font-size: 12px; color: var(--muted); }

.form-error {
  display: none;
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: #F0B4B4;
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.form-error.show { display: block; }
.form-note {
  display: none;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  color: #BFE8D4;
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.form-note.show { display: block; }

/* ---------- Setup notice ---------- */
.setup-notice {
  display: none;
  background: #2A2417;
  border-bottom: 1px solid #8A6D2F;
  color: #E8D9AE;
  font-size: 13px;
  padding: 9px 16px;
  text-align: center;
}
.setup-notice.show { display: block; }

/* ---------- Public pages ---------- */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-actions { display: flex; gap: 10px; align-items: center; }

.page-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.hero { padding: 64px 0 40px; max-width: 720px; }
.hero h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero .lede { font-size: 17px; color: var(--muted); margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { padding: 11px 22px; font-size: 15px; }

.section { padding: 36px 0; border-top: 1px solid var(--border); }
.section h2 { margin-bottom: 8px; }
.section .section-lede { color: var(--muted); max-width: 640px; margin-bottom: 22px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.feature-card .fc-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }

.mixer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mixer-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.mixer-row .mixer-dot {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 700; font-size: 14px;
}
.mixer-row .mixer-name { font-weight: 500; font-size: 14px; }
.mixer-row .mixer-desc { font-size: 13px; color: var(--muted); }

.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 36px 0 48px;
}
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { color: var(--muted); margin: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 12px; }

.verify-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- Onboarding wizard ---------- */
.wizard-wrap { max-width: 640px; margin: 0 auto; padding: 36px 16px 64px; }
.wizard-progress { display: flex; gap: 6px; margin-bottom: 8px; }
.wizard-progress .wp-step {
  flex: 1; height: 4px;
  background: var(--elevated);
  border-radius: 2px;
}
.wizard-progress .wp-step.done { background: var(--accent); }
.wizard-step-label { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.choice-card input { accent-color: var(--accent); }
.choice-card.selected { border-color: var(--accent); background: var(--accent-bg); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}
.chip:hover { border-color: var(--muted); }
.chip.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- App shell ---------- */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  z-index: 50;
}
.sidebar .wordmark { padding: 4px 8px 14px; }
.sidebar-search { position: relative; margin: 0 4px 12px; }
.sidebar-search .input { padding-left: 32px; background: var(--surface); }
.sidebar-search svg {
  position: absolute; left: 9px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: none;
  text-align: left;
  width: 100%;
}
.nav-item:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--surface); color: var(--text); border-color: var(--border); }
.nav-item svg { flex: none; }
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  display: none;
}
.sidebar-spacer { flex: 1; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.sidebar-user .su-meta { min-width: 0; flex: 1; }
.sidebar-user .su-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .su-handle { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
}
.icon-btn:hover { background: var(--surface); color: var(--text); }

.avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}
.main-inner { max-width: 760px; margin: 0 auto; padding: 22px 20px 80px; }
.main-wide { max-width: 920px; }
.view-title { font-size: 20px; margin-bottom: 16px; }

/* ---------- Feed / composer ---------- */
.composer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 18px;
}
.composer-top { display: flex; gap: 11px; }
.composer textarea {
  flex: 1;
  background: transparent;
  border: none;
  resize: none;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  min-height: 44px;
  padding-top: 7px;
}
.composer textarea::placeholder { color: #6B7280; }
.composer-actions {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 10px; padding-top: 10px;
}
.composer-note { font-size: 12px; color: var(--muted); }

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
}
.empty-state .es-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto; }

.phase-state { padding: 28px 0; }

/* ---------- Profile ---------- */
.profile-head {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.profile-head .ph-meta { flex: 1; min-width: 220px; }
.profile-head h2 { margin-bottom: 2px; }
.profile-handle { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.panel h3 { margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.chip-static {
  display: inline-block;
  padding: 4px 11px;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

/* ---------- Settings ---------- */
.settings-nav-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--sidebar);
  border-top: 1px solid var(--border);
  z-index: 60;
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
}
.bottom-nav .bn-row { display: flex; }
.bn-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px;
  background: none; border: none;
  color: var(--muted);
  font-size: 10px; font-weight: 500;
}
.bn-item.active { color: var(--accent); }

.mobile-topbar {
  display: none;
  height: var(--topbar-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 45;
}

/* ---------- Phase 2: feed posts ---------- */
.composer-image-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
}
.composer-image-row[hidden] { display: none; }
.composer-image-row .input { flex: 1; }
.composer-image-row label.btn { flex: none; margin: 0; }

.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head-meta { flex: 1; min-width: 0; }
.post-author {
  background: none; border: none; padding: 0;
  color: var(--text); font-size: 14px; font-weight: 600;
  text-align: left;
}
.post-author:hover { text-decoration: underline; }
.post-sub { font-size: 12px; color: var(--muted); }
.post-menu-btn {
  background: none; border: none;
  color: var(--muted); font-size: 12px; font-weight: 500;
  padding: 4px 6px; border-radius: var(--radius-sm);
}
.post-menu-btn:hover { background: var(--elevated); color: var(--text); }
.post-text { margin: 10px 0 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.post-image {
  width: 100%; max-height: 420px; object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 10px; display: block;
}
.post-actions {
  display: flex; gap: 4px;
  border-top: 1px solid var(--border);
  margin-top: 12px; padding-top: 6px;
}
.action-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: none; border: none;
  color: var(--muted); font-size: 13px; font-weight: 500;
  padding: 6px 4px; border-radius: var(--radius);
}
.action-btn:hover { background: var(--elevated); color: var(--text); }
.action-btn.liked { color: var(--accent); }
.action-btn.liked svg { fill: currentColor; }
.action-btn.shared { color: var(--accent); }

/* ---------- Phase 2: comments ---------- */
.comments { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.comment { display: flex; gap: 9px; margin-bottom: 10px; }
.comment .avatar { width: 28px; height: 28px; font-size: 11px; }
.comment-body { flex: 1; min-width: 0; }
.comment-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
}
.comment-meta { font-size: 12px; margin-bottom: 1px; }
.comment-meta .c-name { font-weight: 600; color: var(--text); }
.comment-meta .c-time { color: var(--muted); margin-left: 6px; }
.comment-text { font-size: 13px; margin: 0; white-space: pre-wrap; word-break: break-word; }
.comment-actions { display: flex; gap: 12px; margin-top: 3px; }
.comment-actions button {
  background: none; border: none; padding: 0;
  color: var(--muted); font-size: 12px; font-weight: 500;
}
.comment-actions button:hover { color: var(--text); }
.comment-replies { margin: 8px 0 2px 18px; }
.comment-replies .comment { margin-bottom: 8px; }
.comment-form-row { display: flex; gap: 9px; align-items: center; margin-top: 8px; }
.comment-form-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.comment-form-row .input { flex: 1; padding: 7px 10px; font-size: 13px; }
.reply-form-row { margin: 6px 0 4px 0; }

/* ---------- Phase 2: discover / member cards ---------- */
.discover-controls { display: flex; gap: 10px; margin-bottom: 16px; }
.discover-controls .input[type="search"] { flex: 1; }
.discover-controls select.input { width: 210px; flex: none; }
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: pointer; text-align: left; width: 100%;
  color: var(--text); font-family: var(--font);
}
.member-card:hover { border-color: var(--muted); }
.member-card .mc-meta { flex: 1; min-width: 0; }
.member-card .mc-name { font-weight: 600; font-size: 14px; }
.member-card .mc-handle { color: var(--muted); font-size: 12px; }
.member-card .mc-biz { font-size: 13px; margin-top: 4px; }
.member-card .mc-ind { margin-top: 7px; }
.member-card .chip-static { font-size: 11px; padding: 2px 8px; margin: 0 4px 4px 0; }
.member-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Phase 2: direct messages ---------- */
.dm-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
}
.dm-list-pane {
  border-right: 1px solid var(--border);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.conv-item {
  display: flex; gap: 10px; align-items: center;
  width: 100%; text-align: left;
  background: none; border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--text); font-family: var(--font);
}
.conv-item:hover { background: var(--elevated); }
.conv-item.active { background: var(--elevated); border-color: var(--border); }
.conv-item .cv-meta { flex: 1; min-width: 0; }
.conv-item .cv-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .cv-last { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item.unread .cv-name { color: var(--text); }
.conv-item.unread .cv-last { color: var(--text); font-weight: 500; }
.conv-unread-dot {
  flex: none;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 7px;
}
.dm-thread-pane { display: flex; flex-direction: column; min-width: 0; }
.thread-empty { margin: auto; padding: 24px; text-align: center; }
#thread-main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#thread-main[hidden] { display: none; }
.thread-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.thread-head .th-meta { flex: 1; min-width: 0; }
.thread-head .th-name { font-weight: 600; font-size: 14px; background: none; border: none; color: var(--text); padding: 0; text-align: left; }
.thread-head .th-name:hover { text-decoration: underline; }
.thread-head .th-handle { font-size: 12px; color: var(--muted); }
.thread-messages {
  flex: 1; overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 240px; max-height: 52vh;
}
.msg-row { display: flex; }
.msg-row.mine { justify-content: flex-end; }
.msg-bubble {
  max-width: 75%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 11px;
}
.msg-row.mine .msg-bubble { background: var(--accent-bg); border-color: var(--accent); }
.msg-text { font-size: 14px; margin: 0; white-space: pre-wrap; word-break: break-word; }
.msg-time { font-size: 11px; color: var(--muted); margin-top: 3px; text-align: right; }
.thread-form {
  display: flex; gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
}
.thread-form .input { flex: 1; }
.thread-back { display: none; }

/* ---------- Phase 2: notifications ---------- */
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.row-head .view-title { margin-bottom: 0; }
.notif-item {
  display: flex; gap: 11px; align-items: flex-start;
  width: 100%; text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px; margin-bottom: 9px;
  color: var(--text); font-family: var(--font);
}
.notif-item:hover { border-color: var(--muted); }
.notif-item .nf-meta { flex: 1; min-width: 0; }
.notif-item .nf-text { font-size: 14px; }
.notif-item .nf-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item .nf-time { font-size: 12px; color: var(--muted); }
.notif-item.unread { border-color: var(--accent); background: var(--accent-bg); }
.notif-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-top: 6px;
}

/* ---------- Badges (sidebar + bottom nav) ---------- */
.nav-badge.show { display: inline-block; }
.bn-item { position: relative; }
.bn-badge {
  position: absolute; top: 2px; right: calc(50% - 20px);
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 700;
  border-radius: 999px; padding: 0 6px;
  display: none;
}
.bn-badge.show { display: block; }

/* ---------- View switching ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .mixer-list { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 29px; }
}
@media (max-width: 820px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .main-inner { padding: 16px 14px 96px; }
  .bottom-nav { display: block; }
  .mobile-topbar { display: flex; }
  .choice-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .member-grid { grid-template-columns: 1fr; }
  .discover-controls { flex-direction: column; }
  .discover-controls select.input { width: 100%; }
  .dm-layout { grid-template-columns: 1fr; min-height: 0; }
  .dm-list-pane { border-right: none; }
  .dm-layout .dm-thread-pane { display: none; }
  .dm-layout.show-thread .dm-thread-pane { display: flex; }
  .dm-layout.show-thread .dm-list-pane { display: none; }
  .thread-back { display: inline-flex; }
  .thread-messages { max-height: 46vh; }
}

/* ---------- Phase 3: Mixers directory ---------- */
.mx-section-title { font-size: 16px; margin: 20px 0 12px; }
.mixer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mixer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.mixer-card-top { display: flex; gap: 11px; align-items: flex-start; }
.mixer-tile {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: #fff; font-weight: 700; font-size: 15px;
  border: 1px solid rgba(0,0,0,0.25);
}
.mixer-card .mc2-meta { flex: 1; min-width: 0; }
.mixer-card .mc2-name {
  font-weight: 600; font-size: 15px;
  background: none; border: none; padding: 0; color: var(--text); text-align: left;
}
.mixer-card .mc2-name:hover { text-decoration: underline; }
.mixer-card .mc2-sub { font-size: 12px; color: var(--muted); }
.mixer-card .mc2-desc {
  font-size: 13px; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mixer-card .mc2-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px;
}
.mixer-card .mc2-count { font-size: 12px; color: var(--muted); margin-right: auto; }

.mixer-invite-item {
  display: flex; gap: 11px; align-items: center;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 12px 14px; margin-bottom: 9px;
}
.mixer-invite-item .mi-meta { flex: 1; min-width: 0; font-size: 14px; }
.mixer-invite-item .mi-sub { font-size: 12px; color: var(--muted); }

.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; padding: 0;
}
.swatch.selected { border-color: var(--text); }

/* ---------- Phase 3: events ---------- */
.event-row {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 10px;
}
.event-day {
  width: 46px; flex: none; text-align: center;
  background: var(--elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 0 5px;
}
.event-day .ed-dow { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.event-day .ed-time { font-size: 11px; color: var(--muted); }
.event-row .ev-meta { flex: 1; min-width: 0; }
.event-row .ev-name { font-weight: 600; font-size: 15px; }
.event-row .ev-sub { font-size: 12px; color: var(--muted); }
.event-row .ev-desc { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.event-row .ev-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.event-row .ev-count { font-size: 12px; color: var(--muted); }

/* ---------- Phase 3: Mixer space (Discord-style) ---------- */
.mx-head {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.mx-head .mixer-tile { width: 52px; height: 52px; font-size: 19px; }
.mx-head .mxh-meta { flex: 1; min-width: 220px; }
.mx-head h2 { margin-bottom: 2px; }
.mx-head .mxh-sub { font-size: 13px; color: var(--muted); }
.mx-head .mxh-desc { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.mx-head .mxh-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mx-layout {
  display: grid;
  grid-template-columns: 196px 1fr 216px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 440px;
}
.mx-layout.hide-members { grid-template-columns: 196px 1fr; }
.mx-layout.hide-members .mx-members { display: none; }
.mx-rail {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.mx-rail-head {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  padding: 2px 8px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.mx-channel-item {
  display: flex; align-items: center; gap: 6px;
  width: 100%; text-align: left;
  background: none; border: none; border-radius: var(--radius);
  padding: 6px 8px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  font-family: var(--font);
}
.mx-channel-item:hover { background: var(--surface); color: var(--text); }
.mx-channel-item.active { background: var(--elevated); color: var(--text); }
.mx-channel-item .mx-hash { color: var(--muted); font-weight: 400; }
.mx-channel-item .mx-ch-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-channel-item .mx-ch-tools { display: none; gap: 2px; }
.mx-channel-item:hover .mx-ch-tools { display: inline-flex; }
.mx-ch-tools button {
  background: none; border: none; color: var(--muted);
  font-size: 11px; padding: 2px 4px; border-radius: var(--radius-sm);
}
.mx-ch-tools button:hover { color: var(--text); background: var(--bg); }
.mx-add-channel { display: flex; gap: 6px; margin-top: 10px; padding: 0 2px; }
.mx-add-channel .input { padding: 6px 8px; font-size: 13px; }

.mx-main { display: flex; flex-direction: column; min-width: 0; }
#mx-channel-select { display: none; margin: 10px 12px 0; width: calc(100% - 24px); }
.mx-channel-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.mx-channel-head .mx-topic { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.mx-messages {
  flex: 1; overflow-y: auto;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 13px;
  min-height: 260px; max-height: 52vh;
}
.mx-msg { display: flex; gap: 10px; }
.mx-msg .avatar { width: 34px; height: 34px; font-size: 12px; }
.mx-msg-body { flex: 1; min-width: 0; }
.mx-msg-meta { font-size: 13px; }
.mx-msg-meta .mx-msg-name { font-weight: 600; background: none; border: none; padding: 0; color: var(--text); font-size: 13px; }
.mx-msg-meta .mx-msg-name:hover { text-decoration: underline; }
.mx-msg-meta .mx-msg-time { color: var(--muted); font-size: 11px; margin-left: 7px; }
.mx-msg-text { font-size: 14px; margin: 1px 0 0; white-space: pre-wrap; word-break: break-word; }
.mx-msg-actions { display: inline-flex; gap: 10px; margin-left: 10px; }
.mx-msg-actions button {
  background: none; border: none; padding: 0;
  color: var(--muted); font-size: 11px; font-weight: 500;
}
.mx-msg-actions button:hover { color: var(--text); }
.mx-join-prompt {
  padding: 12px 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.mx-join-prompt[hidden] { display: none; }
.mx-composer {
  display: flex; gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
}
.mx-composer .input { flex: 1; }
.mx-composer[hidden] { display: none; }
#mx-composer-error { margin: 10px 14px 0; }
#mx-composer-error:not(.show) { margin: 0; }

.mx-members {
  border-left: 1px solid var(--border);
  padding: 10px 8px;
  min-width: 0;
  background: var(--sidebar);
}
.mx-subhead {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
  padding: 8px 8px 5px;
}
.mx-member-row {
  display: flex; gap: 8px; align-items: center;
  padding: 5px 8px; border-radius: var(--radius);
}
.mx-member-row:hover { background: var(--surface); }
.mx-member-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.mx-member-row .mm-meta { flex: 1; min-width: 0; }
.mx-member-row .mm-name {
  font-size: 13px; font-weight: 500; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: none; border: none; padding: 0; color: var(--text); text-align: left;
}
.mx-member-row .mm-name:hover { text-decoration: underline; }
.mx-member-row .mm-role { font-size: 11px; color: var(--muted); display: block; }
.mx-member-tools { display: inline-flex; gap: 2px; }
.mx-member-tools button {
  background: none; border: none; color: var(--muted);
  font-size: 11px; padding: 2px 4px; border-radius: var(--radius-sm); white-space: nowrap;
}
.mx-member-tools button:hover { color: var(--text); background: var(--bg); }
.mx-pending-row {
  padding: 7px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); margin: 0 2px 7px;
  background: var(--surface);
}
.mx-pending-row .mm-name { font-size: 13px; font-weight: 500; }
.mx-pending-actions { display: flex; gap: 6px; margin-top: 6px; }

.mx-inline-form { display: flex; gap: 9px; }
.mx-inline-form .input { flex: 1; }

/* The Mixers view runs wider than the reading column. */
#sub-mixers .mixer-grid { margin-bottom: 4px; }

@media (max-width: 820px) {
  .mixer-grid { grid-template-columns: 1fr; }
  .mx-layout, .mx-layout.hide-members { grid-template-columns: 1fr; }
  .mx-rail { display: none; }
  .mx-members { display: none; border-left: none; border-top: 1px solid var(--border); }
  .mx-layout.show-members .mx-members { display: block; }
  #mx-channel-select { display: block; }
  .mx-messages { max-height: 44vh; }
  .event-row { flex-wrap: wrap; }
  .event-row .ev-actions { flex-direction: row; align-items: center; }
}

/* ---------------- Phase 4: email preferences matrix ---------------- */

.pref-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.pref-row:last-child { border-bottom: 0; }
.pref-meta { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; }
.pref-label { font-weight: 600; font-size: 14px; }
.pref-desc { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.pref-select { width: 190px; flex: 0 0 auto; }
.pref-locked { align-items: center; }
.pref-locked-tag {
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
}
.pref-intervals {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: 2px;
}
.check-inline { margin: 0; }

/* ---------------- Phase 4: admin email dashboard ---------------- */

.admin-subhead { margin: 22px 0 8px; font-size: 15px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.admin-row:last-child { border-bottom: 0; }
.admin-row-main { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.45; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.stat-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num { font-size: 24px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 12.5px; }

#mx-announce-row { margin-top: 8px; }

/* ================================================================
   Phase 5 — Marketplace, Opportunities, Search, Moderation
   ================================================================ */

.notice-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
}
.notice-note strong { color: var(--text); }
.notice-warn { border-left-color: var(--error); }

.status-banner {
  border-color: var(--error);
  background: var(--error-bg);
  margin-bottom: 16px;
  font-size: 14px;
}

.listing-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.listing-controls .input { flex: 1 1 180px; }
.listing-controls select.input { flex: 0 1 200px; }
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.listing-card:hover, .listing-card:focus-visible { border-color: var(--accent); outline: none; }
.listing-img { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--elevated); }
.listing-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.listing-price { font-weight: 700; font-size: 16px; color: var(--accent); }
.listing-price-lg { font-size: 22px; }
.listing-title { margin: 0; font-size: 15.5px; }
.listing-desc { margin: 0; font-size: 13.5px; color: var(--muted); }
.listing-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tag-sold { background: var(--error-bg); color: var(--error); }

.opp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.opp-card:hover, .opp-card:focus-visible { border-color: var(--accent); outline: none; }

.listing-detail-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  display: block;
  background: var(--elevated);
}
.listing-detail-title { font-size: 20px; margin: 8px 0; }
.listing-full-desc { white-space: pre-wrap; font-size: 14.5px; }
.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 14px 0;
}
.seller-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.listing-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.search-group { margin-bottom: 26px; }
.search-group > h3 { margin-bottom: 12px; }

@media (max-width: 640px) {
  .pref-select { width: 100%; }
  .admin-stats { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
}

/* ================= Phase 5.5 — First 100 growth ================= */

/* Badges (Founding Member, referral badges, Featured) */
.badge-row { display: inline-flex; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.badge-chip {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-founding { background: #2A2410; color: #E8C766; border-color: #8A6D2F; }
.badge-featured { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

/* Getting-started checklist */
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.checklist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.checklist-item:first-of-type { border-top: none; }
.checklist-item .ci-box {
  width: 20px; height: 20px; flex: 0 0 20px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--accent);
}
.checklist-item.done .ci-box { background: var(--accent-bg); border-color: var(--accent); }
.checklist-item.done .ci-label { color: var(--muted); text-decoration: line-through; }
.checklist-item .ci-label { flex: 1; font-size: 14px; }
.checklist-recs { margin: 2px 0 8px 30px; display: grid; gap: 6px; }
.checklist-rec {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

/* Public Founding 100 progress */
.founding-progress { margin-top: 8px; }
.fp-num { font-size: 34px; font-weight: 800; }
.fp-bar {
  height: 10px; border-radius: 999px;
  background: var(--elevated);
  border: 1px solid var(--border);
  overflow: hidden; max-width: 420px;
}
.fp-fill { height: 100%; background: var(--accent); }

/* Admin Growth tab */
.growth-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.growth-row:first-of-type { border-top: none; }
.growth-campaign, .growth-event {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--elevated);
}
.gc-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag-warn { background: #3A1D1D; color: #E88; border-color: #8A3A3A; }
.referral-rewards { border-top: 1px solid var(--border); padding-top: 10px; }

/* ================= Phase 6 — monetization (§20) ================= */
.badge-pro { background: #12312A; color: var(--accent); border-color: var(--accent); }
.tag-pro { background: #12312A; color: var(--accent); border: 1px solid var(--accent); }
.tag-priority { background: #3A2A10; color: #E8C766; border: 1px solid #8A6D2F; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.pricing-card .price-line { font-size: 30px; font-weight: 800; margin: 4px 0 12px; }
.pricing-card .price-line .muted { font-size: 14px; font-weight: 500; }
.price-features { margin: 0 0 14px; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.price-features li { margin-bottom: 6px; }
.pricing-pro { border-color: var(--accent); }

.billing-note { border-color: var(--accent); }
.plan-status-line { font-size: 15px; margin: 0 0 4px; }

/* Support tickets */
.ticket-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--elevated);
}
.ticket-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ticket-response {
  border-left: 3px solid var(--accent);
  padding: 6px 10px;
  margin-top: 10px;
  background: var(--secondary);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
}
.ticket-reply-form { margin-top: 10px; }

/* ================= Phase 7 — Founding Contributors ================= */
/* Contributor badge: warm bronze tint, distinct from Founding Member
   gold and Pro green. */
.badge-contributor { background: #2E2118; color: #E0A266; border-color: #8A5A2F; }

/* Reward tier table (public page) */
.tier-table {
  width: 100%; max-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.tier-table th, .tier-table td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--border);
}
.tier-table th { background: var(--elevated); font-weight: 700; }
.tier-table td:first-child { white-space: nowrap; font-weight: 600; }

/* Plain statement lists (required statements, terms, refund policy) */
.plain-list { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.55; }
.plain-list li { margin-bottom: 8px; }

/* Contribute panel controls */
.contrib-mode-row, .contrib-amounts {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.contrib-mode.active, .contrib-amount.active {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent);
}
