/* ===== Auth modal — blocking overlay shown until a valid token is in hand ===== */
.auth-overlay {
    position: fixed; inset: 0;
    height: 100vh; height: 100dvh;
    background: radial-gradient(circle at 50% 20%, rgba(0,212,255,0.15), transparent 60%), #0a0a0f;
    display: none; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
}
.auth-overlay.open { display: flex; }

.auth-modal {
    width: 100%; max-width: 380px;
    padding: 32px 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(0,212,255,0.2);
    box-shadow: 0 20px 60px rgba(0,212,255,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.auth-logo {
    font-size: 28px; font-weight: 900; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #00d4ff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-align: center; margin-bottom: 6px;
}
.auth-tagline {
    font-size: 10px; color: var(--gray); letter-spacing: 2px;
    text-align: center; font-weight: 700; margin-bottom: 24px;
}
.auth-mode-text {
    font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5;
    text-align: center; margin-bottom: 20px;
}
.auth-modal input[type=password] {
    width: 100%; padding: 14px 16px; margin-bottom: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--gray2);
    border-radius: 12px; color: #fff; font-size: 15px; font-weight: 600;
    font-family: inherit; letter-spacing: 1px;
    transition: border-color 0.2s, background 0.2s;
}
.auth-modal input[type=password]:focus {
    outline: none; border-color: var(--cyan);
    background: rgba(0,212,255,0.05);
}
.auth-error {
    font-size: 11px; color: var(--red); margin-bottom: 10px;
    padding: 8px 12px; border-radius: 8px;
    background: rgba(255,56,101,0.1); border: 1px solid rgba(255,56,101,0.2);
    font-weight: 700;
}
.auth-submit {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #000; border: none; border-radius: 12px;
    font-weight: 900; font-size: 13px; letter-spacing: 2px;
    cursor: pointer; margin-top: 8px;
    box-shadow: 0 8px 24px rgba(0,212,255,0.25);
    transition: transform 0.1s, box-shadow 0.2s;
}
.auth-submit:active { transform: scale(0.98); }
.auth-submit:hover:not(:disabled) { box-shadow: 0 12px 32px rgba(0,212,255,0.35); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
