/* ── CELEBRATION OVERLAY ── */
.celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.celebration-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cel-content {
    text-align: center;
    max-width: 440px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celebration-overlay.show .cel-content {
    transform: scale(1) translateY(0);
}

/* Icons & Visuals */
.cel-icon-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.cel-main-icon {
    font-size: 4rem;
    color: #ffe600; /* Aura Purple */
    filter: drop-shadow(0 0 20px rgba(127, 119, 221, 0.4));
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Typography */
.cel-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.cel-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

/* Stats Row */
.cel-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.cel-stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cel-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.cel-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.cel-stat-card.streak {
    border-color: rgba(239, 68, 68, 0.3);
}

.cel-stat-card.streak .cel-stat-val {
    color: #ef4444; /* Flame Red */
}

/* Next Steps */
.cel-next-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 32px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cel-next-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--sr-blue);
    margin-bottom: 6px;
    display: block;
}

.cel-next-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cel-countdown {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
    font-weight: 600;
}
.cel-countdown span {
    color: var(--sr-blue);
    font-weight: 800;
}

/* Buttons */
.cel-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cel-btn-primary {
    background: var(--sr-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.cel-btn-primary:hover {
    transform: translateY(-2px);
    background: #3b82f6;
}

.cel-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.cel-btn-secondary:hover {
    color: white;
}

/* Animations */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes auraPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.aura-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #7F77DD;
    animation: auraPulse 1.5s ease-out infinite;
    z-index: -1;
}
