.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.announcement-overlay.show {
    opacity: 1;
    visibility: visible;
}

.announcement-modal {
    background: #1e1e2e;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-overlay.show .announcement-modal {
    transform: scale(1);
}

.announcement-header {
    background: #0d0d15;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.announcement-body {
    padding: 24px;
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.8;
    max-height: 50vh;
    overflow-y: auto;
}

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

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

.announcement-body::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 3px;
}

.announcement-body::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.7);
}

.announcement-body a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
}

.announcement-body a:hover {
    color: #5BA3F5;
    text-decoration: underline;
}

.announcement-body p {
    margin: 0 0 12px 0;
}

.announcement-body p:last-child {
    margin-bottom: 0;
}

.announcement-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.announcement-test-btn {
    display: none;
}

.announcement-dismiss-btn {
    background: #4A90E2;
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.announcement-dismiss-btn:hover {
    background: #5BA3F5;
}

.announcement-dismiss-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .announcement-modal {
        width: 90%;
        max-width: none;
    }
    
    .announcement-header {
        padding: 16px 20px;
    }
    
    .announcement-title {
        font-size: 16px;
    }
    
    .announcement-body {
        padding: 20px;
        font-size: 13px;
    }
    
    .announcement-footer {
        padding: 12px 20px;
    }
    
    .announcement-dismiss-btn {
        width: 100%;
        padding: 12px 20px;
    }
}
