/* =============================================
   ANIMAÇÃO DE BOAS-VINDAS - PRO TRIAL
   ============================================= */

/* Overlay escuro de fundo */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--cv-000000-a0900, rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay.active {
    opacity: 1;
    visibility: visible;
}

.welcome-overlay.hiding {
    opacity: 0;
}

/* Container principal da animação */
.welcome-container {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.welcome-overlay.active .welcome-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Logo com brilho animado */
.welcome-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
    animation: welcomePulse 2s ease-in-out infinite;
}

.welcome-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(240, 185, 11, 0.5));
}

.welcome-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, #f0b90b, transparent 60%);
    animation: welcomeRotate 3s linear infinite;
    opacity: 0.6;
}

.welcome-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--cv-1e2329, #1e2329);
    z-index: -1;
}

/* Título de boas-vindas */
.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--cv-ffffff, #ffffff);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: welcomeFadeInUp 0.6s ease forwards 0.3s;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--cv-b7bdc6, #b7bdc6);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: welcomeFadeInUp 0.6s ease forwards 0.4s;
}

/* Badge do plano Pro */
.welcome-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15), rgba(240, 185, 11, 0.05));
    border: 2px solid #f0b90b;
    border-radius: 50px;
    padding: 15px 30px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: welcomeBadgePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.5s;
    box-shadow: 
        0 0 30px rgba(240, 185, 11, 0.3),
        inset 0 0 30px rgba(240, 185, 11, 0.05);
}

.welcome-plan-icon {
    font-size: 28px;
    color: var(--cvi-f0b90b, #f0b90b);
    animation: welcomeStarSpin 4s ease-in-out infinite;
}

.welcome-plan-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.welcome-plan-label {
    font-size: 12px;
    color: var(--cv-b7bdc6, #b7bdc6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-plan-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--cvi-f0b90b, #f0b90b);
    text-shadow: 0 0 20px rgba(240, 185, 11, 0.5);
}

/* Card com data de expiração */
.welcome-trial-info {
    background: linear-gradient(135deg, var(--cv-1e2329, #1e2329), var(--cv-2b3139, #2b3139));
    border: 1px solid var(--cv-474d57, #474d57);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: welcomeFadeInUp 0.6s ease forwards 0.6s;
}

.welcome-trial-label {
    font-size: 14px;
    color: var(--cv-b7bdc6, #b7bdc6);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.welcome-trial-label i {
    color: var(--cvi-f0b90b, #f0b90b);
}

.welcome-trial-date {
    font-size: 28px;
    font-weight: 700;
    color: var(--cv-ffffff, #ffffff);
    margin-bottom: 12px;
}

.welcome-trial-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--cvi-02c076, #02c076);
}

.welcome-trial-countdown i {
    font-size: 16px;
}

/* Lista de recursos */
.welcome-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    opacity: 0;
    animation: welcomeFadeInUp 0.6s ease forwards 0.7s;
}

.welcome-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 192, 118, 0.1);
    border: 1px solid rgba(2, 192, 118, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--cvi-02c076, #02c076);
}

.welcome-feature-tag i {
    font-size: 14px;
}

/* Botão de continuar */
.welcome-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0b90b, #d4a017);
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #1e2329;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: welcomeFadeInUp 0.6s ease forwards 0.8s;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(240, 185, 11, 0.3);
}

.welcome-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240, 185, 11, 0.4);
}

.welcome-continue-btn:active {
    transform: translateY(0);
}

.welcome-continue-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.welcome-continue-btn:hover i {
    transform: translateX(4px);
}

/* Partículas de fundo */
.welcome-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.welcome-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #f0b90b;
    border-radius: 50%;
    opacity: 0;
    animation: welcomeParticleFloat 4s ease-in-out infinite;
}

.welcome-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.welcome-particle:nth-child(2) { left: 20%; animation-delay: 0.5s; }
.welcome-particle:nth-child(3) { left: 30%; animation-delay: 1s; }
.welcome-particle:nth-child(4) { left: 40%; animation-delay: 1.5s; }
.welcome-particle:nth-child(5) { left: 50%; animation-delay: 2s; }
.welcome-particle:nth-child(6) { left: 60%; animation-delay: 0.3s; }
.welcome-particle:nth-child(7) { left: 70%; animation-delay: 0.8s; }
.welcome-particle:nth-child(8) { left: 80%; animation-delay: 1.3s; }
.welcome-particle:nth-child(9) { left: 90%; animation-delay: 1.8s; }

/* Confetes */
.welcome-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

/* =============================================
   ANIMAÇÕES KEYFRAMES
   ============================================= */

@keyframes welcomePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes welcomeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes welcomeFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes welcomeBadgePop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    70% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes welcomeStarSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(-5deg) scale(1); }
    75% { transform: rotate(5deg) scale(1.05); }
}

@keyframes welcomeParticleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

@keyframes welcomeConfettiFall {
    0% {
        opacity: 1;
        transform: translateY(-50px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* =============================================
   RESPONSIVO
   ============================================= */

@media (max-width: 576px) {
    .welcome-container {
        padding: 30px 20px;
    }
    
    .welcome-logo {
        width: 80px;
        height: 80px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .welcome-plan-badge {
        padding: 12px 20px;
    }
    
    .welcome-plan-name {
        font-size: 20px;
    }
    
    .welcome-trial-date {
        font-size: 22px;
    }
    
    .welcome-continue-btn {
        padding: 14px 30px;
        font-size: 15px;
    }
}
