/* ceu.bio — página pública */
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--font); color: var(--text);
  background: linear-gradient(175deg, var(--bg) 0%, var(--bg2) 100%) fixed; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.ic { width: 22px; height: 22px; flex: none; }
.wrap { max-width: 580px; margin: 0 auto; padding: max(40px, env(safe-area-inset-top)) 18px 28px; position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.share { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); display: grid; place-items: center; backdrop-filter: blur(6px); }
.share .ic { width: 18px; height: 18px; }
.share:hover { background: color-mix(in srgb, var(--text) 20%, transparent); }

.head { text-align: center; margin-bottom: 26px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 14px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent), 0 12px 30px rgba(0,0,0,.25); background: var(--btn); }
.avatar.ph { display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: var(--btn-text); }
h1 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 6px; line-height: 1.25; }
.vbadge { width: 22px; height: 22px; color: var(--accent); flex: none; }
.bio { margin: 8px auto 0; max-width: 30em; white-space: pre-line; line-height: 1.5; font-size: .98rem; opacity: .88; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: transform .15s, background .15s; }
.socials a:hover { background: color-mix(in srgb, var(--text) 12%, transparent); transform: translateY(-2px); }
.socials .ic { width: 24px; height: 24px; }

.links { display: flex; flex-direction: column; gap: 12px; }
.lk {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; width: 100%;
  padding: 14px 56px; border: 2px solid var(--btn); background: var(--btn); color: var(--btn-text); font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center; line-height: 1.3; cursor: pointer; border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .12s ease, box-shadow .15s, filter .15s;
  animation: rise .45s ease both; animation-delay: calc(var(--i, 0) * 45ms);
  -webkit-tap-highlight-color: transparent;
}
.lk:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.lk:active { transform: scale(.98); }
.lk:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; }
.lt { overflow-wrap: anywhere; }
.lk.hl { background: var(--accent); border-color: var(--accent); color: var(--accent-text); animation: rise .45s ease both, nudge 4s ease-in-out 1.5s infinite; animation-delay: calc(var(--i, 0) * 45ms), 1.5s; }
.sec { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; text-align: center; margin: 14px 0 0; opacity: .8; animation: rise .45s ease both; animation-delay: calc(var(--i, 0) * 45ms); }

/* Estilos de botão */
.bs-pill .lk { border-radius: 999px; }
.bs-square .lk { border-radius: 0; }
.bs-outline .lk { background: transparent; color: var(--btn); box-shadow: none; }
.bs-outline .lk:hover { background: color-mix(in srgb, var(--btn) 12%, transparent); }
.bs-outline .lk.hl { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.bs-shadow .lk { border-radius: 10px; border-color: var(--text); box-shadow: 4px 4px 0 var(--text); }
.bs-shadow .lk:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--text); }
.bs-shadow .lk:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--text); }

.empty-note { text-align: center; opacity: .7; border: 2px dashed currentColor; border-radius: 16px; padding: 26px; }

.foot { margin-top: auto; padding-top: 40px; text-align: center; font-size: .82rem; }
.foot a { text-decoration: none; opacity: .75; display: inline-block; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.foot a:hover { opacity: 1; }
.foot span { color: var(--accent); }

.owner-note { background: #FEF0C7; color: #7A2E0E; text-align: center; font: 600 .85rem system-ui, sans-serif; padding: 8px; }

/* Folha do Pix */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.sheet.open { display: flex; }
.sheet-box { background: #fff; color: #0F1B2D; width: 100%; max-width: 440px; border-radius: 24px 24px 0 0; padding: 26px 22px max(22px, env(safe-area-inset-bottom)); text-align: center; position: relative; animation: up .25s ease; font-family: "Jakarta", system-ui, sans-serif; }
@media (min-width: 560px) { .sheet { align-items: center; } .sheet-box { border-radius: 24px; } }
.sheet-x { position: absolute; top: 12px; right: 12px; background: #F1F4F8; border: 0; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: #0F1B2D; }
.sheet-x .ic { width: 18px; height: 18px; }
.sheet h2 { margin: 0 0 4px; font-size: 1.2rem; }
.pix-to { margin: 0 0 14px; color: #5B6B80; font-size: .92rem; }
.pix-to b { color: #0F1B2D; }
.pix-qr { width: 220px; height: 220px; margin: 0 auto 16px; }
.pix-qr svg, .pix-qr img { width: 100%; height: 100%; display: block; }
.pix-copy { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 15px; font: inherit; font-weight: 700; font-size: 1rem; background: #32BCAD; color: #fff; cursor: pointer; }
.pix-copy .ic { width: 20px; height: 20px; }
.pix-copy.done { background: #157F4F; }
.pix-help { font-size: .84rem; color: #5B6B80; margin: 12px 0 4px; line-height: 1.45; }
.pix-key { font-size: .8rem; color: #8592A3; margin: 0; word-break: break-all; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #0F1B2D; color: #fff; padding: 10px 18px; border-radius: 999px; font: 600 .9rem "Jakarta", system-ui, sans-serif; opacity: 0; pointer-events: none; transition: all .25s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-1.2deg) scale(1.02); } 94% { transform: rotate(1.2deg) scale(1.02); } 97% { transform: rotate(-.6deg); } }
.is-preview .lk, .is-preview .sec { animation: none; }
.is-preview .lk.hl { animation: nudge 4s ease-in-out 1.5s infinite; }
@media (prefers-reduced-motion: reduce) { .lk, .sec, .lk.hl { animation: none !important; } }

/* Fundo liso / imagem */
body.bg-solid { background: var(--bg); }
body.bg-image { background: transparent; }
body.bg-image::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--bgimg) center / cover no-repeat; }
body.bg-image::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(0,0,0,var(--dim)); }
body.bg-image .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px var(--accent), 0 12px 30px rgba(0,0,0,.3); }
/* Formato da foto */
body.av-rounded .avatar { border-radius: 28px; }
body.av-square .avatar { border-radius: 6px; }
/* Botões sem ícone */
body.no-icons .lic { display: none; }
body.no-icons .lk { padding-left: 20px; padding-right: 20px; }
