/* ═══════════════════════════════════════════════════════════════
   MODERN TOAST NOTIFICATION - Complete Redesign
   ═══════════════════════════════════════════════════════════════ */

@keyframes toastSlideDown {
    0% { 
        transform: translateX(-50%) translateY(-120%);
        opacity: 0;
    }
    15% { 
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    85% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% { 
        transform: translateX(-50%) translateY(-120%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

@keyframes toastIconBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
}

/* ─── Toast Overlay ─── */
.jetvault-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 20px;
}

.jetvault-popup-overlay.active .jetvault-popup-card {
    animation: toastSlideDown 8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideDown {
    0% { 
        transform: scale(0.8);
        opacity: 0;
    }
    10% { 
        transform: scale(1);
        opacity: 1;
    }
    90% {
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(0.8);
        opacity: 0;
    }
}

.jetvault-popup-overlay.active .jetvault-popup-card {
    animation: toastSlideDown 8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideDown {
    0% { 
        transform: scale(0.8);
        opacity: 0;
    }
    10% { 
        transform: scale(1);
        opacity: 1;
    }
    90% {
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(0.8);
        opacity: 0;
    }
}

.jetvault-popup-overlay.active .jetvault-popup-card {
    animation: toastSlideDown 8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ─── Toast Card ─── */
.jetvault-popup-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 420px;
    width: 100%;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

/* Top accent line */
.jetvault-popup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d09c, #00b894, #00cec9);
    border-radius: 16px 16px 0 0;
}

/* Progress bar */
.jetvault-popup-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 208, 156, 0.6), rgba(0, 206, 201, 0.6));
    border-radius: 0 0 16px 16px;
    animation: toastProgress 8s linear forwards;
}

/* ─── Icon Container ─── */
.jetvault-popup-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(0, 208, 156, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 208, 156, 0.3);
    animation: toastIconBounce 0.6s ease-out 0.2s both;
}

.jetvault-popup-icon-bg {
    display: none;
}

.jetvault-popup-icon svg {
    width: 28px;
    height: 28px;
    stroke: #00d09c;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ─── Text Content ─── */
.jetvault-popup-content {
    flex: 1;
    min-width: 0;
}

.jetvault-popup-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.jetvault-popup-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* ─── Close Button ─── */
.jetvault-popup-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.4);
}

.jetvault-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.jetvault-popup-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
    .jetvault-popup-card {
        max-width: 100%;
        padding: 16px 20px;
        gap: 12px;
    }
    
    .jetvault-popup-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .jetvault-popup-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .jetvault-popup-title {
        font-size: 0.95rem;
    }
    
    .jetvault-popup-desc {
        font-size: 0.8rem;
    }
}