/* Global UI Components: Toasts & Popups */
:root {
    --accent-gradient: linear-gradient(135deg, #c0305a, #e8612a);
    --bg-dark: #030812;
    --card-bg: rgba(6, 14, 29, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
}

/* ── TOASTS ── */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--card-bg);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(192, 48, 90, 0.2);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: auto;
}

.toast::before {
    content: '';
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 12px 0 0 12px;
    background: var(--accent-gradient);
}

.toast.error::before { background: #ff4444; }
.toast.success::before { background: #00ff88; }

@keyframes toastSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── POPUPS (MODALS) ── */
.nova-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.nova-popup {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nova-overlay.active { opacity: 1; }
.nova-overlay.active .nova-popup { transform: scale(1); }

.popup-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

.popup-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.popup-msg {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.popup-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-width: 100px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.popup-btn:hover { transform: translateY(-2px); opacity: 0.9; }
