.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,16,32,0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.brand small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--green);
  font-size: 11px;
  margin-bottom: 4px;
}
.brand h1 { margin: 0; font-size: 30px; line-height: 1; font-weight: 900; }
.nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.nav a:hover { color: white; }
.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: white;
  border-radius: 18px;
  padding: 12px 16px;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--panel-strong); }
.btn-primary {
  background: linear-gradient(135deg, var(--green), #31e29f);
  color: #07140d;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(25,212,138,0.28);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}
.pill.success { background: rgba(25,212,138,0.12); color: #90f3c5; border-color: rgba(25,212,138,0.2); }
.pill.warn { background: rgba(246,196,69,0.14); color: #f8d982; border-color: rgba(246,196,69,0.18); }
.field, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: white;
  border-radius: 18px;
  padding: 14px 15px;
  outline: none;
}
.field:focus, textarea:focus, select:focus {
  border-color: rgba(25,212,138,0.45);
  box-shadow: 0 0 0 4px rgba(25,212,138,0.08);
}
textarea { min-height: 140px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.auth-card { width: min(560px, 100%); }
.notice {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.hero { padding: 48px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  margin-bottom: 18px;
}
.section { padding: 24px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.analysis-grid, .posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.preview-list { display: grid; gap: 12px; margin-top: 14px; }
.preview-item { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.03); }
.footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 20px 0 36px; color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.dashboard-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3, .analysis-grid, .posts-grid, .dashboard-boxes { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; }
}
