/* =========================================================
   Verge — Customer feedback platform
   © Ofir Baranes 2026
   ========================================================= */

:root {
  /* palette */
  --bg-0: #0a1018;
  --bg-1: #0e1422;
  --bg-2: #141a2c;
  --bg-3: #1c2238;
  --ink-0: #f1eef0;
  --ink-1: #d6d1d8;
  --ink-2: #9a93a4;
  --ink-3: #5e5666;
  --line-0: rgba(255,255,255,.07);
  --line-1: rgba(255,255,255,.14);
  --line-2: rgba(255,255,255,.24);
  --glass-0: rgba(20, 26, 44, 0.55);
  --glass-1: rgba(28, 34, 56, 0.68);
  --glass-2: rgba(36, 42, 70, 0.78);

  /* accents */
  --rose: #fb7185;
  --rose-2: #f43f5e;
  --cyan: #22d3ee;
  --cyan-2: #06b6d4;
  --amber: #fbbf24;
  --emerald: #34d399;
  --violet: #a78bfa;
  --indigo: #818cf8;
  --red: #ef4444;

  /* gradients */
  --grad-primary: linear-gradient(135deg, var(--rose) 0%, var(--cyan) 100%);
  --grad-warm: linear-gradient(135deg, var(--rose) 0%, var(--amber) 100%);
  --grad-cool: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);

  /* type */
  --serif: "Fraunces", "Frank Ruhl Libre", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --accent: "Instrument Serif", "Fraunces", Georgia, serif;

  /* shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* shadow */
  --shadow-card: 0 18px 50px rgba(0,0,0,.4), 0 0 0 1px var(--line-0);
  --shadow-glow: 0 24px 60px rgba(251,113,133,.25), 0 0 0 1px rgba(251,113,133,.18);

  /* motion */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-glide: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
*::selection { background: rgba(251,113,133,.4); color: #fff; }

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.mono { font-family: var(--mono); letter-spacing: -.01em; }
.serif-italic { font-family: var(--accent); font-style: italic; font-weight: 400; }

/* ───────── Atmospheric bg ───────── */
.bg-stage {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(251,113,133,.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(34,211,238,.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 110%, rgba(251,191,36,.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, #060a14 60%, #03070d 100%);
}
.bg-hero {
  position: absolute; top: 0; left: 0; right: 0; height: 70vh;
  background-size: cover; background-position: center top;
  opacity: .42;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  filter: blur(2px) saturate(120%);
}
.bg-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode: overlay; opacity: .35;
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; mix-blend-mode: screen; }
.orb-rose { top: -120px; left: 8%; width: 380px; height: 380px; background: var(--rose); animation: floatA 18s ease-in-out infinite; }
.orb-cyan { top: 18%; right: -80px; width: 320px; height: 320px; background: var(--cyan); animation: floatB 22s ease-in-out infinite; }
.orb-amber { bottom: -80px; left: 38%; width: 280px; height: 280px; background: var(--amber); opacity: .3; animation: floatA 26s ease-in-out infinite reverse; }
@keyframes floatA { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(40px) translateX(-30px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-30px) translateX(40px); } }

/* ───────── Topbar ───────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 32px;
  background: rgba(10, 16, 24, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line-0);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 6px 18px rgba(251,113,133,.55)); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -.02em; display: block; }
.brand-tag { font-size: 10.5px; color: var(--ink-2); letter-spacing: .04em; display: block; }
.topnav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.topnav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px;
  font-weight: 500; font-size: 13px; color: var(--ink-2);
  transition: color .25s, background .25s;
}
.topnav-link:hover { color: var(--ink-0); background: rgba(255,255,255,.04); }
.topnav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(251,113,133,.18), rgba(34,211,238,.10));
  box-shadow: inset 0 0 0 1px rgba(251,113,133,.32);
}
.topnav-link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px;
  height: 2px; background: var(--grad-primary); border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(251,113,133,.6));
}
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(52,211,153,.12); color: var(--emerald);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(52,211,153,.25);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 1.8s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent; background: none;
  transition: transform .15s var(--ease-spring), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn.lg { padding: 13px 22px; font-size: 14.5px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--rose) 0%, var(--cyan) 100%);
  color: #0c0a28; font-weight: 700;
  box-shadow: 0 8px 20px rgba(251,113,133,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(251,113,133,.5); }
.btn-glass {
  background: rgba(255,255,255,.06); color: var(--ink-0);
  border: 1px solid var(--line-1);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.1); border-color: var(--line-2); }
.btn-ghost { background: transparent; color: var(--ink-1); border: 1px solid var(--line-0); }
.btn-danger { background: rgba(251,113,133,.14); color: var(--rose); border: 1px solid rgba(251,113,133,.32); }

/* ───────── Hero ───────── */
.hero { padding: 60px 32px 36px; }
.hero-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.22);
  color: var(--ink-1); font-size: 11.5px; letter-spacing: .04em;
  font-family: var(--mono);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.eyebrow-sep { color: var(--ink-3); }

.hero-title {
  margin: 18px 0 12px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02; letter-spacing: -.035em;
  color: #fff;
}
.hero-title span { display: block; }
.hero-grad {
  background: linear-gradient(120deg, var(--rose) 0%, var(--cyan) 50%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 12px 32px rgba(251,113,133,.4);
}
.hero-title em { font-family: var(--accent); font-style: italic; font-weight: 400; color: var(--amber); }
.hero-sub {
  font-size: 17px; color: var(--ink-1); max-width: 600px;
  margin: 12px 0 28px; line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-marks { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-marks .mark {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-0);
  color: var(--ink-1); font-size: 12.5px; font-weight: 500;
}
.hero-marks .mark i { color: var(--rose); }

.hero-card {
  position: relative;
  padding: 26px;
  background: var(--glass-1);
  backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--line-1);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-glow);
  display: flex; flex-direction: column; gap: 16px;
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; }
.hc-eyebrow { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hc-tick { font-family: var(--mono); font-size: 11px; color: var(--emerald); display: inline-flex; gap: 5px; align-items: center; }
.hero-card-body {
  padding: 18px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-0);
  min-height: 140px;
}
.placeholder { color: var(--ink-3); font-size: 12px; }
.hp-title { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; margin: 0; }
.hp-meta { display: flex; gap: 12px; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.hp-board { color: var(--rose); }
.hp-votes { color: var(--emerald); }
.hp-body { font-size: 12.5px; color: var(--ink-1); margin: 10px 0 0; line-height: 1.5; }
.hero-card-foot {
  display: flex; gap: 8px; justify-content: space-between;
  padding-top: 6px;
}
.hc-stat {
  flex: 1; padding: 10px 12px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-0);
  text-align: center; font-size: 10.5px; color: var(--ink-2);
  letter-spacing: .06em; text-transform: uppercase;
}
.hc-stat strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; }

/* ───────── Shell + tabs ───────── */
.shell { max-width: 1320px; margin: 0 auto; padding: 32px 32px 80px; }
.tab { display: none; animation: fadeUp .5s var(--ease-glide); }
.tab.tab-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.panel-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 22px; gap: 18px; flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3vw, 38px); letter-spacing: -.025em; line-height: 1.05;
}
.panel-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-meta-mono { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.crumb i { font-size: 8px; color: var(--ink-3); }

/* ───────── KPI ───────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi {
  position: relative; padding: 20px;
  background: var(--glass-0); backdrop-filter: blur(16px);
  border: 1px solid var(--line-0); border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-spring), border-color .2s;
  overflow: hidden;
}
.kpi:hover { transform: translateY(-4px); border-color: var(--line-2); }
.kpi::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-primary); opacity: .8; }
.kpi-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.kpi-l { font-size: 12px; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.kpi-i {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(251,113,133,.14); color: var(--rose); font-size: 12px;
}
.kpi-v { font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1.1; letter-spacing: -.03em; }
.kpi-u { font-size: 18px; color: var(--ink-2); margin-left: 2px; font-family: var(--mono); }
.kpi-f { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.kpi-ring { width: 36px; height: 36px; transform: rotate(-90deg); }
.kpi-ring-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 4; }
.kpi-ring-bar { fill: none; stroke: var(--emerald); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 88; transition: stroke-dashoffset 1.2s var(--ease-glide); }

.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge-ok { background: rgba(52,211,153,.14); color: var(--emerald); }
.badge-info { background: rgba(34,211,238,.14); color: var(--cyan); }
.badge-warn { background: rgba(251,191,36,.16); color: var(--amber); }
.badge-err { background: rgba(251,113,133,.16); color: var(--rose); }
.badge-violet { background: rgba(167,139,250,.16); color: var(--violet); }

/* ───────── Card grid ───────── */
.card-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 22px; }
.card-grid-2col { grid-template-columns: 1fr 1fr; }
.card {
  position: relative; padding: 20px;
  background: var(--glass-0); backdrop-filter: blur(14px);
  border: 1px solid var(--line-0); border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}
.card-wide { min-height: 280px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 17px; font-weight: 700; font-family: var(--serif); letter-spacing: -.015em; }
.card-eyebrow { font-size: 11px; color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; }
.card-link { font-size: 12px; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; cursor: pointer; }
.card-link:hover { gap: 10px; }

.chart-bars { width: 100%; height: 220px; display: block; }
.bar-sent { fill: url(#barGrad); }
.bar-label { fill: var(--ink-2); font-size: 9.5px; font-family: var(--mono); }
.bar-value { fill: #fff; font-size: 9px; font-family: var(--mono); font-weight: 600; }

.donut-wrap { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.chart-donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-num { font-size: 32px; font-weight: 700; line-height: 1; }
.donut-sub { font-size: 11px; color: var(--ink-2); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.legend .swatch { width: 12px; height: 12px; border-radius: 4px; }
.legend .name { color: var(--ink-1); flex: 1; }
.legend .val { font-family: var(--mono); color: var(--ink-2); }

/* mini lists */
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--r-md);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-0);
  transition: border-color .2s, transform .2s var(--ease-spring);
  cursor: pointer;
}
.mini-list li:hover { border-color: var(--line-2); transform: translateX(2px); }
.mini-list .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.mini-list .meta { flex: 1; }
.mini-list .name { font-weight: 600; font-size: 13.5px; }
.mini-list .sub { font-size: 11.5px; color: var(--ink-2); }
.mini-list .pace { font-family: var(--mono); font-size: 11px; color: var(--emerald); }

.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.activity-list li {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
  padding: 10px; border-radius: var(--r-md);
  border: 1px solid var(--line-0); background: rgba(255,255,255,.025);
}
.activity-list .av {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(251,113,133,.5), rgba(34,211,238,.4));
  font-family: var(--serif); font-weight: 700; color: #fff; font-size: 13px;
}
.activity-list .desc { font-size: 12.5px; color: var(--ink-1); }
.activity-list .desc strong { color: #fff; }
.activity-list .when { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* ───────── Boards ───────── */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.board-card {
  position: relative;
  padding: 24px; border-radius: var(--r-xl);
  background: var(--glass-0); backdrop-filter: blur(14px);
  border: 1px solid var(--line-0); box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-spring), border-color .2s;
  cursor: pointer;
  overflow: hidden;
}
.board-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.board-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--b-accent, var(--rose)); }
.bc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bc-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.bc-meta { flex: 1; }
.bc-name { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.1; letter-spacing: -.015em; }
.bc-slug { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.bc-desc { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.5; }
.bc-stats { display: flex; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line-0); }
.bc-stat { display: flex; flex-direction: column; gap: 2px; }
.bc-stat strong { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.bc-stat span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.bc-cta { margin-left: auto; }

/* ───────── Feed ───────── */
.filter-row { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line-0); border-radius: 999px; }
.chip { padding: 6px 14px; border-radius: 999px; background: transparent; border: none; font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.chip:hover { color: var(--ink-0); }
.chip-active { background: linear-gradient(135deg, var(--rose) 0%, var(--cyan) 100%); color: #0c0a28; font-weight: 700; }
.search-input {
  padding: 9px 14px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-1);
  color: var(--ink-0); font-size: 13px; min-width: 200px;
}
.search-input:focus { outline: none; border-color: var(--rose); }

.feed-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: flex-start; }
.feed-side {
  position: sticky; top: 80px;
  padding: 18px; border-radius: var(--r-xl);
  background: var(--glass-0); border: 1px solid var(--line-0);
}
.side-label { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.side-label:not(:first-child) { margin-top: 18px; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-btn {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  background: transparent; border: none; text-align: left;
  font-size: 13px; color: var(--ink-1); transition: all .2s;
}
.side-btn:hover { background: rgba(255,255,255,.04); }
.side-active { background: rgba(251,113,133,.12); color: var(--rose); font-weight: 600; }

.feed-stream { display: flex; flex-direction: column; gap: 12px; }
.post-card {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 18px; padding: 20px;
  border-radius: var(--r-xl);
  background: var(--glass-0); backdrop-filter: blur(14px);
  border: 1px solid var(--line-0); box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease-spring), border-color .2s;
  cursor: pointer;
}
.post-card:hover { border-color: var(--line-2); transform: translateX(2px); }
.post-card.pinned { border-color: rgba(251,191,36,.35); }
.post-vote {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 4px; padding: 14px 8px;
  border-radius: var(--r-md);
  background: rgba(251,113,133,.06); border: 1px solid var(--line-0);
  text-align: center;
}
.post-vote.voted { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.32); }
.post-vote i { font-size: 16px; color: var(--rose); transition: transform .2s var(--ease-spring); }
.post-vote.voted i { color: var(--emerald); }
.post-vote:hover i { transform: translateY(-2px); }
.post-vote .vc { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1; }
.post-vote .vl { font-size: 10px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }

.post-body {}
.post-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.post-board { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.post-status { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.s-open { background: rgba(255,255,255,.06); color: var(--ink-2); }
.s-under-review { background: rgba(167,139,250,.14); color: var(--violet); }
.s-planned { background: rgba(34,211,238,.14); color: var(--cyan); }
.s-in-progress { background: rgba(251,191,36,.18); color: var(--amber); }
.s-shipped { background: rgba(52,211,153,.14); color: var(--emerald); }
.s-declined { background: rgba(239,68,68,.14); color: var(--red); }
.post-pin-badge { font-size: 10.5px; color: var(--amber); }
.post-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.post-tag { padding: 2px 7px; border-radius: 4px; background: rgba(167,139,250,.12); color: var(--violet); font-size: 10.5px; font-family: var(--mono); }

.post-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.post-snip { margin: 6px 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.post-foot { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.post-foot .author { color: var(--ink-1); font-family: var(--sans); font-weight: 500; }
.post-foot .sep { color: var(--ink-3); }
.post-foot .ico { color: var(--cyan); }

/* ───────── Roadmap (kanban) ───────── */
.roadmap-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.km-col {
  padding: 16px; border-radius: var(--r-xl);
  background: var(--glass-0); border: 1px solid var(--line-0);
  min-height: 360px;
  display: flex; flex-direction: column; gap: 10px;
}
.km-col-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line-0); }
.km-col-title { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: -.015em; }
.km-col-count { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.04); }
.km-card {
  padding: 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-0);
  cursor: pointer;
  transition: transform .2s var(--ease-spring), border-color .2s;
}
.km-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.km-card.pinned { border-color: rgba(251,191,36,.4); }
.km-card-title { margin: 0 0 8px; font-weight: 600; font-size: 13.5px; line-height: 1.3; letter-spacing: -.01em; }
.km-card-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.km-card-meta .v { color: var(--rose); display: inline-flex; align-items: center; gap: 4px; }
.km-card-meta .c { color: var(--cyan); display: inline-flex; align-items: center; gap: 4px; }
.km-card-meta .eta { color: var(--amber); }

/* ───────── Subscribers ───────── */
.subs-table-wrap {
  padding: 8px; border-radius: var(--r-xl);
  background: var(--glass-0); border: 1px solid var(--line-0); box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.subs-table { width: 100%; border-collapse: collapse; }
.subs-table th, .subs-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-0); font-size: 13px; }
.subs-table th { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.subs-table tr:hover td { background: rgba(255,255,255,.03); }
.subs-table .email { font-family: var(--mono); font-size: 12px; }

/* ───────── Settings ───────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); letter-spacing: .04em; font-weight: 500; }
.form input, .form select, .form textarea {
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-1);
  color: var(--ink-0); font-size: 13.5px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--rose); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.form .check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-1); cursor: pointer; }
.form .check input { width: auto; }

.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tech-card { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line-0); }
.ti { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; color: #0c0a28; }
.ti-a { background: linear-gradient(135deg, #fb7185, #fbbf24); }
.ti-b { background: linear-gradient(135deg, #34d399, #22d3ee); }
.ti-c { background: linear-gradient(135deg, #818cf8, #a78bfa); }
.ti-d { background: linear-gradient(135deg, #22d3ee, #818cf8); }
.ti-e { background: linear-gradient(135deg, #fbbf24, #fb7185); }
.ti-f { background: linear-gradient(135deg, #34d399, #818cf8); }
.tech-card strong { display: block; font-size: 13px; }
.tech-card small { font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
.tech-card .mono { color: var(--cyan); }

/* ───────── Drawer ───────── */
.drawer-shade {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  display: flex; justify-content: flex-end;
  animation: fadeIn .25s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  width: min(620px, 100%); height: 100%;
  background: var(--bg-1); border-left: 1px solid var(--line-1);
  overflow-y: auto;
  animation: slideIn .35s var(--ease-glide);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
  background: rgba(14,20,34,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-0);
}
.drawer-head h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.015em; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-0);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.drawer-close:hover { background: rgba(255,255,255,.08); }
.drawer-body { padding: 24px; }
.drawer-post-meta { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.drawer-body h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.drawer-body p { line-height: 1.6; color: var(--ink-1); margin: 12px 0; font-size: 14.5px; }
.drawer-actions { display: flex; gap: 8px; margin: 18px 0; }
.comments-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-0); }
.comments-section h4 { margin: 0 0 14px; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.comment {
  padding: 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-0);
  margin-bottom: 10px;
}
.comment.team { border-color: rgba(34,211,238,.32); background: rgba(34,211,238,.06); }
.comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comment-author { font-weight: 600; font-size: 13px; }
.comment-team-badge { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: var(--cyan); color: var(--bg-0); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.comment-time { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.comment-body { font-size: 13.5px; color: var(--ink-1); line-height: 1.5; margin: 0; }

.comment-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.comment-form textarea { min-height: 80px; resize: vertical; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ───────── Toast ───────── */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 18px; border-radius: var(--r-md);
  background: var(--glass-2); backdrop-filter: blur(20px);
  border: 1px solid var(--line-1);
  color: var(--ink-0); font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-card);
  animation: toastIn .3s var(--ease-spring);
}
.toast.ok { border-left: 3px solid var(--emerald); }
.toast.err { border-left: 3px solid var(--rose); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ───────── Footer ───────── */
.footer { border-top: 1px solid var(--line-0); padding: 30px 32px; margin-top: 40px; background: rgba(0,0,0,.4); backdrop-filter: blur(20px); }
.footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand strong { display: block; font-family: var(--serif); font-weight: 700; }
.footer-brand span { font-size: 11.5px; color: var(--ink-3); }
.footer-nav { display: flex; gap: 16px; justify-content: center; font-size: 12.5px; color: var(--ink-2); }
.footer-nav a:hover { color: var(--ink-0); }
.footer-meta { justify-self: end; font-size: 11.5px; color: var(--ink-3); }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid-2col { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .feed-layout { grid-template-columns: 1fr; }
  .feed-side { position: relative; top: auto; }
  .roadmap-kanban { grid-template-columns: 1fr 1fr; }
  .topnav { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav, .footer-meta { justify-content: center; justify-self: center; }
}
@media (max-width: 720px) {
  .topbar { padding: 12px 18px; }
  .shell, .hero { padding-left: 18px; padding-right: 18px; }
  .hero-title { font-size: clamp(34px, 7vw, 48px); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .roadmap-kanban { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .post-card { grid-template-columns: 60px 1fr; gap: 12px; padding: 16px; }
}
