/* Featurewall design system — dark, modern SaaS aesthetic. */

:root {
  --bg: #0a0a12;
  --bg2: #0e0e1a;
  --panel: #14141f;
  --panel2: #1a1a28;
  --border: #26263a;
  --border2: #33334d;
  --text: #f4f4fb;
  --muted: #a0a0b8;
  --faint: #7d7d99;
  --accent: #7c6cf0;
  --accent2: #5b4bd8;
  --accent-soft: rgba(124, 108, 240, 0.14);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --cyan: #22d3ee;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

/* Consistent visible focus for keyboard users on custom controls. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.changelog-links a:hover {
  color: var(--wall-accent-strong, var(--accent));
}
a:hover {
  text-decoration: underline;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(124, 108, 240, 0.4);
}

/* ---- Layout ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  cursor: pointer;
  text-decoration: none !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 6px 24px rgba(124, 108, 240, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(124, 108, 240, 0.45);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.35);
}
.btn-danger:hover {
  background: rgba(248, 113, 113, 0.2);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}
.btn-lg {
  padding: 16px 30px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Forms ---- */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.input,
textarea.input,
select.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  font: 15px var(--font);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder {
  color: var(--faint);
}
textarea.input {
  resize: vertical;
  min-height: 120px;
}
.hint {
  font-size: 12px;
  color: var(--faint);
  margin-top: 5px;
}

.form-error {
  display: none;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}
.form-error.visible {
  display: block;
}

/* ---- Header / nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  text-decoration: none !important;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(124, 108, 240, 0.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 50% -80px, rgba(124, 108, 240, 0.35), transparent 70%),
    radial-gradient(500px 260px at 15% 40%, rgba(52, 211, 153, 0.08), transparent 70%),
    radial-gradient(500px 260px at 85% 40%, rgba(251, 191, 36, 0.06), transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(124, 108, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 108, 240, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 108, 240, 0.4);
  color: #c4bcf8;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #a89bff, var(--accent) 45%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-note {
  color: var(--faint);
  font-size: 13px;
}

/* Hero mockup */
.mockup {
  max-width: 920px;
  margin: 70px auto 0;
  position: relative;
  z-index: 1;
}
.mockup-browser {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mockup-url {
  margin-left: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--muted);
}
.mockup-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 820px) {
  .mockup-body {
    grid-template-columns: 1fr;
  }
}
.mockup-left {
  padding: 34px;
  text-align: left;
}
.mockup-left h3 {
  font-size: 21px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.mockup-left .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.mockup-right {
  background: var(--bg2);
  border-left: 1px solid var(--border);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 820px) {
  .mockup-right {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--muted);
  font-size: 14.5px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}
.step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 14.5px;
}
.code-snippet {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: #a5f3c0;
  overflow-x: auto;
  white-space: pre;
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 18px 50px rgba(124, 108, 240, 0.25);
}
.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.pricing-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.pricing-price {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.pricing-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 24px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-features li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 14.5px;
  color: var(--text);
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--green);
  font-weight: 700;
}
.pricing-features li.off {
  color: var(--faint);
}
.pricing-features li.off::before {
  content: '✕';
  color: var(--faint);
}

/* ---- FAQ ---- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 12px;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.18), rgba(91, 75, 216, 0.08));
  border: 1px solid rgba(124, 108, 240, 0.35);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  margin-bottom: 96px;
}
.cta-band h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 16.5px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}
.footer-note {
  color: var(--faint);
  font-size: 13px;
}

/* ---- Auth pages ---- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 28px;
}
.auth-switch {
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
.auth-logo {
  margin-bottom: 26px;
}

/* ---- Dashboard ---- */
.dash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dash-top {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.dash-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.plan-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: #c4bcf8;
  border: 1px solid rgba(124, 108, 240, 0.4);
  text-transform: capitalize;
  letter-spacing: 0.03em;
}
.plan-badge.free {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.35);
}
.dash-email {
  color: var(--muted);
  font-size: 13.5px;
}
.dash-body {
  flex: 1;
  padding: 36px 0 80px;
}

.spaces-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.spaces-header h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.space-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .space-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .space-cards {
    grid-template-columns: 1fr;
  }
}
.space-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
}
.space-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.space-card h3 {
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.space-card .slug {
  color: var(--faint);
  font-size: 13px;
  font-family: ui-monospace, Menlo, monospace;
}
.space-stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.space-stats b {
  color: var(--text);
}

/* Upgrade banner */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.16), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(124, 108, 240, 0.4);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 26px;
}
.upgrade-banner p {
  font-size: 14.5px;
}
.upgrade-banner b {
  color: #c4bcf8;
}
.progress-track {
  height: 6px;
  background: var(--bg2);
  border-radius: 100px;
  margin-top: 8px;
  min-width: 220px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), #5eead4);
  transition: width 0.3s ease;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 18px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: 600 13.5px var(--font);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  background: var(--panel2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Post cards */
.t-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.p-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg2);
  min-width: 52px;
}
.p-vote button {
  background: none;
  border: none;
  color: var(--faint);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition:
    color 0.12s ease,
    transform 0.12s ease;
}
.p-vote button:hover {
  color: var(--wall-accent-strong, var(--accent));
  transform: translateY(-1px);
}
.p-vote button.voted {
  color: var(--wall-accent-strong, var(--accent));
}
.p-vote b {
  font-size: 14px;
  color: var(--text);
}
.p-main {
  flex: 1;
  min-width: 0;
}
.p-title {
  font-weight: 700;
  font-size: 15px;
}
.p-text {
  color: var(--muted);
  font-size: 14.5px;
  margin: 8px 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.p-meta {
  color: var(--faint);
  font-size: 12.5px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.p-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.icon-btn {
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--muted);
  border-radius: 9px;
  padding: 6px 11px;
  font: 600 12px var(--font);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.icon-btn.ship {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.4);
}
.icon-btn.ship:hover {
  background: rgba(52, 211, 153, 0.1);
}
.icon-btn.danger:hover {
  border-color: var(--red);
  color: var(--red);
}
.status-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
}
.status-chip.open {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber);
}
.status-chip.planned {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}
.status-chip.in_progress {
  background: rgba(124, 108, 240, 0.16);
  color: #c4bcf8;
}
.status-chip.shipped {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
}
.status-chip.closed {
  background: rgba(107, 107, 133, 0.15);
  color: var(--muted);
}
.owner-note {
  margin-top: 10px;
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Share / settings panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 18px;
}
.panel h3 {
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.panel .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.copy-row {
  display: flex;
  gap: 10px;
}
.copy-row .input {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13.5px;
  flex: 1;
}
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 10, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 34px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.modal .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error {
  border-color: rgba(248, 113, 113, 0.5);
  color: var(--red);
}

/* Empty states */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-lg);
}
.empty .big {
  font-size: 40px;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 6px;
}
.empty p {
  font-size: 14.5px;
  margin-bottom: 20px;
}

/* ---- Public board / changelog ---- */
.wall-hero {
  padding: 72px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wall-hero .glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px 240px at 50% -60px,
    var(--wall-accent, var(--accent-soft)),
    transparent 70%
  );
}
.wall-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
  font-weight: 800;
  position: relative;
}
.wall-hero p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 10px;
  position: relative;
}
.demo-chip {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  position: relative;
}
.wall-cta {
  text-align: center;
  padding-bottom: 90px;
}
.wall-cta p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 15px;
}
.wall-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.board-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  padding-bottom: 60px;
}
@media (max-width: 900px) {
  .board-layout {
    grid-template-columns: 1fr;
  }
}
.board-posts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.board-side {
  position: sticky;
  top: 24px;
}
@media (max-width: 900px) {
  .board-side {
    position: static;
  }
}
.board-powered {
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 4px;
}

/* Changelog list */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 40px;
}
.changelog-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.changelog-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.changelog-item .date {
  font-size: 12px;
  color: var(--faint);
  font-family: ui-monospace, Menlo, monospace;
  margin-bottom: 10px;
}
.changelog-item p {
  color: var(--muted);
  font-size: 14.5px;
  white-space: pre-wrap;
  word-break: break-word;
}
.changelog-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  padding-bottom: 60px;
}
.changelog-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.changelog-links a:hover {
  color: var(--accent);
}

/* ---- 404 ---- */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.notfound .big {
  font-size: 84px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.notfound h2 {
  font-size: 24px;
  margin: 14px 0 8px;
}
.notfound p {
  color: var(--muted);
  margin-bottom: 26px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Responsive helpers ---- */
.hidden {
  display: none !important;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.muted {
  color: var(--muted);
}
.text-center {
  text-align: center;
}
