/* ============================================================================
   PERFIL GUARD — Modal acolhedor de perfil incompleto
   ========================================================================== */

/* -------------------------------------------------------------------------
   HEADER COM GRADIENTE
------------------------------------------------------------------------- */
.perfil-guard-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    position: relative;
    overflow: hidden;
}

.perfil-guard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.perfil-guard-emoji-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    animation: perfilGuardPulse 2.5s ease-in-out infinite;
}

@keyframes perfilGuardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* -------------------------------------------------------------------------
   ITENS DA LISTA DE PENDÊNCIAS
------------------------------------------------------------------------- */
.perfil-guard-item {
    transition: all 0.2s ease;
}

.perfil-guard-item:hover {
    transform: translateX(4px);
    border-color: #6366f1 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.perfil-guard-item-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   ANIMAÇÃO DE ENTRADA
------------------------------------------------------------------------- */
#modal-perfil-incompleto .modal-content {
    animation: perfilGuardEntrada 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes perfilGuardEntrada {
    0% { transform: scale(0.92) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* -------------------------------------------------------------------------
   BOTÃO CTA PRINCIPAL
------------------------------------------------------------------------- */
#perfil-guard-btn-ir-hub {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    transition: all 0.25s ease;
}

#perfil-guard-btn-ir-hub:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* -------------------------------------------------------------------------
   BACKDROP MANUAL — sempre visível e abaixo do nosso modal
------------------------------------------------------------------------- */
.perfil-guard-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000 !important;
    opacity: 0.5 !important;
    z-index: 1080 !important;
    transition: opacity 0.15s linear;
}

/* Nosso modal sempre ACIMA do backdrop manual */
#modal-perfil-incompleto {
    z-index: 1090 !important;
}

#modal-perfil-incompleto .modal-dialog,
#modal-perfil-incompleto .modal-content {
    z-index: 1091 !important;
    position: relative;
}

/* Animação suave */
#modal-perfil-incompleto.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Garante que qualquer backdrop nativo resquicial do Bootstrap
   fique SEMPRE abaixo do nosso modal */
body > .modal-backdrop:not(.perfil-guard-backdrop) {
    z-index: 1070 !important;
}