/*
 * Bio Studio public surface.
 *
 * This domain stays standalone so it does not need Sngine's session or
 * bootloader. Its public surface has its own editorial visual language so it
 * feels like a creator product, not a generic dashboard skin.
 */

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Poppins, Helvetica, "sans-serif";
  background: var(--bs-bg);
  color: var(--bs-text);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(12px);
  opacity: .18;
}

body::before { top: -220px; left: -180px; background: var(--bs-accent); }
body::after { right: -220px; bottom: -240px; background: var(--bs-accent-2); }

/* Optional Bio Studio themes for creator pages. */
.bs-theme-cold_luxury {
  --bs-bg: #f0f2f5;
  --bs-surface: #fff;
  --bs-surface-muted: #f8f9fa;
  --bs-text: #111;
  --bs-muted: #6c757d;
  --bs-accent: #5e72e4;
  --bs-accent-2: #825ee4;
  --bs-success: #2dce89;
  --bs-border: #e9ecef;
  --bs-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 14px 34px rgba(17, 24, 39, .1);
  --bs-soft-accent: rgba(94, 114, 228, .11);
}

.bs-theme-dark_mode {
  --bs-bg: #1e252b;
  --bs-surface: #262d34;
  --bs-surface-muted: #1e252b;
  --bs-text: #c1d4e3;
  --bs-muted: #8da2b5;
  --bs-accent: #5e72e4;
  --bs-accent-2: #825ee4;
  --bs-success: #2dce89;
  --bs-border: #2e3f4d;
  --bs-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 16px 36px rgba(0, 0, 0, .24);
  --bs-soft-accent: rgba(94, 114, 228, .16);
}

.bs-theme-bubblegum {
  --bs-bg: #fff4fa;
  --bs-surface: #fff;
  --bs-surface-muted: #fff8fc;
  --bs-text: #401a33;
  --bs-muted: #8a5c7a;
  --bs-accent: #d94f9b;
  --bs-accent-2: #825ee4;
  --bs-success: #2dce89;
  --bs-border: #f1d8e7;
  --bs-shadow: 0 1px 2px rgba(97, 41, 83, .05), 0 14px 34px rgba(97, 41, 83, .12);
  --bs-soft-accent: rgba(217, 79, 155, .12);
}

.bs-theme-forest {
  --bs-bg: #eef7f2;
  --bs-surface: #fff;
  --bs-surface-muted: #f5fbf7;
  --bs-text: #173321;
  --bs-muted: #5d7968;
  --bs-accent: #2dce89;
  --bs-accent-2: #11cdef;
  --bs-success: #2dce89;
  --bs-border: #d8ebe0;
  --bs-shadow: 0 1px 2px rgba(18, 63, 40, .05), 0 14px 34px rgba(18, 63, 40, .1);
  --bs-soft-accent: rgba(45, 206, 137, .13);
}

.bs-page {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.bs-page-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--bs-border);
  border-radius: 24px;
  background: var(--bs-surface);
  box-shadow: var(--bs-shadow);
}

.bs-page-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--bs-accent), var(--bs-accent-2));
  content: "";
}

.bs-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--bs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bs-brand { display: inline-flex; align-items: center; gap: 7px; }

.bs-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--bs-accent), var(--bs-accent-2));
  font-size: 12px;
  letter-spacing: 0;
}

.bs-page-state {
  padding: 5px 9px;
  border: 1px solid var(--bs-border);
  border-radius: 999px;
  color: var(--bs-muted);
  background: var(--bs-surface-muted);
  font-size: 10px;
  letter-spacing: .04em;
}

.bs-brand-actions { display: inline-flex; align-items: center; gap: 7px; }
.bs-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--bs-border);
  border-radius: 50%;
  color: var(--bs-accent);
  background: var(--bs-surface-muted);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  line-height: 1;
}
.bs-share-button:hover, .bs-share-button:focus-visible { border-color: var(--bs-accent); outline: none; box-shadow: 0 0 0 3px var(--bs-soft-accent); }

.bs-header {
  margin-bottom: 25px;
  text-align: center;
}

.bs-avatar-wrap { display: inline-flex; margin-bottom: 13px; }

.bs-avatar {
  display: block;
  width: 104px;
  height: 104px;
  border: 4px solid var(--bs-surface);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--bs-accent), 0 12px 24px rgba(17, 24, 39, .15);
}

.bs-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--bs-accent), var(--bs-accent-2));
  font-size: 38px;
  font-weight: 700;
}

.bs-name { margin: 0; color: var(--bs-text); font-size: 25px; line-height: 1.2; font-weight: 700; }
.bs-handle { margin: 5px 0 0; color: var(--bs-accent); font-size: 13px; font-weight: 600; }
.bs-tagline { max-width: 46ch; margin: 10px auto 0; color: var(--bs-muted); font-size: 14px; line-height: 1.55; }
.bs-preclaim-notice { max-width: 46ch; margin: 9px auto 0; color: var(--bs-muted); font-size: 11px; line-height: 1.45; }

.bs-notice {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid rgba(45, 206, 137, .28);
  border-radius: 12px;
  color: var(--bs-success);
  background: rgba(45, 206, 137, .09);
  font-size: 13px;
  text-align: center;
}

.bs-blocks { display: flex; flex-direction: column; gap: 12px; }

.bs-block-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--bs-border);
  border-radius: 16px;
  color: var(--bs-text);
  background: var(--bs-surface);
  box-shadow: 0 2px 5px rgba(17, 24, 39, .04);
  text-align: left;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.bs-block-link:hover,
.bs-block-link:focus-visible {
  border-color: var(--bs-accent);
  box-shadow: 0 7px 18px rgba(17, 24, 39, .1);
  outline: none;
  transform: translateY(-2px);
}

.bs-link-mark,
.bs-social-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--bs-accent);
  background: var(--bs-soft-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.bs-link-copy { min-width: 0; }
.bs-link-label { display: block; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bs-link-meta { display: block; margin-top: 3px; color: var(--bs-muted); font-size: 11px; }
.bs-link-arrow { color: var(--bs-accent); font-size: 20px; line-height: 1; text-align: right; }

.bs-block-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 2px 0 4px;
}

.bs-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--bs-border);
  border-radius: 999px;
  color: var(--bs-text);
  background: var(--bs-surface-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.bs-social-link:hover,
.bs-social-link:focus-visible {
  border-color: var(--bs-accent);
  box-shadow: 0 5px 14px rgba(17, 24, 39, .08);
  outline: none;
  transform: translateY(-1px);
}

.bs-social-link .bs-social-mark { width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--bs-accent); font-size: 10px; }
.bs-social-instagram .bs-social-mark { background: linear-gradient(135deg, #515bd4, #dd2a7b 55%, #feda75); }
.bs-social-youtube .bs-social-mark { background: #ff0033; }
.bs-social-facebook .bs-social-mark { background: #1877f2; }
.bs-social-tiktok .bs-social-mark { background: #111; }
.bs-social-linkedin .bs-social-mark { background: #0a66c2; }
.bs-social-whatsapp .bs-social-mark { background: #25d366; }
.bs-social-telegram .bs-social-mark { background: #229ed9; }

.bs-block-heading { margin: 9px 2px 0; color: var(--bs-text); font-size: 18px; font-weight: 700; }
.bs-block-paragraph { margin: 0 2px; color: var(--bs-muted); font-size: 14px; line-height: 1.6; }
.bs-block-divider { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--bs-border); }
.bs-block-image { display: block; width: 100%; border-radius: 16px; }
.bs-block-embed { position: relative; width: 100%; min-height: 180px; padding-top: 56.25%; overflow: hidden; border: 1px solid var(--bs-border); border-radius: 16px; background: var(--bs-surface-muted); }
.bs-block-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bs-embed-soundcloud { min-height: 166px; padding-top: 0; }
.bs-embed-soundcloud iframe { position: relative; min-height: 166px; }
.bs-embed-spotify { min-height: 152px; padding-top: 0; }
.bs-embed-spotify iframe { position: relative; min-height: 152px; }

.bs-sensitive-zone {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(130, 94, 228, .22);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bs-surface-muted), rgba(130, 94, 228, .06));
}
.bs-sensitive-heading { display: flex; align-items: center; gap: 10px; }
.bs-sensitive-heading strong { display: block; color: var(--bs-text); font-size: 13px; }
.bs-sensitive-heading small { display: block; margin-top: 2px; color: var(--bs-muted); font-size: 11px; }
.bs-sensitive-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; padding: 0 7px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--bs-accent-2), #f5365c); font-size: 11px; font-weight: 800; }
.bs-sensitive-disclosure { margin-top: 12px; }
.bs-sensitive-disclosure summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border: 1px solid var(--bs-border); border-radius: 11px; color: var(--bs-accent); background: var(--bs-surface); cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.bs-sensitive-disclosure summary::-webkit-details-marker { display: none; }
.bs-sensitive-disclosure summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bs-soft-accent); }
.bs-sensitive-blocks { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

.bs-block-faq { text-align: left; }
.bs-faq-item { margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--bs-border); border-radius: 12px; background: var(--bs-surface-muted); }
.bs-faq-item summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.bs-faq-item div { margin-top: 7px; color: var(--bs-muted); font-size: 13px; line-height: 1.5; }

.bs-block-product { display: block; padding: 12px; border: 1px solid var(--bs-border); border-radius: 16px; color: var(--bs-text); background: var(--bs-surface); text-decoration: none; }
.bs-block-product img { display: block; width: 100%; margin-bottom: 10px; border-radius: 12px; }
.bs-product-title { font-weight: 700; }
.bs-product-price { margin-top: 3px; color: var(--bs-accent); font-weight: 700; }

.bs-block-newsletter { display: flex; flex-direction: column; gap: 9px; padding: 15px; border: 1px solid var(--bs-border); border-radius: 16px; background: var(--bs-surface-muted); }
.bs-newsletter-heading { font-weight: 700; }
.bs-newsletter-label { color: var(--bs-muted); font-size: 12px; font-weight: 700; }
.bs-newsletter-consent { color: var(--bs-muted); font-size: 11px; line-height: 1.45; }
.bs-newsletter-consent input { width: auto; margin-right: 5px; }
.bs-newsletter-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.bs-block-newsletter input, .bs-block-newsletter button { padding: 11px 12px; border: 1px solid var(--bs-border); border-radius: 10px; color: var(--bs-text); background: var(--bs-surface); font: inherit; font-size: 13px; }
.bs-block-newsletter button { border-color: var(--bs-accent); color: #fff; background: var(--bs-accent); font-weight: 700; cursor: pointer; }

/* Closed by default: the pre-claim prompt stays available without taking over. */
.bs-claim-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(292px, calc(100vw - 36px));
  color: var(--bs-text);
  filter: drop-shadow(0 10px 25px rgba(17, 24, 39, .16));
}

.bs-claim-widget summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px 8px 8px;
  border: 1px solid var(--bs-border);
  border-radius: 999px;
  outline: none;
  color: var(--bs-text);
  background: var(--bs-surface);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.bs-claim-widget summary::-webkit-details-marker { display: none; }
.bs-claim-widget summary:focus-visible { box-shadow: 0 0 0 3px rgba(94, 114, 228, .25); }
.bs-claim-widget-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--bs-success); font-size: 14px; font-weight: 800; }
.bs-claim-widget-label { flex: 1; font-weight: 600; }
.bs-claim-widget-action { padding: 7px 10px; border-radius: 999px; color: #fff; background: var(--bs-accent); font-size: 11px; font-weight: 700; }
.bs-claim-widget-body { margin-bottom: 8px; padding: 14px; border: 1px solid var(--bs-border); border-radius: 16px; background: var(--bs-surface); }
.bs-claim-widget-body p { margin: 0 0 11px; color: var(--bs-muted); font-size: 12px; line-height: 1.45; }
.bs-claim-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 10px 13px; border: 1px solid var(--bs-accent); border-radius: 10px; color: #fff; background: var(--bs-accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.bs-claim-btn:hover, .bs-claim-btn:focus-visible { background: #4d61cf; outline: none; }

.bs-watermark { margin-top: 26px; color: var(--bs-muted); font-size: 11px; text-align: center; }
.bs-watermark a { color: inherit; text-decoration: none; }
.bs-watermark a:hover { color: var(--bs-accent); }
.bs-page-404 { padding-top: 96px; text-align: center; }

@media (max-width: 560px) {
  .bs-page { padding: 10px 10px 84px; }
  .bs-page-card { padding: 17px 13px 22px; border-radius: 20px; }
  .bs-brand-row { margin-bottom: 23px; }
  .bs-name { font-size: 23px; }
  .bs-claim-widget { right: 10px; bottom: 10px; left: 10px; width: auto; }
}

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

@media print {
  .bs-claim-widget { display: none; }
  .bs-page { padding: 0; }
  .bs-page-card { box-shadow: none; }
}

/* Keep the standalone Bio Studio surface on the same baseline as Sngine. */
.bs-page {
  width: min(100%, 680px);
  padding: 20px 16px 56px;
}

.bs-page-card {
  padding: 20px;
  border-radius: 24px;
  box-shadow: var(--bs-shadow);
}

.bs-page-card::before {
  height: 5px;
  background: linear-gradient(90deg, var(--bs-accent), var(--bs-accent-2));
}

.bs-brand-row {
  margin-bottom: 26px;
  font-size: 11px;
  letter-spacing: .08em;
}

.bs-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--bs-accent), var(--bs-accent-2));
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 12px;
}

.bs-page-state {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bs-surface-muted);
  font-size: 10px;
  letter-spacing: .04em;
}

.bs-avatar {
  width: 104px;
  height: 104px;
  border: 4px solid var(--bs-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bs-accent), 0 12px 24px rgba(17, 24, 39, .15);
}

.bs-avatar-placeholder {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-accent), var(--bs-accent-2));
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 38px;
}

.bs-name {
  font-family: Poppins, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: normal;
}

.bs-handle { font-size: 13px; }
.bs-tagline { max-width: 46ch; font-size: 14px; }
.bs-blocks { gap: 12px; }

.bs-block-link {
  min-height: 68px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--bs-border);
  border-left: 1px solid var(--bs-border);
  border-radius: 16px;
  background: var(--bs-surface);
  box-shadow: 0 2px 5px rgba(17, 24, 39, .04);
}

.bs-block-link:hover,
.bs-block-link:focus-visible {
  border-color: var(--bs-accent);
  background: var(--bs-surface);
  box-shadow: 0 7px 18px rgba(17, 24, 39, .1);
  transform: translateY(-2px);
}

.bs-link-mark,
.bs-social-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--bs-soft-accent);
}

.bs-link-label { font-size: 14px; }
.bs-link-meta { font-size: 11px; }
.bs-link-arrow { font-size: 20px; }

.bs-social-link {
  min-height: 44px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  background: var(--bs-surface-muted);
  font-size: 12px;
}

.bs-social-link:hover,
.bs-social-link:focus-visible {
  background: var(--bs-surface-muted);
  box-shadow: 0 5px 14px rgba(17, 24, 39, .08);
  transform: translateY(-1px);
}

.bs-social-link .bs-social-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.bs-sensitive-zone {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bs-surface-muted), rgba(130, 94, 228, .06));
}

.bs-sensitive-badge {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bs-accent-2), #f5365c);
}

.bs-sensitive-disclosure summary {
  border-radius: 11px;
  background: var(--bs-surface);
}

.bs-claim-widget summary {
  border-radius: 999px;
  box-shadow: none;
}

.bs-claim-widget-mark,
.bs-claim-widget-action { border-radius: 999px; }
.bs-claim-widget-action { background: var(--bs-accent); }

.bs-claim-btn {
  border-radius: 14px;
  background: var(--bs-accent);
}

.bs-claim-btn:hover,
.bs-claim-btn:focus-visible { background: #4d61cf; }

@media (max-width: 560px) {
  .bs-page { padding: 10px 10px 84px; }
  .bs-page-card { padding: 17px 13px 22px; border-radius: 20px; }
  .bs-brand-row { margin-bottom: 23px; }
  .bs-name { font-size: 23px; }
}

.bs-brand-logo {
  display: block;
  width: auto;
  max-width: 112px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.bs-brand-logo-dark { display: none; }
.bs-theme-dark_mode .bs-brand-logo-light { display: none; }
.bs-theme-dark_mode .bs-brand-logo-dark { display: block; }

@media (max-width: 560px) {
  .bs-brand-logo { height: 30px; max-width: 100px; }
}
