/* First-visit callout that points at the profile/user-menu icon. */
.profile-intro {
    position: fixed;
    z-index: 1080;
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 1rem 1.1rem 0.85rem;
    background: linear-gradient(135deg, var(--theme-primary, #6d28d9) 0%, var(--theme-secondary, #2563eb) 100%);
    color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(6, 23, 41, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
}

.profile-intro.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-intro-arrow {
    position: absolute;
    top: -8px;
    width: 16px;
    height: 16px;
    background: var(--theme-primary, #6d28d9);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 3px 0 0 0;
    box-shadow: -1px -1px 0 rgba(255, 255, 255, 0.08) inset;
}

.profile-intro-close {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    padding: 0.25rem 0.4rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.profile-intro-close:hover,
.profile-intro-close:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.profile-intro-title {
    font-family: var(--font-heading, inherit);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
}

.profile-intro-body {
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.profile-intro-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.profile-intro-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0;
}

.profile-intro-list li i {
    flex: 0 0 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.profile-intro-list li span {
    flex: 1;
}

.profile-intro-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.profile-intro-dismiss {
    background: #fff;
    color: var(--theme-primary, #6d28d9);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.profile-intro-dismiss:hover {
    background: #f3e8ff;
    transform: translateY(-1px);
}

.profile-intro-dismiss:active {
    transform: translateY(0);
}

/* Brief attention pulse on the profile button while the callout is shown. */
@keyframes profile-intro-attention-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.user-dropdown-btn.user-dropdown-btn-attention {
    animation: profile-intro-attention-pulse 1.6s ease-out infinite;
}
