/* Configurações Globais e Variáveis de Design */
:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-purple: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.4);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#app-root {
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: start;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

#bio-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-container {
    width: 100%;
    max-width: 480px;
    padding: 40px 24px;
    text-align: center;
}

/* Header do Perfil */
.profile-header {
    margin-bottom: 35px;
}

@media (min-width: 640px) {
    .profile-header {
        margin-bottom: 28px;
    }
}

.avatar-wrapper {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0f172a;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    color: white;
}

.profile-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-header p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Botões de Links */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-btn {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-radius: 16px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Efeito Premium com Glow Roxo */
.link-btn.premium {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.link-btn.premium:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-title {
    font-size: 15px;
    font-weight: 600;
}

.btn-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.badge-premium {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    padding: 4px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Interface do Bottom Sheet NATIVO */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: all 0.3s ease;
}

.backdrop.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 480px;
    background: #151727;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    padding: 20px;
    z-index: 999;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet.active {
    transform: translate(-50%, 0);
}

.sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.sheet-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sheet-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Área Interna das Coletas (Checkout / Chat) */
.pix-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.pix-price {
    font-size: 28px;
    font-weight: 700;
    color: #22c55e;
    display: block;
    margin-bottom: 16px;
}

#pix-input {
    width: 100%;
    background: #0f111a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.action-btn {
    width: 100%;
    background: var(--text-main);
    color: #0f172a;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #e2e8f0;
}

/* Mock de Chat dentro da Sheet */
.chat-mock {
    background: #0f111a;
    height: 120px;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.chat-bubble.received {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 14px 14px 14px 0;
    font-size: 13px;
    max-width: 85%;
    line-height: 1.4;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
}

.chat-input-wrapper input {
    flex: 1;
    background: #0f111a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    color: var(--text-main);
}

.send-btn {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}