.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    color: var(--light-text);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-text);
}

.modal-close:hover {
    color: var(--primary-color);
}

.captcha-container {
    text-align: center;
    margin: 1rem 0;
}

.captcha-display {
    font-size: 2rem;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    background: var(--darker-bg);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    user-select: none;
    color: var(--primary-color);
}

.captcha-input {
    width: 100%;
    padding: 0.5rem;
    margin: 1rem 0;
    border: 1px solid var(--darker-bg);
    border-radius: 4px;
    background-color: var(--darker-bg);
    color: var(--light-text);
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.modal-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.modal-submit {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.modal-submit:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.modal-cancel {
    background-color: transparent;
    color: var(--gray-text);
    border: 2px solid var(--gray-text);
    transition: all 0.3s ease;
}

.modal-cancel:hover {
    color: var(--light-text);
    border-color: var(--light-text);
}

.modal-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}