@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap");

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4efe4;
  --bg-soft: #ebe4d4;
  --bg-mute: #ebe4d4;
  --panel: #fffaf1;
  --panel-2: #f7f0e3;
  --line: #ddd4c3;
  --line-strong: #c9bea8;
  --ink: #1a1612;
  --ink-2: #3c352c;
  --muted: #7a7164;
  --brand: #c24a2a;
  --brand-2: #9a7430;
  --brand-3: #c24a2a;
  --grad: #c24a2a;
  --brand-soft: #f3d8cf;
  --green: #2f6b52;
  --green-bg: #e5efe8;
  --red: #b42318;
  --red-bg: #f8e8e6;
  --amber: #9a7430;
  --amber-bg: #f3ead4;
  --teal: #2f6b52;
  --teal-bg: #e5efe8;
  --indigo-bg: #f3d8cf;
  --pink-bg: #f3d8cf;
  --wax: #c24a2a;
  --gold: #9a7430;
  --sage: #2f6b52;
  --shadow: 0 24px 80px -32px rgba(48, 32, 16, 0.35);
  --shadow-lg: 0 24px 80px -32px rgba(48, 32, 16, 0.35);
  --radius: 24px;
  --font: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.app-body {
  background:
    radial-gradient(circle at top, color-mix(in oklab, var(--wax) 16%, transparent), transparent 42%),
    var(--bg);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c9bea8; border-radius: 6px; border: 2px solid transparent; }
::-webkit-scrollbar-thumb:hover { background: #b3a68e; }
::selection { background: color-mix(in oklab, var(--wax) 30%, transparent); color: var(--ink); }

.display {
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-rise { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

a { color: inherit; }

.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.15s, border-color 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--wax); border: none; color: #fff; box-shadow: 0 10px 30px -12px rgba(194, 74, 42, 0.7); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-teal { background: var(--teal-bg); border-color: #b7d4c4; color: var(--sage); }
.btn-teal:hover { background: #d7e8de; color: var(--sage); }
.btn-danger { background: var(--red-bg); border-color: #e8c4c0; color: var(--red); }
.btn-danger:hover { background: #f3d6d2; color: var(--red); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-mute); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
tr.is-banned td { opacity: 0.72; }
.btn-block { width: 100%; }
.btn-google {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}
.btn-google:hover { background: var(--bg-mute); color: var(--ink); }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-or::before, .auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  transition: color 0.15s, background 0.15s;
}
.icon-btn:hover { color: var(--ink); background: var(--brand-soft); }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 450; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; font-family: var(--serif); }
.brand .logo {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--wax);
  display: grid; place-items: center;
}
.brand .word { font-family: var(--serif); }
.brand .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 1400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brand);
  border-radius: 12px; padding: 12px 16px;
  min-width: 260px; max-width: 380px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600;
  animation: slideInRight 0.25s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.out { animation: fadeOut 0.25s ease forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* =========================================================
   LANDING
   ========================================================= */
.lp-nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
}
.lp-nav-links { display: flex; align-items: center; gap: 22px; }
.lp-nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-cta { display: flex; align-items: center; gap: 10px; }
.lp-menu { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

.lp-hero {
  position: relative;
  overflow: visible;
  padding: 72px 28px 36px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.lp-hero::before {
  content: "";
  position: absolute; inset: -80px -40px auto;
  height: 520px;
  background: radial-gradient(circle at top, color-mix(in oklab, var(--wax) 18%, transparent), transparent 42%);
  pointer-events: none;
}
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  margin-bottom: 16px;
}
.lp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 450;
  margin-bottom: 16px;
}
.lp-hero h1 em { font-style: italic; color: var(--wax); background: none; }
.lp-hero p.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.lp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.lp-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; }
.lp-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.lp-preview {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
.lp-preview-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; }
.lp-dot:nth-child(1) { background: #fecaca; }
.lp-dot:nth-child(2) { background: #fde68a; }
.lp-dot:nth-child(3) { background: #bbf7d0; }
.lp-preview-body { padding: 16px; }
.lp-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.lp-mini-stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.lp-mini-stat b { display: block; font-size: 18px; letter-spacing: -0.4px; }
.lp-mini-stat span { font-size: 11px; color: var(--muted); font-weight: 600; }
.lp-mini-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #f1f3f8; font-size: 12.5px; }
.lp-mini-row strong { font-weight: 700; }
.lp-pill { background: var(--green-bg); color: var(--green); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }

.lp-logos { text-align: center; padding: 10px 28px 48px; color: var(--muted); font-size: 13px; font-weight: 600; }
.lp-logo-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 14px; opacity: 0.62; }
.lp-logo-row span { font-weight: 800; letter-spacing: 0.4px; color: #94a3b8; }

.lp-section { padding: 72px 28px; max-width: 1120px; margin: 0 auto; }
.lp-section.alt { background: var(--bg-mute); max-width: none; }
.lp-section.alt > .inner { max-width: 1120px; margin: 0 auto; }
.lp-kicker { color: var(--muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.lp-section h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 450; line-height: 0.98; margin-bottom: 10px; }
.lp-section .sub { color: var(--muted); font-size: 16px; max-width: 620px; margin-bottom: 32px; line-height: 1.5; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  transition: transform 0.18s, border-color 0.18s;
}
.feat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.feat-ic {
  width: 22px; height: 22px; border-radius: 0; display: grid; place-items: start;
  background: none; color: var(--wax); margin-bottom: 16px;
}
.feat h3 { font-size: 16px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; margin-bottom: 12px;
}
.step-card h3 { font-size: 15px; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.filter-show { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fchip.on { background: var(--brand-soft); border-color: var(--line-strong); color: var(--brand); }

.lp-caution-wrap { max-width: 896px; margin: -12px auto 8px; padding: 0 28px; }
.lp-caution {
  padding: 16px 18px;
  border: 1px solid color-mix(in oklab, var(--wax) 28%, var(--line));
  background: color-mix(in oklab, var(--wax) 7%, var(--bg));
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.lp-caution strong { color: var(--ink); font-weight: 650; }

.price-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin: 4px 0 28px;
}
.price-toggle button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.price-toggle button.active { background: var(--ink); color: var(--bg); }
.price-toggle .save { color: var(--wax); font-size: 12px; font-weight: 700; margin-left: 4px; }
.price-toggle button.active .save { color: #f3c6b8; }
.price-fine { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 18px; max-width: 640px; }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px;
  display: flex; flex-direction: column; position: relative;
}
.price:hover { border-color: var(--line-strong); }
.price.popular { border-color: color-mix(in oklab, var(--wax) 40%, var(--line)); box-shadow: var(--shadow); }
.price .pop { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--wax); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.price h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.price .amt { font-family: var(--serif); font-size: 48px; font-weight: 450; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price .amt span { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.price .was { color: var(--muted); font-size: 13px; text-decoration: line-through; margin-top: -2px; }
.price .blurb { color: var(--muted); font-size: 13px; margin-bottom: 16px; min-height: 36px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; flex: 1; }
.price li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; }
.price li::before { content: "✓"; color: var(--green); font-weight: 800; }
.price button:disabled { opacity: 0.55; cursor: default; }

.faq { display: block; max-width: 720px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-item { background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 500; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-size: 18px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.legal { max-width: 720px; margin: 0 auto; padding: 0 8px 48px; }
.legal h1 { font-family: var(--serif); font-size: 42px; margin: 8px 0 8px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.legal ul { padding-left: 20px; margin: 8px 0 16px; }
.legal a { color: var(--wax); }
.legal-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 8px 0 16px; line-height: 1.45; }
.legal-check input { margin-top: 3px; }

.lp-cta {
  margin: 20px 28px 72px; max-width: 896px; margin-left: auto; margin-right: auto;
  background: var(--ink); color: var(--bg); border-radius: 32px; padding: 56px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.lp-cta h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 450; margin-bottom: 8px; color: var(--bg); }
.lp-cta p { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.lp-cta-ghost { border-color: rgba(244, 239, 228, 0.2); color: var(--bg); background: transparent; }
.lp-cta-ghost:hover { background: rgba(244, 239, 228, 0.08); color: var(--bg); }

.lp-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-mute);
  padding: 48px 28px 24px; display: grid; grid-template-columns: 1.4fr 1fr auto;
  color: var(--muted); font-size: 13px; max-width: 1120px; margin: 0 auto; gap: 32px;
}
.lp-footer a { color: var(--ink-2); text-decoration: none; display: block; margin: 0 0 8px; }
.lp-footer a:hover { color: var(--ink); }

/* =========================================================
   AUTH
   ========================================================= */
.auth-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
}
.auth-side { display: none; }
.auth-side .brand { color: #fff; }
.auth-side h2 { font-size: 36px; letter-spacing: -1.2px; line-height: 1.15; margin: 24px 0 12px; }
.auth-side p { color: #cbd5e1; font-size: 15px; line-height: 1.6; max-width: 420px; }
.auth-points { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 10px; font-size: 14px; color: #e2e8f0; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-family: var(--serif); font-size: 32px; letter-spacing: -0.03em; font-weight: 450; margin: 8px 0 6px; }
.auth-card .hint { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.auth-card .hint a, .auth-switch a { color: var(--brand); font-weight: 700; text-decoration: none; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; margin-bottom: 14px; }
.field label { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.field input, .field select, .field textarea {
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}
.field input::placeholder { color: #a3abc2; }
.field input[readonly] { background: var(--panel-2); cursor: default; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }
.form-error { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 12px; display: none; }
.form-error.show { display: block; }
.free-note { background: var(--brand-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }

/* =========================================================
   APP SHELL
   ========================================================= */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; padding: 0; }
.app-side {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 0; height: 100vh;
}
.app-nav { display: flex; flex-direction: column; gap: 4px; }
.app-nav button, .app-nav a {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 9px 11px; border-radius: 11px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: none;
}
.app-nav button:hover, .app-nav a:hover { background: var(--bg-soft); }
.app-nav button.active, .app-nav a.active { background: var(--ink); color: var(--bg); }
.app-nav svg { flex-shrink: 0; opacity: 0.85; }

.sidebar-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 4px 4px 8px; font-weight: 700; }
.count-pill { background: var(--indigo-bg); color: var(--brand); border-radius: 20px; padding: 1px 8px; font-size: 11px; font-weight: 800; }

.history-list { list-style: none; display: flex; flex-direction: column; gap: 6px; overflow: auto; flex: 1; }
.history-item {
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  position: relative;
}
.history-item:hover { border-color: var(--line-strong); transform: translateX(2px); }
.history-item.active { border-color: var(--brand); background: var(--indigo-bg); }
.history-item .h-title { font-weight: 700; font-size: 13px; }
.history-item .h-loc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.history-item .h-meta { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.h-del { position: absolute; top: 6px; right: 6px; opacity: 0; background: none; border: none; color: var(--red); cursor: pointer; font-size: 15px; line-height: 1; padding: 3px 6px; border-radius: 6px; }
.history-item:hover .h-del { opacity: 1; }
.h-del:hover { background: var(--red-bg); }

.status-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.status-completed { background: var(--green-bg); color: var(--green); }
.status-running { background: var(--indigo-bg); color: var(--brand); }
.status-failed { background: var(--red-bg); color: var(--red); }
.status-cancelled { background: var(--amber-bg); color: var(--amber); }

.app-main { min-width: 0; }
.app-top {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 14px 26px;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
  position: sticky; top: 0; z-index: 40;
  gap: 10px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  margin-right: 0;
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 45;
}
.nav-toggle:hover { filter: brightness(1.08); }
.mobile-title {
  display: none;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-close {
  display: none;
  width: 40px; height: 40px;
  border: none; background: var(--bg-soft);
  border-radius: 10px; font-size: 24px; line-height: 1;
  cursor: pointer; color: var(--ink);
}
.loc-guide {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.loc-guide strong { display: block; margin-bottom: 2px; color: var(--ink); }
.loc-summary {
  flex: 0 1 240px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
}
.loc-summary.ready { color: var(--sage); border-style: solid; background: var(--green-bg); }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: -2px; }
.step-n {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--wax); color: #fff;
  font-size: 11px; font-weight: 800;
  margin-right: 6px;
  vertical-align: middle;
}
.field label em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.loc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.loc-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-2);
}
.loc-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.mobile-tabbar { display: none; }
.credits-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 8px 6px 12px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.credits-pill:hover { border-color: var(--line-strong); }
.credits-pill b { color: var(--brand); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 5px 10px 5px 5px;
  cursor: pointer; font-size: 13px; font-weight: 700;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.user-menu {
  position: absolute; right: 26px; top: 58px;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  min-width: 190px; padding: 6px; display: none; z-index: 50;
}
.user-menu.open { display: block; }
.user-menu button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 600;
}
.user-menu button:hover { background: var(--bg-soft); }

.content { padding: 26px 30px 70px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: none;
  animation: fadeUp 0.32s ease both;
}
.panel h2 { font-size: 17px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* stepper */
.stepper { display: flex; align-items: center; margin: 0 auto 26px; max-width: 720px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step .dot {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
  background: #fff; transition: all 0.3s ease; z-index: 1;
}
.step .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.step::after { content: ""; flex: 1; height: 2px; background: var(--line-strong); margin: 0 12px; }
.step:last-child::after { display: none; }
.step.active .dot { border-color: var(--wax); color: #fff; background: var(--wax); box-shadow: none; }
.step.active .lbl { color: var(--ink); }
.step.done .dot { border-color: var(--green); color: var(--green); }
.step.done::after { background: #a7dcc3; }

.search-hero .sub { color: var(--muted); font-size: 13.5px; margin: -8px 0 18px; line-height: 1.5; }
.search-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: stretch; }
.search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.search-fields .full { grid-column: 1 / -1; }

.country-pick { display: flex; gap: 6px; align-items: center; position: relative; }
.country-pick input { flex: 1; }
.country-pick .icon-btn { border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 11px; font-size: 14px; background: #fff; }
.country-pick .combo-panel { left: 0; right: 36px; }

.range-wrap { display: flex; align-items: center; gap: 12px; }
.range-wrap input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand) var(--fill, 20%), #e8ecf3 var(--fill, 20%));
  outline: none; padding: 0; border: none;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  cursor: pointer; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}
.range-val { font-weight: 800; font-size: 14px; min-width: 44px; text-align: center; background: var(--indigo-bg); color: var(--brand); border-radius: 8px; padding: 5px 4px; display: inline-block; }

.credit-hint { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.credit-hint b { color: var(--brand); }

.extract-filters {
  grid-column: 1 / -1;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 14px;
}
.extract-filters h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 10px; }
.ef-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }

.map-wrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); min-height: 300px; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; background: #eef2f7; }
.map-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  pointer-events: none; z-index: 500; white-space: nowrap;
  box-shadow: var(--shadow);
}
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; background: var(--panel-2); }
.leaflet-container { font-family: inherit; }

.combo-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  z-index: 100; display: none; animation: fadeUp 0.18s ease;
}
.combo-panel.open { display: block; }
.combo-group { padding: 6px 0; }
.combo-group-label { padding: 7px 14px 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); }
.combo-item { padding: 9px 14px; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.combo-item:hover, .combo-item.hl { background: var(--indigo-bg); }
.combo-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }

.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.progress-msg { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(79, 70, 229, 0.2); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
.progress-actions { display: flex; align-items: center; gap: 8px; }
.progress-bar { height: 8px; border-radius: 6px; background: #eef1f6; overflow: hidden; margin-bottom: 18px; }
.progress-bar .fill { height: 100%; width: 0%; background: var(--grad); border-radius: 6px; transition: width 0.5s ease; }
.progress-bar.indeterminate .fill { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.progress-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pstat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.pstat .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.pstat .v { font-size: 21px; font-weight: 800; line-height: 1.1; }
.pstat label { font-size: 11px; color: var(--muted); }
.ic-indigo { background: var(--indigo-bg); color: var(--brand); }
.ic-green { background: var(--green-bg); color: var(--green); }
.ic-pink { background: var(--pink-bg); color: var(--brand-3); }
.ic-amber { background: var(--amber-bg); color: var(--amber); }
.ic-teal { background: var(--teal-bg); color: var(--teal); }

.dashboard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.dashboard-head h2 { margin-bottom: 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; transition: transform 0.15s, box-shadow 0.15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .num { font-size: 27px; font-weight: 800; line-height: 1.05; letter-spacing: -0.6px; }
.stat-card .lbl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.dash { max-width: 1180px; }
.dash-head { margin-bottom: 22px; }
.dash-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.dash-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { font-family: var(--serif); font-size: 36px; letter-spacing: -0.03em; font-weight: 450; line-height: 1.05; }
.dash-sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.dash-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.dash-hint { color: var(--muted); font-size: 13px; font-weight: 500; margin-top: 2px; }
.dash-panel h2 { margin-bottom: 4px; }
.dash-panel .dashboard-head { margin-bottom: 14px; }

.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: 16px 16px 14px; box-shadow: none;
}
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kpi-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.2px; }
.kpi-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; }
.kpi-num { font-family: var(--serif); font-size: 32px; font-weight: 450; letter-spacing: -0.03em; line-height: 1; }
.kpi-meta { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.kpi-track { height: 5px; background: #eef1f6; border-radius: 99px; margin-top: 12px; overflow: hidden; }
.kpi-track i { display: block; height: 100%; width: 0; background: var(--wax); border-radius: 99px; transition: width 0.4s ease; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr); gap: 16px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.dash-running {
  display: flex; align-items: center; gap: 10px;
  background: var(--indigo-bg); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600;
}
.dash-running.hidden { display: none !important; }

.onboard { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.onboard li {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg-soft);
}
.onboard li.done { background: #fff; }
.onboard .step-mark {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: #fff; border: 1.5px solid var(--line-strong); color: var(--muted);
}
.onboard li.done .step-mark { background: var(--green); border-color: var(--green); color: #fff; }
.onboard b { display: block; font-size: 13.5px; }
.onboard span { font-size: 12px; color: var(--muted); font-weight: 600; }
.onboard .go { margin-left: auto; }

.extract-row {
  display: grid; grid-template-columns: 1.2fr 1fr 90px 110px 90px 70px;
  gap: 8px; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid #f1f3f8; cursor: pointer;
}
.extract-row:hover { background: #f8f9ff; }
.extract-row:last-child { border-bottom: none; }
.extract-head {
  display: grid; grid-template-columns: 1.2fr 1fr 90px 110px 90px 70px;
  gap: 8px; padding: 0 4px 8px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted);
}
.er-title { font-weight: 700; font-size: 13.5px; }
.er-loc, .er-when { color: var(--muted); font-size: 12.5px; }
.er-leads { font-weight: 700; }

.dash-empty { text-align: center; padding: 36px 16px 28px; color: var(--muted); }
.dash-empty .illus {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.dash-empty h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.dash-empty p { font-size: 13.5px; max-width: 360px; margin: 0 auto 16px; line-height: 1.5; }

.usage-chart { min-height: 140px; }
.usage-chart.compact { min-height: 72px; margin-bottom: 14px; }
.usage-chart.compact .bars { height: 56px; gap: 4px; }
.usage-chart.compact .dl { display: none; }
.usage-chart.compact .usage-empty { padding: 10px 4px; font-size: 12.5px; }
.wallet-chart-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 8px; }
.usage-chart .bars {
  display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px;
  align-items: end; height: 110px;
}
.usage-chart .col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.usage-chart .bar {
  width: 100%; max-width: 18px; border-radius: 5px 5px 2px 2px;
  background: #e4e8f1; min-height: 4px;
}
.usage-chart .bar.on { background: var(--wax); }
.usage-chart .dl { font-size: 10px; color: var(--muted); font-weight: 700; }
.usage-empty { color: var(--muted); font-size: 13.5px; padding: 28px 8px; text-align: center; }

.wallet-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.credit-ring { width: 80px; height: 80px; flex-shrink: 0; }
.wallet-amt { font-family: var(--serif); font-size: 32px; font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; }
.wallet-rows { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.wallet-rows li { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.wallet-rows b { color: var(--ink); }

.quick-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.quick {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; text-align: left; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px; cursor: pointer; font: inherit;
}
.quick:hover { border-color: var(--line-strong); background: var(--brand-soft); }
.quick b { font-size: 13.5px; }
.quick span { font-size: 12px; color: var(--muted); font-weight: 600; }

.filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters input, .filters select {
  padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); font-size: 13px; font-family: inherit;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); }
.filters input[type="number"] { width: 100px; }
#filterSearch, #libSearch { min-width: 190px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; min-height: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--indigo-bg); border: 1px solid var(--line-strong); color: var(--wax);
  font-size: 12px; font-weight: 600; padding: 4px 6px 4px 11px; border-radius: 20px;
}
.chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: 13px; padding: 0 4px; }

.bulkbar {
  display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--indigo-bg); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 9px 14px; margin-bottom: 12px; font-size: 13px; font-weight: 600;
}
.bulkbar.show { display: flex; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 620px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; text-align: left; white-space: nowrap; }
thead th {
  position: sticky; top: 0; z-index: 5;
  background: #fafbfe; color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; font-weight: 800;
  border-bottom: 1px solid var(--line);
}
tbody tr { border-bottom: 1px solid #f1f3f8; }
tbody tr:hover { background: #f8f9ff; }
tbody tr.selected-row { background: var(--indigo-bg); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable .arrow { margin-left: 5px; font-size: 9px; }
.biz-name { font-weight: 700; font-size: 13.5px; color: var(--brand); cursor: pointer; }
.biz-name:hover { text-decoration: underline; }
.biz-cat { color: var(--brand-2); font-size: 11.5px; font-weight: 600; margin-top: 1px; }
.biz-addr { color: var(--muted); font-size: 11px; white-space: normal; max-width: 300px; margin-top: 1px; }
td a.link { color: var(--brand); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
td a.link:hover { text-decoration: underline; }
.rating-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--amber-bg); color: var(--amber); padding: 3px 9px; border-radius: 20px; font-weight: 800; font-size: 12.5px; border: 1px solid #fde68a; }
.reviews-num { font-weight: 700; }
.email-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--green-bg); color: var(--green); padding: 3px 10px; border-radius: 8px; font-weight: 600; font-size: 12px; border: 1px solid #a7f3d0; }
.email-none { color: var(--muted); font-style: italic; font-size: 12px; }
.email-pending-btn { background: var(--teal-bg); color: var(--teal); border: 1px solid #99e6dc; padding: 4px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.email-pending-btn:hover { background: #d3f5f0; }
.email-recheck-btn { background: transparent; color: var(--brand); border: none; font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 2px 4px; border-radius: 6px; margin-left: 6px; }
.skel-row td { padding: 14px; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eef1f7 25%, #dde3ee 50%, #eef1f7 75%); background-size: 400px 100%; animation: shimmer 1.2s infinite; }
.empty-state { text-align: center; color: var(--muted); padding: 46px 20px; }
.empty-state .big { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.hide-phone .col-phone, .hide-website .col-website, .hide-rating .col-rating,
.hide-reviews .col-reviews, .hide-email .col-email, .hide-maps .col-maps { display: none; }

.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 12px; }
.page-info { color: var(--muted); font-size: 12.5px; }
.page-btns { display: flex; gap: 5px; align-items: center; }
.page-btn { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; }
.page-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--ink); border: none; color: var(--bg); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-size { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.page-size select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; }

.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px; background: #fff; border: 1px solid var(--line-strong); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; display: none; }
.menu.open { display: block; }
.menu label { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.menu label:hover { background: var(--bg-soft); }
input[type="checkbox"].cb { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 18, 32, 0.42);
  backdrop-filter: blur(4px); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 620px; max-height: 85vh; overflow-y: auto; animation: fadeUp 0.25s ease; }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px 0; }
.modal-head h3 { font-size: 18px; font-weight: 800; padding-right: 12px; }
.modal-close { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; color: var(--muted); }
.modal-close:hover { background: var(--red-bg); color: var(--red); }
.modal-body { padding: 16px 24px 24px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 18px; }
.detail-item .dl { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.detail-item .dv { font-size: 13.5px; font-weight: 600; word-break: break-word; }
.detail-item .dv a { color: var(--brand); text-decoration: none; }
.detail-item.wide { grid-column: 1 / -1; }
.email-list { border-top: 1px solid var(--line); padding-top: 14px; }
.email-list h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.email-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px; background: var(--bg-soft); }
.email-row .em { font-weight: 700; font-size: 13px; }
.email-row .src { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.pay-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; }
.pay-card:hover, .pay-card.sel { border-color: var(--brand); background: var(--brand-soft); }
.pay-card h4 { margin-bottom: 4px; }
.pay-card .amt { font-size: 22px; font-weight: 800; }
.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-banner { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.ledger { width: 100%; }
.reason-tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg-mute); }
.pos { color: var(--green); font-weight: 800; }
.neg { color: var(--red); font-weight: 800; }

.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.danger-zone { border: 1px solid #fecaca; background: #fff7f7; border-radius: 14px; padding: 16px; }

.low-credits { background: var(--amber-bg); border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; }

@media (max-width: 1100px) {
  .lp-hero, .filter-show, .auth-body, .app-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-side.mobile-open { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); z-index: 90; box-shadow: var(--shadow-lg); }
  .nav-toggle { display: inline-flex; }
  .mobile-title { display: block; }
  .app-top { justify-content: flex-start; flex-wrap: nowrap; }
  .side-close { display: inline-flex; align-items: center; justify-content: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 720px) {
  .lp-nav-links { display: none; }
  .lp-menu { display: inline-flex; }
  .lp-nav.nav-open .lp-nav-links {
    display: flex; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 22px; align-items: flex-start;
  }
  .feat-grid, .steps, .price-grid, .pay-grid, .acct-grid, .ef-grid, .progress-stats, .dash-kpis, .dash-grid, .lp-footer { grid-template-columns: 1fr; }
  .extract-row, .extract-head { grid-template-columns: 1fr 80px 80px; }
  .extract-head span:nth-child(2), .extract-head span:nth-child(5),
  .extract-row .er-loc, .extract-row .er-when { display: none; }
  .lp-cta { flex-direction: column; align-items: flex-start; }
  .search-fields { grid-template-columns: 1fr; }
  .step .lbl { display: none; }
  .detail-grid, .card-fields { grid-template-columns: 1fr; }
  .content { padding: 18px 16px 60px; }
  .live-split, .map-toolbar { grid-template-columns: 1fr; }
}

.demo-login {
  background: color-mix(in oklab, var(--gold) 10%, var(--panel));
  border: 1px solid color-mix(in oklab, var(--gold) 28%, var(--line));
  border-radius: 16px; padding: 14px; margin: 0 0 16px;
}
.demo-login p { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 10px; }

.map-toolbar {
  position: absolute; top: 10px; left: 50px; right: 12px; z-index: 500;
  display: flex; gap: 6px;
}
.map-toolbar input {
  flex: 1; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--panel); font: inherit; font-size: 13px;
}
.map-suggest {
  position: absolute; top: 48px; left: 50px; right: 12px; z-index: 520;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  max-height: 220px; overflow: auto; box-shadow: var(--shadow);
}
.map-hit {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink);
}
.map-hit:hover { background: var(--bg-soft); }

.progress-now { font-size: 13px; color: var(--muted); font-weight: 600; margin: -4px 0 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage) 25%, transparent); }
.live-dot.stale { background: var(--amber); box-shadow: none; }
.live-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; margin-top: 16px; }
.live-log, .live-recent { list-style: none; max-height: 180px; overflow: auto; margin-top: 8px; font-size: 12.5px; }
.live-log li { padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.live-recent li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.live-recent b { font-size: 13px; }

.wa-pill { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.wa-pill.on { background: var(--teal-bg); color: var(--sage); border-color: #b7d4c4; }
.wa-box { margin-top: 16px; }
.wa-status { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.wa-qr { width: 240px; height: 240px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }

.guide-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.guide-flow.in-app { grid-template-columns: 1fr; gap: 10px; list-style: none; }
.guide-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 18px 18px;
}
.guide-flow.in-app .guide-step { display: flex; gap: 14px; align-items: flex-start; }
.guide-n {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--wax); color: #fff;
  font-size: 13px; font-weight: 700; margin-bottom: 10px; flex-shrink: 0;
}
.guide-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.guide-step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.guide-step .btn { margin-top: 10px; }

@media (max-width: 1100px) {
  .guide-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .guide-flow { grid-template-columns: 1fr; }
}

html, body { overflow-x: hidden; }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(26, 22, 18, 0.35);
  z-index: 85; backdrop-filter: blur(2px);
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.lp-hero h1 { overflow-wrap: anywhere; }
.lp-section { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

@media (max-width: 1100px) {
  .app-top { padding: 10px 14px; flex-wrap: nowrap; }
  .top-actions { flex-wrap: nowrap; justify-content: flex-end; margin-left: auto; max-width: none; }
  .user-chip span#userName { display: none; }
  .credits-pill span:first-child { display: none; }
  .wa-pill { display: none; }
  .app-side.mobile-open { padding-top: env(safe-area-inset-top); }
  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    background: var(--panel);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -18px rgba(48, 32, 16, 0.4);
  }
  .mobile-tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    min-height: 48px;
    border: none; background: none;
    font: inherit; font-size: 10.5px; font-weight: 700;
    color: var(--muted); cursor: pointer;
  }
  .mobile-tabbar button.active { color: var(--wax); }
  .mobile-tabbar svg { display: block; }
  .app-body .content { padding-bottom: 92px; }
  .loc-guide { flex-direction: column; }
  .loc-summary { flex: 1 1 auto; width: 100%; }
}

@media (max-width: 420px) {
  .nav-toggle span { display: none; }
  .nav-toggle { padding: 8px; }
}

@media (max-width: 720px) {
  .lp-nav { padding: 0 14px; height: 58px; }
  .lp-hero { padding: 36px 16px 24px; gap: 22px; }
  .lp-hero h1 { font-size: 34px; line-height: 1.08; }
  .lp-hero p.lead { font-size: 16px; }
  .lp-hero-actions { flex-direction: column; align-items: stretch; }
  .lp-hero-actions .btn { width: 100%; justify-content: center; }
  .lp-preview { margin-top: 8px; }
  .lp-section { padding-top: 48px; padding-bottom: 48px; }
  .lp-section h2 { font-size: 28px; }
  .price .amt { font-size: 36px; }
  .auth-main { padding: 24px 16px 40px; }
  .auth-card { padding: 22px 18px; border-radius: 20px; }
  .auth-card h1 { font-size: 26px; }
  .app-top { padding: 10px 12px; }
  .content { padding: 14px 12px 92px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .panel { padding: 16px 14px; border-radius: 16px; }
  .stats-row, .dash-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card .num { font-size: 22px; }
  .user-menu { right: 12px; }
  .lp-cta { margin: 16px 12px 40px; padding: 32px 20px; }
  .lp-footer { padding: 28px 16px 40px; }
  table { font-size: 13px; }
}
