.join-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 1001;
}

.join-modal-fancy-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    width: min(560px, 94vw);
    margin: 0;
    animation: modalFadeIn 0.2s ease;
}

.join-modal-title {
    margin: 0 0 18px;
    color: var(--sand2);
    text-align: center;
    font-size: 1.5rem;
}

.join-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    min-width: auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    background: rgba(16, 21, 13, 0.75);
    color: var(--sand2);
    border: 1px solid var(--line);
    font-size: 1.35rem;
    line-height: 1;
}

.join-modal-form {
    margin: 0;
}

.join-modal-field {
    margin-bottom: 10px;
}

.join-modal-field label {
    display: block;
    margin-bottom: 4px;
}

.join-modal-field input,
.join-modal-field textarea {
    margin-bottom: 0;
}

.join-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.join-modal-actions .btn {
    flex: 1;
}

#join-modal-status {
    margin-top: 12px;
    color: var(--sand2);
    font-weight: 700;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -54%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 560px) {
    .join-modal-actions {
        flex-direction: column;
    }
}
