/* Update Notification CSS - Premium Ambient Style (Violet V2) */
.update-notification-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.update-notification-popup {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 32px;
    width: calc(100% - 40px);
    max-width: 420px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow: hidden;
}

@keyframes zoomIn { to { transform: scale(1); } }

/* Dark Mode Fix - Correct selector for Returny */
html[data-theme="dark"] .update-notification-popup {
    background: rgba(20, 20, 25, 0.8);
    border-color: rgba(109, 40, 217, 0.2);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.update-notification-ambient {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.update-notification-title {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

html[data-theme="dark"] .update-notification-title {
    color: #ffffff;
}

.update-notification-message {
    position: relative;
    z-index: 1;
    color: #444;
    margin-bottom: 35px;
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 500;
}

html[data-theme="dark"] .update-notification-message {
    color: #a0a0a5;
}

.update-notification-buttons {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.update-btn {
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.update-btn-primary {
    background: #6d28d9;
    color: white;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.3);
}

.update-btn-primary:hover {
    transform: translateY(-2px);
    background: #7c3aed;
    box-shadow: 0 15px 35px rgba(109, 40, 217, 0.5);
}

.update-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

html[data-theme="dark"] .update-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.update-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .update-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.update-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Premium Apple-style Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: premiumSpin 0.7s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes premiumSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
