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

:root {
  --bg:       #12101a;
  --surface:  #1c1a2a;
  --surface2: #252338;
  --border:   #2e2b42;
  --accent:   #6c47ff;
  --accent2:  #8f6bff;
  --text:     #e0dff5;
  --muted:    #7a7898;
  --success:  #2ecc71;
  --warn:     #f39c12;
  --danger:   #e74c3c;
  --font:     'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
  --radius:   10px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

code { font-family: var(--font); font-size: 0.9em; color: var(--accent2); }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
}
.nav-brand:hover { text-decoration: none; color: var(--accent2); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-links a, .btn-link {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.nav-links a:hover, .btn-link:hover {
  color: var(--text);
  background: var(--surface2);
  text-decoration: none;
}

/* ── News ─────────────────────────────────────────────────────────────────── */
.news-floating {
  position: fixed;
  top: 72px;
  right: 20px;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  z-index: 50;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.news-floating-date {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 8px;
}
.news-latest-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent2);
  margin-bottom: 8px;
}
.news-latest-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.news-latest-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
  margin-bottom: 14px;
}
.news-latest-link {
  font-size: 0.82rem;
  color: var(--accent2);
}
.news-latest-link:hover { color: var(--text); text-decoration: none; }

/* Public news page */
.news-item { margin-bottom: 0; }
.news-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.news-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.news-item-date { font-size: 0.78rem; white-space: nowrap; }
.news-item-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

/* News floating — mobile: statico dopo calvarius */
@media (max-width: 768px) {
  .news-floating {
    position: static;
    width: auto;
    margin: 0 16px 60px;
    box-shadow: none;
  }
}

/* Dashboard news card */
.news-dashboard-card {}
.news-dashboard-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.news-dashboard-date  { font-size: 0.78rem; margin-bottom: 10px; }
.news-dashboard-body  { font-size: 0.85rem; color: var(--muted); line-height: 1.65; white-space: pre-wrap; }

/* ── Nav badge (waitlist pending) ────────────────────────────────────────── */
.nav-waitlist-link { position: relative; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  margin-left: 5px;
  border-radius: 99px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

/* ── Nav dropdown ─────────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { white-space: nowrap; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  min-width: 180px;
  z-index: 200;
  padding: 4px 0;
  box-shadow: 0 8px 24px #0006;
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a,
.nav-dropdown-menu .btn-link {
  display: block;
  width: 100%;
  padding: 9px 16px;
  text-align: left;
  border-radius: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu .btn-link:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

/* ── PWA install banner ───────────────────────────────────────────────────── */
.pwa-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.pwa-banner-text { flex: 1; color: var(--text); }
.pwa-banner-text strong { color: var(--accent2); }
.pwa-banner-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 6px;
}
.pwa-banner-close:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity .15s, background .15s;
  text-decoration: none;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary  { background: var(--accent);  color: #fff; }
.btn-sm       { padding: 4px 12px; font-size: 0.8rem; }
.btn-full     { width: 100%; }
.btn-warn     { background: var(--warn);    color: #fff; }
.btn-ok       { background: var(--success); color: #fff; }
.btn-danger   { background: var(--danger);  color: #fff; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 16px;
  border-left: 3px solid;
}
.alert-error   { background: rgba(231,76,60,.12);  border-color: var(--danger);  color: #f1948a; }
.alert-success { background: rgba(46,204,113,.12); border-color: var(--success); color: #58d68d; }

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.auth-brand { font-size: 1.2rem; font-weight: 700; letter-spacing: .05em; }
.auth-title { font-size: 1rem; font-weight: 600; text-align: center; }
.auth-note  { font-size: 0.78rem; color: var(--muted); text-align: center; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form label  { font-size: 0.78rem; color: var(--muted); }
.auth-form input  {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color .15s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.hint { font-size: 0.75em; color: var(--muted); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  justify-content: center;
  padding: 80px 24px 60px;
}
.hero-inner {
  text-align: center;
  max-width: 560px;
}
.hero-logo { margin-bottom: 20px; }
.hero-logo img {
  width: 280px;
  height: 280px;
  mix-blend-mode: lighten;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-cta .btn { padding: 12px 28px; font-size: 0.95rem; }
.hero-access-note { font-size: 0.75rem; color: var(--muted); text-align: center; max-width: 340px; line-height: 1.5; }

/* ── Features grid ────────────────────────────────────────────────────────── */
.features {
  padding: 0 24px 60px;
}

/* ── About ───────────────────────────────────────────────────────────────── */
.about {
  padding: 0 24px 60px;
}
.about-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.about-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #6c47ff;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-body { flex: 1; min-width: 0; }
.about-name {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.about-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #6c47ff;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
}
.about-role { font-size: 0.78rem; color: var(--muted); margin: 2px 0 8px; }
.about-bio  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin: 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.feature-icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.feature-card p  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ── Beta banner ─────────────────────────────────────────────────────────── */
.beta-banner {
  padding: 0 24px 48px;
}
.beta-inner {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #6c47ff;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.beta-badge {
  background: #6c47ff;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.beta-inner p {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.beta-inner .btn { white-space: nowrap; }

/* ── Page main ────────────────────────────────────────────────────────────── */
.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.page-header h1 { font-size: 1.3rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 { font-size: 0.95rem; margin-bottom: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.info-card p { margin-bottom: 8px; }
.info-card p:last-child { margin-bottom: 0; }

/* ── Quick links ──────────────────────────────────────────────────────────── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.quick-card:hover { border-color: var(--accent); background: var(--surface2); text-decoration: none; }
.quick-icon { font-size: 1.8rem; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-admin    { background: rgba(108,71,255,.25); color: #a98fff; }
.badge-user     { background: rgba(46,204,113,.15); color: #58d68d; }
.badge-active   { background: rgba(46,204,113,.15); color: #58d68d; }
.badge-inactive { background: rgba(231,76,60,.15);  color: #f1948a; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.invite-form .form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.invite-form .form-group { flex: 1; min-width: 160px; }
.invite-form .form-group-btn { flex: 0 0 auto; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.78rem; color: var(--muted); }
.form-group input, .form-group select {
  padding: 8px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group-btn { justify-content: flex-end; }
.note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.data-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.row-disabled td { opacity: .45; }
.data-table tr[data-url] { cursor: pointer; }
.data-table tr[data-url]:hover td { background: var(--hover, rgba(255,255,255,.04)); }
.ver-ok     { color: var(--green, #4caf50); font-size: 0.85rem; }
.ver-update { color: var(--red, #f44336);   font-size: 0.85rem; cursor: pointer; text-decoration: underline dotted; }
.data-table-sm td, .data-table-sm th { padding: 7px 10px; }

.muted    { color: var(--muted); }
.nowrap   { white-space: nowrap; }
.actions  { display: flex; gap: 6px; align-items: center; }

.details-cell { font-size: 0.76rem; }
.details-cell span { margin-right: 8px; }
.details-cell em { font-style: normal; color: var(--text); }

.invite-link {
  display: block;
  margin-top: 6px;
  word-break: break-all;
  font-size: 0.8rem;
}
.btn-copy { margin-top: 6px; }

/* ── Action tags (audit) ──────────────────────────────────────────────────── */
.action-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  background: var(--surface2);
}
.action-login    { color: #58d68d; }
.action-logout   { color: var(--muted); }
.action-register { color: #85c1e9; }
.action-invite   { color: #f7dc6f; }
.action-user     { color: #f0b27a; }
.action-http     { color: var(--muted); }
.action--http_404      { color: #e67e22; }
.action--login_failed  { color: #e74c3c; }
.action--login_blocked { color: #e74c3c; }

/* ── Message thread bubbles ───────────────────────────────────────────────── */
.msg-bubble {
  margin-bottom: 20px;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.msg-bubble--user  { background: var(--surface2); }
.msg-bubble--admin { background: rgba(108,71,255,.12); border-left: 4px solid #6c47ff; }
.msg-bubble__meta  {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 10px;
  color: var(--muted);
}
.msg-bubble__meta span:first-child { font-weight: 600; color: var(--text); }
.msg-bubble__body { word-break: break-word; }

@keyframes pulse {
  0%,100% { opacity:1; }
  50%      { opacity:.5; }
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.page-link {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.8rem;
}
.page-link.active, .page-link:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ── Prose page (cookie policy) ──────────────────────────────────────────── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.prose-page h1 { font-size: 1.4rem; margin-bottom: 8px; }
.prose-page h2 { font-size: 1rem; margin: 28px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.prose-page p  { margin-bottom: 12px; color: var(--text); line-height: 1.7; font-size: 0.88rem; }
.prose-page ul { padding-left: 20px; margin-bottom: 12px; }
.prose-page li { margin-bottom: 6px; font-size: 0.88rem; color: var(--text); }
.updated       { font-size: 0.78rem; color: var(--muted); margin-bottom: 28px; }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.cookie-table th, .cookie-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.cookie-table th { background: var(--surface2); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }

/* ── Cookie banner ────────────────────────────────────────────────────────── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 700px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.cookie-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-content p { font-size: 0.8rem; color: var(--muted); flex: 1; min-width: 200px; }
.cookie-content p strong { color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ── Early notice ─────────────────────────────────────────────────────────── */
.early-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(255,180,0,.12);
  border: 1px solid rgba(255,180,0,.35);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #f5b800;
  letter-spacing: .04em;
}
.early-notice {
  padding: 0 24px 60px;
}
.early-notice-inner {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,180,0,.06);
  border: 1px solid rgba(255,180,0,.2);
  border-radius: var(--radius);
  padding: 14px 20px;
}
.early-notice-inner p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.early-notice-inner strong { color: #f5b800; }

/* ── Calvarius / Regime Watcher ───────────────────────────────────────────── */
.calvarius {
  padding: 0 24px 60px;
}
.calvarius-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.calvarius-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.calvarius-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.calvarius-desc strong { color: var(--text); }
.calvarius-regimes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.regime-chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.regime-chip.bear     { background: rgba(220,50,50,.15);  border: 1px solid rgba(220,50,50,.4);  color: #e05555; }
.regime-chip.chop     { background: rgba(180,140,0,.15);  border: 1px solid rgba(180,140,0,.4);  color: #c9a800; }
.regime-chip.recovery { background: rgba(0,160,180,.15);  border: 1px solid rgba(0,160,180,.4);  color: #00b8cc; }
.regime-chip.bull     { background: rgba(40,180,80,.15);  border: 1px solid rgba(40,180,80,.4);  color: #2dc55e; }

/* ── Tutorial ─────────────────────────────────────────────────────────────── */
.toc { margin-bottom: 12px; }
.toc-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  counter-reset: none;
  padding: 0;
}
.toc-list li a {
  font-size: 0.82rem;
  color: var(--accent2);
}

.tut-step { margin-bottom: 12px; scroll-margin-top: 72px; }

.tut-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.tut-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.tut-step-title {
  font-size: 1rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.tut-list {
  margin: 10px 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.tut-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.tut-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 100%;
  flex: 1 1 300px;
  object-fit: contain;
}
.tut-img-wide  { flex: 1 1 100%; max-width: 100%; }
.tut-img-narrow { flex: 0 1 320px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-title { font-size: 1.8rem; }
  .page-main  { padding: 20px 16px 48px; }
  .navbar     { padding: 0 16px; }
  .card       { padding: 16px; }
  .invite-form .form-row { flex-direction: column; align-items: stretch; }
}
