.join-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in;
}

#join-modal-toggle:checked ~ .join-modal {
    display: flex;
}

#join-modal-toggle {
    display: none;
}

.join-modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 2.5rem;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 3px #667eea;
    animation: slideDown 0.4s ease-out;
    position: relative;
}

.join-modal-content h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.join-form-group input[type="text"] {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    font-size: 1.4rem;
    text-align: center;
    letter-spacing: 0.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.join-form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.join-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.join-modal-buttons button,
.join-modal-buttons label {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-button-cancel {
    background: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.join-button-cancel:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

.join-button-join {
    background: #667eea;
    color: white;
}

.join-button-join:hover {
    background: #764ba2;
    transform: translateY(-2px);
}