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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding-bottom: 8px;
}

.container {
  background: #fff;
  width: 100%;
  max-width: 560px;
  margin: 48px auto;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.container.narrow { max-width: 400px; }

.hero-title { text-align: center; color: #333; font-size: 40px; margin-bottom: 10px; }
.hero-title span { color: #667eea; }

h1.brand { text-align: center; color: #333; font-size: 28px; margin-bottom: 8px; }
h1.brand span { color: #667eea; }

.tagline { text-align: center; color: #777; font-size: 16px; line-height: 1.5; margin-bottom: 26px; }
.subtitle { text-align: center; color: #888; font-size: 14px; margin-bottom: 24px; }

label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }

.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
  cursor: pointer;
}
.radio-row input { accent-color: #667eea; width: auto; }

.captcha-box { margin-bottom: 14px; }

input[type="text"], input[type="url"], input[type="password"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 14px;
}
input:focus, textarea:focus { border-color: #667eea; }

input[type="file"] {
  width: 100%;
  margin-bottom: 14px;
  font-size: 13px;
  color: #555;
}
input[type="file"]::file-selector-button {
  border: none;
  background: #eef1fc;
  color: #444;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: background 0.15s;
}
input[type="file"]::file-selector-button:hover { background: #e0e5f9; }

.btn {
  display: inline-block;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s;
}
.btn:hover { opacity: 0.92; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary { background: #667eea; color: #fff; }
.btn-ghost { background: #eee; color: #444; }
.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-danger:hover { background: #fecaca; }
.btn-danger:disabled { opacity: .55; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.copy-btn {
  padding: 10px 16px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.copy-btn:hover { background: #43a047; }
.copy-btn.copied,
.icon-btn.copied { background: #4caf50; color: #fff; }

.message { text-align: center; font-size: 14px; min-height: 18px; margin-top: 12px; }
.message.error { color: #ff5252; }
.message.success { color: #4caf50; }

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.toast-success { background: #22c55e; }
.toast.toast-error { background: #ef4444; }

.section { border-top: 1px solid #f0f0f0; padding-top: 18px; margin-top: 22px; }
.section h2 { font-size: 14px; color: #777; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.section-hint { font-size: 13px; color: #888; margin-bottom: 12px; word-break: break-all; }
.section-hint a { color: #667eea; font-weight: 600; text-decoration: none; }
.section-hint a:hover { text-decoration: underline; }

.top-actions { display: flex; gap: 8px; }

/* ── Public bio page (/u/username) ─────────────────────────────────── */
body.bio-body {
  align-items: center;
  --bio-grad-a: #667eea;
  --bio-grad-b: #764ba2;
  --bio-card-bg: rgba(255, 255, 255, 0.94);
  --bio-card-border: transparent;
  --bio-text: #333;
  --bio-sub: #666;
  --bio-accent: #667eea;
  --bio-link-bg: #fff;
  --bio-link-border: #e7e9f5;
  --bio-link-text: #444;
  --bio-share-border: #e0e0e0;
  --bio-share-hover-bg: #f4f7ff;
  --bio-radius: 10px;
  --bio-font: inherit;
}
body.bio-body.theme-midnight {
  --bio-grad-a: #0f172a;
  --bio-grad-b: #1e293b;
  --bio-card-bg: rgba(15, 23, 42, 0.72);
  --bio-card-border: rgba(148, 163, 184, 0.25);
  --bio-text: #e2e8f0;
  --bio-sub: #94a3b8;
  --bio-accent: #22d3ee;
  --bio-link-bg: rgba(30, 41, 59, 0.85);
  --bio-link-border: #334155;
  --bio-link-text: #cbd5e1;
  --bio-share-border: #334155;
  --bio-share-hover-bg: rgba(34, 211, 238, 0.12);
}
body.bio-body.theme-sunset {
  --bio-grad-a: #f97316;
  --bio-grad-b: #ec4899;
  --bio-card-bg: rgba(255, 255, 255, 0.95);
  --bio-accent: #ec4899;
  --bio-link-border: #ffe4e6;
  --bio-link-text: #57534e;
  --bio-share-hover-bg: #fff1f2;
}
body.bio-body.theme-mint {
  --bio-grad-a: #ecfdf5;
  --bio-grad-b: #d1fae5;
  --bio-card-bg: #ffffff;
  --bio-card-border: #a7f3d0;
  --bio-text: #064e3b;
  --bio-sub: #047857;
  --bio-accent: #059669;
  --bio-link-border: #d1fae5;
  --bio-link-text: #065f46;
  --bio-share-border: #a7f3d0;
  --bio-share-hover-bg: #ecfdf5;
}
body.bio-body.theme-mono {
  --bio-grad-a: #ffffff;
  --bio-grad-b: #f2f2f2;
  --bio-card-bg: #ffffff;
  --bio-card-border: #111111;
  --bio-text: #111111;
  --bio-sub: #555555;
  --bio-accent: #111111;
  --bio-link-bg: #ffffff;
  --bio-link-border: #111111;
  --bio-link-text: #111111;
  --bio-share-border: #111111;
  --bio-share-hover-bg: #f2f2f2;
  --bio-radius: 2px;
}
body.bio-body.theme-paper {
  --bio-grad-a: #f6f1e7;
  --bio-grad-b: #efe7d6;
  --bio-card-bg: #fffdf8;
  --bio-card-border: #e5dcc8;
  --bio-text: #44403c;
  --bio-sub: #78716c;
  --bio-accent: #b45309;
  --bio-link-bg: #fffdf8;
  --bio-link-border: #e5dcc8;
  --bio-link-text: #57534e;
  --bio-share-border: #d6c9ae;
  --bio-share-hover-bg: #f6f1e7;
  --bio-font: Georgia, 'Times New Roman', serif;
}
body.bio-body.theme-ocean {
  --bio-grad-a: #0ea5e9;
  --bio-grad-b: #6366f1;
  --bio-card-bg: rgba(255, 255, 255, 0.94);
  --bio-card-border: transparent;
  --bio-text: #1e293b;
  --bio-sub: #475569;
  --bio-accent: #6366f1;
  --bio-link-bg: #fff;
  --bio-link-border: #c7d2fe;
  --bio-link-text: #334155;
  --bio-share-border: #c7d2fe;
  --bio-share-hover-bg: #eff6ff;
}
body.bio-body.theme-rose {
  --bio-grad-a: #fda4af;
  --bio-grad-b: #e11d48;
  --bio-card-bg: rgba(255, 255, 255, 0.95);
  --bio-card-border: transparent;
  --bio-text: #1c1917;
  --bio-sub: #57534e;
  --bio-accent: #e11d48;
  --bio-link-bg: #fff;
  --bio-link-border: #fecdd3;
  --bio-link-text: #44403c;
  --bio-share-border: #fecdd3;
  --bio-share-hover-bg: #fff1f2;
}
body.bio-body.theme-forest {
  --bio-grad-a: #22c55e;
  --bio-grad-b: #166534;
  --bio-card-bg: rgba(255, 255, 255, 0.94);
  --bio-card-border: transparent;
  --bio-text: #14532d;
  --bio-sub: #166534;
  --bio-accent: #15803d;
  --bio-link-bg: #fff;
  --bio-link-border: #bbf7d0;
  --bio-link-text: #166534;
  --bio-share-border: #bbf7d0;
  --bio-share-hover-bg: #f0fdf4;
}
body.bio-body.theme-gold {
  --bio-grad-a: #fbbf24;
  --bio-grad-b: #d97706;
  --bio-card-bg: rgba(255, 255, 255, 0.95);
  --bio-card-border: transparent;
  --bio-text: #1c1917;
  --bio-sub: #78716c;
  --bio-accent: #d97706;
  --bio-link-bg: #fff;
  --bio-link-border: #fde68a;
  --bio-link-text: #44403c;
  --bio-share-border: #fde68a;
  --bio-share-hover-bg: #fffbeb;
}
body.bio-body.theme-neon {
  --bio-grad-a: #c084fc;
  --bio-grad-b: #06b6d4;
  --bio-card-bg: rgba(15, 23, 42, 0.8);
  --bio-card-border: rgba(148, 163, 184, 0.2);
  --bio-text: #e2e8f0;
  --bio-sub: #94a3b8;
  --bio-accent: #06b6d4;
  --bio-link-bg: rgba(30, 41, 59, 0.85);
  --bio-link-border: #334155;
  --bio-link-text: #cbd5e1;
  --bio-share-border: #334155;
  --bio-share-hover-bg: rgba(6, 182, 212, 0.1);
}
body.bio-body.theme-latte {
  --bio-grad-a: #d4a574;
  --bio-grad-b: #5c3d2e;
  --bio-card-bg: rgba(255, 255, 255, 0.94);
  --bio-card-border: #d4a574;
  --bio-text: #3c2415;
  --bio-sub: #7c5e48;
  --bio-accent: #8b5e3c;
  --bio-link-bg: #fffdf8;
  --bio-link-border: #d4a574;
  --bio-link-text: #5c3d2e;
  --bio-share-border: #d4a574;
  --bio-share-hover-bg: #faf3ec;
  --bio-font: Georgia, 'Times New Roman', serif;
}
body.bio-body.theme-arctic {
  --bio-grad-a: #e0f2fe;
  --bio-grad-b: #475569;
  --bio-card-bg: rgba(255, 255, 255, 0.94);
  --bio-card-border: #bae6fd;
  --bio-text: #0f172a;
  --bio-sub: #475569;
  --bio-accent: #0284c7;
  --bio-link-bg: #fff;
  --bio-link-border: #bae6fd;
  --bio-link-text: #334155;
  --bio-share-border: #bae6fd;
  --bio-share-hover-bg: #f0f9ff;
}
body.bio-body.theme-candy {
  --bio-grad-a: #f9a8d4;
  --bio-grad-b: #a855f7;
  --bio-card-bg: rgba(255, 255, 255, 0.94);
  --bio-card-border: transparent;
  --bio-text: #1e1b4b;
  --bio-sub: #6b21a8;
  --bio-accent: #a855f7;
  --bio-link-bg: #fff;
  --bio-link-border: #e9d5ff;
  --bio-link-text: #3b0764;
  --bio-share-border: #e9d5ff;
  --bio-share-hover-bg: #faf5ff;
}

body.bio-body {
  background: linear-gradient(135deg, var(--bio-grad-a), var(--bio-grad-b));
  font-family: var(--bio-font);
}
.bio-card {
  max-width: 420px;
  text-align: center;
  padding: 40px 28px;
  background: var(--bio-card-bg);
  border: 1px solid var(--bio-card-border);
  border-radius: calc(var(--bio-radius) + 6px);
}
.bio-brand-wrap { text-align: left; margin-bottom: 12px; }
.bio-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: color-mix(in srgb, var(--bio-text) 62%, transparent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  transition: color 0.15s ease;
}
.bio-brand svg { flex: none; width: 15px; height: 15px; }
.bio-brand:hover { color: var(--bio-accent); }
.bio-brand-tld { color: var(--bio-accent); font-weight: 800; }
.bio-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bio-accent) 45%, transparent), 0 10px 26px color-mix(in srgb, var(--bio-accent) 30%, transparent);
}
.bio-username { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; color: var(--bio-text); margin-bottom: 8px; }
.bio-at { color: var(--bio-accent); }
.bio-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bio-accent) 45%, transparent), 0 10px 26px color-mix(in srgb, var(--bio-accent) 30%, transparent);
}
.bio-verified {
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-left: 6px;
  vertical-align: -4px;
  color: var(--bio-accent);
  flex: none;
}
.bio-avatar-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
}
.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: #667eea;
  border: 1px solid #e7e9f5;
}
.avatar-upload-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}
.avatar-camera-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: background .15s, transform .15s;
  color: #fff;
  line-height: 0;
}
.avatar-camera-overlay:hover {
  background: #334155;
  transform: scale(1.1);
}
.avatar-camera-overlay svg {
  width: 13px;
  height: 13px;
}
.bio-text { color: var(--bio-sub); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.bio-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.bio-social-link {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bio-link-bg, #fff); color: var(--bio-text, #333);
  border: 1.5px solid var(--bio-link-border, #e7e9f5); text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.bio-social-link svg { fill: currentColor; stroke: currentColor; }
.bio-social-link:hover { background: var(--bio-accent, #667eea); color: #fff; transform: scale(1.08); }
.bio-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.bio-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bio-link-bg);
  border: 2px solid var(--bio-link-border);
  border-radius: var(--bio-radius);
  color: var(--bio-link-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
  word-break: break-word;
}
.bio-link:hover { border-color: var(--bio-accent); color: var(--bio-accent); transform: translateY(-1px); }
body.bio-body.theme-mono .bio-link { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.bio-group {
  background: var(--bio-link-bg);
  border: 1px solid var(--bio-link-border);
  border-radius: calc(var(--bio-radius) + 4px);
  padding: 14px 14px 16px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--bio-accent) 8%, transparent);
}
.bio-group + .bio-group { margin-top: 14px; }
.bio-group-title {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bio-sub, #888);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--bio-link-border);
}
body.bio-body .bio-group .bio-links { margin-bottom: 0; }
.bio-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bio-accent);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.bio-badge img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}
.bio-badge-thumb { width: 26px; height: 26px; }
.bio-badge-thumb img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.bio-badge-text {
  display: flex;
}
.bio-made {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--bio-sub);
  background: var(--bio-link-bg);
  border: 1px solid var(--bio-share-border);
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.92;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}
.bio-made svg { flex: none; width: 13px; height: 13px; opacity: 0.85; }
.bio-made-label { margin-right: 2px; opacity: 0.9; }
.bio-made-brand { font-weight: 700; }
.bio-made .bio-brand-tld { color: var(--bio-accent); font-weight: 800; }
.bio-made:hover { border-color: var(--bio-accent); color: var(--bio-accent); opacity: 1; }
footer .bio-made,
body.bio-body .bio-made { color: var(--bio-sub); }
.share-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--bio-sub) 25%, transparent);
  margin-top: 6px;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--bio-share-border);
  background: var(--bio-link-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  color: var(--bio-sub);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.share-btn:hover { background: var(--bio-share-hover-bg); border-color: var(--bio-accent); color: var(--bio-accent); }
.share-btn svg { width: 15px; height: 15px; }

/* Theme picker (profile) */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.theme-opt { cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-chip {
  display: block;
  border: 2px solid #e7e9f5;
  border-radius: 10px;
  padding: 10px 6px 8px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.theme-opt input:checked + .theme-chip {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
}
.swatch {
  width: 100%;
  height: 34px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.theme-name { font-size: 12px; color: #555; font-weight: 600; }
.theme-locked { opacity: 0.6; cursor: not-allowed; }
.theme-locked .swatch { filter: saturate(.7); }
.theme-lock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a92b5;
  background: #f0f1f8;
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: middle;
}
.theme-lock svg { width: 9px; height: 9px; }

.theme-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0f0ff, #f8f0ff);
  border: 1px solid #e2e0f7;
}
.theme-upgrade p { margin: 0; font-size: 13px; color: #555; }
.theme-upgrade strong { color: #667eea; }
.theme-upgrade .btn-sm { flex-shrink: 0; width: auto; }

.foot-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4e6ef;
  cursor: pointer;
}
.foot-toggle .foot-toggle-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.foot-toggle .foot-toggle-body strong { font-size: 14px; color: #333; }
.foot-toggle .foot-toggle-body p { margin: 0; font-size: 12.5px; color: #888; line-height: 1.5; }
.foot-toggle .btn-sm { align-self: flex-start; margin-top: 4px; flex-shrink: 0; width: auto; }
.foot-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.foot-switch {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: #cfd3e0;
  transition: background 0.2s;
}
.foot-switch > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.foot-toggle-input:checked + .foot-switch { background: #667eea; }
.foot-toggle-input:checked + .foot-switch > span { transform: translateX(18px); }
.foot-toggle-input:focus-visible + .foot-switch { outline: 2px solid #667eea; outline-offset: 2px; }
.foot-switch-on { background: #667eea; }
.foot-switch-on > span { transform: translateX(18px); }
.foot-switch-on + .foot-toggle-body { opacity: 0.85; }
.theme-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 0;
}
.theme-group:first-of-type { margin-top: 0; }
.theme-group-name { font-size: 13px; font-weight: 800; color: #556; }
.theme-group-desc { font-size: 11.5px; color: #9aa0b5; }

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.welcome { color: #555; font-size: 15px; }
.welcome strong { color: #667eea; }
.profile-link { color: inherit; text-decoration: none; }
.profile-link:hover { text-decoration: underline; }
.logout-btn {
  display: inline-block;
  background: none;
  border: 1px solid #ddd;
  color: #666;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}
.logout-btn:hover { background: #f5f5f5; }

.result {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: #f4f7ff;
  border: 1px solid #dce4fb;
  border-radius: 10px;
}
.result-row { display: flex; gap: 8px; }
.result input {
  flex: 1;
  margin-bottom: 0;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  color: #444;
}

.recent { margin-top: 28px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.recent h2 {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td { padding: 9px 6px; border-bottom: 1px solid #f3f3f3; }
tr:last-child td { border-bottom: none; }
td.code a { color: #667eea; font-weight: 600; text-decoration: none; white-space: nowrap; }
td.code a:hover { text-decoration: underline; }
td.target { color: #888; word-wrap: break-word; }
td.target .url-wrap {
  display: inline;
}
td.target .url-text {
  word-break: break-all;
  line-height: 1.4;
}
td.target .url-text.url-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  vertical-align: bottom;
}
.dest-url {
  word-break: break-all;
}
.dest-url.url-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  vertical-align: bottom;
}
td.target .url-expanded {
  word-break: break-all;
  line-height: 1.4;
}
td.target .expand-btn {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  margin-left: 4px;
  white-space: nowrap;
  vertical-align: baseline;
  font-family: inherit;
}
td.clicks { color: #aaa; white-space: nowrap; text-align: right; }
.scan-count { display: inline-block; margin-left: 6px; font-size: 11px; color: #764ba2; }
.hidden { display: none !important; }

/* ── Link management ───────────────────────────────────────────────── */
td.actions { white-space: nowrap; text-align: right; width: 104px; }
td.link-stats-row { display: none; }
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px 6px;
  border-radius: 6px;
  color: #999;
  transition: background 0.15s, color 0.15s;
  vertical-align: middle;
}
.icon-btn:hover { background: #f0f2fb; color: #667eea; }
.icon-btn.danger:hover { background: #ffebee; color: #ff5252; }
.inline-form { display: inline-block; }
.edit-form input[type="url"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.edit-form textarea.edit-textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}
.edit-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.edit-form select.edit-expires {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}
.edit-form .custom-date {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}
.edit-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.btn-danger-mini {
  background: #fee2e2;
  color: #dc2626;
}
.btn-danger-mini:hover {
  background: #fecaca;
}
.btn-mini {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  background: #667eea;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  margin-right: 6px;
}
.btn-mini:hover { opacity: 0.9; }
.btn-mini.btn-ghost-mini { background: #eee; color: #444; }

/* ── Edit link modal ─────────────────────────────────────────────────── */
.edit-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}
.edit-modal-overlay.show { display: flex; }
.edit-modal {
  background: #fff;
  border-radius: 14px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  overflow: hidden;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.edit-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 0;
}
.edit-modal-head h3 { margin: 0; font-size: 17px; color: #2c2c3a; }
.edit-modal-close {
  background: none; border: none; font-size: 22px; cursor: pointer; color: #999; line-height: 1;
}
.edit-modal-close:hover { color: #333; }
.edit-modal form { padding: 14px 20px 20px; }
.em-short {
  font-size: 13px; font-weight: 700; color: #667eea;
  background: #f5f5ff; border-radius: 6px; padding: 6px 10px;
  margin-bottom: 12px;
}
.edit-modal textarea.edit-textarea {
  width: 100%; min-height: 72px; border-radius: 8px; border: 1.5px solid #ddd;
  padding: 10px 12px; font-size: 13px; resize: vertical; font-family: inherit;
}
.edit-modal textarea.edit-textarea:focus { border-color: #667eea; outline: none; }
.edit-modal select.edit-expires {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1.5px solid #ddd;
  font-size: 13px; margin-bottom: 6px; background: #fff;
}
.edit-modal .custom-date {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1.5px solid #ddd;
  font-size: 13px;
}
.edit-modal .edit-actions { margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.edit-modal .edit-actions .btn-mini { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.edit-modal input[name=password] {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1.5px solid #ddd;
  font-size: 13px; margin-bottom: 4px;
}
.em-remove-pw { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #667; margin: 2px 0 10px; }
.em-remove-pw input { margin: 0; }

.link-lock { font-size: 11px; margin-left: 5px; opacity: .9; vertical-align: middle; }
.actions .link-lock,
.link-stats-actions .link-lock { font-size: 14px; margin-left: 4px; margin-right: 0; cursor: default; }

/* ── Font Awesome icons ────────────────────────────────────────────── */
.brand i,
.nav-brand i { margin-right: 2px; vertical-align: -2px; }
.icon-btn i,
.link-lock i,
.scan-count i,
.clock-icon i,
.referrer-icon i,
.cookie-icon i,
.b-ico i,
.feature-icon i,
.modal-icon i,
.verify-icon i,
.report-done-ico i,
.billing-feature-check i,
.verify-badge i { vertical-align: -1px; }
.edit-modal .btn-danger-mini { margin-left: auto; }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}
.pager a { color: #667eea; text-decoration: none; font-weight: 600; }
.pager a:hover { text-decoration: underline; }

/* ── List header tools ─────────────────────────────────────────────── */
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.list-tools { display: flex; align-items: center; gap: 10px; }
.showing { font-size: 12px; color: #999; white-space: nowrap; }
.per-select {
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #d9dcef;
  background: #fff;
  color: #444;
  cursor: pointer;
}
.csv-export {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
}
.csv-export:hover { text-decoration: none; }
.csv-export-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #035c8f;
  background: #dff1fb;
  border-radius: 999px;
  padding: 2px 7px;
}

tr.removing { opacity: 0; transition: opacity 0.25s ease; }
tr.flash-ok td { animation: flashOk 0.8s ease; }
@keyframes flashOk { 0% { background: #e8f7ee; } 100% { background: transparent; } }

/* ── Link filters + tags + bulk bar ─────────────────────────────────── */
.link-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-filters input[type="search"] {
  padding: 7px 11px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #d9dcef;
  background: #fff;
  color: #444;
  min-width: 180px;
  max-width: 260px;
  margin-bottom: 0;
}
.link-filters select {
  padding: 7px 8px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #d9dcef;
  background: #fff;
  color: #444;
  cursor: pointer;
}
.select-all {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.select-all input[type="checkbox"] { width: 15px; height: 15px; accent-color: #667eea; cursor: pointer; }
td.pick { width: 32px; text-align: center; }
td.pick input[type="checkbox"] { width: 16px; height: 16px; accent-color: #667eea; cursor: pointer; }

.link-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tag-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f3ff;
  color: #5a6ee0;
  text-decoration: none;
}
.tag-chip:hover { background: #e4e9ff; color: #4356cf; }
.tags-hidden { display: none !important; }
#linkResults { transition: opacity 0.15s ease; }
#linkResults.is-loading { opacity: 0.55; pointer-events: none; }

.bulk-bar {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f6f7ff;
  border: 1px solid #e2e5f8;
}
.bulk-bar.show { display: flex; }
.bulk-count { font-size: 13px; font-weight: 600; color: #444; }
.bulk-hint { font-size: 11px; color: #999; }
.bulk-actions { margin-left: auto; display: flex; gap: 6px; }
.bulk-actions .btn-mini { margin-right: 0; }

/* ── Admin console ─────────────────────────────────────────────────── */
.admin-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  padding: 6px 8px;
  border-bottom: 2px solid #eef0fa;
}
.admin-table td { vertical-align: middle; }
.row-open td { background: #fffaf0; }
.row-done { opacity: 0.55; }
.admin-table .btn-mini { margin-right: 4px; margin-bottom: 2px; }

.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-row input[type="search"] { flex: 1; margin-bottom: 0; }
.badge-admin {
  background: #667eea;
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-plan {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-free {
  background: #f1f1f1;
  color: #888;
}
.badge-starter {
  background: #dbeafe;
  color: #2563eb;
}
.badge-pro {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
.badge-verify {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-verified {
  background: #d7f2df;
  color: #1e7a3c;
}
.badge-unverified {
  background: #fde8e6;
  color: #c0392b;
}
.muted { color: #9aa; font-weight: 400; font-size: 15px; }
.admin-table .edit-form input[type="text"],
.admin-table .edit-form input[type="email"] {
  width: auto;
  min-width: 150px;
  margin-bottom: 6px;
  padding: 7px 10px;
  font-size: 13px;
}
.chk { display: inline-flex; align-items: center; gap: 5px; margin: 0 8px 6px 4px; font-size: 13px; }
.admin-table .edit-form .ef-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; align-items: center; }
.admin-table .edit-form select {
  padding: 7px 10px;
  border: 1px solid #d8ddf0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: #333;
}
.admin-table .edit-form textarea {
  width: 100%;
  min-height: 46px;
  margin-bottom: 6px;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid #d8ddf0;
  border-radius: 8px;
  font-family: inherit;
}
.admin-notes {
  margin: 0 0 6px;
  padding: 8px 10px;
  background: #fff8ea;
  border: 1px solid #f3e2bd;
  border-radius: 8px;
  list-style: none;
  max-height: 110px;
  overflow: auto;
}
.admin-notes li { font-size: 12px; line-height: 1.6; color: #6b5b2f; }
.admin-notes .an-when { font-weight: 700; color: #9a7b28; }
.admin-notes .an-who { color: #55; font-weight: 600; }

/* ── Legal pages ───────────────────────────────────────────────────── */
.legal { text-align: left; }
.legal h2 { margin: 28px 0 8px; font-size: 18px; color: #333; }
.legal p, .legal li { font-size: 14px; line-height: 1.7; color: #555; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: #667eea; }
.legal footer { text-align: center; margin-top: 32px; }

.field-hint { font-size: 12px; color: #99a; margin: -6px 0 14px; }
.pw-strength { margin: -6px 0 14px; }
.pw-bar { height: 4px; background: #eef; border-radius: 2px; overflow: hidden; }
.pw-fill { height: 100%; width: 0; border-radius: 2px; transition: width .25s, background .25s; }
.pw-fill.weak  { background: #e74c3c; }
.pw-fill.fair  { background: #f59e0b; }
.pw-fill.good  { background: #22c55e; }
.pw-fill.strong { background: #059669; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.pw-rules span { font-size: 11px; color: #bbb; transition: color .15s; }
.pw-rules span.pass { color: #059669; }
.pw-rules span.fail { color: #e74c3c; }

.accept-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: #556;
  line-height: 1.5;
  text-align: left;
  margin: 4px 0 14px;
}
.accept-row input[type="checkbox"] {
  width: auto;
  min-width: 15px;
  margin-top: 2px;
  accent-color: #667eea;
}
.accept-row a { color: #667eea; font-weight: 600; text-decoration: none; }
.accept-row a:hover { text-decoration: underline; }

/* ── Desktop landing site ──────────────────────────────────────────── */
.landing { flex-direction: column; }

.site-nav {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-brand span { opacity: 0.85; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; }
.nav-auth { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.nav-login { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-signup { width: auto; padding: 10px 18px !important; font-size: 14px !important; }

/* ── Account avatar dropdown ───────────────────────────────────────── */
.nav-avatar-wrap { position: relative; margin-left: 4px; }
.nav-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-avatar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  background: #fff;
  border: 1px solid #eceefb;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 20, 40, 0.16);
  padding: 6px;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-avatar-wrap.open .nav-avatar-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-avatar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334;
  text-decoration: none;
}
.nav-avatar-menu a:hover { background: #f3f4fb; color: #667eea; }
.menu-divider { height: 1px; background: #eceefb; margin: 6px 8px; }
.menu-plan { color: #333 !important; }
.menu-plan .plan-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.plan-dot.plan-free { background: #9aa4c5; }
.plan-dot.plan-starter { background: #2563eb; }
.plan-dot.plan-pro { background: linear-gradient(135deg, #667eea, #764ba2); }
.menu-plan-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #2563eb;
  background: #dbeafe;
  border-radius: 999px;
  padding: 2px 9px;
}
.menu-logout { color: #dc2626 !important; }
.menu-logout:hover { background: #fee2e2 !important; color: #dc2626 !important; }

/* ── Hamburger (hidden on desktop) ─────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  margin-left: auto;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer overlay ─────────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 82vw);
  background: #fff;
  box-shadow: -8px 0 30px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  padding: 0 0 env(safe-area-inset-bottom);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-overlay.open .nav-drawer { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f4;
}
.drawer-head .nav-brand { color: #333; font-size: 17px; margin: 0; }
.drawer-head .nav-brand span { color: #667eea; opacity: 1; }
.drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f4f5fb;
  font-size: 17px;
  color: #667;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-close:hover { background: #eaecf5; }

.drawer-section {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  gap: 0;
}
.drawer-section + .drawer-section { border-top: 1px solid #f0f0f4; }
.drawer-section a {
  display: block;
  padding: 12px 0;
  color: #445;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid #f4f5fb;
}
.drawer-section a:last-child { border-bottom: 0; }
.drawer-section a:hover { color: #667eea; }

.drawer-auth {
  margin-top: auto;
  padding-top: 16px;
  gap: 10px;
}
.drawer-auth .btn { text-align: center; width: 100%; }

.hero {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 46px 32px 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.08;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.referred-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 224, 138, 0.16);
  border: 1px solid rgba(255, 224, 138, 0.45);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.referred-banner i { color: #ffe08a; font-size: 15px; flex: 0 0 auto; }
.referred-banner strong { color: #ffe08a; }
.hero-copy h1 span { color: #ffe08a; }
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
}
.trust-row li::before { content: '✓ '; color: #ffe08a; font-weight: 800; }

.cut-panel {
  background: #fff;
  border-radius: 18px;
  padding: 30px 28px 22px;
  box-shadow: 0 24px 70px rgba(20, 16, 60, 0.35);
}
.panel-hint { font-size: 12.5px; color: #9aa; text-align: center; margin-top: 12px; }

/* ── Value proposition section ─────────────────────────────────────── */
.value-prop {
  width: 100%;
  background: #fff;
  padding: 64px 32px;
}
.value-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.value-inner h2 {
  font-size: 32px;
  color: #333;
  line-height: 1.3;
  margin-bottom: 16px;
}
.value-inner h2 span { color: #667eea; }
.value-inner p {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-grid-wrap {
  width: 100%;
  background: #fff;
  padding: 74px 32px 66px;
}
.section-title {
  max-width: 1080px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(24px, 2.6vw, 32px);
  color: #2c2c3a;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.feature-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: #f8f9fe;
  border: 1px solid #eceefb;
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(102, 126, 234, 0.14);
}
.feature-icon { font-size: 30px; display: block; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; color: #333; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; line-height: 1.6; color: #667; }

#faq {
  background: #fbfbfe;
  border-top: 1px solid #eef0f6;
  padding: 68px 32px;
  margin: 0;
  max-width: none;
}

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq-inner { max-width: 700px; margin: 0 auto; }
.faq-inner h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  color: #2c2c3a;
  letter-spacing: -0.4px;
  text-align: center;
  margin-bottom: 28px;
}

.site-footer {
  width: 100%;
  padding: 26px 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 13.5px; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-copy { color: rgba(255, 255, 255, 0.55); font-size: 13px; }

/* Landing's white section-band variant */
.site-footer.banded { background: #fff; border-top: 1px solid #eef0f6; }
.banded .foot-links a { color: #778; }
.banded .foot-links a:hover { color: #667eea; text-decoration: none; }
.banded .foot-copy { color: #aab; }

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.cookie-consent.show { transform: translateY(0); }
.cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1e293b;
  color: #e2e8f0;
  padding: 14px 20px;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}
.cookie-icon { font-size: 20px; flex-shrink: 0; }
.cookie-inner p { margin: 0; flex: 1 1 0%; }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cookie-link { color: #94a3b8; text-decoration: none; font-size: 12px; white-space: nowrap; border-bottom: 1px solid rgba(148,163,184,.3); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.cookie-link:hover { color: #e2e8f0; border-color: rgba(226,232,240,.5); }
.cookie-btn { padding: 7px 18px !important; font-size: 12px !important; height: auto !important; width: auto !important; min-width: 0 !important; border-radius: 8px !important; white-space: nowrap; flex-shrink: 0; }
.faq details {
  background: #fff;
  border: 1px solid #e7e9f5;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #444;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #667eea;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: '–'; }
.faq details p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #555;
}

/* ── Stats page ────────────────────────────────────────────────────── */
.mono-line { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.mono-line strong { color: #667eea; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.stat-card {
  background: #f4f7ff;
  border: 1px solid #dce4fb;
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}
.stat-num { display: block; font-size: 22px; font-weight: 700; color: #333; }
.stat-label { display: block; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  padding: 10px 2px 0;
}
.bar-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
}
.bar {
  width: 100%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: opacity 0.15s;
}
.bar:hover { opacity: 0.75; }
.bar-range {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
  margin-top: 8px;
}

.click-list { list-style: none; max-height: 320px; overflow-y: auto; }
.click-list li {
  padding: 8px 6px;
  border-bottom: 1px solid #f3f3f3;
  font-size: 13px;
  color: #666;
}
.click-list li:last-child { border-bottom: none; }

/* ── QR codes ──────────────────────────────────────────────────────── */
#qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40, 40, 60, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.qr-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  max-width: 92vw;
}
.qr-box h3 { margin: 0 0 14px; font-size: 15px; color: #444; }
.qr-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.qr-close:hover { color: #333; }
#qr-holder svg, #stats-qr svg { display: block; margin: 0 auto; }
.qr-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #888;
  word-break: break-all;
  margin: 12px 0 14px;
}
.qr-section #stats-qr { padding: 10px 0 4px; }

/* ── QR customization ─────────────────────────────────────────────── */
#qr-holder canvas, #stats-qr canvas { display: block; margin: 0 auto; }
#qr-custom { margin: 6px auto 14px; max-width: 280px; text-align: left; }
.qr-custom-head {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #8a8fa8; margin: 10px 0 6px;
}
.qr-swatch-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.qr-swatch-label { min-width: 62px; font-size: 12px; color: #6b6f86; }
.qr-swatch {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid #e1e4f0;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.qr-swatch:hover { transform: scale(1.1); }
.qr-swatch.active { border-color: #667eea; box-shadow: 0 0 0 2px rgba(102, 126, 234, .35); }
.qr-logo-toggle {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; font-size: 13px; color: #3c4157; cursor: pointer;
}
.qr-logo-toggle input { accent-color: #667eea; width: 16px; height: 16px; }
.qr-logo-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.qr-logo-row .qr-logo-toggle { margin-top: 0; }
.qr-logo-thumb {
  width: 26px; height: 26px; border-radius: 7px; object-fit: contain;
  background: #fff; border: 1px solid #e1e4f0; padding: 3px;
}
.qr-logo-manage { font-size: 12px; color: #667eea; text-decoration: none; }
.qr-logo-manage:hover { text-decoration: underline; }
.qr-logo-missing {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #f6f8ff; border: 1px solid #e2e7fb;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: #3c4157;
}
.qr-upgrade {
  margin: 10px 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #f6f8ff; border: 1px solid #e2e7fb; color: #3c4157;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px;
}
.qr-upgrade strong { color: #667eea; }

/* QR logo in account settings */
.qr-logo-upsell {
  padding: 12px 14px; border-radius: 10px;
  background: #f6f8ff; border: 1px solid #e2e7fb; color: #3c4157;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px;
}
.qr-logo-upsell strong { color: #667eea; }
.qr-logo-block { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qr-logo-preview {
  width: 72px; height: 72px; border-radius: 14px; object-fit: contain;
  background: #fff; border: 1px solid #e1e4f0; padding: 6px;
}
.qr-logo-empty { color: #8a8fa8; font-size: 13px; margin: 0; }
.qr-logo-form { display: inline-flex; align-items: center; gap: 8px; }
.btn-file { position: relative; overflow: hidden; cursor: pointer; }
.btn-file input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0;
}


/* ── Cancel modal ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40, 40, 60, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.modal-icon {
  font-size: 32px;
  margin-bottom: 10px;
  line-height: 1;
}
.modal-box h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: #333;
}
.modal-box > p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px;
}
.modal-consequences {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: left;
}
.modal-consequences p {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.modal-consequences ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #b91c1c;
}
.modal-consequences li {
  padding: 2px 0;
}
.modal-consequences li::before {
  content: '✕ ';
  font-weight: 700;
  color: #dc2626;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.modal-actions .btn {
  flex: 1;
  padding: 10px 20px;
}
.cancel-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(220,38,38,0.3);
  border-top-color: #dc2626;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stats country list ────────────────────────────────────────────── */
.country-list { display: flex; flex-direction: column; gap: 6px; }
.country-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 8px;
}
.country-flag, .referrer-icon { font-size: 20px; line-height: 1; }
.referrer-icon { font-size: 16px; }
.country-name { font-size: 14px; color: #445; font-weight: 500; flex: 1; }
.country-count { font-size: 14px; color: #667eea; font-weight: 700; }

/* ── Stats duo cards (countries + devices side by side) ─────────────── */
.stats-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card-box {
  background: #fff;
  border: 1px solid #eceefb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.stat-card-box h2 { margin-top: 0; }
.stat-card-box .bar-chart-vertical,
.stat-card-box .device-pie-wrap { flex: 1; }
.device-card .device-pie-wrap { display: flex; align-items: center; gap: 20px; justify-content: center; }
.device-card .device-pie { width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0; }
.device-card .device-legend { display: flex; flex-direction: column; gap: 4px; }
.device-card .device-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.device-card .device-legend-dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.device-card .device-legend-label { color: #445; font-weight: 500; }
.device-card .device-legend-pct { font-weight: 700; color: #333; min-width: 24px; }
.device-card .device-legend-count { color: #999; font-size: 11px; }
.bar-chart-vertical { display: flex; flex-direction: column; gap: 10px; }
.bv-row { display: flex; align-items: center; gap: 10px; }
.bv-label { font-size: 13px; font-weight: 600; color: #445; min-width: 72px; white-space: nowrap; }
.bv-bar-track { flex: 1; height: 10px; background: #f0f0f5; border-radius: 5px; overflow: hidden; }
.bv-bar { height: 100%; border-radius: 5px; transition: width .4s ease; }
.bv-count { font-size: 13px; font-weight: 700; color: #667eea; min-width: 32px; text-align: right; }

.click-country {
  display: inline-block;
  font-size: 11px;
  color: #99a;
  margin-left: 4px;
  vertical-align: middle;
}

.empty { text-align: center; color: #aaa; padding: 18px 0; font-size: 14px; }

.cta-row { display: flex; gap: 12px; margin-bottom: 26px; }
.cta-row .btn { flex: 1; white-space: nowrap; }

.features {
  list-style: none;
  border-top: 1px solid #f0f0f0;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.features li { font-size: 14px; color: #666; padding-left: 26px; position: relative; line-height: 1.5; }
.features li::before { content: "✂️"; position: absolute; left: 0; }

.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: #888; }
.auth-alt a { color: #667eea; font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* ── Login tabs ────────────────────────────────────────────────────── */
.auth-tabs { display: flex; gap: 0; border-radius: 10px; overflow: hidden; margin-bottom: 18px; background: #eef0f8; border: 1px solid #dde0ee; }
.login-tab {
  flex: 1;
  padding: 10px;
  border: 0;
  border-right: 1px solid #dde0ee;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: #889;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.login-tab:last-child { border-right: 0; }
.login-tab.active { background: #fff; color: #445; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.login-tab:not(.active):hover { color: #556; }

/* ── OTP code input ────────────────────────────────────────────────── */
.otp-code {
  font-family: Consolas, Monaco, monospace;
  font-size: 24px !important;
  letter-spacing: 8px !important;
  text-align: center;
  padding: 12px 14px;
}
.otp-sent-msg { font-size: 13.5px; color: #556; line-height: 1.55; margin: 4px 0 14px; text-align: center; }
.otp-links { display: flex; justify-content: space-between; margin-top: 10px; }
.link-btn { background: none; border: 0; font-size: 13px; color: #667eea; cursor: pointer; padding: 0; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { opacity: .55; cursor: default; }
.link-btn:disabled:hover { text-decoration: none; }
.otp-msg { margin-top: 4px; text-align: center; }

footer { text-align: center; margin-top: 22px; font-size: 12px; color: #bbb; }
footer a { color: #bbb; text-decoration: none; }

/* ── Dashboard desktop app ─────────────────────────────────────────── */
.container.app { max-width: 1280px; padding: 36px 40px 44px; }
.container.app h1.brand { text-align: left; margin-bottom: 4px; }
.container.app .subtitle { text-align: left; margin-bottom: 0; }

.dash-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 8px;
}

.cut-side {
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 14px;
  padding: 22px 20px;
  position: sticky;
  top: 24px;
}
.cut-side label { font-size: 12.5px; }
.cut-side input[type="url"],
.cut-side input[type="text"] { margin-bottom: 12px; }
.cut-side .btn { margin-top: 2px; }

.usage-side-stats { display: flex; gap: 10px; flex-shrink: 0; }
.usage-side-stats .stat-chip {
  background: #fff;
  border: 1px solid #eceefb;
  border-radius: 10px;
  padding: 8px 14px 6px;
  text-align: center;
  min-width: 70px;
}
.stat-chip b { display: block; font-size: 18px; color: #667eea; letter-spacing: -0.5px; }
.stat-chip span { font-size: 10.5px; color: #99a; letter-spacing: 0.3px; text-transform: uppercase; }

.app .recent h2 { font-size: 20px; }
.app .empty { padding: 40px 16px; }

/* ── Dashboard insights banner ─────────────────────────────────────── */
.insights-banner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 20px;
  text-align: center;
}
.insights-text {
  font-size: 16px;
  color: #fff;
  margin: 0;
  line-height: 1.5;
}
.insights-text strong { font-size: 18px; }
.insights-up   { color: #86efac; font-weight: 700; }
.insights-down { color: #fca5a5; font-weight: 700; }

/* ── Email verification ─────────────────────────────────────────────── */
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff8e6;
  border: 1px solid #f0d98a;
  color: #7a5b12;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 14px;
}
.verify-banner strong { font-size: 15px; display: block; }
.verify-banner-sub { color: #9a7b28; font-size: 13px; }
.verify-banner-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.verify-banner-msg { margin: 0; font-size: 13px; }
.verify-banner .btn-mini { background: #b8860b; color: #fff; }

.verify-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e7f7ec;
  color: #2e7d32;
  border: 1px solid #bfe6c8;
}
.verify-badge-pending {
  background: #fff3f3;
  color: #c62828;
  border-color: #f3c0c0;
}

.verify-card {
  text-align: center;
  background: #fff;
  border: 1px solid #e7e9f5;
  border-radius: 14px;
  padding: 42px 32px;
  margin-top: 12px;
}
.verify-icon { font-size: 44px; margin: 0 0 10px; }
.verify-card h2 { margin: 0 0 8px; }
.verify-card p { color: #555; line-height: 1.6; }
.verify-card .btn { margin-top: 10px; }
.verify-ok { border-color: #bfe6c8; }
.verify-bad { border-color: #f3c0c0; }
.verify-email-fix { margin-top: 26px; text-align: left; border-top: 1px dashed #e7e9f5; padding-top: 20px; }
.verify-email-fix summary { cursor: pointer; color: #5550d9; font-weight: 600; font-size: 14px; }
.verify-email-fix summary:hover { text-decoration: underline; }
.verify-email-fix-form { margin-top: 14px; display: grid; gap: 12px; max-width: 340px; margin-inline: auto; }
.verify-email-fix-form label { text-align: left; font-size: 13px; color: #333; display: grid; gap: 5px; }
.verify-email-fix-form input { padding: 10px 12px; border: 1px solid #d8ddf0; border-radius: 8px; font-size: 14px; }
.verify-email-fix-note { font-size: 12px !important; color: #888 !important; margin: 12px 0 0 !important; }

/* ── Profile desktop ───────────────────────────────────────────────── */
.profile-app { max-width: 1020px; }
.profile-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 8px;
}
.p-side {
  position: sticky;
  top: 24px;
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 14px;
  padding: 6px 20px 14px;
}
.p-side .section { border-top-color: #e7e9f5; }
.p-side .section:first-child { border-top: none; margin-top: 4px; }
.p-main .section:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.p-main .section h2 { font-size: 16px; color: #555; }

/* ── Billing section ───────────────────────────────────────────────── */
.billing-section { margin-bottom: 8px; }
.billing-card {
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 12px;
}
.billing-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.billing-plan-name {
  font-size: 20px;
  font-weight: 700;
}
.billing-plan-price {
  font-size: 14px;
  color: #888;
  margin-left: 10px;
}
.billing-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.billing-status-active {
  background: #ecfdf5;
  color: #059669;
}
.billing-status-cancelled {
  background: #fef2f2;
  color: #dc2626;
}
.billing-status-suspended,
.billing-status-past_due {
  background: #fef9c3;
  color: #b45309;
}
.billing-usage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.billing-usage-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.billing-usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.billing-usage-label {
  font-size: 13px;
  color: #555;
}
.billing-usage-count {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.billing-usage-count.warn { color: #e74c3c; }
.billing-usage-track {
  height: 6px;
  background: #eef;
  border-radius: 3px;
  overflow: hidden;
}
.billing-usage-fill {
  height: 100%;
  background: #667eea;
  border-radius: 3px;
  width: 0;
  animation: billing-fill .6s ease forwards;
}
.billing-usage-fill.warn { background: #e74c3c; }
@keyframes billing-fill { to { width: var(--target-width); } }
.billing-usage-unlimited {
  font-size: 11px;
  color: #999;
}
.billing-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.billing-feature-check {
  font-size: 13px;
  color: #059669;
  font-weight: 500;
}
.billing-upgrade-text {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}
.billing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #eceefb;
  margin-top: 4px;
}
.billing-upgrade-link {
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
}
.billing-upgrade-link:hover { text-decoration: underline; }
.billing-cancel-link {
  font-size: 12px;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.billing-cancel-link:hover { color: #dc2626; }

/* ── Admin desktop ─────────────────────────────────────────────────── */
.admin-app { max-width: 1180px; }
.admin-app .stat-cards { gap: 14px; margin-top: 8px; }
.admin-app .stat-card { padding: 16px 18px; }
.admin-app .stat-num { font-size: 26px; }
.admin-app > .section { margin-top: 26px; padding-top: 20px; border-top-color: #eef0f6; }
.admin-app .section h2 { font-size: 16px; color: #555; text-transform: none; letter-spacing: 0; font-weight: 700; }
.admin-app .search-row input[type="search"] { max-width: 380px; }

/* ── Legal reading pages ───────────────────────────────────────────── */
.legal-app { max-width: 860px; }
body.pricing-page .container.app > h1.brand,
body.pricing-page .container.app > p.subtitle { text-align: center; }
.legal-app h1.brand { margin-bottom: 2px; }
.legal-app p, .legal-app li { font-size: 15.5px; line-height: 1.8; }
.legal-app h2 { font-size: 21px; color: #2c2c3a; margin-top: 34px; }
.legal-app > p:first-of-type { font-size: 17px; color: #444; }

/* ── Report page desktop ───────────────────────────────────────────── */
.report-app { max-width: 940px; }
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) 330px;
  gap: 40px;
  align-items: start;
  justify-content: center;
  margin-top: 0;
}
.report-form-col { display: flex; flex-direction: column; }
.auth-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}
.radio-group {
  background: #f7f8fd;
  border: 1px solid #eceefb;
  border-radius: 10px;
  padding: 2px 14px 8px;
  margin-bottom: 14px;
}
.radio-group .radio-row { margin-bottom: 0; padding: 7px 0; }
.report-done {
  text-align: center;
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 14px;
  padding: 34px 24px;
}
.report-done h2 { font-size: 18px; color: #333; margin-bottom: 6px; }
.report-done p { font-size: 14px; line-height: 1.6; color: #556; }
.report-done-ico { font-size: 42px; line-height: 1; margin-bottom: 14px; }
.r-info {
  position: sticky;
  top: 24px;
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 14px;
  padding: 22px 20px;
}
.r-info h2 {
  font-size: 16px;
  color: #555;
  margin-bottom: 14px;
}
.r-steps { list-style: none; counter-reset: step; }
.r-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #556;
}
.r-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #667eea;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.r-note { font-size: 12.5px; color: #99a; line-height: 1.6; margin-top: 12px; }
.r-note a { color: #667eea; }

/* ── Register desktop ──────────────────────────────────────────────── */
.register-app { max-width: 940px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .subtitle { text-align: center; margin-bottom: 0; }
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) 320px;
  gap: 40px;
  align-items: start;
  justify-content: center;
  margin-top: 0;
}
.register-form-col {
  display: flex;
  flex-direction: column;
}
.register-form-col .btn-google { margin: 0; }
.auth-card {
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 14px;
  padding: 22px 22px 18px;
}
.auth-card .message { margin-top: 14px; }
.r-free-banner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  padding: 9px 14px;
  margin: -4px 0 14px;
}
.r-benefits {
  position: sticky;
  top: 24px;
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 14px;
  padding: 22px 20px 18px;
}
.r-benefits h2 { font-size: 16px; color: #555; margin-bottom: 16px; }
.benefit { display: flex; gap: 12px; margin-bottom: 15px; }
.b-ico { font-size: 19px; line-height: 1.3; }
.benefit h3 { font-size: 13.5px; color: #333; margin-bottom: 2px; }
.benefit p { font-size: 12.5px; line-height: 1.55; color: #778; }
.r-benefits .r-note { border-top: 1px solid #e7e9f5; padding-top: 12px; }

/* ── Stats desktop ─────────────────────────────────────────────────── */
.stats-app { max-width: 800px; }
.stats-topnav { margin: 0 0 4px; }
.stats-topnav a { font-size: 13px; color: #999; text-decoration: none; }
.stats-topnav a:hover { color: #667eea; }
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}
.stats-header-text { flex: 1; min-width: 0; }
.stats-header-qr {
  flex-shrink: 0;
  text-align: center;
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 12px;
  padding: 16px;
}
.stats-header-qr #stats-qr { width: 100px; height: 100px; margin: 0 auto 8px; }
.stats-header-qr #stats-qr img,
.stats-header-qr #stats-qr svg { width: 100%; height: 100%; }
.qr-scan-count { display: block; font-size: 13px; font-weight: 700; color: #764ba2; margin-bottom: 8px; }
.stats-app .stat-cards { margin-bottom: 20px; }
.stat-box {
  background: #fff;
  border: 1px solid #eceefb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.stat-box h2 { margin-top: 0; }
.stat-box .bars { flex: 1; }
.stats-row { margin-bottom: 20px; }
.stats-grid-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.stats-grid-main > * { min-height: 180px; }
.stats-inline-card {
  background: #f4f7ff;
  border: 1px solid #dce4fb;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.sic-item { text-align: center; padding: 6px 8px; }
.sic-num { display: block; font-size: 20px; font-weight: 700; color: #333; }
.sic-label { display: block; font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.sic-sep { width: 40px; height: 1px; background: #dce4fb; }

/* ── Bio pages list ──────────────────────────────────────────────── */
.bio-pages-list {
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid #e8e9f3;
  border-radius: 14px;
  padding: 20px 24px;
}
.bio-pages-list h2 {
  font-size: 16px;
  color: #555;
  margin: 0 0 12px;
}
.bio-page-count {
  font-size: 13px;
  font-weight: 400;
  color: #999;
}
.bio-page-count a { color: #667eea; }
.bio-page-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bio-page-dropdown {
  flex: 1 1 0%;
  padding: 8px 12px;
  border: 1px solid #dde;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  min-width: 0;
  cursor: pointer;
  height: 37px;
  box-sizing: border-box;
}
.bio-page-dropdown:focus { border-color: #667eea; outline: none; }
.social-inputs { display: flex; flex-direction: column; gap: 8px; }
.social-input-row { display: flex; align-items: center; gap: 10px; }
.social-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f4f5fb;
  color: #8890b3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.social-icon svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; }
.social-input-row:focus-within .social-icon { background: #eef0ff; color: #667eea; }
.social-field {
  flex: 1 1 0%;
  padding: 8px 12px;
  border: 1px solid #dde;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  min-width: 0;
  height: 37px;
  box-sizing: border-box;
}
.social-field:focus { border-color: #667eea; outline: none; }
.bio-page-dropdown-custom {
  flex: 1 1 0%;
  position: relative;
  min-width: 0;
}
.bio-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #dde;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  height: 37px;
  box-sizing: border-box;
  font-size: 13px;
  user-select: none;
}
.bio-dropdown-trigger:hover { border-color: #667eea; }
.bio-dropdown-arrow {
  margin-left: auto;
  color: #999;
  font-size: 11px;
}
.bio-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 30;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.bio-dropdown-menu.open { display: block; }
.bio-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .12s;
}
.bio-dropdown-item:hover { background: #f5f6fb; }
.bio-dropdown-item.active { background: #eef0ff; }
.bio-dropdown-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bio-dropdown-avatar-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.bio-dropdown-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bio-dropdown-slug {
  font-weight: 600;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bio-dropdown-meta {
  font-size: 11px;
  color: #999;
}
.bio-page-selector .btn-danger-text {
  flex: 0 0 auto;
  width: auto;
  padding: 8px 16px;
  font-size: 13px;
  height: 37px;
  box-sizing: border-box;
  line-height: 1;
}
.btn-sm { padding: 8px 16px; font-size: 13px; flex-shrink: 0; white-space: nowrap; }
.btn-danger-text { color: #e74c3c; }
.bio-page-create {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bio-page-slug-input {
  flex: 1 1 auto;
  padding: 8px 12px;
  border: 1px solid #dde;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
  pointer-events: auto;
  height: 37px;
  box-sizing: border-box;
}
.bio-page-create .btn-sm {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 13px;
  height: 37px;
  box-sizing: border-box;
  line-height: 1;
}
.bio-page-slug-input:focus { border-color: #667eea; outline: none; }
.bio-page-limit-hint {
  font-size: 13px;
  color: #999;
}
.bio-page-limit-hint a { color: #667eea; }

/* ── Switch bio page overlay ───────────────────────────────────────── */
.switch-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 30, .65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.switch-overlay.show { opacity: 1; pointer-events: auto; }
.switch-overlay-box {
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.switch-text {
  margin: 14px 0 0;
  font-size: 15px;
  color: #444;
}
.switch-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e7e9f5;
  border-top-color: #667eea;
  border-radius: 50%;
  margin: 0 auto;
  animation: switch-spin .7s linear infinite;
}
@keyframes switch-spin { to { transform: rotate(360deg); } }

/* ── Bio live preview ──────────────────────────────────────────────── */
.bio-grid {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.bio-settings-card {
  flex: 1 1 0%;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e9f3;
  border-radius: 14px;
  padding: 20px 24px;
}
.bio-settings-card .section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.save-row { display: flex; justify-content: flex-end; margin-top: 22px; }
.save-row .btn-save { width: auto; padding: 12px 30px; }
.bio-preview-card {
  flex: 0 0 320px;
  position: sticky;
  top: 24px;
}
.bio-preview {
  text-align: center;
}
.pv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pv-title {
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #99a;
  font-weight: 700;
  margin: 0;
}
.pv-public-link {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pv-public-link:hover { text-decoration: underline; }
.bio-preview-frame-wrap {
  display: none;
}
.iphone-mockup {
  display: flex;
  justify-content: center;
  padding: 12px 0 0;
}
.iphone-frame {
  position: relative;
  width: 260px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px 10px 16px;
  box-shadow:
    0 0 0 2px #333,
    0 20px 50px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.05);
}
.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #1a1a2e;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}
.iphone-notch::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #2a2a4a;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #3a3a5a;
}
.iphone-screen {
  position: relative;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}
.iphone-screen iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}
.iphone-home-indicator {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  margin: 10px auto 0;
}

@media (min-width: 641px) {
  .stats-app .bars { min-height: 220px; gap: 4px; }
  .stats-app .bar-wrap:hover { background: #f1f3fd; border-radius: 6px; }
  .click-list.twocol { column-count: 2; column-gap: 24px; max-height: none; }
}

@media (min-width: 641px) {
  .admin-table td { padding: 11px 10px; }
  .admin-table tbody tr,
  .admin-table tr { transition: background 0.12s ease; }
  .admin-table tr:hover td { background: #fafbff; }
  .row-open tr:hover td, tr.row-open:hover td { background: #fffaf0; }
  .admin-app td.target { max-width: 500px; }
}

@media (min-width: 641px) {
  /* Roomier link rows — desktop only so mobile card stacking stays intact */
  .app table td { padding: 13px 12px; vertical-align: middle; border-bottom: none; }
  .app table tr { border-bottom: 1px solid #eef0f6; transition: background 0.12s ease; }
  .app table tr:hover { background: #fafbff; }
  .app table tr:last-child { border-bottom: none; }
  .app td.code a { font-weight: 700; font-size: 14.5px; }
  .app td.clicks { text-align: right; padding-right: 18px; white-space: nowrap; }
  .app td.actions { text-align: right; white-space: nowrap; }
}

.mobile-cta { display: none; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Landing keeps its own app-style layout */
  body.landing { background: #fff; }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    border-radius: 12px 12px 0 0;
  }
  .cookie-actions { width: 100%; justify-content: space-between; }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 24px 16px 30px;
  }
  .foot-links { justify-content: center; gap: 16px; }

  .site-nav {
    padding: 16px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 1px 0 #eef0f6;
  }
  .nav-brand { color: #333; font-size: 18px; }
  .nav-brand span { color: #667eea; opacity: 1; }
  .nav-links, .nav-auth, .nav-login, .nav-avatar-wrap { display: none !important; }
  .hamburger { display: flex; }
  .hamburger span { background: #445; }
  .nav-overlay { display: block; }
  .site-nav.nav-stuck { box-shadow: 0 1px 0 #eef0f6; }

  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 30px 20px 40px;
  }
  .hero-copy h1 { font-size: clamp(32px, 10vw, 40px); color: #2c2c3a; margin-bottom: 12px; }
  .hero-copy h1 span { color: #667eea; }
  .hero-sub { color: #667; font-size: 15.5px; margin-bottom: 18px; }
  .trust-row li { color: #556; font-size: 13px; }
  .trust-row li::before { color: #667eea; }

  .cut-panel {
    background: #f8f9fe;
    border: 1px solid #eceefb;
    box-shadow: none;
    border-radius: 16px;
    padding: 24px 20px 18px;
  }
  .panel-hint { font-size: 12px; }

  input[type="text"], input[type="url"], input[type="password"],
  input[type="email"], textarea {
    font-size: 16px; /* stops iOS zoom-on-focus */
    padding: 11px 13px;
  }

  .btn { padding: 12px 16px; font-size: 15px; }

  /* Feature cards get accent stripes */
  .value-prop { padding: 48px 20px; }
  .value-inner h2 { font-size: 26px; }
  .value-inner p { font-size: 15px; }
  .feature-grid-wrap { padding: 48px 20px 42px; background: #fff; }
  .section-title br { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card {
    background: #f6f7fd;
    border: none;
    border-left: 3px solid #667eea;
    border-radius: 8px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
  }
  .feature-icon { font-size: 22px; margin-bottom: 6px; }
  .feature-card:hover { transform: none; box-shadow: none; }

  #faq { padding: 44px 20px 96px; }

  /* Sticky bottom signup bar replaces inline CTAs */
  .cta-row { display: none; }
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 24px rgba(102, 126, 234, 0.18);
    z-index: 50;
  }
  .mobile-cta .btn { width: 100%; }

  .result-row .copy-btn { flex-shrink: 0; }

  /* Every other page goes full-bleed app-style */
  body:not(.landing) { padding: 0; }
  body:not(.landing) .container {
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 40px 20px 32px;
  }
  body:not(.landing) .container h1.brand,
  body:not(.landing) .container .subtitle { text-align: center; }

  /* Dashboard collapses to single column */
  .dash-grid { grid-template-columns: 1fr; gap: 18px; }
  .cut-side { position: static; }

  /* Profile collapses too; sidebar content flows first */
  .profile-grid { grid-template-columns: 1fr; gap: 8px; }
  .p-side { position: static; padding-bottom: 2px; }

  /* Report: form first, info panel after */
  .report-grid { grid-template-columns: 1fr; gap: 20px; }
  .r-info { position: static; order: 2; }

  /* Register stacks the same way */
  .register-grid { grid-template-columns: 1fr; gap: 20px; }
  .r-benefits { position: static; order: 2; }
  .auth-head { margin-bottom: 20px; }
  .auth-card { padding: 18px 16px 14px; }

  /* Stats stacks chart above QR */
  .stats-header { flex-direction: column; align-items: stretch; }
  .stats-header-qr { align-self: center; }
  .stats-grid-main { grid-template-columns: 1fr; }
  .stats-inline-card { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 14px 12px; }
  .sic-item { padding: 4px 10px; }
  .sic-sep { width: 1px; height: 28px; }

  .top-bar { flex-wrap: wrap; gap: 8px; row-gap: 6px; }
  .welcome { font-size: 13px; flex-basis: 100%; }

  table { display: block; overflow-x: hidden; }
  table tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    background: #fbfbfe;
    border: 1px solid #e7e9f5;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
  }
  table td { display: block; padding: 0; border-bottom: none; }
  .list-tools { flex-wrap: wrap; gap: 8px; width: 100%; }
  .link-filters { width: 100%; }
  .link-filters input[type="search"] { width: 100%; max-width: none; min-width: 0; }
  .select-all { margin-left: 0; }
  td.code { font-size: 15px; width: 100%; }
  td.code a { font-size: 15px; }
  td.target {
    width: 100%;
    max-width: none;
    white-space: normal;
    word-break: break-all;
    line-height: 1.45;
    font-size: 13px;
    color: #667;
  }
  td.clicks, td.expires, td.actions { display: none; }
  td.pick {
    display: block;
    width: 100%;
    padding: 8px 10px 0;
    text-align: left;
  }
  td.pick input[type="checkbox"] { width: 18px; height: 18px; }
  td.link-stats-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px solid #eef;
    margin-top: 2px;
  }
  td.link-stats-row .clicks {
    display: inline-block;
    font-size: 12px;
    color: #8891a8;
    background: #f0f2f8;
    border-radius: 6px;
    padding: 4px 10px;
  }
  td.link-stats-row .badge-expired,
  td.link-stats-row .clock-icon {
    font-size: 14px;
  }
  .link-stats-actions {
    display: flex;
    gap: 6px;
  }
  .link-stats-actions .icon-btn {
    font-size: 16px;
    padding: 6px 10px;
    background: #f0f2f8;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }
  .link-stats-actions .icon-btn:hover { background: #e4e7f5; color: #667eea; }
  .edit-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .edit-actions .btn-mini { padding: 10px 18px; font-size: 13px; border-radius: 8px; }

  .edit-modal { width: 95%; max-width: none; border-radius: 12px; }
  .edit-modal form { padding: 12px 16px 16px; }

  footer { line-height: 2; }
}

/* ── Bio native mobile (standalone feel) ───────────────────────────── */
@media (max-width: 640px) {
  body.bio-body { height: 100dvh; overflow: hidden; }

  body.bio-body .bio-card {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: calc(28px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(135deg, var(--bio-grad-a), var(--bio-grad-b));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    -ms-scroll-chaining: none;
  }
  body.bio-body .bio-card::-webkit-scrollbar { display: none; }

  body.bio-body .bio-avatar-img,
  body.bio-body .bio-avatar {
    width: 92px; height: 92px; font-size: 38px;
    margin-bottom: 16px;
  }
  body.bio-body .bio-username { font-size: 22px; margin-bottom: 6px; }
  body.bio-body .bio-text    { font-size: 14.5px; margin-bottom: 24px; }

  body.bio-body .bio-links { gap: 12px; margin-bottom: 26px; }
  body.bio-body .bio-link {
    padding: 14px 16px;
    font-size: 15px;
    min-height: 52px;
    border-width: 1.5px;
  }
  body.bio-body .bio-link:active { transform: scale(0.975); }

  body.bio-body .bio-badge { width: 28px; height: 28px; font-size: 13px; }

  body.bio-body .share-row { gap: 10px; margin-bottom: 8px; }
  body.bio-body .share-btn { width: 42px; height: 42px; font-size: 16px; border-width: 1px; }
  body.bio-body footer {
    text-align: center;
    margin-top: auto;
    font-size: 12px;
    padding-top: 10px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  body.bio-body .empty     { font-size: 14px; color: var(--bio-sub); }
}

/* ── Bio desktop ────────────────────────────────────────────────────── */
@media (min-width: 641px) {
  body.bio-body .container.bio-card {
    max-width: 560px;
  }
}

/* ── Bio account footer (below the card) ───────────────────────────── */
.bio-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  max-width: 720px;
  margin: 22px auto 0;
  padding: 0 20px 34px;
  font-size: 12px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--bio-text) 55%, transparent);
  text-align: center;
}
.bio-foot a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.bio-foot a:hover { color: var(--bio-accent); text-decoration: underline; }
.bio-foot-sep { opacity: 0.45; }
@media (max-width: 640px) {
  body.bio-body .bio-foot { display: none; }
}

@media (max-width: 380px) {
  .hero-copy h1 { font-size: 28px; }
}

/* ── Pricing page ────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 28px 0 36px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8e9f3;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.pricing-card.recommended { border-color: #667eea; }
.pricing-card.current { background: #f5f6ff; border-color: #667eea; }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-head h2 { margin: 0 0 4px; font-size: 22px; color: #2c2c3a; }
.pricing-desc { min-height: 34px; margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: #777; font-weight: 400; }
.pricing-price { font-size: 46px; font-weight: 800; color: #2c2c3a; margin: 0 0 22px; line-height: 1.1; }
.pricing-price span { font-size: 16px; font-weight: 400; color: #999; }
.pricing-features {
  list-style: none;
  text-align: left;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  color: #555;
  padding: 7px 0;
  border-bottom: 1px solid #f2f3fa;
}
.pricing-features li:last-child { border: none; }
.pricing-features li strong { color: #2c2c3a; }
.pricing-features li.pricing-ref-note {
  font-size: 12.5px;
  color: #667eea;
  line-height: 1.5;
}
.pricing-features li.pricing-ref-note i { margin-right: 4px; }
.pricing-btn, .pricing-card .btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  display: block;
  box-sizing: border-box;
}
.current-btn {
  background: #e8e9f3;
  color: #888;
  cursor: default;
}
.pricing-faq {
  max-width: 660px;
  margin: 0 auto 24px;
}
.pricing-faq h2 {
  font-size: 20px;
  color: #2c2c3a;
  margin-bottom: 14px;
  text-align: center;
}
.pricing-faq .faq-inner { max-width: 100%; }
.pricing-note { text-align: center; font-size: 13px; color: #999; margin-top: 10px; }

/* ── Usage bar (dashboard) ───────────────────────────────────────────── */
.usage-bar-wrap {
  background: #fbfbfe;
  border: 1px solid #eceefb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.usage-rows { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.usage-row { display: flex; align-items: center; gap: 10px; }
.usage-label { font-size: 13px; font-weight: 600; color: #555; white-space: nowrap; }
.usage-track {
  flex: 1;
  height: 8px;
  background: #e8e9f3;
  border-radius: 6px;
  overflow: hidden;
  max-width: 180px;
}
.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 6px;
  width: 0;
  animation: consumed .8s ease-out forwards;
  animation-delay: .2s;
}
@keyframes consumed {
  from { width: 0; }
  to { width: var(--target-width); }
}
.usage-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.usage-unlimited {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  letter-spacing: .3px;
}
.usage-upgrade {
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
  white-space: nowrap;
}
.usage-upgrade:hover { text-decoration: underline; }
.alias-upsell {
  font-size: 13px;
  color: #888;
  margin: 8px 0;
}
.alias-upsell a { color: #667eea; font-weight: 600; }
.referral-card {
  background: #fff;
  border: 1px solid #eaecf7;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(38, 36, 90, 0.04);
}
.referral-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.referral-head h2 {
  font-size: 16px;
  color: #334;
  margin: 0;
}
.referral-head h2 i { color: #667eea; margin-right: 8px; }
.referral-count {
  font-size: 12.5px;
  font-weight: 700;
  color: #667eea;
  background: #f1f2fd;
  border-radius: 999px;
  padding: 4px 12px;
}
.referral-sub {
  font-size: 13px;
  color: #788;
  line-height: 1.55;
  margin: 0 0 12px;
}
.referral-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.referral-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d9dcee;
  border-radius: 8px;
  font-size: 13.5px;
  color: #445;
  background: #f7f8fd;
}
.referral-copy {
  width: auto;
  white-space: nowrap;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 8px;
  flex: 0 0 auto;
}
.referral-milestones { display: flex; flex-direction: column; gap: 10px; }
.referral-milestone { display: grid; grid-template-columns: 1fr auto 160px; align-items: center; gap: 12px; }
.referral-milestone-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #667;
}
.referral-milestone-label em { font-style: normal; font-weight: 600; color: #445; }
.referral-milestone-label i { color: #9aa; font-size: 12px; }
.referral-milestone.done .referral-milestone-label i { color: #22c55e; }
.referral-milestone.done .referral-milestone-label em { color: #16a34a; }
.referral-milestone-meta {
  font-size: 12px;
  color: #8a8fa8;
  white-space: nowrap;
  text-align: right;
}
.referral-milestone .usage-track { max-width: none; }
.badge-expired {
  background: #fef2f2;
  color: #dc2626;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.expires { font-size: 12px; color: #888; white-space: nowrap; }
.clock-icon { font-size: 16px; cursor: default; position: relative; display: inline-block; }
.clock-none {
  opacity: 0.3;
  filter: grayscale(1);
}
.clock-none::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 1px;
  right: 1px;
  height: 2px;
  background: #dc2626;
  transform: rotate(-45deg);
  border-radius: 1px;
}
.clock-active {
  opacity: 1;
  filter: none;
}
select#expires {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  margin-bottom: 4px;
}
.custom-date {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  margin-bottom: 4px;
}
.custom-date.hidden { display: none; }

/* ── Pricing responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin: 20px auto 28px;
  }
  .pricing-card { padding: 24px 18px; }
  .pricing-badge { top: -10px; font-size: 10px; }
  .usage-bar-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .usage-row { min-width: 0; }
  .usage-track { max-width: 100%; }
  .usage-side-stats { justify-content: center; }
  .bio-grid {
    flex-direction: column;
  }
  .bio-preview-card {
    flex: none;
    position: static;
    width: 100%;
  }
  .save-row .btn-save { width: 100%; }
  .save-row { justify-content: stretch; }
  .referral-milestone { grid-template-columns: 1fr auto; }
  .referral-milestone-label { grid-column: 1 / -1; }
  .referral-milestone .usage-track { grid-column: 1 / -1; max-width: 100%; }
  .referral-row { flex-wrap: wrap; }
  .referral-row input { flex-basis: 100%; }
}

/* ── Upgrade banner ──────────────────────────────────────────────────── */
.upgrade-banner {
  background: linear-gradient(135deg, #f0f0ff, #f8f0ff);
  border: 1px solid #e2e0f7;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 18px;
  text-align: center;
}
.upgrade-banner p {
  font-size: 14px;
  color: #555;
  margin: 0;
}
.upgrade-banner a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
}
.upgrade-banner a:hover { text-decoration: underline; }
.stats-upgrade { margin-top: 12px; }

/* ── Plan pill on logo ───────────────────────────────────────────────── */
.nav-brand { position: relative; }
.plan-pill {
  position: absolute;
  top: -6px;
  right: -30px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 1px 6px;
  border-radius: 8px;
  line-height: 1.4;
  pointer-events: none;
}
.plan-starter {
  background: #dbeafe;
  color: #2563eb;
}
.plan-pro {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

/* ── Bio themes showcase (landing) ──────────────────────────────────── */
.themes-showcase {
  text-align: center;
  padding: 56px 24px 40px;
  background: #fff;
}
.themes-showcase .section-subtitle {
  color: #888;
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 28px;
}
.themes-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.themes-scroll::-webkit-scrollbar { height: 6px; }
.themes-scroll::-webkit-scrollbar-track { background: transparent; }
.themes-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.theme-preview-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tp-card {
  width: 160px;
  height: 220px;
  border-radius: 14px;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--tp-a), var(--tp-b));
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
  cursor: default;
  overflow: hidden;
}
.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
}
.tp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tp-card);
  border: 2px solid var(--tp-border);
  flex-shrink: 0;
}
.tp-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-text);
}
.tp-bio {
  font-size: 9px;
  color: var(--tp-text);
  opacity: .65;
  margin-bottom: 2px;
}
.tp-social {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.tp-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tp-card);
  border: 1.5px solid var(--tp-link-border);
}
.tp-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--tp-link-bg);
  border: 1.5px solid var(--tp-link-border);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--tp-link-text);
}
.tp-link-icon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--tp-accent);
  flex-shrink: 0;
}
.tp-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

/* ── Pricing teaser (landing) ────────────────────────────────────────── */
.pricing-teaser {
  text-align: center;
  padding: 56px 24px;
  max-width: 820px;
  margin: 0 auto;
}
.pricing-teaser h2 {
  font-size: 28px;
  color: #2c2c3a;
  margin-bottom: 28px;
}
.pricing-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pt-card {
  background: #fff;
  border: 1px solid #e8e9f3;
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
}
.pt-card.pt-highlight {
  border-color: #667eea;
  background: #f5f6ff;
}
.pt-card h3 {
  font-size: 16px;
  color: #2c2c3a;
  margin: 0 0 4px;
}
.pt-price {
  font-size: 28px;
  font-weight: 800;
  color: #2c2c3a;
  margin: 0 0 8px;
}
.pt-price small {
  font-size: 13px;
  font-weight: 400;
  color: #999;
}
.pt-card p:last-child {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 600px) {
  .stats-duo { grid-template-columns: 1fr; }
  .bv-label { min-width: 56px; font-size: 12px; }
  .themes-showcase { padding: 40px 16px 32px; }
  .theme-preview-card { flex: 0 0 140px; }
  .tp-card { width: 140px; height: 200px; padding: 16px 12px 12px; }
  .pricing-teaser-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  .pricing-teaser h2 { font-size: 22px; }
}

/* ── Google Sign-In ─────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9aa0b4;
  font-size: 13px;
  margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7e9f5;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dfe2ee;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-google:hover {
  background: #f7f8fd;
  border-color: #c9cde0;
}
.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Themes showcase page (/themes) ──────────────────────────────────── */
.themed-page { padding-top: 44px; padding-bottom: 24px; }
.themed-page .themes-hero { text-align: center; }
.themed-page .page-title {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}
.themed-page .page-title i { color: #667eea; margin-right: 8px; }
.themed-page .page-title span { color: #667eea; }
.themed-page .themes-hero .subtitle {
  color: #888;
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto;
}
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 208px));
  justify-content: center;
  gap: 28px 20px;
  max-width: 1020px;
  margin: 32px auto 8px;
  padding: 0 16px;
}
.theme-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.theme-tile .tp-card { width: 100%; height: 224px; }
.theme-tile .tp-label {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #4b5563;
}
.theme-tile .tp-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9aa0b5;
  margin-top: -3px;
}
.themes-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 16px 0;
}
.tp-chip {
  background: #fff;
  border: 1px solid #e2e5f2;
  color: #526070;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.tp-chip:hover { border-color: #b9c3dd; color: #334155; }
.tp-chip.active {
  background: #667eea;
  border-color: #667eea;
  color: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}
.tp-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  pointer-events: none;
}
.tp-pill svg { width: 10px; height: 10px; }
.tp-pill-free {
  background: #16a34a;
  color: #fff;
}
.tp-pill-premium {
  background: rgba(255, 255, 255, 0.92);
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.35);
}
.themes-cta {
  text-align: center;
  padding: 40px 16px 56px;
}
.themes-cta p {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  margin-bottom: 16px;
}
.themes-cta .btn { margin: 0 6px 8px; }
@media (max-width: 640px) {
  .themes-grid {
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 24px 12px;
  }
  .theme-tile .tp-card { height: 180px; }
}
@media (max-width: 400px) {
  .themes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
  .theme-tile .tp-card { height: 150px; }
  .theme-tile .tp-link { padding: 4px 6px; }
  .theme-tile .tp-bio { margin-bottom: 0; }
}

/* ── QR pairing login (WhatsApp-style) ───────────────────────────── */
.qr-login-panel {
  background: #fff;
  border: 1px solid #e7e9f5;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.qr-login-intro { font-size: 13px; margin: 2px 0 12px; padding: 0 10px; }
.qr-canvas {
  background: #fff;
  border: 1px solid #eef0fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 164px;
  margin-bottom: 10px;
}
.qr-canvas svg { display: block; width: 156px; height: 156px; }
.qr-status {
  font-size: 12.5px;
  color: #888;
  margin: 0 0 10px;
  min-height: 18px;
}
.qr-status.good { color: #16a34a; font-weight: 600; }
.qr-status.bad { color: #d33; font-weight: 600; }

/* Phone approve page (/qr/<code>) */
.qr-confirm-title {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 6px;
  text-align: center;
}
.qr-confirm-title + .subtitle {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
  text-align: center;
}
#qrApproveForm .btn { margin-top: 6px; }
#qrApprovedMsg, #qrApproveErr { margin-top: 14px; }

/* ── SEO landing pages (/url-shortener, /link-in-bio, …) ─────────────── */
.ld-hero { text-align: center; padding: 30px 0 8px; }
.ld-hero .page-title { margin-bottom: 10px; }
.ld-lede {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 22px;
}
.ld-lede em, .ld-section em { color: #667eea; font-style: normal; font-weight: 700; }
.ld-cta, .ld-cta-band .btn + .btn { margin: 0 6px; }
.ld-cta { text-align: center; margin-top: 6px; }
.ld-section {
  max-width: 720px;
  margin: 42px auto 0;
  padding: 0 16px;
}
.ld-section h2 {
  font-size: 21px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 14px;
}
.ld-section p { color: #555; line-height: 1.75; margin-bottom: 14px; font-size: 15px; }
.ld-section a { color: #667eea; font-weight: 600; }
.ld-list { margin: 0; padding-left: 0; list-style: none; }
.ld-list li {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
  padding: 7px 0 7px 26px;
  position: relative;
}
.ld-list li::before {
  content: "\f14a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #667eea;
  position: absolute;
  left: 2px;
  top: 9px;
  font-size: 13px;
}
.ld-steps { margin: 0; padding-left: 22px; }
.ld-steps li { color: #555; line-height: 1.7; font-size: 15px; padding: 6px 0; }
.ld-steps li::marker { color: #667eea; font-weight: 800; }
.ld-steps li strong { color: #111827; }
.ld-faq details {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #fff;
}
.ld-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #111827;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 22px;
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #667eea;
  font-size: 12px;
  position: absolute;
  right: 0;
  top: 4px;
  transition: transform 0.2s;
}
.ld-faq details[open] summary::after { transform: rotate(180deg); }
.ld-faq details p { margin: 10px 0 2px; color: #666; }
.ld-cta-band {
  max-width: 720px;
  margin: 52px auto 0;
  padding: 34px 24px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 18px;
  color: #fff;
}
.ld-cta-band h2 { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.ld-cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.ld-cta-band .btn-primary { background: #fff; color: #667eea; }
.ld-cta-band .btn-primary:hover { background: #f3f4f6; color: #667eea; }
.ld-cta-band .btn-ghost { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.35); }
.ld-cta-band .btn-ghost:hover { background: rgba(255,255,255,0.26); color: #fff; }
@media (max-width: 600px) {
  .ld-cta .btn, .ld-cta-band .btn { display: block; width: 100%; margin: 8px 0; }
}

/* ── Homepage SEO copy + landing link hub ─────────────────────────────── */
.seo-copy { background: #fff; padding: 44px 16px 8px; }
.seo-inner {
  max-width: 720px;
  margin: 0 auto;
}
.seo-inner h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}
.seo-inner p { color: #555; line-height: 1.75; font-size: 15px; margin-bottom: 12px; }
.seo-inner a { color: #667eea; font-weight: 600; }
.seo-links { list-style: none; margin: 18px 0 0; padding: 0; }
.seo-links li { margin: 0 0 8px; }
.seo-links a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  padding-left: 20px;
  position: relative;
}
.seo-links a::before {
  content: "\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 13px;
}
.seo-links a:hover { text-decoration: underline; }

