/* مربوط به: partials/modals/update-required.php */
/* مودال اجباری - عمداً هیچ دکمه‌ی بستن/کلیک‌بیرون نداره، فقط با دکمه‌ی بروزرسانی می‌ره کنار */

.update-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 35, .78);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.update-modal.active {
    display: flex;
}

.update-modal-content {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 36px 28px 28px;
    max-width: 340px;
    width: 100%;
    text-align: center;
}

.update-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    animation: updateSpin 2.5s linear infinite;
}

@keyframes updateSpin {
    to { transform: rotate(360deg); }
}

.update-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.update-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 22px;
}

.update-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s;
}

.update-btn:hover {
    transform: translateY(-2px);
}

.update-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}
