/* ==========================================================================
   flash3api - forum styles (additive: style.css keeps the original design)
   ========================================================================== */

:root {
  --forum-blue: #38bdf8;
  --forum-purple: #a78bfa;
  --forum-red: #ef4444;
  --forum-green: #10b981;
}

/* ---- Flash messages ---- */
.flash-stack {
  position: fixed;
  top: 76px;
  right: 1.5rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}
.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  animation: flashIn 0.25s ease-out;
}
.flash-success { border-color: var(--forum-green); color: var(--forum-green); }
.flash-error { border-color: var(--forum-red); color: var(--forum-red); }
.flash-info { border-color: var(--forum-blue); color: var(--forum-blue); }
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---- Shared bits ---- */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2332, #0f172a);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 96px; height: 96px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.pill-accent { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.4); color: var(--accent); }
.pill-green { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.4); color: var(--forum-green); }
.pill-red { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: var(--forum-red); }
.pill-blue { background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.4); color: var(--forum-blue); }
.pill-purple { background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.4); color: var(--forum-purple); }
.pill-dim { color: var(--text-dim); }

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.05);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge-chip.staff { color: var(--accent); background: rgba(245,158,11,0.1); }
.badge-chip.moderator { color: var(--forum-blue); background: rgba(56,189,248,0.1); }
.badge-chip.helper { color: var(--forum-green); background: rgba(16,185,129,0.1); }

.rank-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ---- Hero / stats ---- */
.forum-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}
.forum-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.forum-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.stat-box .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-box .lbl {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Category cards ---- */
.cat-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
}
.cat-card:hover { text-decoration: none; }
.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cat-name { color: var(--text); font-weight: 600; font-size: 1.02rem; }
.cat-card:hover .cat-name { color: var(--accent); text-decoration: none; }
.cat-desc { color: var(--text-muted); font-size: 0.87rem; margin-top: 0.2rem; }
.cat-meta { color: var(--text-dim); font-size: 0.78rem; margin-top: 0.55rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---- Two column layout ---- */
.forum-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}
.side-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
@media (max-width: 900px) {
  .forum-cols { grid-template-columns: 1fr; }
}

/* ---- Thread rows ---- */
.thread-list { display: flex; flex-direction: column; gap: 0.75rem; }
.thread-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: all 0.2s;
  text-decoration: none;
}
.thread-row:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-decoration: none;
}
.thread-row.is-pinned { border-left: 3px solid var(--accent); }
.thread-row.is-pending { border-left: 3px solid var(--forum-blue); }
.thread-row.is-hidden-item { border-left: 3px solid var(--forum-red); opacity: 0.75; }
.thread-main { flex: 1; min-width: 0; }
.thread-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-row:hover .thread-title { color: var(--accent); text-decoration: none; }
.thread-sub {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.thread-stats {
  display: flex;
  gap: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}
.thread-stats .n { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.thread-stats .l { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; }
@media (max-width: 700px) {
  .thread-stats { display: none; }
}

/* ---- Toolbar / filters ---- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.filter-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ---- Breadcrumbs ---- */
.crumbs {
  font-size: 0.83rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }

/* ---- Posts ---- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.post-card.is-op { border-color: rgba(245,158,11,0.35); }
.post-card.is-pending { border-left: 3px solid var(--forum-blue); }
.post-card.is-hidden-post { border-left: 3px solid var(--forum-red); opacity: 0.8; }
.post-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  flex-wrap: wrap;
}
.post-author { font-weight: 600; color: var(--text); }
.post-author:hover { color: var(--accent); text-decoration: none; }
.post-meta { color: var(--text-dim); font-size: 0.78rem; }
.post-body {
  padding: 1rem 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.post-body p { margin-bottom: 0.75rem; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h4, .post-body h5, .post-body h6 {
  font-family: 'Cinzel', serif;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
}
.post-body h4 { font-size: 1.15rem; }
.post-body h5 { font-size: 1.05rem; }
.post-body h6 { font-size: 1rem; }
.post-body ul, .post-body ol { margin: 0.5rem 0 0.75rem 1.4rem; }
.post-body li { margin-bottom: 0.25rem; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(245,158,11,0.06);
  margin: 0.6rem 0;
  padding: 0.5rem 0.9rem;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
}
.post-body pre {
  background: #0b0f16;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  margin: 0.6rem 0;
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.87em;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}
.post-body pre code { background: none; padding: 0; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.post-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.react-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 100px;
  padding: 0.18rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.react-btn:hover { border-color: var(--accent); color: var(--accent); }
.react-btn.mine { background: rgba(245,158,11,0.15); border-color: var(--accent); color: var(--accent); }
.react-picker { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-danger {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.45);
  color: var(--forum-red);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.22); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; min-height: 0; line-height: 1.5; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.input, .textarea, .select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
}
.textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.textarea-sm { min-height: 110px; }
.form-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.35rem; }
.radio-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.radio-chip {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.radio-chip:hover { border-color: var(--accent); color: var(--accent); }
.radio-chip input { display: none; }
.radio-chip.checked { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

.preview-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  min-height: 120px;
}
.preview-box[hidden] { display: none; }

/* ---- Markdown toolbar ---- */
.md-toolbar {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.45rem;
}
.md-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.md-btn:hover { border-color: var(--accent); color: var(--accent); }
.md-btn.active { background: rgba(245,158,11,0.15); border-color: var(--accent); color: var(--accent); }
.md-italic { font-style: italic; }
.md-bold { font-weight: 800; }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  margin: 1.75rem 0 0.5rem;
  flex-wrap: wrap;
}
.page-link {
  min-width: 36px;
  padding: 0.4rem 0.7rem;
  text-align: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.87rem;
  text-decoration: none;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-link.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ---- Tables (staff) ---- */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }

.staff-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #1a2332 0%, #0f172a 100%);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.staff-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.queue-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.queue-item.flagged { border-left: 3px solid var(--forum-red); }
.queue-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.queue-preview {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-height: 240px;
  overflow: auto;
}
.queue-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}
.queue-actions .input { max-width: 260px; }

/* ---- Profile ---- */
.profile-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
  background: radial-gradient(ellipse at top, rgba(245,158,11,0.16), transparent 70%);
}
.profile-name {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--text);
  position: relative;
}
.profile-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.profile-stat .v { font-weight: 700; color: var(--accent); font-size: 1.15rem; }
.profile-stat .k { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.level-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.6rem;
  width: 100%;
  max-width: 320px;
}
.level-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 100px;
}

.badge-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  color: var(--text);
}
.badge-tile .ico { font-size: 1rem; }

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.ach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
}
.ach-card.locked { opacity: 0.55; filter: grayscale(0.6); }
.ach-card .ach-icon { font-size: 1.8rem; }
.ach-card h4 { font-size: 0.95rem; margin: 0.5rem 0 0.25rem; color: var(--text); }
.ach-card p { font-size: 0.8rem; color: var(--text-muted); }
.ach-tiers { display: flex; gap: 0.35rem; margin-top: 0.7rem; }
.ach-tier {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.ach-tier.earned { border-color: var(--accent); color: var(--accent); background: rgba(245,158,11,0.12); }

/* ---- Notifications / list rows ---- */
.list-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.list-row.unread { border-left: 3px solid var(--accent); }
.list-row .grow { flex: 1; min-width: 0; }

/* ---- Leaderboard ---- */
.lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  margin-bottom: 0.6rem;
  text-decoration: none;
}
.lb-row:hover { border-color: var(--accent); text-decoration: none; }
.lb-rank {
  width: 38px;
  text-align: center;
  font-weight: 800;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.lb-rank.top { color: var(--accent); }

/* ---- Gate / error pages ---- */
.gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  min-height: 60vh;
}
.gate h1 {
  font-family: 'Cinzel', serif;
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.gate p { color: var(--text-muted); max-width: 560px; margin-bottom: 0.6rem; }
.gate .gate-icon { font-size: 3.5rem; margin-bottom: 1rem; }

/* ---- Misc ---- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.empty-state a { color: var(--accent); }

.search-hit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.search-hit:hover { border-color: var(--accent); }
.search-hit .snip { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.4rem; }
mark { background: rgba(245,158,11,0.3); color: var(--accent-light); border-radius: 3px; padding: 0 2px; }

.staff-member {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1rem;
}
.staff-member .name { font-weight: 600; margin-top: 0.7rem; color: var(--text); }
.staff-member a { text-decoration: none; }
.staff-member a:hover .name { color: var(--accent); }

/* ---- Profile banner + signature ---- */
.profile-shell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.profile-shell .profile-header {
  background: transparent;
  border: none;
  border-radius: 0;
}
.profile-banner {
  height: 170px;
  background-color: #10182a;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.post-signature {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  word-break: break-word;
}
.post-signature a { color: var(--accent); }

/* ---- Settings: avatar & banner ---- */
.media-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.media-block { flex: 1; min-width: 240px; }
.media-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.media-preview {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-preview .avatar-lg { margin: 0.75rem; }
.media-preview.banner {
  height: 96px;
  background-color: #10182a;
  background-size: cover;
  background-position: center;
}
.media-preview.banner.is-empty::after {
  content: '...';
  color: var(--text-dim);
  letter-spacing: 0.3em;
}
.media-form { display: flex; flex-direction: column; gap: 0.5rem; }
.media-form .input { font-size: 0.85rem; }

/* ---- Dev login account picker (flashtest builds only) ---- */
.dev-accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}
.dev-account { margin: 0; }
.dev-account-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  text-align: left;
}
.dev-account-name { font-weight: 600; color: var(--text); }
.dev-account-role {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
