.impl-celebracao-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.impl-celebracao-overlay--visivel {
    opacity: 1;
    pointer-events: auto;
}

.impl-celebracao-overlay--saindo {
    opacity: 0;
    pointer-events: none;
}

.impl-celebracao-card {
    position: relative;
    width: min(420px, 100%);
    padding: 36px 28px 28px;
    border-radius: 20px;
    background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 55%, #ecfdf5 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    text-align: center;
    transform: scale(0.82) translateY(24px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.impl-celebracao-overlay--visivel .impl-celebracao-card {
    transform: scale(1) translateY(0);
}

.impl-celebracao-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.impl-celebracao-confetti span {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    animation: impl-confetti-fall 2.8s ease-in forwards;
}

@keyframes impl-confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(420px) rotate(720deg);
    }
}

.impl-celebracao-icone {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 45%, #fbbf24 100%);
    box-shadow:
        0 12px 28px rgba(245, 158, 11, 0.45),
        0 0 0 8px rgba(251, 191, 36, 0.18);
    animation: impl-trofeu-pulse 1.2s ease-in-out infinite;
}

.impl-celebracao-icone--modulo {
    background: linear-gradient(135deg, #0068ff 0%, #3b82f6 50%, #60a5fa 100%);
    box-shadow:
        0 12px 28px rgba(0, 104, 255, 0.4),
        0 0 0 8px rgba(59, 130, 246, 0.15);
    font-size: 40px;
}

@keyframes impl-trofeu-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.impl-celebracao-titulo {
    display: block;
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
}

.impl-celebracao-sub {
    display: block;
    margin: 0 0 22px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #475569;
}

.impl-celebracao-sub strong {
    color: #0068ff;
    font-weight: 600;
}

.impl-celebracao-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.impl-celebracao-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 104, 255, 0.45);
}

.impl-celebracao-btn:active {
    transform: translateY(0);
}
