:root {
  --bg: #131720;
  --bg-elevated: #171d28;
  --bg-soft: #1d2431;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #96a1b4;
  --accent: #ffd84d;
  --accent-strong: #f4c620;
  --success: #61d095;
  --danger: #ff7b7b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 77, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 216, 77, 0.08), transparent 24%),
    linear-gradient(180deg, #11151d 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(10, 13, 19, 0.74);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #fff0a8);
  color: #171717;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand small,
.sidebar-foot,
.post-meta,
.meta-line,
.pill,
.metric-card span {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-list a,
.user-pill,
.pill {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.nav-list a {
  padding: 14px 16px;
  font-weight: 700;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  border-color: rgba(255, 216, 77, 0.4);
  background: rgba(255, 216, 77, 0.08);
}

.sidebar-foot {
  margin-top: 24px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.main-content {
  padding: 24px;
}

.topbar,
.filters-grid,
.card-head,
.post-header,
.comment-head,
.section-heading,
.topbar-actions,
.meta-line,
.hero,
.hero-stats,
.actions,
.comments-layout {
  display: flex;
  gap: 16px;
}

.topbar,
.post-header,
.hero,
.section-heading,
.comment-head,
.card-head {
  justify-content: space-between;
  align-items: center;
}

.topbar {
  margin-bottom: 20px;
}

.panel {
  background: linear-gradient(180deg, rgba(26, 32, 44, 0.98), rgba(20, 25, 35, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero {
  margin-bottom: 20px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(26, 32, 44, 0.98), rgba(20, 25, 35, 0.98));
}

.compact-hero {
  padding: 28px;
}

.hero h1,
.post-detail h1,
.login-panel h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.hero p,
.muted-callout p,
.feedback-card p,
.roadmap-card p,
.changelog-card p,
.login-panel p {
  margin: 0;
  color: #c3cbda;
  line-height: 1.7;
}

.hero-stats {
  align-items: stretch;
}

.stat,
.metric-card {
  min-width: 132px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat strong,
.metric-card strong {
  font-size: 1.8rem;
}

.banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
}

.banner.notice {
  background: rgba(97, 208, 149, 0.12);
  border-color: rgba(97, 208, 149, 0.28);
}

.banner.error {
  background: rgba(255, 123, 123, 0.12);
  border-color: rgba(255, 123, 123, 0.28);
}

.btn,
input,
textarea,
select {
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: #111;
  background: linear-gradient(135deg, var(--accent), #ffe788);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.user-pill,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.user-pill img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 216, 77, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 216, 77, 0.08);
}

.filters,
.composer,
.post-detail,
.login-panel,
.metrics-grid,
.admin-grid,
.roadmap-grid,
.post-grid,
.comment-list {
  margin-top: 20px;
}

.filters-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feedback-card h2,
.roadmap-card h3,
.changelog-card h2,
.admin-post-row h3 {
  margin: 12px 0 10px;
}

.feedback-card h2 a:hover,
.roadmap-card h3 a:hover,
.admin-post-row a:hover {
  color: var(--accent);
}

.badge,
.tag,
.vote-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge.status.open {
  background: rgba(255, 255, 255, 0.08);
}

.badge.status.planned {
  background: rgba(255, 216, 77, 0.12);
  color: #ffe788;
}

.badge.status.in-progress {
  background: rgba(122, 184, 255, 0.14);
  color: #8ec0ff;
}

.badge.status.completed,
.badge.accent {
  background: rgba(97, 208, 149, 0.14);
  color: #88e7b3;
}

.badge.status.declined {
  background: rgba(255, 123, 123, 0.14);
  color: #ff9a9a;
}

.badge.category,
.tag,
.vote-pill {
  background: rgba(255, 255, 255, 0.06);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vote-pill {
  color: var(--accent);
}

.rich-text {
  color: #dde3ef;
  line-height: 1.78;
}

.rich-text p {
  margin: 0 0 1em;
}

.comments-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  margin-top: 20px;
}

.comment-list {
  display: grid;
  gap: 16px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  overflow-x: auto;
}

.roadmap-column {
  display: grid;
  gap: 14px;
  min-width: 240px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}

.column-body,
.stack {
  display: grid;
  gap: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
}

.admin-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}

.empty,
.muted-callout {
  text-align: center;
}

.compact {
  padding: 18px;
}

@media (max-width: 1100px) {
  .app-shell,
  .admin-grid,
  .comments-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .post-grid,
  .filters-grid,
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .main-content,
  .sidebar {
    padding: 16px;
  }

  .hero,
  .panel {
    padding: 20px;
  }

  .post-grid,
  .filters-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero,
  .post-header,
  .admin-post-row,
  .status-form {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }
}
