/* ==========================================================================
   Public bio page ("link in bio"). Theme values are injected as CSS variables:
   --bio-bg --bio-text(-rgb) --bio-btn(-rgb) --bio-btn-text --bio-radius --bio-card-radius
   --bio-card --bio-card-border --bio-font --bio-avatar --bio-overlay
   Body classes: style-(filled|outline|soft|glass|hard) shape-* shadow-(none|soft|hard|glow) avatar-(circle|rounded|square)
   Each block is wrapped in .bio-block.bio-b-<type>#block-<id> (handy for custom CSS)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body.bio-body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--bio-text); font-family: var(--bio-font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; background: var(--bio-bg-color, #fff);
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
.bio-bg { position: fixed; inset: 0; z-index: -2; background: var(--bio-bg); }
.bio-overlay { position: fixed; inset: 0; z-index: -1; background: var(--bio-overlay); }
.bio-muted { color: rgba(var(--bio-text-rgb), .72); }
.small { font-size: .85rem; }

/* ------------------------------------------------------------------ layout */
.bio-wrap { position: relative; max-width: 620px; margin: 0 auto; padding: 56px 20px 28px; padding-top: max(56px, env(safe-area-inset-top)); }
.bio-header { text-align: center; margin-bottom: 22px; animation: bio-in .5s ease both; }
.bio-avatar {
  width: var(--bio-avatar, 96px); height: var(--bio-avatar, 96px); object-fit: cover; display: block; margin: 0 auto 16px;
  border-radius: 50%; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); border: 3px solid rgba(255, 255, 255, .55);
  background: rgba(var(--bio-text-rgb), .12);
}
.avatar-rounded .bio-avatar { border-radius: 24%; }
.avatar-square .bio-avatar { border-radius: 8px; }
.bio-avatar-initials { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(var(--bio-avatar, 96px) * .36); letter-spacing: .02em; }
.bio-avatar-sm { --bio-avatar: 72px; }
.bio-name { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.01em; line-height: 1.25; display: inline-flex; align-items: center; gap: .35rem; justify-content: center; flex-wrap: wrap; }
.bio-verified { color: #3b82f6; font-size: 1.05rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .15)); }
.text-light-mode .bio-verified { color: #60a5fa; }
.bio-description { margin: 8px auto 0; max-width: 460px; color: rgba(var(--bio-text-rgb), .82); font-size: .98rem; }

/* ------------------------------------------------------------------ socials */
.bio-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; animation: bio-in .5s .05s ease both; }
.bio-blocks + .bio-socials { margin: 28px 0 8px; }
.bio-social {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--bio-text); text-decoration: none; transition: transform .18s ease, background .18s ease;
}
.bio-social:hover { transform: translateY(-3px) scale(1.06); background: rgba(var(--bio-text-rgb), .1); }

/* ------------------------------------------------------------------ blocks */
.bio-blocks { display: flex; flex-direction: column; gap: 14px; }
.bio-block { position: relative; animation: bio-in .45s calc(.06s + var(--i, 0) * .04s) ease both; }
.bio-block.bio-scheduled { opacity: .55; outline: 2px dashed rgba(var(--bio-text-rgb), .35); outline-offset: 4px; border-radius: var(--bio-card-radius); }
.bio-tag { position: absolute; top: -10px; right: 10px; z-index: 3; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #111827; color: #fff; }
@keyframes bio-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* buttons ------------------------------------------------------------- */
.bio-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px;
  padding: 12px 60px; border-radius: var(--bio-radius); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3;
  background: var(--bio-btn); color: var(--bio-btn-text); border: 2px solid var(--bio-btn); cursor: pointer; font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; text-align: center; -webkit-tap-highlight-color: transparent;
}
.bio-btn:hover { transform: translateY(-2px) scale(1.012); }
.bio-btn:active { transform: scale(.985); }
.bio-btn:focus-visible { outline: 3px solid rgba(var(--bio-text-rgb), .5); outline-offset: 3px; }
.bio-btn-text { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.bio-btn-text > i { margin-inline-end: 6px; }
.bio-btn-text:not(:has(small)) { flex-direction: row; justify-content: center; }
.bio-btn-title { overflow-wrap: anywhere; }
.bio-btn small { font-weight: 500; font-size: .78rem; opacity: .78; }
.bio-btn-thumb, .bio-btn-icon {
  position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border-radius: calc(min(var(--bio-radius), 26px) - 4px); object-fit: cover;
}
.shape-square .bio-btn-thumb { border-radius: 3px; }
.bio-btn-icon { display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.bio-btn-sm { min-height: 44px; padding: 8px 18px; font-size: .92rem; width: auto; display: inline-flex; }
.bio-btn-ghost { background: transparent !important; color: var(--bio-text) !important; border-color: rgba(var(--bio-text-rgb), .25) !important; box-shadow: none !important; backdrop-filter: none !important; }

.style-outline .bio-btn { background: transparent; color: var(--bio-btn); }
.style-outline .bio-btn:hover { background: var(--bio-btn); color: var(--bio-btn-text); }
.style-soft .bio-btn { background: rgba(var(--bio-btn-rgb), .16); color: var(--bio-btn); border-color: transparent; }
.style-soft .bio-btn:hover { background: rgba(var(--bio-btn-rgb), .26); }
.style-glass .bio-btn {
  background: rgba(255, 255, 255, .16); color: var(--bio-btn-text); border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.style-glass .bio-btn:hover { background: rgba(255, 255, 255, .26); }
.style-hard .bio-btn { border: 2px solid var(--bio-text); box-shadow: 4px 4px 0 var(--bio-text); }
.style-hard .bio-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bio-text); }
.style-hard .bio-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--bio-text); }
.shadow-soft .bio-btn { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.shadow-hard:not(.style-hard) .bio-btn { box-shadow: 4px 4px 0 rgba(0, 0, 0, .85); }
.shadow-glow .bio-btn { box-shadow: 0 0 18px rgba(var(--bio-btn-rgb), .45), inset 0 0 8px rgba(var(--bio-btn-rgb), .15); }

/* animations */
.anim-pulse { animation: bio-pulse 2s ease-in-out infinite; }
.anim-shake { animation: bio-shake 3.2s ease-in-out infinite; }
.anim-glow { animation: bio-glow 2.2s ease-in-out infinite; }
.anim-bounce { animation: bio-bounce 2.4s ease infinite; }
@keyframes bio-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes bio-shake { 0%, 84%, 100% { transform: rotate(0); } 86% { transform: rotate(-2.2deg); } 88% { transform: rotate(2.2deg); } 90% { transform: rotate(-1.6deg); } 92% { transform: rotate(1.4deg); } 94% { transform: rotate(0); } }
@keyframes bio-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--bio-btn-rgb), 0); } 50% { box-shadow: 0 0 24px 4px rgba(var(--bio-btn-rgb), .6); } }
@keyframes bio-bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } 60% { transform: translateY(-3px); } }

/* cards --------------------------------------------------------------- */
.bio-card {
  background: var(--bio-card); border: 1px solid var(--bio-card-border); border-radius: var(--bio-card-radius); padding: 18px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--bio-text);
}
.style-hard .bio-card { border: 2px solid var(--bio-text); box-shadow: 4px 4px 0 var(--bio-text); background: rgba(255, 255, 255, .9); }
.style-hard.text-light-mode .bio-card { background: rgba(0, 0, 0, .25); }
.bio-card-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.bio-card-title .bi { opacity: .85; margin-inline-end: 4px; }
.bio-card p { margin: 0 0 12px; font-size: .92rem; }

/* headings & text */
.bio-heading { margin: 10px 0 0; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.bio-heading.size-large { font-size: 1.5rem; }
.bio-heading.size-medium { font-size: 1.2rem; }
.bio-heading.size-small { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.bio-text { color: rgba(var(--bio-text-rgb), .88); }
.bio-text p { margin: 0 0 .6em; }
.bio-text p:last-child { margin-bottom: 0; }
.bio-text a { text-decoration: underline; text-underline-offset: 3px; }
.bio-text.size-small { font-size: .88rem; }
.bio-text.size-large { font-size: 1.15rem; }

/* images */
.bio-figure { margin: 0; }
.bio-figure img { display: block; width: 100%; height: auto; border-radius: var(--bio-card-radius); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .5); }
.bio-figure figcaption, .bio-gallery figcaption { font-size: .85rem; margin-top: 8px; text-align: center; color: rgba(var(--bio-text-rgb), .75); }
[data-lightbox] { cursor: zoom-in; }

.bio-gallery { position: relative; }
.bio-gallery-item { margin: 0; }
.bio-gallery-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--bio-card-radius); }
.ratio-portrait .bio-gallery-item img { aspect-ratio: 4 / 5; }
.ratio-landscape .bio-gallery-item img { aspect-ratio: 16 / 9; }
.layout-grid .bio-gallery-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.layout-carousel .bio-gallery-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; border-radius: var(--bio-card-radius); }
.layout-carousel .bio-gallery-track::-webkit-scrollbar { display: none; }
.layout-carousel .bio-gallery-item { flex: 0 0 100%; scroll-snap-align: center; }
.bio-car-btn {
  position: absolute; top: calc(50% - 18px); width: 36px; height: 36px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .85); color: #111; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); cursor: pointer; z-index: 2; transition: opacity .2s;
}
.bio-car-btn.prev { left: 10px; }
.bio-car-btn.next { right: 10px; }
.bio-car-btn[disabled] { opacity: 0; pointer-events: none; }
.bio-car-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.bio-car-dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(var(--bio-text-rgb), .3); transition: all .2s; }
.bio-car-dots span.active { width: 20px; background: var(--bio-text); }

/* divider / spacer */
.bio-divider { border: 0; margin: 6px 12%; border-top: 2px solid rgba(var(--bio-text-rgb), .28); }
.bio-divider.style-dashed { border-top-style: dashed; }
.bio-divider.style-dotted { border-top-style: dotted; border-top-width: 3px; }
.bio-divider.style-double { border-top: 4px double rgba(var(--bio-text-rgb), .35); }
.bio-divider.style-fade { border: 0; height: 2px; margin: 6px 0; background: linear-gradient(90deg, transparent, rgba(var(--bio-text-rgb), .45), transparent); }

/* embeds */
.bio-embed { position: relative; width: 100%; border-radius: var(--bio-card-radius); overflow: hidden; background: rgba(0, 0, 0, .2); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .55); }
.bio-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bio-embed.vertical { max-width: 340px; margin: 0 auto; }
.bio-embed-audio { background: transparent; border-radius: 14px; }
.bio-tweet { display: flex; justify-content: center; }
.bio-tweet .twitter-tweet { margin: 0 !important; }
.bio-tweet blockquote.twitter-tweet { background: var(--bio-card); border: 1px solid var(--bio-card-border); padding: 16px; border-radius: var(--bio-card-radius); width: 100%; }

/* forms */
.bio-field { margin-bottom: 10px; }
.bio-input {
  width: 100%; font: inherit; font-size: .95rem; color: var(--bio-text); padding: 12px 14px; border-radius: min(var(--bio-radius), 14px);
  background: rgba(var(--bio-text-rgb), .07); border: 1px solid rgba(var(--bio-text-rgb), .18); outline: none; transition: border-color .15s, box-shadow .15s;
}
.text-dark-mode .bio-input { background: rgba(255, 255, 255, .75); }
.bio-input::placeholder { color: rgba(var(--bio-text-rgb), .55); }
.bio-input:focus { border-color: rgba(var(--bio-text-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--bio-text-rgb), .12); }
textarea.bio-input { resize: vertical; min-height: 96px; }
.bio-inline-form { display: flex; gap: 8px; }
.bio-inline-form .bio-input { flex: 1; min-width: 0; }
.bio-inline-form .bio-btn { width: auto; min-height: 48px; padding: 8px 20px; flex-shrink: 0; }
.bio-form .bio-btn { min-height: 50px; padding: 10px 20px; }
.bio-hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.bio-alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font-size: .9rem; margin-top: 10px; }
.bio-alert-success { background: rgba(34, 197, 94, .16); color: inherit; border: 1px solid rgba(34, 197, 94, .35); }
.bio-alert-error { background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .35); }
.bio-alert .bi-check-circle-fill { color: #22c55e; }
.bio-alert .bi-exclamation-circle { color: #ef4444; }
.bio-form.is-loading { opacity: .65; pointer-events: none; }
@media (max-width: 400px) { .bio-inline-form { flex-direction: column; } .bio-inline-form .bio-btn { width: 100%; } }

/* location / product / event / testimonial / faq / rss / countdown */
.bio-location-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.bio-location-text { display: flex; flex-direction: column; font-size: .93rem; }
.bio-icon-circle { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--bio-text-rgb), .1); font-size: 1.15rem; }
.bio-location-map { margin-bottom: 14px; box-shadow: none; }

.bio-product { padding: 0; overflow: hidden; }
.bio-product-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bio-product-body { padding: 16px 18px 18px; }
.bio-product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bio-price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: rgba(var(--bio-text-rgb), .1); }

.bio-event { display: flex; gap: 16px; align-items: flex-start; }
.bio-event.is-past { opacity: .6; }
.bio-event-date { flex-shrink: 0; width: 60px; text-align: center; border-radius: 14px; overflow: hidden; background: rgba(var(--bio-text-rgb), .08); border: 1px solid rgba(var(--bio-text-rgb), .14); }
.bio-event-date span { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 0; background: var(--bio-text); color: var(--bio-bg-color); }
.bio-event-date b { display: block; font-size: 1.5rem; padding: 4px 0 6px; }
.bio-event-body { min-width: 0; flex: 1; }
.bio-event-body .small { display: flex; gap: 6px; align-items: baseline; margin-top: 2px; }
.bio-event-desc { margin-top: 8px !important; }
.bio-event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.bio-testimonial { margin: 0; position: relative; padding: 22px 20px 18px; }
.bio-quote-mark { position: absolute; top: 6px; inset-inline-end: 14px; font-size: 2.6rem; opacity: .15; }
.bio-stars { color: #f59e0b; font-size: .9rem; letter-spacing: 2px; margin-bottom: 8px; }
.bio-testimonial blockquote { margin: 0 0 14px; font-size: 1rem; font-style: italic; line-height: 1.55; }
.bio-testimonial figcaption { display: flex; align-items: center; gap: 10px; }
.bio-testimonial figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.bio-testimonial figcaption span { display: flex; flex-direction: column; line-height: 1.25; }

.bio-faq { display: flex; flex-direction: column; gap: 8px; }
.bio-faq .bio-heading { margin: 4px 0 4px; text-align: center; }
.bio-faq-item { padding: 0; }
.bio-faq-item summary { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 600; }
.bio-faq-item summary::-webkit-details-marker { display: none; }
.bio-faq-item summary .bi { transition: transform .2s; flex-shrink: 0; }
.bio-faq-item[open] summary .bi { transform: rotate(45deg); }
.bio-faq-answer { padding: 0 18px 16px; font-size: .93rem; color: rgba(var(--bio-text-rgb), .8); }

.bio-rss { padding: 14px; }
.bio-rss .bio-card-title { padding: 4px 6px 8px; }
.bio-rss-item { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; text-decoration: none; transition: background .15s; }
.bio-rss-item + .bio-rss-item { border-top: 1px solid rgba(var(--bio-text-rgb), .1); }
.bio-rss-item:hover { background: rgba(var(--bio-text-rgb), .07); }
.bio-rss-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.bio-rss-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bio-rss-text strong { font-size: .93rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bio-rss-text small { font-size: .78rem; }

.bio-countdown { text-align: center; }
.bio-countdown-title { font-weight: 700; margin-bottom: 12px; }
.bio-countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bio-countdown-grid div { padding: 12px 4px; border-radius: 14px; background: rgba(var(--bio-text-rgb), .08); }
.bio-countdown-grid b { display: block; font-size: 1.65rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bio-countdown-grid span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.bio-countdown-end { font-weight: 700; font-size: 1.1rem; padding: 8px 0; }
.bio-countdown.is-done .bio-countdown-grid { display: none; }

.bio-html { overflow-wrap: anywhere; }
.bio-html iframe { max-width: 100%; border: 0; border-radius: 12px; }
.bio-html img { height: auto; }

.bio-paypal .bio-btn-icon { color: inherit; }

/* placeholders (editor preview only) */
.bio-placeholder { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--bio-card-radius); border: 2px dashed rgba(var(--bio-text-rgb), .35); background: rgba(var(--bio-text-rgb), .05); }
.bio-placeholder > .bi { font-size: 1.4rem; opacity: .7; }
.bio-placeholder div { display: flex; flex-direction: column; line-height: 1.3; }
.bio-placeholder span { font-size: .85rem; opacity: .7; }
.bio-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px; border: 2px dashed rgba(var(--bio-text-rgb), .3); border-radius: var(--bio-card-radius); opacity: .75; font-size: .92rem; }
.bio-empty .bi { font-size: 1.8rem; }

/* ------------------------------------------------------------------ footer & share */
.bio-footer { text-align: center; margin-top: 40px; padding-bottom: env(safe-area-inset-bottom); }
.bio-footer a { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: rgba(var(--bio-text-rgb), .08); color: rgba(var(--bio-text-rgb), .78); transition: background .15s; }
.bio-footer a:hover { background: rgba(var(--bio-text-rgb), .16); }

.bio-share-btn {
  position: absolute; top: 14px; inset-inline-end: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(var(--bio-text-rgb), .16);
  background: rgba(var(--bio-text-rgb), .1); color: var(--bio-text); display: flex; align-items: center; justify-content: center; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 1rem; transition: transform .15s, background .15s; z-index: 5;
}
.bio-share-btn:hover { transform: scale(1.06); background: rgba(var(--bio-text-rgb), .18); }

.bio-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.bio-sheet[hidden] { display: none; }
.bio-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: bio-fade .2s ease; }
.bio-sheet-panel {
  position: relative; width: 100%; max-width: 440px; background: #fff; color: #111827; border-radius: 24px 24px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  animation: bio-up .25s ease; font-family: var(--bio-font); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
}
@media (min-width: 640px) { .bio-sheet { align-items: center; } .bio-sheet-panel { border-radius: 24px; } }
@keyframes bio-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bio-fade { from { opacity: 0; } to { opacity: 1; } }
.bio-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 1.05rem; }
.bio-sheet-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f3f4f6; cursor: pointer; color: #111827; }
.bio-sheet-profile { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: #f3f4f6; margin-bottom: 16px; }
.bio-sheet-profile img, .bio-sheet-profile .bio-avatar-initials { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e5e7eb; font-size: 1rem; }
.bio-sheet-profile .fw { font-weight: 700; }
.bio-sheet-url { font-size: .82rem; color: #6b7280; word-break: break-all; }
.bio-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.bio-share-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; color: #374151; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 4px 0; }
.bio-share-item span { width: 50px; height: 50px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: transform .15s; }
.bio-share-item:hover span { transform: scale(1.08); }
.bio-share-qr { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 16px; font-size: .85rem; color: #6b7280; }
.bio-share-qr img { width: 84px; height: 84px; border-radius: 8px; background: #fff; }
.bio-native-share { margin-top: 14px; min-height: 48px; background: #111827 !important; color: #fff !important; border-color: #111827 !important; box-shadow: none !important; transform: none !important; animation: none !important; }

.bio-lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; padding: 20px; animation: bio-fade .2s; cursor: zoom-out; }
.bio-lightbox[hidden] { display: none; }
.bio-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.bio-lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.1rem; cursor: pointer; }

.bio-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; font-family: var(--bio-font); }
.bio-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ gates */
.bio-gate { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px; }
.bio-gate-card { width: 100%; max-width: 400px; text-align: center; padding: 30px 24px; }
.bio-gate-card .bio-avatar { margin-bottom: 10px; }
.bio-gate-title { font-size: 1.3rem; margin: 0 0 6px; font-weight: 800; }
.bio-gate-sub { font-size: 1.05rem; margin: 0 0 6px; }
.bio-gate-icon { width: 56px; height: 56px; margin: 12px auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: rgba(var(--bio-text-rgb), .1); }
.bio-gate-icon.warn { color: #f59e0b; background: rgba(245, 158, 11, .15); }
.bio-gate-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.bio-gate-form .bio-field { margin: 0; }
.bio-gate-form .bio-alert { margin: 0; }
.bio-link-muted { font-size: .88rem; color: rgba(var(--bio-text-rgb), .7); padding: 6px; }
.bio-gate .bio-footer { margin-top: 24px; }

/* preview mode */
.is-preview .bio-wrap { padding-top: 48px; }

[dir="rtl"] .bio-car-btn.prev { left: auto; right: 10px; transform: scaleX(-1); }
[dir="rtl"] .bio-car-btn.next { right: auto; left: 10px; transform: scaleX(-1); }

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