/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-2: #161616;
  --surface-hover: #1A1A1A;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #EDEDED;
  --text-2: rgba(255,255,255,0.55);
  --text-3: rgba(255,255,255,0.30);
  --green: #22c55e;
  --green-bg: rgba(34,197,94,0.1);
  --green-border: rgba(34,197,94,0.25);
  --amber: #f59e0b;
  --amber-bg: rgba(245,158,11,0.1);
  --amber-border: rgba(245,158,11,0.25);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.1);
  --red-border: rgba(239,68,68,0.25);
  --purple: #a78bfa;
  --purple-bg: rgba(167,139,250,0.1);
  --purple-border: rgba(167,139,250,0.25);
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
}

::selection { background: rgba(34,197,94,0.2); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── Sidebar App Layout ──────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 216px;
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  height: 52px;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  flex-shrink: 0;
}

.logo-name {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  padding: 0.65rem 0.5rem 0.3rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.6rem;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}

.nav-link:hover { background: var(--surface); color: var(--text); }

.nav-link.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.nav-link svg { flex-shrink: 0; opacity: 0.65; }
.nav-link:hover svg, .nav-link.active svg { opacity: 1; }

.sidebar-footer {
  padding: 0.6rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--r);
  margin-bottom: 0.35rem;
}

.user-avatar-sm {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-plan {
  font-size: 0.66rem;
  color: var(--text-3);
}

.logout-form { width: 100%; }

.btn-logout {
  width: 100%;
  padding: 0.44rem 0.6rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-logout:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-hover);
}

/* ── Main content ───────────────────────────────────────── */
.main-content {
  margin-left: 216px;
  flex: 1;
  min-width: 0;
  padding: 2rem 2.25rem;
}

.content-inner {
  max-width: 900px;
}

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.84rem;
  color: var(--text-2);
  margin-top: 0.2rem;
}

/* ── Stats row ──────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s;
}
.stat-card:hover { border-color: var(--border-hover); }

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  font-size: 0.7rem;
  color: var(--text-2);
  margin-top: 0.25rem;
}

/* ── Grid layouts ───────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}

.card + .card { margin-top: 1rem; }

.card-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── KV list ─────────────────────────────────────────────── */
.kv-list { display: grid; }

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.kv-row:last-child { border-bottom: none; }

.kv-key {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}

.kv-val {
  font-size: 0.84rem;
  color: var(--text);
  text-align: right;
}

/* ── Progress bars ──────────────────────────────────────── */
.progress-item { margin-bottom: 1.25rem; }
.progress-item:last-child { margin-bottom: 0; }

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.progress-label { font-size: 0.82rem; color: var(--text-2); font-weight: 500; }
.progress-nums  { font-size: 0.78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.progress-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transform-origin: left;
  animation: bar-grow 0.75s cubic-bezier(0.34,1.3,0.64,1) 0.2s both;
}
.progress-fill.warn { background: var(--amber); }

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
}
.progress-footer span { font-size: 0.69rem; color: var(--text-3); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-sm);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.badge-green   { background: var(--green-bg);  border-color: var(--green-border);  color: var(--green); }
.badge-amber   { background: var(--amber-bg);  border-color: var(--amber-border);  color: var(--amber); }
.badge-red     { background: var(--red-bg);    border-color: var(--red-border);    color: var(--red); }
.badge-purple  { background: var(--purple-bg); border-color: var(--purple-border); color: var(--purple); }
.badge-neutral { background: var(--surface-2); border-color: var(--border);        color: var(--text-3); }

.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: blink 2.5s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.58rem 1rem;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s, opacity 0.1s;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--text);
  color: #0A0A0A;
  border-color: transparent;
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--border-hover); }

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.btn-full { width: 100%; }

/* ── Link items ──────────────────────────────────────────── */
.link-list { display: grid; gap: 2px; }

.link-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.1s, color 0.1s;
}
.link-item:hover { background: var(--surface-hover); color: var(--text); }

.link-item-icon {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--text-3);
}

.link-item-arrow { margin-left: auto; color: var(--text-3); font-size: 0.75rem; }

.link-item-admin .link-item-icon { background: var(--purple-bg); border-color: var(--purple-border); color: var(--purple); }
.link-item-admin:hover { color: var(--purple); }

/* ── Data table ──────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  max-height: 520px;
  overflow-y: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.table-wrap::-webkit-scrollbar { width: 5px; height: 5px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.data-table thead { position: sticky; top: 0; z-index: 2; background: var(--surface); }

.data-table th {
  text-align: left;
  padding: 0.55rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
.data-table th.num { text-align: right; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--text-2); }

.sort-icon { margin-left: 0.25rem; font-size: 0.58rem; }
th.sort-asc  .sort-icon::after { content: " ↑"; }
th.sort-desc .sort-icon::after { content: " ↓"; }
th:not(.sort-asc):not(.sort-desc) .sort-icon::after { content: " ↕"; }

.data-table td {
  padding: 0.68rem 0.8rem;
  font-size: 0.83rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.data-table td.num {
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.td-name  { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.td-email { font-size: 0.71rem; color: var(--text-3); margin-top: 0.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.table-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.search-input {
  flex: 1;
  padding: 0.48rem 0.8rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.83rem;
  outline: none;
  transition: border-color 0.12s;
}
.search-input:focus { border-color: var(--border-hover); }
.search-input::placeholder { color: var(--text-3); }

.table-meta { font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }

/* Row stagger animation */
.data-table tbody tr:nth-child(1)  { animation: row-in 0.2s ease 0ms   both; }
.data-table tbody tr:nth-child(2)  { animation: row-in 0.2s ease 25ms  both; }
.data-table tbody tr:nth-child(3)  { animation: row-in 0.2s ease 50ms  both; }
.data-table tbody tr:nth-child(4)  { animation: row-in 0.2s ease 75ms  both; }
.data-table tbody tr:nth-child(5)  { animation: row-in 0.2s ease 100ms both; }
.data-table tbody tr:nth-child(6)  { animation: row-in 0.2s ease 125ms both; }
.data-table tbody tr:nth-child(7)  { animation: row-in 0.2s ease 150ms both; }
.data-table tbody tr:nth-child(8)  { animation: row-in 0.2s ease 175ms both; }
.data-table tbody tr:nth-child(9)  { animation: row-in 0.2s ease 200ms both; }
.data-table tbody tr:nth-child(10) { animation: row-in 0.2s ease 225ms both; }
.data-table tbody tr:nth-child(11) { animation: row-in 0.2s ease 250ms both; }
.data-table tbody tr:nth-child(12) { animation: row-in 0.2s ease 275ms both; }

@keyframes row-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ── Public top bar ──────────────────────────────────────── */
.pub-topbar {
  height: 52px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.pub-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.pub-topbar-nav { display: flex; gap: 0.5rem; align-items: center; }

/* ── Public page layout ─────────────────────────────────── */
.pub-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  gap: 3.5rem;
}

/* ── Hero section ───────────────────────────────────────── */
.hero-badge { display: inline-flex; margin-bottom: 1.25rem; }

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.trust-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-2);
}
.trust-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ── Install note ───────────────────────────────────────── */
.install-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.15rem;
}

.shortcut-hint {
  font-size: 0.84rem;
  color: var(--text-2);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

kbd {
  display: inline-block;
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-hover);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 0.85em;
  color: var(--text-2);
}

.install-warning {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
}

.warn-icon { font-size: 1rem; flex-shrink: 0; line-height: 1.5; }

.warn-body > strong {
  display: block;
  font-size: 0.83rem;
  color: var(--amber);
  margin-bottom: 0.3rem;
}

.warn-body p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.warn-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.25rem;
}

.warn-steps li {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── Section header ─────────────────────────────────────── */
.pub-section-header { margin-bottom: 1.5rem; }

.pub-section-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.pub-section-subtitle { font-size: 0.9rem; color: var(--text-2); }

/* ── How-it-works grid ──────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.step-card {
  background: var(--surface);
  padding: 1.25rem;
  transition: background 0.1s;
}
.step-card:hover { background: var(--surface-hover); }

.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-3);
  margin-bottom: 0.65rem;
}

.step-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.step-desc  { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }

/* ── Feature list ───────────────────────────────────────── */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.feature-list li {
  font-size: 0.85rem;
  color: var(--text-2);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}
.feature-list li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 7px;
}

/* ── Privacy cards ──────────────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.privacy-card {
  background: var(--surface);
  padding: 1.25rem;
  transition: background 0.1s;
}
.privacy-card:hover { background: var(--surface-hover); }

.privacy-icon { font-size: 1.3rem; margin-bottom: 0.6rem; display: block; }
.privacy-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.privacy-desc  { font-size: 0.82rem; color: var(--text-2); line-height: 1.65; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  position: relative;
}

.plan-card.featured { border-color: rgba(34,197,94,0.3); }

.plan-tag {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-sm);
  background: var(--green);
  color: #0A0A0A;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.plan-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
  line-height: 1;
}

.plan-desc { font-size: 0.83rem; color: var(--text-2); margin-bottom: 1.25rem; }

.plan-features {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.plan-features li {
  font-size: 0.83rem;
  color: var(--text-2);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.plan-features li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  position: absolute;
  left: 0; top: 7px;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: grid; }

.faq-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child  { border-bottom: none; padding-bottom: 0; }

.faq-q { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.faq-a { font-size: 0.83rem; color: var(--text-2); line-height: 1.7; }

/* ── Footer ──────────────────────────────────────────────── */
.pub-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy { font-size: 0.75rem; color: var(--text-3); }

.footer-nav { display: flex; gap: 1.25rem; }

.footer-link { font-size: 0.75rem; color: var(--text-3); text-decoration: none; transition: color 0.1s; }
.footer-link:hover { color: var(--text-2); }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.google-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: var(--r);
  background: var(--text);
  color: #0A0A0A;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.12s;
}
.google-btn:hover { opacity: 0.88; }
.google-icon { width: 18px; height: 18px; flex-shrink: 0; }

.auth-meta {
  margin-top: 1rem;
  font-size: 0.74rem;
  color: var(--text-3);
  text-align: center;
  line-height: 1.55;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 0.72rem 0.9rem;
  border-radius: var(--r);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.alert-success { background: var(--green-bg);  border: 1px solid var(--green-border);  color: #86efac; }
.alert-danger  { background: var(--red-bg);    border: 1px solid var(--red-border);    color: #fca5a5; }

/* ── Device code flow ───────────────────────────────────── */
.steps-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
}

.step-ind {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-3);
}

.step-ind.active { color: var(--text); font-weight: 600; }
.step-ind.done   { color: var(--green); }

.step-ind-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 0.63rem; font-weight: 700;
  flex-shrink: 0;
}

.step-ind.active .step-ind-num { background: var(--text); color: var(--bg); border-color: transparent; }
.step-ind.done   .step-ind-num { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }

.step-sep { flex: 1; height: 1px; background: var(--border); min-width: 16px; max-width: 32px; }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.device-input {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
  font-size: 1.35rem;
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
  font-weight: 600;
  letter-spacing: 0.22em;
  caret-color: var(--text);
  outline: none;
  margin-bottom: 1.1rem;
  transition: border-color 0.12s;
}
.device-input:focus { border-color: var(--border-hover); }
.device-input::placeholder { color: var(--text-3); letter-spacing: 0.1em; font-weight: 400; }

.form-divider {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 1.1rem;
  line-height: 1.55;
}

/* ── Result cards (success / error) ─────────────────────── */
.result-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
}

.result-icon.success { background: var(--green-bg); border: 1px solid var(--green-border); }
.result-icon.error   { background: var(--red-bg);   border: 1px solid var(--red-border); }

.result-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.result-message {
  font-size: 0.87rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.result-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--text-3);
  border: 1px solid var(--border);
}

.blink-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease infinite;
}

/* ── Upgrade banner ──────────────────────────────────────── */
.upgrade-banner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.upgrade-banner-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.upgrade-banner-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.2rem; }
.upgrade-banner-desc  { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0.75rem; }

/* ── Admin hero ──────────────────────────────────────────── */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pub-page { padding: 2rem 1rem; gap: 2.5rem; }
  .hero-title { font-size: 1.9rem; }
  .privacy-grid { grid-template-columns: 1fr; border: none; gap: 1rem; }
  .privacy-card { border: 1px solid var(--border); border-radius: var(--r-lg); }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stats-row-4 { grid-template-columns: 1fr 1fr; }
  .pub-topbar { padding: 0 1rem; }
  .pub-footer { flex-direction: column; align-items: flex-start; }
  .main-content { padding: 1.25rem 1rem; }
  .hero-actions .btn-ghost-sm { display: none; }
}

/* ── Fade-in animation ───────────────────────────────────── */
.fade-in {
  animation: fade-in 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-1 { animation-delay: 60ms; }
.fade-in-2 { animation-delay: 120ms; }
.fade-in-3 { animation-delay: 180ms; }
.fade-in-4 { animation-delay: 240ms; }
