/* ============================================================================
   sunny biolink pages (guns.lol-style). Self-contained: the public page loads
   only this + fontawesome + Montserrat. The editor reuses the same renderer for
   a live preview. The renderer reads CSS variables set inline from the user's
   theme (--b-accent, --b-text, --b-card-bg, --b-radius, --b-card-blur).
   ============================================================================ */

.bio-root, .bio-root * { box-sizing: border-box; }
.bio-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  font-family: var(--b-font, 'Montserrat'), system-ui, sans-serif;
  color: var(--b-text, #fff);
  --b-accent: #ffffff;
  --b-text: #ffffff;
  --b-card-bg: rgba(8, 10, 14, 0.34);
  --b-card-blur: 8px;
  --b-radius: 22px;
}

/* ---- background layers ---- */
.bio-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bio-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, var(--b-dim, 0.35));
  -webkit-backdrop-filter: blur(var(--b-bg-blur, 0px));
  backdrop-filter: blur(var(--b-bg-blur, 0px));
}

/* ---- effects layer ---- */
.bio-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.bio-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- the glass card ---- */
.bio-card {
  position: relative;
  z-index: 3;
  width: min(440px, 100%);
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 30px 26px 26px;
  border-radius: var(--b-radius);
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 55%), var(--b-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(var(--b-card-blur)) saturate(200%);
  backdrop-filter: blur(var(--b-card-blur)) saturate(200%);
  box-shadow: 0 8px 28px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.45),
    inset 0 -1px 1px rgba(255,255,255,.12);
  transition: transform 0.18s ease;
  transform-style: preserve-3d;
}
.bio-card::-webkit-scrollbar { display: none; }
.bio-root.glow .bio-card {
  box-shadow: 0 8px 28px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.45),
    inset 0 -1px 1px rgba(255,255,255,.12),
    0 0 60px color-mix(in srgb, var(--b-accent) 45%, transparent);
}

/* ---- avatar ---- */
.bio-avatar {
  width: 104px;
  height: 104px;
  border-radius: var(--b-avatar-radius, 50%);
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--b-accent) 70%, transparent);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  background: rgba(255,255,255,.06);
}
.bio-root.glow .bio-avatar {
  box-shadow: 0 0 26px color-mix(in srgb, var(--b-accent) 60%, transparent);
}
.bio-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--b-accent);
}

/* ---- name + handle + tag ---- */
.bio-name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  word-break: break-word;
}
.bio-name.gradient {
  background: linear-gradient(90deg, var(--b-accent), #fff 55%, var(--b-accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bioShimmer 4s linear infinite;
}
.bio-name.glow { text-shadow: 0 0 18px color-mix(in srgb, var(--b-accent) 75%, transparent); }
@keyframes bioShimmer { to { background-position: -200% 0; } }

.bio-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: -4px; }
.bio-handle { font-size: 0.92rem; color: color-mix(in srgb, var(--b-text) 65%, transparent); }
.bio-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--b-accent);
  background: color-mix(in srgb, var(--b-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--b-accent) 32%, transparent);
}

.bio-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--b-text) 82%, transparent);
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 360px;
}

/* ---- socials ---- */
.bio-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.bio-social {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.12rem;
  color: var(--b-text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.bio-social:hover {
  transform: translateY(-3px);
  color: var(--b-accent);
  background: color-mix(in srgb, var(--b-accent) 16%, transparent);
}

/* ---- links ---- */
.bio-links { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.bio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--b-text);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.bio-link i { color: var(--b-accent); }
.bio-link:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--b-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--b-accent) 40%, transparent);
}

/* ---- view counter ---- */
.bio-views {
  position: absolute;
  z-index: 4;
  left: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.bio-credit {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 12px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.bio-credit:hover { color: rgba(255, 255, 255, 0.9); }

/* ---- splash / click to enter ---- */
.bio-splash {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.bio-splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.bio-splash-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  animation: bioPulse 1.8s ease-in-out infinite;
}
@keyframes bioPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---- opening (entrance) animations for the card ---- */
.bio-enter-fade { animation: bioEnterFade 0.85s ease both; }
.bio-enter-up   { animation: bioEnterUp 0.85s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.bio-enter-down { animation: bioEnterDown 0.85s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.bio-enter-zoom { animation: bioEnterZoom 0.7s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.bio-enter-blur { animation: bioEnterBlur 0.9s ease both; }
@keyframes bioEnterFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bioEnterUp   { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
@keyframes bioEnterDown { from { opacity: 0; transform: translateY(-42px); } to { opacity: 1; transform: none; } }
@keyframes bioEnterZoom { from { opacity: 0; transform: scale(0.84); } to { opacity: 1; transform: none; } }
@keyframes bioEnterBlur { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: blur(0); } }

/* ---- the public page chrome ---- */
.bio-page-html, .bio-page-body {
  margin: 0;
  height: 100%;
  background: var(--b-bg, #000);
}
.bio-page-body { position: relative; overflow: hidden; }
.bio-loading, .bio-missing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #9CA3AF;
  font-family: 'Montserrat', system-ui, sans-serif;
  text-align: center;
  padding: 24px;
}
.bio-missing img { width: 130px; opacity: 0.9; margin-bottom: 6px; }
.bio-missing h1 { color: #F3F4F6; font-size: 1.3rem; margin: 0; }
.bio-missing a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .bio-name.gradient, .bio-splash-text { animation: none; }
  .bio-card { transition: none; }
  .bio-enter-fade, .bio-enter-up, .bio-enter-down,
  .bio-enter-zoom, .bio-enter-blur { animation: none; }
}

@media (max-width: 480px) {
  .bio-card { padding: 24px 18px 20px; }
  .bio-avatar { width: 88px; height: 88px; }
  .bio-name { font-size: 1.4rem; }
}

/* ============================================================================
   EDITOR (b/) uses the app's design tokens (var(--accent) etc from styles.css)
   ============================================================================ */
.bio-editor-page { max-width: 1100px; margin: 0 auto; padding: 30px 22px 140px; }
.bio-editor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.bio-editor-head h1 { margin: 0 0 4px; font-size: 1.7rem; color: var(--text); }
.bio-editor-sub { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.bio-editor-head-actions { display: flex; gap: 10px; }
.bio-copy-btn, .bio-view-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.82rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.06);
  color: var(--text); border-radius: 11px; padding: 10px 16px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.bio-copy-btn:hover, .bio-view-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.bio-view-btn { background: var(--accent); color: #000; border-color: transparent; }

/* The editor toggles visibility via the HTML `hidden` attribute. Because the
   rules below set an explicit `display`, author CSS would otherwise beat the
   UA stylesheet's `[hidden]{display:none}` and the empty shell would always
   show before boot populates it. Restore `hidden` for these elements. */
.bio-editor[hidden],
.bio-gate[hidden],
.bio-copy-btn[hidden],
.bio-view-btn[hidden] { display: none !important; }

.bio-editor {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}
.bio-controls { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.bio-sec { border-radius: var(--lg-radius); padding: 16px 18px; }
.bio-sec-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.bio-sec-head i { color: var(--accent); }

.bio-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.bio-row:last-child { margin-bottom: 0; }
.bio-row > label { font-size: 0.78rem; color: var(--text-muted); font-weight: 700; }
.bio-row-toggle { flex-direction: row; align-items: center; justify-content: space-between; }
.bio-row-toggle label { font-size: 0.86rem; color: var(--text); }

.bio-input {
  width: 100%;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.86rem;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 10px 12px; outline: none;
  text-transform: none;
  transition: border-color 0.2s ease;
}
.bio-input:focus { border-color: var(--accent); }
.bio-input::placeholder { color: var(--text-muted); }
.bio-textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.bio-input-sm { width: auto; flex: 0 0 auto; }
select.bio-input { cursor: pointer; }

.bio-color-wrap, .bio-range-wrap, .bio-media-wrap { display: flex; align-items: center; gap: 10px; }
.bio-color {
  width: 42px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--glass-border); border-radius: 9px; background: none; cursor: pointer; padding: 2px;
}
.bio-color-wrap .bio-input { flex: 1; }
.bio-range { flex: 1; accent-color: var(--accent); cursor: pointer; }
.bio-range-val { flex: 0 0 46px; text-align: right; font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.bio-toggle {
  appearance: none; -webkit-appearance: none;
  width: 44px; height: 25px; border-radius: 999px; flex-shrink: 0;
  background: rgba(255,255,255,0.16); position: relative; cursor: pointer; transition: background 0.2s ease;
}
.bio-toggle:checked { background: var(--accent); }
.bio-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; transition: transform 0.2s ease, background 0.2s ease;
}
/* knob is white when off, black when on (matches the toggle restyle sitewide) */
.bio-toggle:checked::after { transform: translateX(19px); background: #000; }

.bio-media-wrap { flex-wrap: wrap; }
.bio-upload-btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.78rem;
  color: var(--text); cursor: pointer;
  background: rgba(255,255,255,0.07); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 9px 14px; transition: background 0.2s ease;
}
.bio-upload-btn:hover:not(:disabled) { background: rgba(255,255,255,0.13); }
.bio-upload-btn:disabled { opacity: 0.7; cursor: default; }
.bio-media-wrap .bio-input { flex: 1; min-width: 140px; }

.bio-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.bio-list-row { display: flex; align-items: center; gap: 8px; }
.bio-list-row-col { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; border: 1px solid var(--glass-border); border-radius: 12px; background: rgba(255,255,255,0.02); }
.bio-icon-btn {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05);
  color: var(--text-muted); cursor: pointer; transition: color 0.2s ease, background 0.2s ease;
}
.bio-icon-btn:hover { color: #ff6b6b; background: rgba(255,90,90,0.1); }
.bio-add-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.82rem;
  color: var(--text); cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px dashed var(--glass-border);
  border-radius: 11px; padding: 11px; transition: background 0.2s ease;
}
.bio-add-btn:hover { background: rgba(255,255,255,0.09); }

.bio-preview-col { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.bio-preview-frame {
  position: relative;
  aspect-ratio: 10 / 16;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--lg-border);
}
.bio-preview-frame #bioPreview { position: absolute; inset: 0; }
.bio-save-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem;
  border: none; background: var(--accent); color: #000; cursor: pointer;
  border-radius: 12px; padding: 13px; transition: background 0.2s ease, transform 0.15s ease;
}
.bio-save-btn:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.bio-save-btn:disabled { opacity: 0.7; cursor: default; }
.bio-save-note { text-align: center; font-size: 0.76rem; color: var(--text-muted); min-height: 1em; }
.bio-save-note.ok { color: var(--accent); }
.bio-save-note.err { color: #ff8a8a; }

.bio-gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 50vh; text-align: center; color: var(--text-muted);
}
.bio-gate i { font-size: 1.8rem; color: var(--accent); }
.bio-gate span { font-size: 0.95rem; max-width: 360px; }
.bio-gate-btn {
  margin-top: 4px; text-decoration: none; font-weight: 700; font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif; cursor: pointer; border: none;
  background: var(--accent); color: #000; border-radius: 11px; padding: 10px 20px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.bio-gate-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

@media (max-width: 820px) {
  .bio-editor { grid-template-columns: 1fr; }
  .bio-preview-col { position: static; order: -1; }
  .bio-preview-frame { max-width: 320px; margin: 0 auto; aspect-ratio: 10 / 15; }
}

/* ---- username change ("your link") ---- */
.bio-username-wrap { display: flex; align-items: center; gap: 8px; }
.bio-at { color: var(--text-muted); font-weight: 700; font-size: 0.9rem; }
.bio-username-wrap .bio-input { flex: 1; min-width: 0; }
.bio-username-btn { flex: 0 0 auto; }
.bio-username-btn:disabled { opacity: 0.5; cursor: default; }
.bio-username-note { margin-top: 8px; font-size: 0.76rem; color: var(--text-muted); min-height: 1em; }
.bio-username-note.ok { color: var(--accent); }
.bio-username-note.err { color: #ff8a8a; }

/* ---- UID + owner badges (editor header) ---- */
.bio-uid-badge { color: var(--accent); font-weight: 700; }
.bio-uid-owner {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 2px 9px; border-radius: 999px; margin-left: 6px;
  color: #facc15; background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.4);
}

/* ---- custom dropdown (replaces native <select>) ---- */
.bio-select {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.86rem;
  color: var(--text); cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 10px 12px;
  transition: border-color 0.2s ease;
}
.bio-select:hover { border-color: var(--accent); }
.bio-select .fa-chevron-down { font-size: 0.7rem; color: var(--text-muted); flex: 0 0 auto; }
.bio-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-select.bio-select-sm { width: auto; min-width: 120px; flex: 0 0 auto; }

.bio-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: bioModalIn 0.15s ease;
}
@keyframes bioModalIn { from { opacity: 0; } to { opacity: 1; } }
.bio-modal {
  width: min(360px, 100%); max-height: 70vh; overflow-y: auto;
  border-radius: var(--lg-radius, 16px); padding: 14px;
  border: 1px solid var(--lg-border, var(--glass-border));
}
.bio-modal-title { font-weight: 700; font-size: 0.95rem; color: var(--text); margin: 4px 6px 12px; }
.bio-modal-list { display: flex; flex-direction: column; gap: 4px; }
.bio-modal-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.88rem;
  color: var(--text); cursor: pointer; text-align: left;
  background: transparent; border: none; border-radius: 10px; padding: 11px 13px;
  transition: background 0.15s ease;
}
.bio-modal-item:hover { background: rgba(255,255,255,0.08); }
.bio-modal-item.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.bio-modal-item .fa-check { color: var(--accent); font-size: 0.8rem; }
.bio-modal-msg { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; margin: 0 6px 16px; }
.bio-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- danger zone (account deletion) ---- */
.bio-danger-sec { border: 1px solid rgba(255, 90, 90, 0.28); }
.bio-danger-sec .bio-sec-head i { color: #ff6b6b; }
.bio-danger-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; margin: 0 0 12px; }
.bio-danger-btn {
  background: #ff5a5a; color: #fff; border: none;
}
.bio-danger-btn:hover:not(:disabled) { background: #ff4040; }
.bio-danger-btn:disabled { opacity: 0.6; cursor: default; }

/* ---- liquid glass card: the SAME treatment as the navbar (.liquid-glass) ----
   Uses the shared #lg-distortion SVG filter (injected by liquidglass.js) and the
   scoped --lg-glass-blur var, driven by the editor's glass blur/distortion sliders. */
.bio-root.liquidglass .bio-card {
  /* identical base tint to the site's .liquid-glass (not the user's card color) */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00) 55%),
    rgba(8,10,14,0.24);
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(8px) saturate(200%);
  backdrop-filter: blur(8px) saturate(200%);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.42),
    inset 0 1px 1px rgba(255,255,255,0.40),
    inset 0 -1px 1px rgba(255,255,255,0.08),
    inset 1px 0 1px rgba(255,255,255,0.06),
    inset -1px 0 1px rgba(255,255,255,0.06);
  isolation: isolate;
}
@supports ((backdrop-filter: url("#x")) or (-webkit-backdrop-filter: url("#x"))) {
  .bio-root.liquidglass .bio-card {
    -webkit-backdrop-filter: blur(var(--lg-glass-blur, 3px)) saturate(185%) brightness(1.05) url("#lg-distortion");
    backdrop-filter: blur(var(--lg-glass-blur, 3px)) saturate(185%) brightness(1.05) url("#lg-distortion");
  }
}
.bio-root.liquidglass .bio-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 30%),
    radial-gradient(120% 80% at 28% 0%, rgba(255,255,255,0.06), transparent 55%);
}

/* ---- lanyard discord presence (public card) ---- */
.bio-lanyard {
  width: 100%;
  border-radius: 14px; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bio-lanyard-row { display: flex; align-items: center; gap: 10px; }
.bio-lanyard-av {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
}
.bio-lanyard-info { min-width: 0; text-align: left; }
.bio-lanyard-name { font-weight: 700; font-size: 0.9rem; }
.bio-lanyard-status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: color-mix(in srgb, var(--b-text) 65%, transparent); }
.bio-lanyard-act { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: color-mix(in srgb, var(--b-text) 82%, transparent); margin-top: 2px; }
.bio-lanyard-act i { font-size: 0.7rem; opacity: 0.8; }
.bio-status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #747f8d; flex: 0 0 auto; }
.bio-status-online { background: #3ba55d; }
.bio-status-idle { background: #faa81a; }
.bio-status-dnd { background: #ed4245; }
.bio-status-offline { background: #747f8d; }

/* ---- editor: help text + views count ---- */
.bio-help { font-size: 0.74rem; color: var(--text-muted); line-height: 1.4; margin-top: 4px; }
.bio-help a { color: var(--accent); }
.bio-views-count { font-size: 0.85rem; color: var(--text); font-weight: 600; flex: 1; }

