/* The Helpii Wall — vanilla CSS, no build step */
:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #111827;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: inherit; }

/* ---------- Top bar (landing + register share this) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.logo img { height: 34px; width: auto; display: block; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 200px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: #9ca3af; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Language dropdown — only the active flag is visible until opened */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 14px; cursor: pointer;
}
.lang-btn .chev { font-size: 10px; color: var(--muted); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14); min-width: 180px; padding: 6px; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; width: 100%; gap: 8px; align-items: center;
  border: 0; background: none; padding: 9px 10px; font-size: 14px;
  cursor: pointer; border-radius: 8px; text-align: left;
}
.lang-menu button:hover { background: #f3f4f6; }
.lang-menu button .tick { margin-left: auto; color: var(--muted); }
.btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; padding: 9px 18px; font-size: 14px; font-weight: 600;
  text-decoration: none; text-align: center;
}
.btn:hover { opacity: .88; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Wall ---------- */
.wall-wrap { overflow: auto; height: calc(100vh - 57px); position: relative; }
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; padding: 14px;
  transform-origin: 0 0;
  transition: transform .18s ease;
}
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 10px; text-align: center; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  position: relative;
}
.tile:hover, .tile:focus-visible {
  transform: scale(1.55); z-index: 20;
  box-shadow: 0 16px 40px rgba(0,0,0,.22); outline: none;
}
.tile .avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 8px; background: #e5e7eb;
}
.tile .initials {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px;
  display: none; align-items: center; justify-content: center;
  background: #111827; color: #fff; font-weight: 700; font-size: 20px;
}
.tile .name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; color: #fff;
}
.tag-commercial { background: #2563eb; } .tag-tech { background: #0d9488; }
.tag-ai { background: #7c3aed; } .tag-operations { background: #ea580c; }
.tag-finance { background: #db2777; } .tag-marketing { background: #ca8a04; }
.tag-design { background: #4f46e5; }
.clicks { margin-top: 7px; font-size: 12px; color: var(--muted); }
.empty-note { padding: 30px; text-align: center; color: var(--muted); }

/* Heatmap / clusters view (max zoom-out) */
.heatmap { display: none; padding: 18px; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.heatmap.show { display: grid; }
.heatmap.hide-wall .wall { display: none; }
.cluster {
  border-radius: 16px; padding: 20px; color: #fff; min-height: 130px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cluster strong { font-size: 18px; }
.cluster span { opacity: .92; font-size: 14px; }

/* Zoom controls */
.zoom-controls {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.zoom-controls .row { display: flex; gap: 8px; }
.zoom-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.zoom-label { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--muted); }

/* ---------- Card modal ---------- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(17,24,39,.55); align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; max-width: 520px; width: 100%;
  max-height: 90vh; overflow: auto; padding: 22px; position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; border: 0; background: #f3f4f6;
  width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer;
}
.card-head { text-align: center; }
.card-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.card-head .initials {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto;
  display: none; align-items: center; justify-content: center;
  background: #111827; color: #fff; font-weight: 700; font-size: 32px;
}
.card-head h2 { margin: 10px 0 4px; font-size: 22px; }
.card-head p { margin: 0; color: var(--muted); font-size: 13px; }
.card-rows { margin-top: 16px; display: grid; gap: 10px; }
.card-rows .row { display: flex; gap: 8px; font-size: 14px; }
.card-rows .label { width: 90px; flex: 0 0 90px; color: var(--muted); }
.blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.gate { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.gate h3 { margin: 0 0 6px; font-size: 15px; }
.gate p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.gate label { display: block; font-size: 13px; margin: 8px 0 4px; }
.gate input[type="text"], .gate input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
}
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-top: 10px; }
.note { font-size: 13px; color: var(--muted); background: #f9fafb; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.error { color: #b91c1c; font-size: 13px; margin-top: 6px; }

/* ---------- Register page ---------- */
.page { max-width: 880px; margin: 0 auto; padding: 22px 16px 60px; }
.page h1 { font-size: 26px; margin: 6px 0 4px; }
.page .sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff;
}
.field textarea { resize: vertical; min-height: 74px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field .counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 130px; }
.dropzone {
  border: 1px dashed #9ca3af; border-radius: 12px; padding: 16px; text-align: center;
  cursor: pointer; background: #f9fafb; font-size: 14px;
}
.dropzone:hover { border-color: var(--ink); }
.dropzone input { display: none; }
.file-name { font-size: 13px; margin-top: 6px; }
.preview-thumb { max-width: 120px; border-radius: 12px; margin-top: 8px; display: none; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } .logo img { height: 28px; } }
