@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&family=JetBrains+Mono:wght@500;600&display=swap");

/* ─── Design tokens ─── */
:root {
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --bg: #07080b;
  --bg-soft: #0c0e13;
  --surface: #12151c;
  --surface-2: #181c26;
  --surface-3: #1f2430;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  --text: #f3f4f6;
  --muted: #8b95a8;
  --muted-2: #636d7e;

  --accent: #ff2d55;
  --accent-hover: #ff4d6d;
  --accent-soft: rgba(255, 45, 85, 0.14);
  --accent-glow: rgba(255, 45, 85, 0.35);

  --wa: #22c55e;
  --wa-soft: rgba(34, 197, 94, 0.14);
  --wa-dark: #052e16;

  --new: #fbbf24;
  --sold: #22c55e;
  --lost: #64748b;
  --contacted: #3b82f6;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 12px 40px rgba(255, 45, 85, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

/* ─── Logo mark ─── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b8a 100%);
  box-shadow: 0 4px 16px var(--accent-glow);
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; color: #fff; }
.logo-mark--sm { width: 32px; height: 32px; border-radius: 9px; }
.logo-mark--sm svg { width: 16px; height: 16px; }

.brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn--copy { background: var(--accent); }
.btn--wa { background: var(--wa); color: var(--wa-dark); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--danger {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.25);
}
.btn--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}
.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-width: 34px;
}
.btn--icon svg {
  width: 16px;
  height: 16px;
}
.sound-toggle.is-on { color: var(--accent); }
.sound-toggle.is-off { color: var(--muted); }
.btn--lg { padding: 14px 24px; font-size: 15px; border-radius: var(--radius); }
.btn--block { width: 100%; }

.hidden { display: none !important; }

/* ─── Auth ─── */
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 45, 85, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(34, 197, 94, 0.12), transparent 55%),
    var(--bg-soft);
  border-right: 1px solid var(--line);
}

/* Grille de fond partagée (auth + landing) */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}
.bg-grid--page {
  position: fixed;
  z-index: 0;
}

.auth-visual__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.auth-visual__brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-visual__quote {
  position: relative;
  z-index: 1;
  max-width: 380px;
}
.auth-visual__quote p {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.auth-visual__quote p em {
  font-style: normal;
  color: var(--accent);
}
.auth-visual__quote span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.auth-visual__stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
}
.auth-stat {
  flex: 1;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.auth-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-stat span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card__mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  text-decoration: none;
  color: var(--text);
}
.auth-card__mobile-brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-card__head h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.auth-card__head p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}
.tab.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.tab:hover:not(.active) { color: var(--text); }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.form input {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input::placeholder { color: var(--muted-2); }
.form input:focus {
  outline: none;
  border-color: rgba(255, 45, 85, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  width: 100%;
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.password-toggle svg {
  width: 18px;
  height: 18px;
}
.form .btn { margin-top: 4px; padding: 13px; }

.err {
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  min-height: 20px;
  margin: 16px 0 0;
}
.msg--ok {
  color: var(--wa);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 20px;
  margin: 16px 0 0;
}
.auth-forgot {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.auth-forgot a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.auth-forgot a:hover { color: var(--accent); }

/* ─── App / Dashboard ─── */
.app {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255, 45, 85, 0.08), transparent 50%),
    var(--bg);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 24px;
  background: rgba(7, 8, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.app-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.app-header .sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.app-header .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}
.status--on {
  color: var(--wa);
  border-color: rgba(34, 197, 94, 0.25);
  background: var(--wa-soft);
}
.status--on .dot {
  background: var(--wa);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
.status--off .dot { background: var(--danger); }
.status--error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.status--error .dot { background: var(--danger); }

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

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--line);
}
.history-locked {
  padding: 28px 24px;
  text-align: center;
}
.history-locked p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
.history-locked__sub {
  color: var(--muted) !important;
  font-size: 14px !important;
}
.history-grid td { font-size: 13px; }

.control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 18px 20px;
}

.select, .input, .search {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select:focus, .input:focus, .search:focus {
  outline: none;
  border-color: rgba(255, 45, 85, 0.4);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input { min-width: 220px; flex: 1; }
.input--readonly {
  color: var(--muted);
  background: var(--surface-2);
  cursor: default;
  pointer-events: none;
}
.input--readonly:focus {
  border-color: var(--line);
  box-shadow: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr) minmax(200px, 1.2fr);
  gap: 12px;
}

.metric {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.metric .num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.metric .lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.metric--search {
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.metric--search .search {
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 18px 20px;
}

.panel--table { padding-bottom: 8px; }

.grid {
  width: 100%;
  border-collapse: collapse;
}
.grid thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.grid td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}
.grid tbody tr:last-child td { border-bottom: none; }
.ta-r { text-align: right; }
tr.row { transition: background 0.15s; }
tr.row:hover { background: rgba(255, 255, 255, 0.02); }

.phone {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.comment {
  position: relative;
  color: var(--muted);
  max-width: 220px;
  font-size: 13px;
}
.comment-trunc {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}
.comment-pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 260px;
  max-width: min(420px, 70vw);
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: var(--shadow-sm), 0 12px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.comment:hover .comment-pop,
.comment:focus-within .comment-pop {
  display: block;
}
.grid tbody tr:nth-last-child(-n + 2) .comment-pop {
  top: auto;
  bottom: calc(100% + 6px);
}
.note-cell { min-width: 160px; max-width: 220px; }
.note-input {
  width: 100%;
  padding: 7px 10px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.note-input::placeholder { color: var(--muted-2); }
.note-input:focus {
  border-color: rgba(255, 45, 85, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.08);
}
.dup {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--surface-3);
  border-radius: 4px;
}

.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.row-actions .btn { padding: 7px 12px; font-size: 12px; }

.chip {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.15s, opacity 0.15s;
}
.chip:hover { transform: scale(1.04); }
.chip--new { background: rgba(251, 191, 36, 0.18); color: var(--new); }
.chip--contacted { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.chip--sold { background: var(--wa-soft); color: var(--wa); }
.chip--lost { background: rgba(100, 116, 139, 0.2); color: var(--lost); }
tr.status-sold .phone { color: var(--wa); }
tr.status-lost { opacity: 0.45; }
tr.row--inactive { opacity: 0.55; }

.select--sm {
  padding: 6px 10px;
  font-size: 13px;
}

.metrics--admin {
  grid-template-columns: repeat(6, 1fr);
}

.admin-login {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 45, 85, 0.1), transparent 55%),
    var(--bg);
}
.admin-login__card {
  width: 100%;
  max-width: 400px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.admin-login__head {
  text-align: center;
  margin-bottom: 28px;
}
.admin-login__head .logo-mark {
  margin: 0 auto 16px;
}
.admin-login__head h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.admin-login__head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.admin-login__back {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.admin-login__back:hover { color: var(--text); }

.admin-grid .comment { max-width: 160px; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 64px 24px;
  font-size: 14px;
  font-weight: 500;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface-2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--wa);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Landing ─── */
.landing {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 45, 85, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(34, 197, 94, 0.08), transparent 55%),
    var(--bg);
}
.landing > *:not(.bg-grid):not(.landing-nav):not(.back-to-top) {
  position: relative;
  z-index: 1;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 max(24px, calc((100% - 1140px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.landing-brand--sm { font-size: 14px; }

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-nav__links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.landing-nav__links a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.landing-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}
.landing-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 140px max(24px, calc((100% - 1140px) / 2)) 96px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 45, 85, 0.2);
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 22px;
}
.hero__accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.hero__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.hero__checks li svg {
  width: 18px;
  height: 18px;
  color: var(--wa);
  flex-shrink: 0;
}

.hero__preview { position: relative; }
.hero__preview::before {
  content: "";
  position: absolute;
  inset: 10% -10% -10% 10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

.preview-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.preview-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}
.preview-dot--on {
  background: var(--wa);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}
.preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.preview-live {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wa);
  padding: 4px 10px;
  background: var(--wa-soft);
  border-radius: 999px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.preview-stats > div {
  padding: 18px 20px;
  background: var(--surface);
}
.preview-stats strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.preview-stats span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-rows { padding: 4px 0; }
.preview-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.preview-row:last-child { border-bottom: none; }
.preview-row--new { background: rgba(251, 191, 36, 0.06); }
.preview-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
}
.preview-user { color: var(--muted); font-weight: 500; }

.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.pill--wa { background: var(--wa-soft); color: var(--wa); }
.pill--copy { background: var(--accent-soft); color: var(--accent); }
.pill--sold { background: var(--wa-soft); color: var(--wa); }

.preview-toast {
  margin: 16px 20px 20px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--wa);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 3s var(--ease) infinite;
}
.preview-toast::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 8px var(--wa);
}

@keyframes slideUp {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-3px); opacity: 0.85; }
}

.section {
  padding: 88px max(24px, calc((100% - 1140px) / 2));
}
.section--alt {
  max-width: none;
  background: rgba(12, 14, 19, 0.6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__head {
  max-width: 580px;
  margin: 0 0 56px;
}
.section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.section__head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pain-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.pain-item:last-child { border-bottom: none; }
.pain-item__num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 3px;
}
.pain-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pain-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 640px;
}

.workflow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.workflow__step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.workflow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border-radius: 50%;
}
.workflow__step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.workflow__step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.workflow__arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--muted-2);
}
.workflow__arrow svg { width: 20px; height: 20px; }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.feature-card:hover {
  border-color: rgba(255, 45, 85, 0.25);
  transform: translateY(-2px);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  transition: transform 0.25s var(--ease);
}
.price-card:hover { transform: translateY(-3px); }
.price-card--featured {
  border-color: rgba(255, 45, 85, 0.4);
  background: linear-gradient(180deg, rgba(255, 45, 85, 0.06) 0%, var(--surface) 40%);
  box-shadow: var(--shadow-accent);
}
.price-card__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-card__amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.price-card__desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.price-card li svg {
  width: 18px;
  height: 18px;
  color: var(--wa);
  flex-shrink: 0;
  margin-top: 1px;
}

.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 45, 85, 0.1), transparent 60%),
    var(--bg-soft);
}

/* ─── Contact ─── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.contact-card:hover {
  border-color: rgba(255, 45, 85, 0.3);
  transform: translateY(-2px);
}
.contact-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.contact-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}
.contact-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__icon--email {
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-card__icon--wa {
  background: var(--wa-soft);
  color: var(--wa);
}

.contact-form {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-form h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form__row label { margin-bottom: 0; }
.contact-form input,
.contact-form textarea {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  resize: vertical;
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form textarea { min-height: 120px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 45, 85, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .btn { width: 100%; padding: 13px; margin-top: 6px; }
.contact-form__note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

.cta-band__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 88px 24px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.cta-band p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 32px;
  line-height: 1.65;
}

.landing-nav__links .btn { justify-content: center; }

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(7, 8, 11, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.2s, border-color 0.2s;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:hover {
  background: var(--surface-2);
  border-color: rgba(255, 45, 85, 0.4);
  color: var(--accent);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.landing-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--line);
}
.landing-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card__mobile-brand { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 96px;
  }
  .hero__preview {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .workflow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .workflow__arrow {
    padding: 8px 0;
    transform: rotate(90deg);
  }
  .workflow__step { max-width: 100%; width: 100%; }
  .pain-item { flex-direction: column; gap: 12px; padding: 24px; }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics--admin {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .landing-nav__toggle { display: flex; }
  .landing-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 24px 20px;
    background: rgba(7, 8, 11, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .landing-nav--open .landing-nav__links { display: flex; }
  .landing-nav__links .btn { justify-content: center; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .preview-row { grid-template-columns: 1fr; gap: 6px; }

  .back-to-top { bottom: 20px; right: 20px; }

  .app-shell { padding: 16px; }
  .app-header { padding: 0 16px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics--admin { grid-template-columns: 1fr 1fr; }
  .metric--search { grid-column: 1 / -1; }

  .control { flex-direction: column; align-items: stretch; }
  .input { min-width: 0; }

  .grid thead { display: none; }
  .grid tbody tr {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .grid tbody td {
    display: block;
    padding: 4px 0;
    border: none;
  }
  .grid tbody td.ta-r { padding-top: 12px; }
  .row-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
