* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, #1a1a1a, #000);
    color: #f5f5f5;
    display: flex;
    justify-content: center;
    min-height: 100vh; /* Garante altura total */
}

/* SCROLLBAR PERSONALIZADA (LUXO) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8a6e2f, #d4af37, #8a6e2f);
    border-radius: 4px;
}

.container {
    max-width: 420px;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 10; /* Z-index menor que o admin-overlay */
}

/* FOTO */
.hero img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.8), 0 0 0 6px rgba(212, 175, 55, 0.3), 0 0 50px rgba(212,175,55,0.4);
    display: block;
    margin: 20px auto;
    animation: float-pulse 6s ease-in-out infinite; /* Animação mais suave e premium */
}

/* INFO */
.info {
    text-align: center;
}

.info h1 {
    font-size: 1.3rem;
    font-weight: 700;
    /* Efeito Ouro Metálico no Texto */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.info h2 {
    font-size: 0.75rem;
    color: #c9a13a;
    margin-top: 6px;
}

.welcome {
    margin-top: 14px;
}

/* BOTÕES */
.links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Botão Padrão (Estilo Glass/Dark) */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    /* Borda sutil e brilho interno para profundidade */
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); 
    padding: 16px;
    border-radius: 12px;
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(212, 175, 55, 0.2);
}

/* BADGES (ENGAGEMENT) */
.link-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d4af37;
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 5;
    text-transform: uppercase;
    animation: bounce-badge 2s infinite;
}

@keyframes bounce-badge {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-4px);}
    60% {transform: translateY(-2px);}
}

/* Acessibilidade: Foco visível para navegação por teclado */
.btn:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Efeito Shimmer (Brilho Passante) */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0s;
    pointer-events: none;
}

.btn:hover::after {
    left: 150%;
    transition: 0.6s ease-in-out;
}

/* Ícones Dourados nos Botões */
.btn i {
    background: linear-gradient(180deg, #fff 20%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    font-size: 1.1rem;
}

/* Botão Destaque (Ouro Sólido - Foco em Vendas) */
.btn-highlight {
    background: linear-gradient(135deg, #d4af37 0%, #f5e08e 50%, #d4af37 100%);
    background-size: 200% auto;
    color: #000;
    font-weight: 700;
    border: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    animation: shine 3s infinite linear;
}

.btn-highlight:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

/* Reset do ícone no botão destaque (para ficar preto) */
.btn-highlight i {
    background: none;
    -webkit-text-fill-color: #000;
    filter: none;
}

/* Animação de Brilho no Destaque */
@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* GALERIA DE DESTAQUES (ENGAGEMENT) */
.gallery-container {
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
}

.gallery-scroll {
    display: flex;
    justify-content: center; /* Centraliza os ícones */
    gap: 24px; /* Aumenta o espaçamento */
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none; /* Permite centralização com poucos itens */
}

/* Esconde scrollbar mas mantém funcionalidade */
.gallery-scroll::-webkit-scrollbar {
    height: 4px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 100px; /* Tamanho fixo estilo Stories */
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
    cursor: pointer;
    /* Animação de flutuação para replicar o efeito da foto de perfil */
    animation: gallery-float 6s ease-in-out infinite;
}

.gallery-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Circular estilo Instagram */
    border: 2px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 2rem;
    transition: all 0.3s ease;
    /* Animação de brilho para replicar o efeito da foto de perfil */
    animation: gallery-glow 6s ease-in-out infinite;
}

.gallery-item:hover .gallery-icon {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: scale(1.05); /* Mantém o efeito de escala no hover */
    color: #fff;
}

.gallery-title {
    margin-top: 8px;
    font-size: 0.7rem;
    color: #ccc;
    text-align: center;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SOBRE */
.about {
    margin-top: 30px;
    padding: 24px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.about-logo {
    width: 100px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.about h3 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.about p {
    font-size: 0.85rem;
    color: #d1d1d1;
    line-height: 1.6;
}

/* FOOTER */
.footer-brand {
    margin-top: 40px;
    padding: 26px 16px 22px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(212,175,55,0.1));
    border-top: 1px solid rgba(212,175,55,0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.footer-brand.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 600;
}

.brand-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-desc {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 6px;
}

.footer-social {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.footer-social a {
    color: #d4af37;
    font-size: 1.3rem;
}

.footer-links {
    margin-top: 14px;
    font-size: 0.7rem;
}

.footer-links a {
    color: #aaa;
    margin: 0 8px;
    text-decoration: none;
}

.footer-divider {
    margin: 18px auto;
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
}

.footer-copy {
    font-size: 0.7rem;
    color: #888;
}

/* ESTILOS SPA & ADMIN (DASHBOARD PREMIUM) */
.legal-content-wrapper {
    animation: fadeIn 0.5s ease;
}

/* O Painel Admin agora é um Overlay Full Screen */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a; /* Fundo sólido escuro */
    background-image: radial-gradient(circle at top, #1a1a1a, #000);
    z-index: 2000; /* Acima de tudo */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(20, 20, 20, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-brand i {
    color: #d4af37;
}

.btn-logout {
    background: rgba(255, 50, 50, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 50, 50, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    background: rgba(255, 50, 50, 0.2);
    transform: translateY(-1px);
}

.admin-content {
    flex: 1;
    padding: 20px;
    max-width: 1400px; /* Permite largura maior para gráficos */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.legal-content {
    text-align: left;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #d1d1d1;
    margin-top: 20px;
}

.legal-content h2 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
}

/* ANALYTICS IFRAME */
.analytics-container {
    flex: 1; /* Ocupa o espaço restante verticalmente */
    min-height: 500px; /* Altura mínima garantida */
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

.analytics-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.analytics-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SHARE BUTTON */
.btn-share {
    margin-top: 15px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* Garante que o conteúdo interno não quebre feio */
}

.btn-share:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

.btn-vcard {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-left: 8px;
    /* Melhoria para telas muito pequenas */
    white-space: nowrap; 
}

/* Ajuste para telas muito estreitas (ex: Galaxy Fold) */
@media (max-width: 360px) {
    .btn-vcard { margin-left: 0; margin-top: 10px; }
}
.btn-vcard:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-2px);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #d4af37;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h3 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.modal-content p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-social {
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
    font-size: 1rem;
}

.btn-social:hover {
    transform: translateY(-2px);
}

.whatsapp { background: #25D366; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.telegram { background: #0088cc; box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3); }

.btn-close {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

/* BACK TO TOP */
.btn-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #d4af37;
    color: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.btn-back-to-top:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* WHATSAPP MODAL */
.whatsapp-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 12px;
    color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    outline: none;
}

.whatsapp-textarea:focus {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.1);
}

.btn-confirm {
    background: #25D366; /* Verde WhatsApp */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* --- MELHORIAS VISUAIS (PREMIUM) --- */

/* 1. Partículas de Fundo (Gold Dust) */
.background-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* Cria pontos de luz sutis simulando poeira dourada */
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 0%, #000 100%), /* Vinheta */
        radial-gradient(2px 2px at 20px 30px, rgba(212, 175, 55, 0.4), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, rgba(212, 175, 55, 0.4), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.2), rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: dust 20s linear infinite;
}

@keyframes dust {
    from { background-position: 0 0; }
    to { background-position: 0 200px; }
}

/* 2. Flutuação Premium da Foto */
@keyframes float-pulse {
    0% { box-shadow: 0 0 30px rgba(212,175,55,0.4); transform: translateY(0); }
    50% { box-shadow: 0 0 50px rgba(212,175,55,0.7); transform: translateY(-5px); }
    100% { box-shadow: 0 0 30px rgba(212,175,55,0.4); transform: translateY(0); }
}

/* 3. Entrada dos Botões (Slide In) */
.slide-in {
    opacity: 0;
    animation: slideIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* TOAST NOTIFICATION (FEEDBACK VISUAL) */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #d4af37;
    color: #f5f5f5;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    font-size: 0.9rem;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.toast i {
    color: #25D366; /* Verde sucesso */
}

/* Animações para os ícones da galeria (replicando float-pulse) */
@keyframes gallery-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes gallery-glow {
    0% { box-shadow: 0 0 30px rgba(212,175,55,0.3); }
    50% { box-shadow: 0 0 50px rgba(212,175,55,0.6); }
    100% { box-shadow: 0 0 30px rgba(212,175,55,0.3); }
}