#updateToast {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 5000;
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;

    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-md);
    max-width: 300px;

    background: rgba(18, 18, 21, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);

    color: var(--color-text-primary);
    font-size: 0.9rem;
}

#updateToast.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

#updateToast.update-available {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#updateToast p {
    margin: 0;
    font-weight: 500;

    width: 100%;
    padding-bottom: 0.3rem;
}

#latestVersionDisplay {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: var(--color-primary);
    color: var(--color-bg-base);
    display: inline-block;
    margin-left: 0.5rem;
    box-shadow: 0 0 12px var(--color-primary-glow);
    transition: transform 0.2s;
}

#downloadButton {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;

    background: var(--color-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 10px var(--color-primary-glow);
    transition: transform 0.2s, background 0.2s;
}

#downloadButton:hover {
    transform: translateY(-2px);
    background: #7c4dff;
    box-shadow: 0 6px 15px var(--color-primary-glow);
}