body {
    font-family: var(--font-main);
}

.overlay.active .diag-window {
    transform: translateY(0);
}

.modal-spacer {
    flex: 1;
}

.diag-window {
    width: 90%;
    max-width: 380px;
    height: auto; 
    min-height: unset; 
    
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    
    padding: 32px 24px 24px 24px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.diag-banner-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.diag-banner {
    margin: 0; 
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: var(--icon-active-filter);
}


.diag-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-align: center;
}

.diag-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
    margin-bottom: 24px;
}

.diag-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

#login-btn img{
    filter: var(--icon-active-filter);
}

#google-login-btn {
    background: #ffffff;
    color: rgb(0, 0, 0);
}

.diag-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent3);
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.diag-close:hover {
    background: var(--accent2);
    color: #ff5f56;
}

.diag-close img {
    height: auto;
    width: 20px;
    filter: var(--icon-active-filter);
}

.welcome-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.welcome-modal-overlay.active {
    opacity: 1; visibility: visible;
}

.welcome-card {
    background: var(--accent2);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%; max-width: 450px;
    padding: 20px;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.welcome-modal-overlay.active .welcome-card {
    transform: translateY(0);
}

.welcome-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px;
}

.welcome-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-main);
}

.close-welcome {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent3);
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.close-welcome img {
    height: auto;
    width: 20px;
    filter: var(--icon-active-filter);
}

.update-list {
    list-style: none; padding: 0; margin: 15px 0;
}

.update-list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px; padding: 10px;
    border-radius: 10px; border-left: 3px solid var(--text-main);
    font-size: 0.95rem;
    color: var(--text-main);
}

.update-text{
    color: var(--text-main);
}

.update-list b {
    color: var(--text-main);
}


.welcome-footer {
    display: flex; justify-content: flex-end; margin-top: 20px;
}


@media (min-width: 768px) {
    .diag-window:has(.diag-banner-container) {
        max-width: 700px;
        min-height: 350px;
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        overflow: hidden;
    }

    .diag-window:has(.diag-banner-container) .diag-banner-container {
        flex: 1.2;
        background: var(--accent3);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        border-right: 1px solid var(--border-color);
        margin-bottom: 0;
    }

    .diag-window:has(.diag-banner-container) .diag-content {
        flex: 1.5;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 40px 40px 30px;
        text-align: left;
    }

    .diag-window:has(.diag-banner-container) .diag-title,
    .diag-window:has(.diag-banner-container) .diag-desc {
        text-align: left;
    }

}