/* --- Site Modal --- */
.site-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.site-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s;
}

.site-modal-con {
    position: relative;
    box-sizing: border-box;
    display: flex;
    text-align: center;
    padding: 14px;
    color: #d7dceb;
    background: #2d2f41;
    border: 2px solid #070709;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 480px;
}

.site-modal-close {
    position: absolute;
    width: 27px;
    height: 27px;
    top: -12px;
    right: -12px;
    cursor: pointer;
    user-select: none;
    background: #464861;
    border: 2px solid #070709;
    border-radius: 50%;
}

.site-modal-close img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 8px;
    opacity: .8;
}

.site-modal-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 18px;
    width: 100%;
}

.modal-announcement {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.announcement-text {
    font-size: 17px;
    text-align: center;
}

.announcement-text strong {
    color: #fff;
    font-weight: 600;
}

.modal-premium-key {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.premium-key-label {
    font-size: 18px;
    text-align: center;
}

input[readonly].premium-key-input {
    box-sizing: border-box;
    background: rgb(30, 31, 43);
    color: rgb(210 214 226);
    border: 2px solid rgb(7, 7, 9);
    font-family: monospace;
    text-align: center;
    cursor: pointer;
    outline: none;
    text-overflow: ellipsis;
    transition: border-color 0.15s ease;
}

input[readonly].premium-key-input:hover {
    border-color: #7c8aff;
}

input[readonly].premium-key-input[data-copied] {
    border-color: #4caf7d;
}

.modal-signin {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.modal-signin.show {
    display: flex;
}

.signin-message {
    line-height: 1.5;
    font-size: 18px;
}

.modal-member-count {
    font-size: 16px;
    color: #d7dcebb0;
}

.btn.modal-dismiss-btn {
    background: rgb(12 14 22);
    color: rgb(210 214 226);
}
