/* ============================================================
   CONNECT — Main Stylesheet  v2
   DS Intelligence
   Pure Black Monochromatic · Mobile-First · No Frameworks
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* ── Palette ── */
  --c-bg:              #000000;
  --c-surface:         #111111;
  --c-surface-2:       #181818;
  --c-surface-3:       #222222;
  --c-border:          rgba(255,255,255,.08);
  --c-border-strong:   rgba(255,255,255,.14);

  /* ── Text ── */
  --c-text:            #ffffff;
  --c-text-muted:      #888888;
  --c-text-dim:        #444444;

  /* ── CTA ── */
  --c-cta-bg:          #ffffff;
  --c-cta-text:        #000000;

  /* ── Status ── */
  --c-success:         #4ade80;
  --c-danger:          #f87171;
  --c-info:            #60a5fa;
  --c-warn:            #facc15;

  /* ── Brand accent (VCard only — overridden inline per card) ── */
  --brand-primary:     #111111;
  --brand-accent:      #ffffff;

  /* ── Typography ── */
  --font-sans:         'Inter', system-ui, -apple-system, sans-serif;
  --font-display:      'Bebas Neue', 'Inter', sans-serif;
  --font-mono:         'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* ── Spacing ── */
  --sp-1:  .25rem;   /* 4px  */
  --sp-2:  .5rem;    /* 8px  */
  --sp-3:  .75rem;   /* 12px */
  --sp-4:  1rem;     /* 16px */
  --sp-5:  1.25rem;  /* 20px */
  --sp-6:  1.5rem;   /* 24px */
  --sp-8:  2rem;     /* 32px */
  --sp-10: 2.5rem;   /* 40px */
  --sp-12: 3rem;     /* 48px */
  --sp-16: 4rem;     /* 64px */

  /* ── Radii ── */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 9999px;

  /* ── Shadows ── */
  --shadow-card: 0 8px 40px rgba(0,0,0,.7);
  --shadow-btn:  0 2px 12px rgba(0,0,0,.6);

  /* ── Motion ── */
  --ease:   cubic-bezier(.4,0,.2,1);
  --dur:    160ms;

  /* ── Layout ── */
  --sidebar-w: 240px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

/* ── Logo Component ─────────────────────────────────────────── */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.brand-logo__wordmark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400; /* Bebas Neue is always bold, 400 = its bold weight */
  letter-spacing: .06em;
  color: var(--c-text);
  line-height: 1;
  text-transform: uppercase;
}
.brand-logo__tagline {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  font-weight: 400;
}

/* Sidebar compact variant */
.sidebar .brand-logo           { flex-direction: row; align-items: center; gap: var(--sp-3); }
.sidebar .brand-logo__wordmark { font-size: 1.5rem; }
.sidebar .brand-logo__tagline  { display: none; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: .75rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: .9375rem;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    opacity   var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }

.btn--primary {
  background: var(--c-cta-bg);
  color: var(--c-cta-text);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { opacity: .88; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border-strong);
}
.btn--ghost:hover { border-color: rgba(255,255,255,.3); color: var(--c-text); }

.btn--danger {
  background: var(--c-danger);
  color: #fff;
}

.btn--full { width: 100%; }
.btn--lg   { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--sm   { padding: .45rem 1rem; font-size: .8125rem; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }

.form-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.form-label--opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--c-text-dim); }

.form-input {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  padding: .75rem 1rem;
  font-size: .9375rem;
  width: 100%;
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.form-input::placeholder { color: var(--c-text-dim); }

.form-textarea { resize: vertical; min-height: 72px; }

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: .875rem;
  color: var(--c-text-muted);
  cursor: pointer;
  user-select: none;
}
.form-checkbox input { width: 16px; height: 16px; accent-color: var(--c-text); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.form-grid--color { grid-template-columns: 1fr 1fr; }

/* Password wrapper */
.input-pw-wrap { position: relative; }
.input-pw-wrap .form-input { padding-right: 3rem; }
.btn-toggle-pw {
  position: absolute; right: .875rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--c-text-dim); padding: 0; display: flex; align-items: center;
}
.btn-toggle-pw:hover { color: var(--c-text-muted); }

/* Color pickers */
.color-picker-wrap { display: flex; align-items: center; gap: var(--sp-3); }
.color-native { width: 36px; height: 36px; border: none; border-radius: var(--r-sm); background: none; padding: 0; cursor: pointer; }
.color-hex { flex: 1; font-family: var(--font-mono); font-size: .875rem; }

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row__info { display: flex; flex-direction: column; gap: 3px; }
.toggle-row__title { font-size: .9375rem; font-weight: 500; }
.toggle-row__desc { font-size: .8rem; color: var(--c-text-muted); }

.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--c-surface-3);
  border-radius: var(--r-pill);
  cursor: pointer;
  border: 1px solid var(--c-border);
  transition: background var(--dur) var(--ease);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; left: 3px; bottom: 3px;
  background: var(--c-text-muted); border-radius: 50%;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.toggle-switch input:checked + .toggle-slider { background: var(--c-text); border-color: var(--c-text); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--c-bg); }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: var(--sp-5); right: var(--sp-5); z-index: 9999;
  display: flex; flex-direction: column; gap: var(--sp-3); max-width: 340px; width: calc(100vw - 2rem);
}
.toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  font-size: .875rem;
  animation: toastIn .2s var(--ease);
}
.toast--success { border-color: rgba(74,222,128,.3); }
.toast--danger  { border-color: rgba(248,113,113,.3); }
.toast--info    { border-color: rgba(96,165,250,.3); }
.toast__icon { font-size: 1rem; }
.toast--success .toast__icon { color: var(--c-success); }
.toast--danger  .toast__icon { color: var(--c-danger); }
.toast--info    .toast__icon { color: var(--c-info); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Auth / Public Pages ─────────────────────────────────────── */
.auth-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-4);
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  width: 100%;
  min-height: 100svh;
  padding: var(--sp-8) var(--sp-4) var(--sp-8);
  justify-content: center;
}

.auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-6);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-card);
}
.auth-card--claim { text-align: center; }

.auth-card__header { text-align: center; margin-bottom: var(--sp-8); }

.auth-card__title {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: var(--sp-6);
  line-height: 1.2;
}
.auth-card__sub {
  font-size: .9rem;
  color: var(--c-text-muted);
  margin-top: var(--sp-2);
  line-height: 1.6;
}

.auth-form { display: flex; flex-direction: column; gap: var(--sp-5); }

.auth-card__footer-link {
  text-align: center;
  font-size: .875rem;
  color: var(--c-text-muted);
  margin-top: var(--sp-6);
}
.auth-card__footer-link a {
  color: var(--c-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-footer {
  font-size: .75rem;
  color: var(--c-text-dim);
  text-align: center;
}
.auth-footer strong { color: var(--c-text-muted); font-weight: 600; }

/* ── Claim page extras ── */
.claim-uuid-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  background: var(--c-bg);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  padding: var(--sp-3) var(--sp-6);
  margin: var(--sp-6) 0;
}
.claim-uuid-badge__label { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-text-dim); }
.claim-uuid-badge__code  { font-family: var(--font-mono); font-size: .9rem; color: var(--c-text-muted); font-weight: 600; }

/* ── Dashboard Layout ────────────────────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100svh;
}

/* ── Sidebar ── */
.sidebar {
  background: #0a0a0a;
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) 0;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
}

.sidebar__brand {
  padding: 0 var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-4);
}

.sidebar__nav { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--sp-3); flex: 1; }

.sidebar__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: .625rem var(--sp-3);
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500;
  color: var(--c-text-muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sidebar__link:hover { background: var(--c-surface-2); color: var(--c-text); opacity: 1; }
.sidebar__link--active { background: var(--c-surface-2); color: var(--c-text); font-weight: 600; }

.sidebar__preview-link {
  display: flex; align-items: center; gap: var(--sp-2);
  margin: var(--sp-4) var(--sp-3);
  padding: .625rem var(--sp-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  font-size: .8125rem; color: var(--c-text-muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sidebar__preview-link:hover { border-color: var(--c-border-strong); color: var(--c-text); opacity: 1; }

.sidebar__user {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}
.sidebar__user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-surface-3);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  font-weight: 700; font-size: .875rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar__user-name { font-size: .8125rem; font-weight: 500; }
.sidebar__logout { font-size: .75rem; color: var(--c-text-dim); }
.sidebar__logout:hover { color: var(--c-danger); opacity: 1; }

.sidebar__footer {
  text-align: center; font-size: .65rem; color: var(--c-text-dim);
  padding: var(--sp-3) var(--sp-4) 0; letter-spacing: .04em;
}
.sidebar__footer strong { color: var(--c-text-muted); }

/* ── Dashboard Main ── */
.dash-main { padding: var(--sp-8); overflow-y: auto; min-width: 0; }

.dash-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.dash-header__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.dash-header__sub { color: var(--c-text-muted); font-size: .9375rem; margin-top: 4px; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-4);
  transition: border-color var(--dur) var(--ease);
}
.stat-card:hover { border-color: var(--c-border-strong); }
.stat-card__icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--c-surface-2);
  color: var(--c-text-muted);
}
.stat-card__body { display: flex; flex-direction: column; gap: 2px; }
.stat-card__value { font-size: 1.625rem; font-weight: 700; line-height: 1; }
.stat-card__value--sm { font-size: 1rem; }
.stat-card__value--badge {
  font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-pill); width: fit-content; letter-spacing: .05em; text-transform: uppercase;
}
.stat-card__value--badge.active   { background: rgba(74,222,128,.12); color: var(--c-success); }
.stat-card__value--badge.inactive { background: rgba(248,113,113,.12); color: var(--c-danger); }
.stat-card__label { font-size: .78rem; color: var(--c-text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

/* Two-column grid (chart + QR) */
.dash-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-6); margin-bottom: var(--sp-8);
}
.dash-two-col .dash-section { margin-bottom: 0; }

/* Section */
.dash-section { margin-bottom: var(--sp-8); }
.dash-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.dash-section__title { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.dash-section__header .dash-section__title { margin-bottom: 0; }

/* Bar Chart */
.chart-bar {
  display: flex; align-items: flex-end; gap: var(--sp-2);
  height: 100px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4);
}
.chart-bar__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); height: 100%; justify-content: flex-end; }
.chart-bar__bar {
  width: 100%; background: var(--c-text); border-radius: var(--r-xs) var(--r-xs) 0 0;
  min-height: 3px; opacity: .5;
  transition: opacity var(--dur) var(--ease);
}
.chart-bar__col:hover .chart-bar__bar { opacity: 1; }
.chart-bar__label { font-size: .65rem; color: var(--c-text-dim); text-transform: uppercase; letter-spacing: .04em; }

/* QR Card */
.qr-card {
  display: flex; gap: var(--sp-5); align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.qr-card__code {
  flex-shrink: 0; width: 110px; height: 110px;
  background: #fff; border-radius: var(--r-sm);
  padding: 5px; display: flex; align-items: center; justify-content: center;
}
.qr-svg { width: 100%; height: 100%; }
.qr-card__body { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.qr-card__label { font-size: .8rem; color: var(--c-text-muted); line-height: 1.5; }
.qr-card__url {
  display: block; font-family: var(--font-mono); font-size: .7rem;
  color: var(--c-text-dim); background: var(--c-bg);
  border-radius: var(--r-xs); padding: var(--sp-2) var(--sp-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--c-border);
}
.qr-card__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* Tables */
.table-wrap {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden; overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: var(--c-surface-2); }
.data-table th {
  padding: var(--sp-3) var(--sp-5); text-align: left;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-text-dim); border-bottom: 1px solid var(--c-border); font-weight: 600;
}
.data-table td {
  padding: var(--sp-4) var(--sp-5); font-size: .875rem;
  border-bottom: 1px solid var(--c-border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--c-surface-2); }
.td-muted { color: var(--c-text-muted); }
.td-message { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-muted); }
.data-table a { color: var(--c-text); text-decoration: underline; text-underline-offset: 2px; }

/* Empty state */
.empty-state {
  text-align: center; padding: var(--sp-12) var(--sp-8);
  color: var(--c-text-muted);
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
}
.empty-state svg { margin: 0 auto var(--sp-4); opacity: .25; }
.empty-state p { margin-bottom: var(--sp-2); }
.empty-state a { color: var(--c-text); text-decoration: underline; }

/* Settings */
.settings-form { display: flex; flex-direction: column; gap: var(--sp-5); }
.settings-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-6);
}
.settings-card__title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-text-muted); margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4); border-bottom: 1px solid var(--c-border);
}
.settings-actions { display: flex; gap: var(--sp-3); }

/* Avatar upload */
.avatar-upload-row { display: flex; align-items: center; gap: var(--sp-5); }
.avatar-upload-preview {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--c-surface-2); border: 1px solid var(--c-border-strong);
  overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-preview__initials { font-size: 1.75rem; font-weight: 700; color: var(--c-text); }
.avatar-upload-info { display: flex; flex-direction: column; gap: var(--sp-2); }
.avatar-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-upload-hint { font-size: .75rem; color: var(--c-text-dim); }
.avatar-upload-hint--current { color: var(--c-success); }

/* ── VCard ───────────────────────────────────────────────────── */
.vcard-page {
  background: var(--brand-primary);
  min-height: 100svh;
  display: flex; justify-content: center;
}

.vcard {
  width: 100%; max-width: 430px; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--sp-10) var(--sp-5) var(--sp-8);
  position: relative; overflow: hidden;
}

/* Subtle radial glow */
.vcard__glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--brand-accent) 0%, transparent 70%);
  opacity: .07; pointer-events: none;
}

.vcard__hero { text-align: center; margin-bottom: var(--sp-8); position: relative; z-index: 1; width: 100%; }

.vcard__avatar-wrap { position: relative; display: inline-block; margin-bottom: var(--sp-5); }
.vcard__avatar {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
}
.vcard__avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--c-surface-3);
  color: var(--c-text); font-size: 2.25rem; font-weight: 700;
}
.vcard__avatar-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--brand-accent);
  opacity: .35; animation: pulse-ring 3s ease infinite;
}
@keyframes pulse-ring {
  0%,100% { transform: scale(1); opacity: .35; }
  50%      { transform: scale(1.06); opacity: .1; }
}

.vcard__name    { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.vcard__title   { font-size: .9375rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.vcard__company { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: rgba(255,255,255,.4); margin-top: var(--sp-2); }

.btn-save-contact {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  width: 100%; padding: var(--sp-4) var(--sp-5);
  background: rgba(255,255,255,.9);
  color: #000; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem;
  margin-bottom: var(--sp-5);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  position: relative; z-index: 1; backdrop-filter: blur(8px);
}
.btn-save-contact:hover { opacity: .88; transform: translateY(-1px); }
.btn-save-contact:active { transform: scale(.97); }

.vcard__links {
  display: flex; flex-direction: column; gap: var(--sp-3);
  width: 100%; position: relative; z-index: 1;
}
.vcard__link {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md); color: var(--c-text);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  backdrop-filter: blur(4px);
}
.vcard__link:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); transform: translateX(3px); opacity: 1; }
.vcard__link-icon {
  width: 36px; height: 36px; border-radius: var(--r-xs);
  background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vcard__link-label { flex: 1; font-size: .9375rem; font-weight: 500; }
.vcard__link-arrow { color: rgba(255,255,255,.3); flex-shrink: 0; }

.vcard__footer { margin-top: auto; padding-top: var(--sp-10); text-align: center; position: relative; z-index: 1; }
.vcard__footer-brand { font-size: .75rem; color: rgba(255,255,255,.25); }
.vcard__footer-brand strong { color: rgba(255,255,255,.4); font-weight: 600; }
.vcard__footer-brand:hover { opacity: .6; }

/* ── Lead Gate ───────────────────────────────────────────────── */
.lead-gate {
  width: 100%; max-width: 430px; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: var(--sp-10) var(--sp-5) var(--sp-8); margin: 0 auto;
}
.lead-gate__header { text-align: center; margin-bottom: var(--sp-6); }
.lead-gate__avatar {
  width: 76px; height: 76px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15); margin: 0 auto var(--sp-4); object-fit: cover;
}
.lead-gate__avatar--initials {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--c-surface-3); color: var(--c-text);
  font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-4);
}
.lead-gate__name  { font-size: 1.375rem; font-weight: 700; }
.lead-gate__title { font-size: .875rem; color: rgba(255,255,255,.5); margin-top: 4px; }

.lead-gate__body {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl); padding: var(--sp-6); backdrop-filter: blur(8px);
}
.lead-gate__intro { font-size: .9375rem; color: rgba(255,255,255,.6); margin-bottom: var(--sp-6); line-height: 1.6; }
.lead-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.lead-form .form-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.lead-form .form-input:focus { border-color: rgba(255,255,255,.3); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.lead-gate__skip { display: block; text-align: center; margin-top: var(--sp-4); font-size: .8125rem; color: rgba(255,255,255,.3); }
.lead-gate__skip:hover { color: rgba(255,255,255,.5); }

/* ── Responsive ──────────────────────────────────────────────── */

/* Tablet / large phone → wider cards, 2-col form grid */
@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Full desktop */
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-main { padding: var(--sp-10) var(--sp-10); }
}

/* Mobile: collapse sidebar to top bar */
@media (max-width: 767px) {
  .dash-layout { grid-template-columns: 1fr; }

  .sidebar {
    position: sticky; top: 0; z-index: 100;
    height: auto; flex-direction: row; flex-wrap: nowrap;
    padding: var(--sp-3) var(--sp-4);
    align-items: center; gap: var(--sp-3);
    border-right: none; border-bottom: 1px solid var(--c-border);
    overflow-x: auto; overflow-y: visible;
  }
  .sidebar__brand { padding: 0; border-bottom: none; margin-bottom: 0; flex-shrink: 0; }
  .sidebar .brand-logo__tagline { display: none; }
  .sidebar__nav { flex-direction: row; padding: 0; gap: var(--sp-1); flex: 1; }
  .sidebar__link { padding: var(--sp-2) var(--sp-3); white-space: nowrap; }
  .sidebar__link svg { display: none; }
  .sidebar__preview-link,
  .sidebar__user-info,
  .sidebar__footer { display: none; }
  .sidebar__user { border-top: none; margin-top: 0; padding: 0; flex-shrink: 0; }
  .dash-main { padding: var(--sp-5) var(--sp-4); }
  .dash-two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid--color { grid-template-columns: 1fr 1fr; }
  .qr-card { flex-direction: row; }
  .settings-card { padding: var(--sp-5); }
}

/* Small phones */
@media (max-width: 420px) {
  .auth-card { padding: var(--sp-8) var(--sp-5); border-radius: var(--r-lg); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .qr-card { flex-direction: column; align-items: center; text-align: center; }
  .brand-logo__wordmark { font-size: 2.2rem; }
  .vcard__name { font-size: 1.5rem; }
}
