:root {
  --bg: #0b1020;
  --panel: #121a2b;
  --panel-2: #182235;
  --text: #eff6ff;
  --muted: #9fb0ca;
  --line: rgba(255,255,255,.09);
  --accent: #8b5cf6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #111b30 0%, #0b1020 50%, #070b16 100%);
  color: var(--text);
}
a { color: inherit; }
img { max-width: 100%; }
input, textarea, select, button { font: inherit; }
button { cursor: pointer; }
.site-shell { min-height: 100vh; padding: 14px; }
.container { width: min(1100px, 100%); margin: 0 auto; }
.narrow { width: min(560px, 100%); }
.topbar {
  width: min(1100px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(18,26,43,.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.brand { font-weight: 800; text-decoration: none; }
.topnav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.topnav a { text-decoration: none; color: var(--muted); }
.card {
  background: linear-gradient(180deg, rgba(18,26,43,.96) 0%, rgba(12,18,30,.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  padding: 28px;
}
.hero h1 { font-size: clamp(2rem, 6vw, 4rem); margin: 10px 0 14px; line-height: 1.02; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.eyebrow { color: #c4b5fd; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-actions, .dashboard-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  background: var(--accent);
  color: white;
  font-weight: 700;
}
.btn-sm { padding: 9px 14px; font-size: .92rem; }
.btn-secondary { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); }
.feature-grid, .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.feature-grid .card, .dashboard-grid .card, .auth-card { padding: 22px; }
.auth-card h1, .dashboard-grid h1 { margin-top: 0; }
.form-stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: .95rem; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
textarea { resize: vertical; min-height: 88px; }
.flash {
  width: min(1100px, 100%);
  margin: 0 auto 16px;
  padding: 14px 18px;
  border-radius: 18px;
}
.flash-success { background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.3); }
.flash-error { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.3); }
.info-list { display: grid; gap: 12px; }
.info-list div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.info-list dt { color: var(--muted); }
.footer-note { width: min(1100px, 100%); margin: 20px auto 0; color: var(--muted); text-align: center; font-size: .9rem; }
.phone-frame { width: min(330px, 100%); margin-inline: auto; background: #06080f; border-radius: 36px; padding: 14px; border: 1px solid rgba(255,255,255,.1); }
.phone-notch { width: 42%; height: 28px; border-radius: 0 0 18px 18px; background: #000; margin: 0 auto 10px; }
.phone-screen { min-height: 560px; border-radius: 28px; padding: 18px; background: linear-gradient(180deg,#0f172a,#111827); }
.mock-avatar, .mock-title, .mock-subtitle, .mock-button, .mock-card { background: rgba(255,255,255,.11); border-radius: 18px; }
.mock-avatar { width: 82px; height: 82px; border-radius: 50%; margin: 12px auto; }
.mock-title { height: 24px; width: 70%; margin: 16px auto 8px; }
.mock-subtitle { height: 14px; width: 55%; margin: 0 auto 18px; }
.mock-button { height: 52px; margin-bottom: 12px; }
.mock-card { height: 160px; margin-top: 16px; }
.public-profile {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px 14px 42px;
  background: var(--profile-bg, #0f172a);
  color: var(--profile-text, #fff);
  font-family: var(--profile-font, Inter, system-ui, sans-serif);
}
.public-card {
  width: min(var(--profile-max, 420px), 100%);
  background: var(--profile-card-rgba, rgba(17,24,39,.88));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--profile-card-radius-tl, var(--profile-card-radius, 30px)) var(--profile-card-radius-tr, var(--profile-card-radius, 30px)) var(--profile-card-radius-br, var(--profile-card-radius, 30px)) var(--profile-card-radius-bl, var(--profile-card-radius, 30px));
  padding: 20px;
  text-align: center;
  box-shadow: 0 var(--profile-card-shadow, 28px) calc(var(--profile-card-shadow, 28px) * 2.5) rgba(0,0,0,.28);
}
.public-card h1 { margin: 0; }
.public-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}
.public-avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 12px;
}
.public-bio, .public-handle { color: rgba(255,255,255,.76); }
.public-blocks { text-align: left; margin-top: 20px; }
.lb-slide img { width: 100%; display: block; }
.lb-slide-caption { padding-top: 8px; color: rgba(255,255,255,.82); font-size: .95rem; }
.lb-slider { overflow: hidden; }
.lb-slider-track { display: flex; transition: transform .32s ease; }
.lb-slide { min-width: 100%; }
.lb-slider-dots { display: flex; justify-content: center; gap: 8px; padding-top: 10px; }
.lb-slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); }
.lb-slider-dots button.active { background: var(--profile-accent, var(--accent)); }
@media (max-width: 980px) {
  .hero, .feature-grid, .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-shell { padding: 10px; }
  .topbar { border-radius: 22px; padding: 12px 14px; }
  .hero { padding: 18px; }
}

/* Dynamic button text fitting */
[data-lb-fit-text] {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  min-width: 0;
}
[data-lb-fit-label] {
  white-space: nowrap !important;
  min-width: 0;
}
