:root {
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --ink: #1A2332;
  --muted: #64748B;
  --line: #E2E8F0;
  --accent: #1B4965;
  --accent-soft: #E8F0F7;
  --success: #0D7C66;
  --danger: #DC6B2F;
  --alert: #D97706;
  --compliance: #475569;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(26, 35, 50, 0.08);
}
.auth-logo, .logo { font-size: 20px; font-weight: 800; text-decoration: none; color: inherit; display: inline-block; }
.auth-logo span, .logo span { color: var(--accent); }
.auth-sub { color: var(--muted); font-size: 13.5px; margin: 8px 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.btn {
  display: inline-block; width: 100%; text-align: center;
  background: var(--accent); color: #fff; border: none; border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-sm { padding: 8px 12px; font-size: 13px; width: auto; }
.alert {
  background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A;
  border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.alert.success { background: #E0F5F4; color: var(--success); border-color: #99F6E4; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.signup-trial-note {
  font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0 0 16px; text-align: center;
}
.signup-pricing-footnote {
  font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.45;
}
.checkout-card { max-width: 440px; }
.checkout-copy { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.trial-note-subtle {
  font-size: 13px; color: var(--muted); margin: 0 0 14px; padding: 10px 14px;
  background: var(--accent-soft); border-radius: 10px;
}
.trial-note-subtle a { font-weight: 600; text-decoration: none; color: var(--accent); }
.trial-note-subtle a:hover { text-decoration: underline; }
.landing-trial-callout {
  font-size: 12px; font-weight: 600; color: var(--accent); margin: 0;
  padding: 8px 12px; background: var(--accent-soft); border-radius: 10px; line-height: 1.45;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: var(--card); border-bottom: 1px solid var(--line);
}
.topbar .right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.topbar .right a { text-decoration: none; font-weight: 600; }

.dash-wrap {
  max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px;
  display: grid; grid-template-columns: 1fr 380px; gap: 28px;
}
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px; margin-bottom: 20px;
}
.panel h2 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.panel h3 { font-size: 13px; font-weight: 700; margin: 18px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.panel-hint { font-size: 12px; color: var(--muted); margin: -6px 0 12px; line-height: 1.5; }

.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.template-grid-wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.template-opt {
  border: 2px solid var(--line); border-radius: 12px; padding: 12px;
  cursor: pointer; font-size: 12.5px; font-weight: 700; text-align: center; display: block;
}
.template-opt.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.template-opt small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; font-size: 11px; }
.template-opt.selected small { color: var(--accent); }
.template-opt.locked { opacity: 0.75; cursor: not-allowed; }
.template-lock { display: block; font-size: 9px; font-weight: 800; color: var(--alert); margin-bottom: 4px; }

.row-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; position: relative; }
.row-group .row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.row-remove {
  position: absolute; top: 8px; right: 8px; background: none; border: none;
  color: var(--danger); font-size: 12px; font-weight: 700; cursor: pointer;
}
.add-row-btn {
  background: var(--accent-soft); color: var(--accent); border: none; border-radius: 9px;
  padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; width: 100%;
}
.template-section { display: none; }
.template-section.active { display: block; }

/* Template showcase (builder) */
/* template picker */
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 6px; }
.template-grid-wide { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.template-opt {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  background: var(--card);
  color: var(--ink);
  line-height: 1.35;
}
.template-opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.template-opt small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
}
.template-opt.selected small { color: var(--accent); }
.template-opt.locked {
  display: block;
  text-decoration: none;
  color: var(--muted);
  opacity: 0.88;
  cursor: pointer;
}
.template-opt.locked:hover { border-color: var(--accent); }
.template-opt .template-lock {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--muted);
}

.template-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.template-card {
  display: block;
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}
.template-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27, 73, 101, 0.1); }
.template-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.template-card.locked { opacity: 0.72; cursor: not-allowed; }
.template-card-preview {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  padding: 14px 14px 10px;
  min-height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.template-card-body { padding: 12px 14px 14px; }
.template-card-body strong { display: block; font-size: 13px; margin-bottom: 4px; }
.template-card-body p { font-size: 11px; color: var(--muted); line-height: 1.45; margin: 0; }
.template-best-for { font-size: 11px; color: var(--ink); line-height: 1.45; margin: 0; font-weight: 500; }
.template-tier, .template-lock {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.template-tier.tier-free { background: #E2E8F0; color: var(--compliance); }
.template-tier.tier-plus { background: var(--accent-soft); color: var(--accent); }
.template-lock { background: #FEF3C7; color: var(--alert); }
.demo-load-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
}
.demo-load-row .field-hint { margin: 0; flex: 1; min-width: 200px; }

/* CSS mockups inside template cards */
.mock { width: 100%; max-width: 120px; display: flex; flex-direction: column; gap: 5px; }
.mock i {
  display: block;
  height: 10px;
  background: rgba(27, 73, 101, 0.2);
  border-radius: 4px;
}
.mock i.wide { height: 28px; border-radius: 6px; }
.mock i.dark { background: rgba(26, 35, 50, 0.45); height: 22px; }
.mock i.cta { background: var(--accent); height: 24px; opacity: 0.85; }
.mock i.avatar { width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 4px; }
.mock i.line { height: 8px; }
.mock i.stats { height: 16px; background: var(--accent); opacity: 0.5; }
.mock i.quote { height: 14px; border-radius: 6px; opacity: 0.35; }
.m-protection i { width: 48%; display: inline-block; vertical-align: top; }
.m-protection { flex-direction: row; flex-wrap: wrap; gap: 4px; max-width: 100px; }
.m-credentials b { display: block; height: 8px; background: rgba(27,73,101,0.15); border-radius: 3px; margin-top: 2px; }
.m-resources i { height: 14px; }
.m-shield i:not(.wide) { height: 8px; }
.m-wealth { gap: 4px; }
.m-consult i:not(.cta) { height: 8px; }
.m-minimal { align-items: center; }
.m-comprehensive { gap: 4px; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.theme-swatch {
  border: 2px solid var(--line); border-radius: 12px; padding: 10px;
  font-size: 11px; font-weight: 600; cursor: pointer; text-align: center; display: block;
}
.theme-swatch.selected { border-color: var(--accent); background: var(--accent-soft); }
.theme-swatch-colors { display: flex; gap: 4px; justify-content: center; margin-bottom: 6px; }
.theme-swatch-colors i { width: 22px; height: 22px; border-radius: 999px; display: block; border: 1px solid rgba(0,0,0,0.08); }

.preview-shell { position: sticky; top: 20px; }
.preview-frame-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.preview-frame-wrap iframe { width: 100%; height: 640px; border: none; border-radius: 12px; background: var(--bg); }
.preview-hint { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }
.preview-refresh { width: 100%; margin-top: 10px; }
.share-link-card { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); }
.share-link-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.share-link-row { display: flex; align-items: center; gap: 10px; }
.share-link-text { flex: 1; font-size: 14px; font-weight: 700; word-break: break-all; text-decoration: none; }
.share-qr-section {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.share-qr-panel {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
}
.share-qr-code { line-height: 0; }
.share-qr-code canvas, .share-qr-code img { display: block; border-radius: 8px; }

.avatar-upload { display: flex; gap: 16px; align-items: center; }
.avatar-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.avatar-preview-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 28px; font-weight: 800;
}
.avatar-change-btn { cursor: pointer; }
.avatar-change-btn input { display: none; }
.tagline-counter { display: block; text-align: right; margin-top: 4px; font-size: 11px; color: var(--muted); }
.field-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.link-primary-label { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; }
.link-primary-label input { width: auto; }

.setup-banner { border: 1px solid rgba(217, 119, 6, 0.25); background: #FFFBEB; }
.setup-banner-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.dev-panel { background: #FFFBEB; border-color: #FDE68A; }
.dev-plan-form { display: flex; gap: 8px; align-items: center; }
.dev-plan-form select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }

.plan-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.plan-free { background: #E2E8F0; color: var(--muted); }
.plan-plus { background: var(--accent-soft); color: var(--accent); }
.analytics-panel .analytics-stats { display: flex; gap: 20px; }
.analytics-panel .analytics-stats strong { display: block; font-size: 22px; }
.analytics-panel .analytics-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* Public bio page */
.bio-site-bar { text-align: center; padding: 10px 16px; font-size: 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.bio-site-bar a { color: var(--muted); text-decoration: none; font-weight: 600; }
.bio-page { max-width: 480px; margin: 0 auto; padding: 36px 20px 60px; }
.bio-header { text-align: center; margin-bottom: 22px; }
.bio-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; border: 3px solid var(--card); box-shadow: 0 10px 24px rgba(0,0,0,0.1); }
.bio-avatar-lg { width: 96px; height: 96px; }
.bio-avatar-fallback {
  width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 28px; margin: 0 auto 14px;
}
.bio-name { font-size: 21px; font-weight: 700; }
.bio-role { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 4px; }
.bio-tagline { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 360px; margin: 12px auto 0; }
.bio-intro { font-size: 14px; line-height: 1.65; margin: 0 auto 20px; text-align: center; max-width: 400px; }
.bio-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 22px; }
.bio-gallery-photo { aspect-ratio: 4/3; border-radius: 14px; background-size: cover; background-position: center; background-color: var(--accent-soft); }
.bio-gallery-item figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }

.bio-compliance-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--compliance); color: #fff; font-size: 11px; line-height: 1.45;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 18px;
}
.bio-compliance-icon { font-size: 14px; }
.bio-compliance-tag {
  margin-left: auto; background: rgba(255,255,255,0.15); padding: 3px 8px;
  border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.bio-alert-banner {
  background: #FEF3C7; border: 1px solid #FDE68A; color: #92400E;
  font-size: 12px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px;
}

.bio-section-label { font-size: 15px; font-weight: 700; margin: 28px 0 12px; }
.bio-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }

.bio-credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.bio-credential-badge {
  background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; text-align: center;
}
.bio-credential-label { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.bio-credential-value { display: block; font-size: 13px; font-weight: 700; margin-top: 4px; color: var(--accent); }

.bio-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bio-product-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bio-product-photo { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--accent-soft); position: relative; }
.bio-product-tag {
  position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 700;
  text-transform: uppercase; padding: 3px 7px; border-radius: 6px;
  background: rgba(255,255,255,0.92); color: var(--ink);
}
.bio-product-tag.alert-tag { background: var(--alert); color: #fff; }
.bio-product-highlight {
  position: absolute; bottom: 8px; left: 8px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 8px; background: rgba(26, 35, 50, 0.88); color: #fff;
}
.bio-product-info { padding: 10px 12px 12px; }
.bio-product-name { font-size: 13px; font-weight: 700; }
.bio-product-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

.bio-stat-row { display: flex; justify-content: center; gap: 24px; margin: 6px 0 8px; }
.bio-stat { text-align: center; }
.bio-stat-num { font-size: 18px; font-weight: 700; color: var(--accent); }
.bio-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }

.bio-outcome-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bio-outcome-name { font-size: 13.5px; font-weight: 700; }
.bio-outcome-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.bio-outcome-detail { font-size: 11px; color: var(--muted); margin-top: 4px; }
.bio-outcome-result { font-size: 12px; font-weight: 700; color: var(--success); text-align: right; white-space: nowrap; }

.bio-testimonial { font-size: 14px; line-height: 1.55; font-style: italic; }
.bio-testimonial-from { font-size: 11px; color: var(--muted); margin-top: 8px; font-weight: 600; font-style: normal; }

.bio-resource-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.bio-resource-icon { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.bio-resource-title { font-size: 13.5px; font-weight: 700; }
.bio-resource-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.bio-resource-cta { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.bio-link-btn {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px;
  margin-bottom: 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.bio-link-btn.primary { background: var(--accent); color: #fff; border: none; justify-content: center; }
.bio-link-btn.alert { background: var(--alert); color: #fff; border: none; justify-content: center; }

.bio-consult-hero { margin-bottom: 14px; }
.bio-consult-photo { aspect-ratio: 16/10; border-radius: 16px; }
.bio-consult-info { padding: 10px 4px 0; }
.bio-consult-details div { font-size: 13px; margin-bottom: 6px; }
.bio-consult-note { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.bio-footer { text-align: center; font-size: 11px; color: var(--muted); margin-top: 28px; }
.bio-footer a { color: var(--muted); font-weight: 600; }
.bio-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.bio-404-card { max-width: 420px; text-align: center; padding: 32px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }

/* Landing */
.landing-body { background: linear-gradient(180deg, #F4F6F9 0%, #E8F0F7 100%); }
.landing-header { padding: 16px 24px; background: rgba(255,255,255,0.9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.landing-nav { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.landing-nav-links { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.landing-nav-links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.landing-main { max-width: 960px; margin: 0 auto; padding: 48px 24px 80px; }
.landing-main-wide { max-width: 1180px; }
.landing-hero { text-align: center; padding: 24px 0 48px; }
.landing-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: left;
  padding: 32px 0 56px;
}
.landing-hero-copy .landing-lead { margin-left: 0; }
.landing-hero-copy .landing-actions { justify-content: flex-start; }
.landing-hero-copy .landing-checklist { justify-content: flex-start; }
.landing-hero-copy h1 { margin-left: 0; max-width: none; }
.landing-hero-visual { min-width: 0; }
.landing-section-alt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
}
.landing-section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}
.landing-template-list { display: flex; flex-direction: column; gap: 10px; }
.landing-template-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.landing-template-list-item strong { display: block; font-size: 14px; margin: 6px 0 4px; }
.landing-template-list-item p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.45; }

/* Landing phone previews */
.landing-hero-preview { position: sticky; top: 80px; }
.landing-template-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.landing-template-tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.landing-template-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.landing-hero-phone-wrap { position: relative; min-height: 520px; }
.landing-hero-phone-panel {
  display: none;
  animation: landingFadeIn 0.25s ease;
}
.landing-hero-phone-panel.active { display: block; }
@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.landing-phone-label {
  text-align: center;
  margin-bottom: 10px;
}
.landing-phone-label strong { display: block; font-size: 13px; margin-top: 4px; }
.landing-phone-frame {
  background: #111;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(26, 35, 50, 0.18);
}
.landing-phone-inner {
  background: var(--bg);
  border-radius: 22px;
  height: 520px;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.landing-phone-inner .bio-page { max-width: 100%; padding-bottom: 28px; }
.landing-phone-inner .bio-site-bar,
.landing-phone-inner .bio-footer { display: none; }
.landing-phone-inner .bio-header-portfolio { padding-top: 14px; }
.landing-phone-inner .bio-header-accent { height: 90px; }
.landing-phone-inner .bio-avatar,
.landing-phone-inner .bio-avatar-fallback { width: 64px; height: 64px; font-size: 22px; }
.landing-phone-inner .bio-name { font-size: 17px; }
.landing-phone-inner .bio-section-head { margin-top: 18px; }
.landing-samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.landing-phone-sm .landing-phone-frame { border-radius: 24px; padding: 10px; }
.landing-phone-inner-sm { height: 420px; border-radius: 18px; }
.landing-phone-caption {
  padding: 4px 2px 0;
}
.landing-phone-caption strong { display: block; font-size: 14px; margin: 6px 0 4px; }
.landing-phone-caption p { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 0 0 8px; }
.landing-live-link {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.landing-live-link:hover { text-decoration: underline; }
.landing-badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.landing-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 720px; margin: 0 auto 16px; }
.accent-text { color: var(--accent); }
.landing-lead { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 640px; margin: 0 auto 24px; }
.landing-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.landing-actions .btn { width: auto; min-width: 180px; }
.landing-checklist { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-size: 13px; color: var(--muted); }
.landing-checklist li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.landing-section { margin-top: 56px; }
.landing-section h2 { font-size: 1.5rem; margin-bottom: 12px; }
.landing-section-lead { color: var(--muted); margin-bottom: 20px; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.landing-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.landing-card span { font-size: 12px; color: var(--muted); }
.landing-card em { font-size: 10px; font-weight: 800; font-style: normal; color: var(--alert); }
.landing-card em.tier-free { color: var(--compliance); }
.landing-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-tag {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 600;
}
.landing-cta { text-align: center; padding: 40px 24px; background: var(--card); border-radius: 20px; border: 1px solid var(--line); }
.landing-cta p { color: var(--muted); margin: 12px 0 20px; }
.landing-cta .btn { width: auto; }
.landing-footer { text-align: center; padding: 28px 20px 32px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 8px; }
.landing-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.site-brand-footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
  text-transform: none;
}
.footer-note { font-size: 11px; color: var(--muted); margin: 0; opacity: 0.85; }
.auth-brand-footer,
.dash-brand-footer {
  text-align: center;
  padding: 16px;
  margin: 0;
}
.bio-site-brand {
  text-align: center;
  padding: 16px 20px 24px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 20%, transparent);
}
.bio-site-brand .site-brand-footer { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; opacity: 0.75; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.analytics-link-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
}
.analytics-link-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.analytics-link-list li:last-child { border-bottom: none; }
.analytics-link-list strong { font-variant-numeric: tabular-nums; }

.legal-page .header { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.legal-main { max-width: 720px; padding: 48px 20px 64px; }
.legal-brand { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legal-main h1 { font-size: 2rem; margin: 0 0 8px; }
.legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 1.15rem; margin: 0 0 10px; }
.legal-section p,
.legal-section li { line-height: 1.65; color: var(--text); font-size: 15px; }
.legal-section p { margin-bottom: 0.75rem; }
.legal-section ul { padding-left: 1.25rem; margin: 0 0 0.75rem; }
.legal-section li { margin-bottom: 0.35rem; }
.legal-footer { margin-top: 0; border-top: 1px solid var(--line); }

.landing-hero-preview-note {
  text-align: center; font-size: 13px; margin-top: 12px;
}
.landing-hero-preview-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.landing-hero-preview-note a:hover { text-decoration: underline; }

.landing-tier-tabs {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.landing-tier-tab {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.landing-tier-tab span { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 12px; }
.landing-tier-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.landing-tier-tab.active span { color: rgba(255,255,255,0.85); }

.landing-sample-tier-panel { display: none; }
.landing-sample-tier-panel.active { display: block; }

.landing-sample-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.landing-sample-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 0 18px; overflow: hidden;
}
.landing-sample-card-preview {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%);
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; min-height: 88px;
}
.landing-sample-card-preview .mock { transform: scale(1.15); }
.landing-sample-card-head { padding: 14px 18px 0; margin-bottom: 6px; }
.landing-sample-card-head strong { display: block; font-size: 15px; margin-top: 8px; }
.landing-sample-best-for {
  font-size: 13px; color: var(--ink); margin: 0 18px 4px; line-height: 1.45; font-weight: 600;
}
.landing-sample-sub {
  font-size: 12px; color: var(--muted); margin: 0 18px 12px; line-height: 1.45;
}
.landing-live-link { margin-left: 18px; }

.landing-pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 720px; margin: 0 auto;
}
.landing-pricing-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.landing-pricing-featured { border-color: var(--accent); box-shadow: 0 8px 32px rgba(27,73,101,0.1); }
.landing-pricing-card h3 { font-size: 1.25rem; margin: 4px 0 0; }
.landing-price { display: none; flex-direction: column; gap: 2px; }
.landing-price.active { display: flex; }
.landing-price strong { font-size: 2rem; letter-spacing: -0.02em; }
.landing-price span { font-size: 13px; color: var(--muted); }
.landing-price-toggle {
  display: inline-flex; gap: 4px; background: var(--bg); border-radius: 999px; padding: 4px; align-self: flex-start;
}
.landing-price-tab {
  border: none; background: transparent; border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted);
}
.landing-price-tab.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.landing-pricing-list {
  list-style: none; margin: 8px 0; padding: 0; flex: 1;
}
.landing-pricing-list li {
  font-size: 13px; padding: 6px 0 6px 22px; position: relative; line-height: 1.45;
}
.landing-pricing-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700;
}
.landing-steps {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 560px;
}
.landing-steps li {
  font-size: 14px; color: var(--muted); line-height: 1.55; padding-left: 28px; position: relative;
}
.landing-steps li::before {
  content: counter(step); counter-increment: step;
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.landing-steps { counter-reset: step; }

.link-quick-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.link-quick-add .btn { width: auto; min-width: 0; font-size: 12px; padding: 8px 12px; }

.landing-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.landing-template-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.05);
}
.landing-template-preview {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  padding: 24px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-template-body { padding: 16px 18px 20px; }
.landing-template-body h3 { font-size: 15px; margin: 8px 0 6px; }
.landing-template-body p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

@media (max-width: 880px) {
  .dash-wrap { grid-template-columns: 1fr; }
  .preview-shell { position: static; }
  .bio-credentials-grid { grid-template-columns: 1fr; }
  .landing-hero-split { grid-template-columns: 1fr; }
  .landing-hero-preview { position: static; }
  .landing-hero-phone-wrap { min-height: 480px; }
  .landing-template-list-item { flex-direction: column; align-items: flex-start; }
}

/* Admin dashboard */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 20px 80px; }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.admin-sub { color: var(--muted); font-size: 14px; }
.admin-sub a { font-weight: 600; text-decoration: none; }
.admin-badge {
  background: var(--compliance);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.admin-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.admin-stat strong { display: block; font-size: 28px; line-height: 1.1; margin-bottom: 4px; }
.admin-stat span { display: block; font-size: 13px; font-weight: 700; }
.admin-stat small { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.admin-bars { display: flex; flex-direction: column; gap: 12px; }
.admin-bar-row { font-size: 13px; }
.admin-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; }
.admin-bar-track { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.admin-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.admin-bar-fill.plan-free { background: #9CA3AF; }
.admin-bar-fill.plan-plus { background: var(--accent); }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.admin-list.compact li:last-child { border-bottom: none; }
.admin-empty { color: var(--muted); font-size: 13px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  padding: 0 10px 10px 0;
  border-bottom: 1px solid var(--line);
}
.admin-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table td small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.admin-table td code { font-size: 11px; background: var(--bg); padding: 2px 6px; border-radius: 6px; }
.admin-table-wide { min-width: 860px; }
.admin-actions { white-space: nowrap; }
.admin-actions a { margin-right: 10px; font-weight: 600; text-decoration: none; font-size: 12px; }
.admin-dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 13px; }
.admin-dl dt { color: var(--muted); font-weight: 600; }
.admin-dl dd { margin: 0; word-break: break-word; }
.admin-form { margin-top: 8px; }
.admin-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 14px; }
.admin-stats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .admin-stats, .admin-stats-4 { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-stats, .admin-stats-4 { grid-template-columns: 1fr; }
}
