:root {
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --btn-bg: #ffffff;
    --btn-border: #e2e8f0;
    --btn-shadow: rgba(0, 0, 0, 0.05);
    --accent: #10b981;
    --accent-hover: #059669;
}

.dark-theme {
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --btn-bg: #1e293b;
    --btn-border: #334155;
    --btn-shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;

    /* A CORREÇÃO: Esconde barras de rolagem indesejadas */
    overflow-x: hidden;
}

/* O Fundo Animado agora fica preso à tela (fixed) e não estica a página para baixo */
body::before {
    content: '';
    position: fixed;
    /* Alterado de absolute para fixed */
    top: -50%;
    left: -50%;
    width: 200vw;
    /* Usa a largura da tela */
    height: 200vh;
    /* Usa a altura da tela */
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 30%);
    z-index: -1;
    animation: bgDrift 20s infinite linear;
    pointer-events: none;
    /* Garante que o fundo não bloqueie os cliques */
}

@keyframes bgDrift {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.profile-pic {
    /* Mantenha seus estilos existentes de tamanho e borda aqui */
    display: flex; /* Para centralizar */
    align-items: center; /* Centralizar verticalmente */
    justify-content: center; /* Centralizar horizontalmente */
    overflow: hidden; /* Se a logo for maior que a div */
}

.profile-pic img {
    max-width:50%; /* Garantir que a logo não extrapole a div */
    max-height: 50%;
    object-fit: contain; /* Manter proporção e caber dentro da div */
    transition: opacity 0.3s ease; /* Adiciona uma transição suave, se desejar */
}

/* Esconde a logo escura por padrão */
.logo-dark {
    display: none;
}

/* Quando o modo noturno estiver ativo (ex: class .dark-mode no body) */
body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block; /* Mostra a logo escura no modo noturno */
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.top-controls {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.control-btn {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--btn-shadow);
    transition: all 0.3s;
}

.control-btn:hover {
    transform: translateY(-2px);
    color: var(--accent);
    border-color: var(--accent);
}

.links-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px var(--btn-shadow);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.link-item i {
    font-size: 20px;
    margin-right: 15px;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

.link-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
}

.link-featured {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    border: none;
}

.link-featured i {
    color: #ffffff;
}

.link-arrow {
    margin-left: auto;
    opacity: 0.3;
    font-size: 14px !important;
    color: inherit !important;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-btn {
    color: var(--text-muted);
    font-size: 24px;
    transition: all 0.3s;
}

.social-btn:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}


/* ========================================================
   WIDGET WHATSAPP (INTEGRADO NA LISTA)
======================================================== */
.wpp-trigger {
    cursor: pointer;
    text-align: left;
    /* Garante que o texto fique alinhado como os links */
}

.whatsapp-menu {
    width: 100%;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: -5px;
    /* Puxa para perto do botão ativador */

    /* Animação Inicial (Escondido e encolhido) */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Quando ativado pelo JavaScript */
.whatsapp-menu.active {
    max-height: 500px;
    /* Expande o menu */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-bottom: 15px;
    box-shadow: 0 10px 30px var(--btn-shadow);
}

.wa-header {
    background: #075E54;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.wa-header i.fa-whatsapp {
    font-size: 28px;
}

.wa-header-text h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.wa-header-text p {
    margin: 2px 0 0;
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.2;
}

.wa-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    opacity: 0.6;
    cursor: pointer;
    transition: 0.2s;
}

.wa-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.wa-body {
    padding: 10px;
    background-color: var(--bg-color);
    /* Usa a cor de fundo do tema */
}

.wa-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--btn-bg);
    border-radius: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 2px 5px var(--btn-shadow);
    transition: all 0.2s;
    border: 1px solid var(--btn-border);
}

.wa-item:last-child {
    margin-bottom: 0;
}

.wa-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.wa-avatar {
    width: 36px;
    height: 36px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.wa-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.wa-info span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* ========================================================
   WIDGET E-MAIL (INTEGRADO NA LISTA)
======================================================== */
.email-trigger {
    cursor: pointer;
    text-align: left;
}

.email-menu {
    width: 100%;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: -5px;

    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.email-menu.active {
    max-height: 600px;
    /* Aumentado um pouco para caber os 5 itens */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-bottom: 15px;
    box-shadow: 0 10px 30px var(--btn-shadow);
}

.em-header {
    background: #075E54;
    /* Azul corporativo para destacar do WhatsApp */
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.em-header i.fa-envelope {
    font-size: 28px;
}

.em-header-text h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.em-header-text p {
    margin: 2px 0 0;
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.2;
}

.em-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    opacity: 0.6;
    cursor: pointer;
    transition: 0.2s;
}

.em-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.em-body {
    padding: 10px;
    background-color: var(--bg-color);
}

.em-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--btn-bg);
    border-radius: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 2px 5px var(--btn-shadow);
    transition: all 0.2s;
    border: 1px solid var(--btn-border);
}

.em-item:last-child {
    margin-bottom: 0;
}

.em-item:hover {
    transform: translateY(-2px);
    background: #075E54;
}

/* Azul no hover */

.em-avatar {
    width: 36px;
    height: 36px;
    background: #075E54;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.em-info {
    overflow: hidden;
    /* Evita que o e-mail vaze para fora */
}

.em-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.em-info span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
    word-break: break-all;
    /* Quebra o texto se o e-mail for muito longo */
}

/* ========================================================
   MENSAGEM DE BOAS-VINDAS (TOAST NOTIFICATION)
======================================================== */
.welcome-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    /* Fica no canto superior direito no PC */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 4px solid var(--accent, #10b981);
    /* Detalhe verde na lateral */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999999;
    /* Fica acima de tudo */

    /* Animação Inicial: Escondido fora da tela */
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Classe que o JS vai adicionar para mostrar a mensagem */
.welcome-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent, #10b981);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-text {
    display: flex;
    flex-direction: column;
}

.toast-text strong {
    font-size: 14px;
    color: var(--text-main, #1e293b);
    margin-bottom: 2px;
}

.toast-text span {
    font-size: 12px;
    color: var(--text-muted, #64748b);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.5;
    transition: 0.2s;
}

.toast-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* MODO NOTURNO */
body.dark-mode .welcome-toast,
body.dark-theme .welcome-toast {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .toast-text strong,
body.dark-theme .toast-text strong {
    color: #f8fafc;
}

body.dark-mode .toast-text span,
body.dark-theme .toast-text span {
    color: #94a3b8;
}

/* AJUSTE PARA CELULAR (Mobile) */
@media (max-width: 600px) {
    .welcome-toast {
        top: 20px;
        right: 50%;
        /* Joga pro meio da tela */
        width: 90%;
        max-width: 350px;

        /* Muda a animação para vir de CIMA para BAIXO no celular */
        transform: translate(50%, -150%);
    }

    .welcome-toast.show {
        transform: translate(50%, 0);
    }
}

/* ========================================================
   SELETOR DE IDIOMAS (DROPDOWN)
======================================================== */
.lang-dropdown-container {
    position: relative;
    display: inline-block;
}

.lang-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--btn-shadow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    min-width: 90px;
    
    /* Animação Inicial (Escondido) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu button {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s;
    border-bottom: 1px solid var(--btn-border);
}

.lang-menu button:last-child {
    border-bottom: none;
}

.lang-menu button:hover {
    background: rgba(16, 185, 129, 0.1); /* Fica esverdeado no hover */
    color: var(--accent);
    padding-left: 18px; /* Dá um leve empurrãozinho pro lado */
}