*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #07080f; --surface: #0c0e1a; --card: #101220; --border: #1c1f38;
  --text: #eeeaf8; --muted: #817e96; --blue: #3b82f6; --violet: #8b5cf6;
  --glow-blue: rgba(59,130,246,0.12); --glow-violet: rgba(139,92,246,0.12);
  --red: #f87171; --green: #4ade80;
}
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; min-height: 100vh; }
a { color: inherit; }

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,8,15,0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(28,31,56,0.6);
  padding: 0 2rem; height: 58px; display: flex; align-items: center; gap: 1.5rem;
}
.nav-links { display: flex; gap: 0.25rem; list-style: none; margin-left: auto; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding: 0.35rem 0.75rem; border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--blue); background: rgba(59,130,246,0.1); }
.nav-brand { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; text-decoration: none; }

.hero { max-width: 820px; margin: 0 auto; padding: 3.5rem 2rem 2rem; border-bottom: 1px solid var(--border); }
.hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.container { max-width: 820px; margin: 0 auto; padding: 2.5rem 2rem 6rem; }
.section-label { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.75rem; margin-bottom: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.card:hover { border-color: var(--blue); box-shadow: 0 0 32px var(--glow-blue), 0 0 64px var(--glow-violet); }
.card-link { text-decoration: none; display: block; }

.thread-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.thread-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.thread-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.04em; }
.reply-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.04em;
  color: var(--violet); background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px; padding: 0.25rem 0.7rem; white-space: nowrap; flex-shrink: 0;
}
.lock-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.04em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.25rem 0.7rem; margin-left: 0.5rem;
}

.empty-card { border: 1px dashed var(--border); border-radius: 12px; padding: 2rem; text-align: center; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; }
.error-card { border: 1px solid rgba(248,113,113,0.35); background: rgba(248,113,113,0.06); color: var(--red); border-radius: 12px; padding: 1rem 1.25rem; font-size: 0.85rem; margin-bottom: 1rem; }

button, input, textarea { font-family: inherit; }
.btn {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.6rem 1.1rem; cursor: pointer; transition: all 0.15s;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--violet)); border: none; color: white; }
.btn-primary:hover { opacity: 0.9; color: white; filter: brightness(1.1); }
.btn-danger { border-color: rgba(248,113,113,0.4); color: var(--red); }
.btn-danger:hover { background: rgba(248,113,113,0.08); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.65rem 0.85rem; color: var(--text); font-size: 0.9rem; transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 100px; }

.post { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.post:last-child { border-bottom: none; }
.post-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.post-author { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--violet); }
.post-date { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--muted); }
.post-content { font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; }
.post-content.deleted { color: var(--muted); font-style: italic; }
.post-actions { margin-top: 0.5rem; }
.report-link { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--muted); background: none; border: none; cursor: pointer; letter-spacing: 0.04em; text-decoration: underline; padding: 0; }
.report-link:hover { color: var(--red); }

footer { border-top: 1px solid var(--border); padding: 1.75rem 2rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.footer-text { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em; }

@media (max-width: 560px) {
  nav { padding: 0 1rem; gap: 0.75rem; }
  .nav-links a { padding: 0.35rem 0.55rem; font-size: 0.62rem; }
  .hero { padding-top: 2.5rem; }
}
