/* Shared login-first / anonymous-continue modal (soutenir + ateliers) */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.is-open {
    display: flex;
}

.login-modal .modal-content {
    background: var(--bg-elevated, #1a1a1a);
    border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 215, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: asPaymentModalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes asPaymentModalIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-modal .modal-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.login-modal .modal-content p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted, rgba(255, 255, 255, 0.65));
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.login-modal .btn-guest,
.login-modal .btn-login {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
}

/* Login = primary (gold) */
.login-modal .btn-login {
    background: linear-gradient(135deg,
                var(--support-gold, #ffd700) 0%,
                var(--support-gold-dark, #c9a000) 100%);
    color: #000;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-modal .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Anonymous = secondary */
.login-modal .btn-guest {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
    color: var(--text-primary, #fff);
}

.login-modal .btn-guest:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover, rgba(255, 255, 255, 0.25));
    transform: translateY(-2px);
}

.login-modal .modal-close {
    text-align: center;
    color: var(--text-subtle, rgba(255, 255, 255, 0.45));
    font-size: 14px;
    cursor: pointer;
    margin-top: 24px;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.login-modal .modal-close:hover {
    color: var(--text-primary, #fff);
    text-decoration: underline;
}

@media (max-width: 520px) {
    .login-modal .modal-content {
        padding: 32px 24px;
    }
}
