.guest-auth-modal[hidden] { display: none; }

.guest-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 22px;
}

.guest-auth-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .48);
    cursor: default;
    backdrop-filter: blur(5px);
}

.guest-auth-card {
    position: relative;
    width: min(440px, 100%);
    padding: 32px;
    color: #172136;
    background: #fff;
    border: 1px solid rgba(216, 224, 239, .95);
    border-radius: 24px;
    box-shadow: 0 28px 85px rgba(23, 33, 54, .25);
    animation: guest-auth-enter .2s ease-out;
}

.guest-auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    color: #7b879b;
    background: #f4f6fb;
    border-radius: 50%;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.guest-auth-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #6859eb, #3d68ef);
    border-radius: 17px;
    box-shadow: 0 12px 25px rgba(78, 72, 218, .24);
    font-size: 26px;
    font-weight: 900;
}

.guest-auth-eyebrow {
    margin: 22px 0 8px;
    color: #6353df;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.guest-auth-card h2 { margin: 0; font-size: clamp(25px, 4vw, 31px); letter-spacing: -.04em; }
.guest-auth-message { margin: 12px 0 24px; color: #6c7890; line-height: 1.65; }
.guest-auth-actions { display: flex; gap: 11px; }
.guest-auth-actions a { flex: 1; min-height: 48px; display: grid; place-items: center; border-radius: 13px; font-weight: 850; text-decoration: none; }
.guest-auth-primary { color: #fff; background: linear-gradient(135deg, #3663f4, #7331df); }
.guest-auth-secondary { color: #5142cf; background: #f4f2ff; border: 1px solid #d9d3ff; }
.guest-auth-note { margin: 18px 0 0; color: #8a95a8; font-size: 12px; line-height: 1.55; text-align: center; }
body.guest-auth-open { overflow: hidden; }

@keyframes guest-auth-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 500px) {
    .guest-auth-card { padding: 27px 21px 23px; border-radius: 20px; }
    .guest-auth-actions { flex-direction: column; }
}
