@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --coral: #f06b8a;
    --lilas: #9b7fd4;
    --menta: #5bbfa0;
    --tinta: #2b2430;
    --papel: #fffdfa;
    --linha: #ece7e2;
    --texto-suave: #8a8290;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--papel);
    color: var(--tinta);
}

.titulo-display {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
}

.bio-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(240,107,138,0.10), transparent 42%),
        radial-gradient(circle at 88% 14%, rgba(155,127,212,0.10), transparent 45%),
        radial-gradient(circle at 50% 92%, rgba(91,191,160,0.09), transparent 50%),
        var(--papel);
}

/* ---- Página de bio ---- */
.bio-wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 20px 40px;
}

.bio-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--coral), var(--lilas));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    object-fit: cover;
}

.bio-nome {
    font-size: 22px;
    text-align: center;
    margin: 0 0 4px;
}

.bio-sub {
    text-align: center;
    font-size: 13.5px;
    color: var(--texto-suave);
    margin: 0 0 28px;
}

.categoria-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--texto-suave);
    margin: 24px 0 10px 4px;
}

.categoria-eyebrow:first-of-type { margin-top: 0; }

.link-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-cartao {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid var(--linha);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--tinta);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-cartao:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -14px rgba(43, 36, 48, 0.35);
}

.link-destaque {
    border-color: transparent;
    box-shadow: 0 14px 28px -16px rgba(43, 36, 48, 0.4);
}
.link-destaque .link-titulo { font-weight: 700; }

.link-aba {
    position: absolute;
    top: 50%;
    left: -14px;
    width: 14px;
    height: 28px;
    border-radius: 4px 0 0 4px;
    transform: translateY(-50%);
}
.link-aba-dir {
    left: auto;
    right: -14px;
    border-radius: 0 4px 4px 0;
}

.link-icone {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.link-icone-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-titulo { font-weight: 600; font-size: 15px; flex: 1; }

.redes-lista {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.rede-icone {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.rede-icone:hover { transform: translateY(-2px); }

.rodape-nota {
    text-align: center;
    font-size: 11.5px;
    color: #b7afbc;
    margin-top: 18px;
}

/* ---- Painel ---- */
.painel-wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }

.painel-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.botao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.botao-primario { background: var(--tinta); color: #fff; }
.botao-fantasma { background: #fff; color: var(--texto-suave); border: 1.5px solid var(--linha); }
.botao-perigo { background: #fff0f0; color: #c0455c; border: 1.5px solid #f2c9d1; }

.linha-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid var(--linha);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.linha-icone {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.linha-info { flex: 1; min-width: 0; }
.linha-titulo { font-weight: 600; font-size: 14px; }
.linha-meta { font-size: 11.5px; color: var(--texto-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-acoes { display: flex; gap: 4px; }

.icone-botao {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--linha);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--texto-suave);
    text-decoration: none;
}

.icone-botao:hover { background: #f6f4f1; }

.cartao-formulario {
    background: #fff;
    border: 1.5px solid var(--linha);
    border-radius: 16px;
    padding: 22px;
    max-width: 480px;
}

.campo { margin-bottom: 16px; }
.campo label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--texto-suave);
    margin-bottom: 6px;
}

.campo input[type="text"],
.campo input[type="url"],
.campo select,
.campo input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--linha);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    outline: none;
}

.campo input:focus, .campo select:focus { border-color: var(--coral); }

.campo-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }

.icone-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}
.icone-opcao {
    aspect-ratio: 1 / 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1.5px solid var(--linha);
    background: #fff;
    border-radius: 10px;
    color: var(--tinta);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
}
.icone-opcao:hover { border-color: #00B2AD; transform: translateY(-1px); }
.icone-opcao.selecionado {
    border-color: #00B2AD;
    background: rgba(0, 178, 173, 0.12);
    color: #00838a;
}

.aviso {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}

.aviso-sucesso { background: #eaf7f1; color: #2f8563; }
.aviso-erro { background: #fdeeee; color: #c0455c; }

.tela-login {
    max-width: 360px;
    margin: 80px auto;
    padding: 0 20px;
}

/* ---- Compartilhar ---- */
.link-alvo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.link-alvo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
}
.link-destaque .link-alvo { color: #fff; }

.link-novo {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--menta);
    padding: 2px 7px;
    border-radius: 999px;
    transform: translateY(-1px);
}
.link-destaque .link-novo { background: rgba(255, 255, 255, 0.28); }

.link-share {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--texto-suave);
    transition: background 0.15s ease;
}
.link-share:hover { background: rgba(43, 36, 48, 0.06); }
.link-destaque .link-share { color: rgba(255, 255, 255, 0.85); }
.link-destaque .link-share:hover { background: rgba(255, 255, 255, 0.18); }

.bio-share {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 30;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--linha);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--tinta);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px -10px rgba(43, 36, 48, 0.4);
    transition: transform 0.15s ease;
}
.bio-share:hover { transform: translateY(-1px); }

.bio-painel {
    position: fixed;
    top: 14px;
    right: 62px;
    z-index: 30;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--linha);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--tinta);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px -10px rgba(43, 36, 48, 0.4);
    transition: transform 0.15s ease;
}
.bio-painel:hover { transform: translateY(-1px); }

.share-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(43, 36, 48, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.share-overlay.aberto { display: flex; }
.share-overlay.visivel { opacity: 1; }

.share-sheet {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 20px 20px 28px;
    box-shadow: 0 -10px 40px -12px rgba(43, 36, 48, 0.4);
    transform: translateY(100%);
    transition: transform 0.24s ease;
}
.share-overlay.visivel .share-sheet { transform: translateY(0); }

.share-grip {
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: var(--linha);
    margin: 0 auto 16px;
}

.share-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--texto-suave);
    cursor: pointer;
    border-radius: 8px;
}
.share-fechar:hover { background: #f2efec; }

.share-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.share-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--coral), var(--lilas));
    color: #fff;
}
.share-thumb img { width: 100%; height: 100%; object-fit: cover; }
.share-nome { font-weight: 700; font-size: 15px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-url { font-size: 12.5px; color: var(--texto-suave); margin: 2px 0 0; word-break: break-all; }

.share-qr { text-align: center; margin-bottom: 18px; }
.share-qr img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 1.5px solid var(--linha);
}
.share-qr a {
    display: inline-block;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--coral);
    font-weight: 600;
    text-decoration: none;
}

.share-acoes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.share-acao {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 4px;
    border: 1.5px solid var(--linha);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: var(--tinta);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.share-acao:hover { background: #faf8f6; border-color: #ddd6d0; }
.share-acao svg { width: 21px; height: 21px; }
.share-acao-nome { color: var(--texto-suave); }

.share-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(20px);
    background: var(--tinta);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 120;
}
.share-toast.visivel { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 520px) {
    .share-overlay { align-items: center; }
    .share-sheet {
        max-width: 360px;
        border-radius: 20px;
        transform: translateY(16px);
        box-shadow: 0 20px 50px -20px rgba(43, 36, 48, 0.5);
    }
    .share-overlay.visivel .share-sheet { transform: translateY(0); }
    .share-grip { display: none; }
}
