.auth-prompt-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.auth-prompt-modal.show {
    opacity: 1;
}

.auth-prompt-modal.closing {
    opacity: 0;
    pointer-events: none;
}

.auth-prompt-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-prompt-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 1rem;
    background: var(--store-panel);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(var(--store-ink-rgb), 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-prompt-modal.show .auth-prompt-content {
    transform: translateY(0) scale(1);
}

.auth-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.auth-prompt-header h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--store-text);
}

.auth-prompt-close {
    width: 30px;
    height: 30px;
    background: rgba(var(--store-ink-rgb), 0.06);
    border: 1px solid rgba(var(--store-ink-rgb), 0.08);
    border-radius: 50%;
    color: var(--store-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: background 0.2s, color 0.2s;
}

.auth-prompt-close:hover {
    background: rgba(255, 69, 58, 0.12);
    color: var(--store-error);
    border-color: rgba(255, 69, 58, 0.2);
}

.auth-prompt-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 16px;
    background: rgba(var(--store-accent-rgb), 0.08);
    border: 1px solid rgba(var(--store-accent-rgb), 0.15);
    color: var(--store-primary);
    font-size: 1.4rem;
}

.auth-prompt-body p {
    font-size: 0.85rem;
    color: var(--store-text-muted);
    line-height: 1.6;
    text-align: center;
    font-family: var(--font-body);
}

.auth-prompt-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: rgba(var(--store-ink-rgb), 0.025);
    border: 1px solid rgba(var(--store-ink-rgb), 0.055);
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--store-text-secondary);
    font-family: var(--font-body);
    letter-spacing: -0.005em;
}

.benefit i {
    color: var(--store-primary);
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.auth-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-prompt-actions .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--store-primary);
    color: var(--store-on-primary);
    border: none;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: -0.01em;
}

.auth-prompt-actions .btn-primary:hover {
    background: var(--store-primary-hover);
    box-shadow: 0 0 0 4px rgba(var(--store-accent-rgb), 0.2);
}

.auth-prompt-actions .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(var(--store-ink-rgb), 0.05);
    color: rgba(var(--store-ink-rgb), 0.55);
    border: 1px solid rgba(var(--store-ink-rgb), 0.07);
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    letter-spacing: -0.01em;
}

.auth-prompt-actions .btn-secondary:hover {
    background: rgba(var(--store-ink-rgb), 0.08);
    color: rgba(var(--store-ink-rgb), 0.8);
    border-color: rgba(var(--store-ink-rgb), 0.12);
}

@media (max-width: 480px) {
    .auth-prompt-benefits {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-prompt-modal,
    .auth-prompt-content {
        transition: none;
        animation: none;
    }
}