/* --- CONFIGURAÇÕES DO GRID GERAL --- */
#icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px 0;
    max-width: 1300px;
    margin: 0 auto;
    perspective: 1000px; /* Base para profundidade das animações[cite: 1] */
}

/* --- TÍTULOS DE SEÇÃO --- */
.section-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.15));
}

/* --- ESTILO DOS CARDS (HYPE E AMIGOS - TILT 3D + SHINE) --- */
.profile-card {
    position: relative;
    overflow: hidden;
    background: rgba(12, 12, 12, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 24px 70px rgba(0, 0, 0, 0.22);
    /* Transição suave para o box-shadow e brilho */
    transition: box-shadow 0.4s ease !important;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Efeito Shine Dinâmico (Segue o Mouse)[cite: 1] */
.profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente radial que utiliza as variáveis --mouse-x e --mouse-y do seu JS */
    background: radial-gradient(520px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.045), transparent 42%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-card:hover::before {
    opacity: 0.82;
}

.avatar-container {
    position: relative;
    width: fit-content;
    margin: 0 auto 15px;
    z-index: 4;
    transform: translateZ(30px); /* Profundidade 3D para o avatar */
}

.status-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2.5px solid #141414;
    z-index: 5;
}

.status-online { background-color: #23a55a; box-shadow: 0 0 8px rgba(35, 165, 90, 0.4); }
.status-dnd { background-color: #f23f43; box-shadow: 0 0 8px rgba(242, 63, 67, 0.4); }
.status-idle { background-color: #f0b232; box-shadow: 0 0 8px rgba(240, 178, 50, 0.4); }
.status-offline { background-color: #80848e; }

/* --- ORGANIZAÇÃO DOS GRIDS --- */
#hype-section .hype-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 300px); 
    gap: 30px; 
    justify-content: center; 
    margin: 0 auto;
}

#amigos-section .hype-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* --- TAMANHOS DOS CARDS --- */
#hype-section .profile-card { width: 300px; min-height: 420px; padding: 60px 30px; border-radius: 40px; }
#amigos-section .profile-card { width: 280px; min-height: 320px; padding: 40px 24px; border-radius: 30px; }

/* --- VITRINE DE ICONS / PERFIL (ZOOM ELEGANTE + ENTRADA EM ONDA) --- */
.profile-showcase {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    
    /* 1. Transição de Zoom Sutil e Elegante[cite: 1] */
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.7s cubic-bezier(0.23, 1, 0.32, 1) !important;
    will-change: transform, opacity;

    /* 2. Configuração para Animação em Onda (Entrada)[cite: 1] */
    opacity: 0;
    transform: translateX(60px) scale(0.9);
    animation: waveEntrance 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Efeito de Zoom no Hover (Apenas Perfil/Icons)[cite: 1] */
.profile-showcase:hover {
    transform: scale(1.05) translateY(-10px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.03) !important;
    z-index: 10;
}

/* Lógica de Delay para o Efeito Onda (Escalonado)[cite: 1] */
.profile-showcase:nth-child(1) { animation-delay: 0.05s; }
.profile-showcase:nth-child(2) { animation-delay: 0.10s; }
.profile-showcase:nth-child(3) { animation-delay: 0.15s; }
.profile-showcase:nth-child(4) { animation-delay: 0.20s; }
.profile-showcase:nth-child(5) { animation-delay: 0.25s; }
.profile-showcase:nth-child(6) { animation-delay: 0.30s; }
.profile-showcase:nth-child(7) { animation-delay: 0.35s; }
.profile-showcase:nth-child(8) { animation-delay: 0.40s; }
.profile-showcase:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes waveEntrance {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* --- ELEMENTOS INTERNOS DO SHOWCASE --- */
.showcase-images {
    display: flex;
    gap: 15px;
    padding: 30px;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

.showcase-icon {
    width: 75px; height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.showcase-preview { height: 110px; border-radius: 12px; object-fit: contain; }

.showcase-info { padding: 25px; text-align: center; }

.hex-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- BOTÕES DO PERFIL (DETALHADOS) --- */
.showcase-btns {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 5px !important;
}

.btn-save {
    flex: 0 0 46px !important;
    height: 46px !important;
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.btn-save svg {
    width: 20px !important;
    height: 20px !important;
    color: #fff !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-save:hover svg { transform: translateY(3px) !important; }

.btn-save::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transform: skewX(-20deg) !important;
}

.btn-save:hover::after {
    left: 150% !important;
    transition: all 0.6s ease-in-out !important;
}

.btn-copy {
    flex: 1 !important;
    height: 46px !important;
    background: #282828 !important;
    color: #cecece !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.btn-copy:hover {
    background: #333 !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.08) !important;
}

.btn-save:active, .btn-copy:active { transform: scale(0.94) !important; }

/* --- MODAL DE DOWNLOAD --- */
.dl-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.dl-overlay.hide { opacity: 0; }

.dl-modal {
    background: #0f0f0f;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    width: 280px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    animation: popUp 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.dl-icon-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.icon-downloading, .icon-success {
    width: 50px;
    height: 50px;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-downloading { color: #fff; opacity: 1; transform: scale(1); }
.icon-success { opacity: 0; transform: scale(0.5); }

.dl-modal.is-success .icon-downloading { opacity: 0; transform: translateY(-20px) scale(0.5); }
.dl-modal.is-success .icon-success { opacity: 1; transform: scale(1.2); }

.dl-text {
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dl-progress-bar {
    width: 100%; height: 3px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px; overflow: hidden;
}

.dl-progress-fill {
    width: 0%; height: 100%;
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transition: width 1s ease-in-out;
}

/* --- ANIMAÇÕES GERAIS --- */
@keyframes popUp {
    from { transform: scale(0.7) translateY(40px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ani-card { animation: fadeInUp 0.6s ease both; }
