.update-popup-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(4px);
z-index: 10000;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
opacity: 0;
transition: opacity 0.3s ease;
}

.update-popup-overlay.show {
display: flex;
opacity: 1;
}

.update-popup {
width: 100%;
max-width: 32rem;
background: #1e2433;
border: 1px solid rgba(74, 158, 255, 0.1);
border-radius: 0.75rem;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
overflow: hidden;
position: relative;
animation: updatePopupSlideIn 0.3s ease-out;
backdrop-filter: blur(12px);
}

@keyframes updatePopupSlideIn {
from {
opacity: 0;
transform: translateY(20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.update-popup-close {
position: absolute;
top: 1rem;
right: 1rem;
padding: 0.5rem;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
border: none;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
transition: all 0.2s ease;
z-index: 10;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
}

.update-popup-close:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
transform: rotate(90deg);
}

.update-popup-header {
background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(74, 158, 255, 0.05));
border-bottom: 1px solid rgba(74, 158, 255, 0.1);
padding: 2rem 1.5rem 1.5rem;
text-align: center;
position: relative;
}

.update-popup-icon {
width: 64px;
height: 64px;
background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(74, 158, 255, 0.1));
border: 1px solid rgba(74, 158, 255, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
font-size: 28px;
color: #4a9eff;
}

.update-popup-title {
font-size: 1.5rem;
font-weight: 700;
color: #fff;
margin: 0 0 0.5rem 0;
}

.update-popup-version {
font-size: 0.875rem;
color: rgba(255, 255, 255, 0.6);
font-weight: 500;
}

.update-popup-body {
padding: 1.5rem;
max-height: 60vh;
overflow-y: auto;
}

.update-popup-body::-webkit-scrollbar {
width: 6px;
}

.update-popup-body::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 3px;
}

.update-popup-body::-webkit-scrollbar-thumb {
background: rgba(74, 158, 255, 0.3);
border-radius: 3px;
}

.update-popup-body::-webkit-scrollbar-thumb:hover {
background: rgba(74, 158, 255, 0.5);
}

.update-section {
margin-bottom: 1.5rem;
}

.update-section:last-child {
margin-bottom: 0;
}

.update-section-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}

.update-section-icon {
width: 32px;
height: 32px;
background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(74, 158, 255, 0.05));
border: 1px solid rgba(74, 158, 255, 0.2);
border-radius: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
color: #4a9eff;
font-size: 16px;
}

.update-section-title {
font-size: 1rem;
font-weight: 600;
color: #fff;
margin: 0;
}

.update-item {
padding: 0.75rem;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 0.5rem;
margin-bottom: 0.5rem;
transition: all 0.2s ease;
}

.update-item:last-child {
margin-bottom: 0;
}

.update-item:hover {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(74, 158, 255, 0.2);
}

.update-item-title {
font-size: 0.875rem;
font-weight: 600;
color: #fff;
margin: 0 0 0.25rem 0;
display: flex;
align-items: center;
gap: 0.5rem;
}

.update-item-badge {
display: inline-flex;
align-items: center;
padding: 0.125rem 0.5rem;
background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(74, 158, 255, 0.1));
border: 1px solid rgba(74, 158, 255, 0.3);
border-radius: 0.25rem;
font-size: 0.75rem;
font-weight: 600;
color: #4a9eff;
}

.update-item-description {
font-size: 0.875rem;
color: rgba(255, 255, 255, 0.7);
line-height: 1.5;
margin: 0;
}

.update-popup-footer {
padding: 1rem 1.5rem;
background: rgba(0, 0, 0, 0.2);
border-top: 1px solid rgba(255, 255, 255, 0.05);
display: flex;
justify-content: center;
}

.update-popup-button {
padding: 0.75rem 2rem;
border-radius: 0.5rem;
background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(74, 158, 255, 0.1));
border: 1px solid rgba(74, 158, 255, 0.3);
color: #fff;
font-weight: 600;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
backdrop-filter: blur(8px);
font-size: 0.875rem;
}

.update-popup-button:hover {
background: linear-gradient(135deg, rgba(74, 158, 255, 0.3), rgba(74, 158, 255, 0.15));
border-color: rgba(74, 158, 255, 0.5);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

@media (max-width: 640px) {
.update-popup-overlay {
padding: 0;
align-items: flex-end;
}

.update-popup {
width: 100%;
max-width: none;
height: 100vh;
border-radius: 0;
border: none;
box-shadow: none;
animation: updatePopupSlideUp 0.3s ease-out;
display: flex;
flex-direction: column;
}

@keyframes updatePopupSlideUp {
from {
opacity: 0;
transform: translateY(100%);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.update-popup-header {
padding: 2.5rem 1.5rem 1.5rem;
}

.update-popup-body {
flex: 1;
max-height: none;
padding: 1.5rem;
}

.update-popup-close {
top: 1.25rem;
right: 1.25rem;
width: 40px;
height: 40px;
font-size: 20px;
}

.update-popup-footer {
padding: 1.25rem 1.5rem;
}

.update-popup-button {
width: 100%;
padding: 1rem;
}
}